ProtectedcreateProtectedcreateProtectedcreateProtecteddrawEnsure a point is visible in the viewBox by panning if necessary
Point to make visible
Optional margin around the point (default: 50)
Get the bounds of the rendering area
Get the rendering context (Canvas2D, SVGElement, etc.)
Get current viewBox
Current viewBox {x, y, width, height}
Initialize the renderer in the given parent element
ProtectedinitPan (translate) the viewBox
Horizontal translation (in viewBox coordinates)
Vertical translation (in viewBox coordinates)
Whether to redraw guides (default: true)
ProtectedremoveSet viewBox
X coordinate of top-left corner
Y coordinate of top-left corner
Width of viewBox
Height of viewBox
Whether to redraw guides (default: true)
OptionalcenterX: numberOptionalcenterY: number
Clear/reset the rendering context