When trying to retrieve an objects’ recalculated width the same width is returned regardless of zoom level.
This happens when listening for the ChangedSelection
event like so:
e.diagram.selection.first().actualBounds.width
Same width in both zoom levels
walter
2
That is correct – all Part positions, locations, and sizes are in document coordinates. Discussion is at GoJS Coordinate Systems-- Northwoods Software
Perhaps you should multiply the Node.actualBounds.width by the Diagram.scale.