zoomPoint property
Gets or sets the zoom point of this Diagram, in viewport coordinates. This is used by Tool#standardMouseWheel and scale-setting commands to control where to zoom in or out.
Typical usage is to remember the value of this property and to set this property to some point within the viewport (between zero and the canvas width and height). This is commonly accomplished by using the InputEvent#viewPoint of Diagram#lastInput. Then one changes the #scale somehow, perhaps by executing one of the CommandHandler commands, or by rotating the mouse wheel, or just by setting the Diagram#scale property. Finally one restores the original value of this property.
The default value is Point(NaN, NaN). Value must be of type Point, in element coordinates, not in document coordinates. Setting this property does not notify about any changed event.
Implementation
_i3.Point get zoomPoint => _i4.getProperty(
this,
'zoomPoint',
);
Implementation
set zoomPoint(_i3.Point value) {
_i4.setProperty(
this,
'zoomPoint',
value,
);
}