@nitin291989 wrote:
How to restrict Zoom In/Out Grid Diagram to Horizontal(Keeping GridCell height same) or Vertical(Keeping GridCell width same) Zooming only?
Currently, using the following "button" code:
$("Button", { margin: 5, click: function() { if (ganttDiagram.commandHandler.canIncreaseZoom()) myDiagram.commandHandler.increaseZoom(); } }, $(go.TextBlock, "Zoom-In")), $("Button", { margin: 5, click: function() { if (ganttDiagram.commandHandler.canDecreaseZoom()) myDiagram.commandHandler.decreaseZoom(); } }, $(go.TextBlock, "Zoom-Out")),increaseZoom() and decreaseZoom() performs Zoom-In and Zoom-Out resp. on the entire diagram, but my requirement is to restrict Zoom In/Out Grid Diagram to Horizontal Zooming only, keeping GridCell height or Vertical position/scale same.
I am using the following sample for reference: https://gojs.net/temp/timelineInfinite.html
Please Suggest.
Thanks.
Posts: 2
Participants: 2