Creates a LineMarkerBase object.
SVG container to hold marker's visual.
overlay HTML container to hold additional overlay elements while editing.
settings object containing default markers settings.
Is this marker selected?
Active manipulation grip.
Container for control elements.
Default line length when marker is created with a simple click (without dragging).
First manipulation grip
Second manipulation grip.
Marker's state when it is selected
Pointer coordinates at the satart of move or resize.
Additional information about the marker
Method to call when foreground color changes.
Method to call when background/fill color changes.
Method called when marker creation is finished.
Method to call when marker state changes.
Marker's main visual.
x coordinate of the first end-point
x coordinate of the second end-point
y coordinate of the first end-point
y coordinate of the second end-point
SVG icon markup displayed on toolbar buttons.
Marker type title (display name) used for accessibility and other attributes.
String type name of the marker type.
Used when adding MarkerArea.availableMarkerTypes via a string and to save and restore state.
SVG container object holding the marker's visual.
Returns true if the marker is currently selected
HTML container that can be used to render overlay objects while the marker is active.
For example, this is used for the text editing layer while editing text in the {@see TextMarker}.
Current marker state.
Both MarkerArea and the marker itself can react differently to different events based on what state the marker is in.
Returns the list of toolbox panels for this marker type.
Instance property returning marker's type name.
Adds control grips to control box.
When implemented adjusts marker visual after manipulation when needed.
Called by a marker when its foreground color changes.
Creates manipulation grip.
Handles pointer (mouse, touch, stylus, etc.) double click event.
event coordinates.
direct event target element.
Hides marker's controls.
Disposes the marker and clean's up.
Called by a marker when its background/fill color changes.
Returns marker's state.
Handles marker manipulation (move, resize, rotate, etc.).
event coordinates.
Returns true if passed SVG element belongs to the marker. False otherwise.
target element.
Handles pointer (mouse, touch, stylus, etc.) down event.
event coordinates.
direct event target element.
Handles pointer (mouse, touch, stylus, etc.) up event.
event coordinates.
Positions manipulation grip.
grip to position
new X coordinate
new Y coordinate
Updates manipulation grip layout.
Resizes the line marker.
current manipulation coordinates.
Restores marker's state to the previously saved one.
previously saved state.
Scales marker. Used after the image resize.
horizontal scale
vertical scale
Displays marker's controls.
Creates control box for manipulation controls.
Called by a marker when its state could have changed. Does a check if the state has indeed changed before firing the handler.
Generated using TypeDoc
LinearMarkerBase is a base class for all line-type markers (Line, Arrow, Measurement Tool, etc.).