Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic DiagramView ZoomFactor not working for ImageMap (Read 2297 times)
jlj30
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 183
Joined: Sep 4th, 2011
DiagramView ZoomFactor not working for ImageMap
Feb 1st, 2013 at 6:15pm
Print Post  
Hi,

The following function is intended to increase/decrease the zoomfactor of a diagram in ImageMap mode. 

Code (Javascript)
Select All
function Zoom(sender, args)
            {
	            var newZoom = sender.get_value();
                var diagramView = document.getElementById("<%= DiagramView3.ClientID %>");
	            diagramView.ZoomFactor = newZoom;
            } 



The function is being called (I put an alert in to verify) and is being passed values such as 50, 75, 100, 125 etc.

The function does not fail, but the diagram does not zoom.

Here's the declarative statements for the diagram and overview.

Code (HTML)
Select All
<div style="clear: both; margin-top: 10px; margin-left: 10px; margin-right: 10px;
                    position: absolute;  z-index: 90001;">
                    <ndiag:Overview ID="Overview1" runat="server" DiagramViewID="DiagramView3" JarLocation="./Java/JDiagram.jar"
                        FitAll="true" Visible="true" Style="background-color: white; width: 200px; height: 200px; position: absolute;" />
                        <ndiag:OverviewExtender ID="OvExt1" TargetControlID="Overview1" runat="server" />
                </div>
                <div style="z-index: 90000;">
                    <ndiag:DiagramView ID="DiagramView3" runat="server" Behavior="Pan" ClientSideMode="ImageMap"
                        JsLibraryLocation="./Js/MindFusion.Diagramming.js" JarLocation="./Java/JDiagram.jar"
                        AppletStartedScript="onAppletStarted" ShowScrollbars="true" ShowOverview="false"
                        OverviewFitAll="true" OverviewTitle="Navigator" Diagram-EnableStyledText="true" ZoomFactor="50">
                    </ndiag:DiagramView>
                </div> 



What am I missing?

Thanks

Jim


  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DiagramView ZoomFactor not working for ImageMap
Reply #1 - Feb 4th, 2013 at 8:59am
Print Post  
Hi,

In ImageMap mode you can change the zoom factor only on server side, because the diagram image has to be rendered again. On the client side you could implement something like zoom by changing the width and height of the image from JavaScript, but it won't look very nice when zooming in.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint