Creates a new marker.
SVG container to hold marker's visual.
Marker height.
x coordinate of the top-left corner.
Height at the start of manipulation.
x coordinate of the top-left corner at the start of manipulation.
y coordinate of the top-left corner at the start of manipulation.
Width at the start of manipulation.
x coordinate of the pointer at the start of manipulation.
y coordinate of the pointer at the start of manipulation.
Additional information about the marker
Pointer's horizontal distance from the top left corner.
Pointer's vertical distance from the top left corner.
Method called when marker creation is finished.
Marker's rotation angle.
y coordinate of the top-left corner.
Marker width.
Marker type title (display name) used for accessibility and other attributes.
String type name of the marker type.
Used when adding MarkerView.availableMarkerTypes via a string and to save and restore state.
x coordinate of the marker's center.
y coordinate of the marker's center.
SVG container object holding the marker's visual.
Outer SVG group container not manipulated or transformed by the marker itself in any way
Container for the marker's visual.
Container for the marker's visual.
Adds marker's root visual element to the container group.
marker's visual element.
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.
Moves visual to the specified coordinates.
coordinates of the new top-left corner of the visual.
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.
Resizes the marker based on pointer coordinates and context.
pointer 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.
Sets control box size and location.
The default marker size when the marker is created with a click (without dragging).
Generated using TypeDoc
RectangularBoxMarkerBase is a base class for all marker's with rectangular controls such as all rectangle markers, text and callout markers.
It creates and manages the rectangular control box and related resize, move, and rotate manipulations.