Returns the SVG container for the marker's and editor's visual elements.
When set to true, a new marker of the same type is created immediately after the current one is finished.
Marker creation style.
Markers can either be created by drawing them or just dropping them on the canvas.
Gets marker's fill color.
Sets marker's fill color.
Returns true if the marker is currently selected
Returns the marker instance.
Gets marker's notes.
Sets marker's notes.
Gets marker's opacity.
Sets marker's opacity.
Overlay container for HTML elements like text editors, etc.
Gets editor's state.
Gets marker's stroke (outline) color.
Sets marker's stroke (outline) color.
color as string
Gets marker's stroke (outline) dash array.
Sets marker's stroke (outline) dash array.
dash array as string
Gets marker's stroke (outline) width.
Sets marker's stroke (outline) width.
stroke width in pixels.
Protected
addAdds control grips to control box.
Protected
adjustAdjusts marker's control box.
Protected
createHandles pointer (mouse, touch, stylus, etc.) double click event.
event coordinates.
Optional
target: EventTargetdirect event target element.
Optional
ev: MouseEventpointer event.
Deselects this marker and hides selected marker UI.
Disposes the marker and clean's up.
Returns marker's state that can be restored in the future.
Handles marker manipulation (move, resize, rotate, etc.).
event coordinates.
Optional
ev: PointerEventpointer event.
Returns true if the marker or the editor owns supplied target element.
target element
Handles pointer (mouse, touch, stylus, etc.) down event.
event coordinates.
Optional
target: EventTargetdirect event target element.
Optional
ev: PointerEventpointer event.
Handles pointer (mouse, touch, stylus, etc.) up event.
event coordinates.
Optional
ev: PointerEventpointer event.
Protected
positionPositions manipulation grip.
grip to position
new X coordinate
new Y coordinate
Protected
positionUpdates manipulation grip layout.
Protected
resizeRestores previously saved marker state.
previously saved state.
Scales the marker and the editor.
Selects this marker and displays appropriate selected marker UI.
Protected
setupCreates control box for manipulation controls.
Protected
stateCalled by a marker when its state could have changed. Does a check if the state has indeed changed before firing the handler.
Protected
_containerSVG container for the marker's and editor's visual elements.
Protected
_continuousWhen set to true, a new marker of the same type is created immediately after the current one is finished.
Protected
_controlSVG group holding editor's control box.
Protected
_creationMarker creation style.
Markers can either be created by drawing them or just dropping them on the canvas.
Protected
_isIs this marker selected?
Protected
_markerMarker instance.
Protected
_markerMarker type constructor.
Marker type constructor.
Protected
_overlayOverlay container for HTML elements like text editors, etc.
Protected
_stateEditor's state.
Protected
Optional
activeActive manipulation grip.
Protected
Optional
curveCurve manipulation grip.
Protected
defaultDefault line length when marker is created with a simple click (without dragging).
Protected
Optional
grip1First manipulation grip
Protected
Optional
grip2Second manipulation grip.
Protected
isIs this marker selected in a multi-selection?
Protected
manipulationContainer for manipulation grips.
Protected
Optional
manipulationMarker's state when it is selected
Protected
manipulationPointer X coordinate at the start of move or resize.
Protected
manipulationPointer Y coordinate at the start of move or resize.
Optional
onMethod called when marker creation is finished.
Optional
onMethod to call when marker state changes.
Editor for linear markers.