moveTo
Centers the viewbox on the specified coordinates.
Example
Usage
const x = 0;
const y = 0;
viewer2d.moveTo(x, y);Parameters
x
X coordinate to center the viewbox on.
Type | Required |
|---|---|
Number | Yes |
y
Y coordinate to center the viewbox on.
Type | Required |
|---|---|
Number | Yes |