Text color.
Text color.
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 text's font family.
Sets text's font family.
Returns text's font size.
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 control box size and location.
Protected
adjustAdjusts visibility of resize grips.
Handles 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.
Protected
hideHides marker's editing controls.
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
Optional
target: EventTargetOptional
ev: PointerEventOptional
ev: PointerEventProtected
positionPositions specific grip.
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
setSets control box size and location.
Protected
setupCreates control box for manipulation controls.
Protected
showShows marker's editing 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
_suppressWhen set to true marker created event will not be triggered.
Protected
Optional
activeActive grip during manipulation
Protected
controlContainer for the marker's editing controls.
Protected
disabledArray of disabled resize grips.
Use this in derived classes to disable specific resize grips.
Protected
isIs this marker selected in a multi-selection?
Protected
manipulationContainer for the marker's manipulation grips.
Protected
manipulationHeight at the start of manipulation.
Protected
manipulationx coordinate of the top-left corner at the start of manipulation.
Protected
Optional
manipulationMarker's state when it is selected
Protected
manipulationy coordinate of the top-left corner at the start of manipulation.
Protected
manipulationWidth at the start of manipulation.
Protected
manipulationx coordinate of the pointer at the start of manipulation.
Protected
manipulationy coordinate of the pointer at the start of manipulation.
Protected
offsetXPointer's horizontal distance from the top left corner.
Protected
offsetYPointer's vertical distance from the top left corner.
Optional
onMethod called when marker creation is finished.
Optional
onMethod to call when marker state changes.
Protected
textText block editor.
Protected
textContainer for text block editor.
Editor for callout markers.