ZoomOptions.getPointOffset

Syntax

getPointOffset(x: number, y: number, node: HTMLElement);

Parameters

x. The DOM element is currently located horizontally.

y. The DOM element is currently located vertically.

node. The DOM element corresponding to a visual component, relative to which one should get element coordinates.

Description

The getPointOffset method returns coordinates of an element located relative to a visual component taking into account zoom in pixels.

Comments

To get visual component coordinates, use the ZoomOptions.getNodeOffset method.

See also:

ZoomOptions