Quantcast
Channel: Northwoods Software - Latest topics
Viewing all articles
Browse latest Browse all 7417

Zoom Out and Zoom In a TableLayout diagram relative to mouse click position

$
0
0

@Tech1 wrote:

I have a table layout diagram with some nodes placed inside the cells.

There are two options "Zoom Out" and "Zoom In" , that can be selected from UI.

When "Zoom Out" is selected and mouse is clicked on a particular position, I want to zoom out that portion of the diagram.

Similarly, When "Zoom In" is selected and mouse is clicked on a particular position, I want to zoom in the diagram.

I have tried zoom using myDiagram.commandHandler.increaseZoom() and myDiagram.commandHandler.decreaseZoom().

It is noticed that the zoom happens relative to center.

So if the diagram is big, while zoom out, scroll bar comes and the position where I clicked goes out of my view. I want the zoom to happen relative to my mouse click position.

Please help to achieve this.

Posts: 7

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7417

Trending Articles