I checked the example in http://www.gojs.net/latest/samples/pageFlow.html,
the diagram will zoom in/out based on the action of mouse wheel. I have a requirement to implement Zoom In/Out in
my diagram by clicking zoom in and zoom out button. Can someone tell me how to
do it?
Thanks for the quick response. I hook up my buttons with myDiagram.commandHandler.increaseZoom and decreaseZoom, but nothing was changed. Do any properties have to be set before it will work?
My diagram was placed inside our in-house javascript framework which extended from jQuery. Is there any setting I need to check to see if our code conflicts with the settings in goJS?
There are no inherent conflicts, since some of our samples make use of jQuery. But it is common to have a local conflict with the definition of "$". You'll note that all of our samples declare "$" to be a local variable. Or you can call jQuery.noConflict().
I have tried in IE9, Firefox and Chrome, none of them worked. Some of the keyboard short cuts like CTRL+A, CTRL+Y and CTRL+Z worked, but not for CTRL+(+) and CTRL+(-).
That’s the problem – by setting Diagram.autoScale to Uniform you are telling the Diagram to always show all of the diagram in the viewport. So of course the user cannot zoom in or out.