x coordinate of the marker's center.
y coordinate of the marker's center.
SVG container object holding the marker's visual.
Fill color of the marker.
In a derived class override applyFillColor to apply the color to the marker's visual.
Opacity of the marker.
In a derived class override applyOpacity to apply the opacity to the marker's visual.
Stroke (outline) color of the marker.
In a derived class override applyStrokeColor to apply the color to the marker's visual.
Stroke (outline) dash array of the marker.
In a derived class override applyStrokeDasharray to apply the dash array to the marker's visual.
Stroke (outline) width of the marker.
In a derived class override applyStrokeWidth to apply the width to the marker's visual.
Returns marker type name for the object instance.
ProtectedvisualContainer for the marker's visual.
ProtectedaddAdjusts marker's visual according to the current state (color, width, etc.).
ProtectedapplyApplies the fill color to the marker's visual.
If needed, override this method in a derived class to apply the color to the marker's visual.
ProtectedapplyApplies the opacity to the marker's visual.
Override this method in a derived class to apply the opacity to the marker's visual
ProtectedapplyApplies the stroke color to the marker's visual.
Override this method in a derived class to apply the color to the marker's visual.
ProtectedapplyApplies the stroke dash array to the marker's visual.
Override this method in a derived class to apply the dash array to the marker's visual.
ProtectedapplyApplies the stroke width to the marker's visual.
Override this method in a derived class to apply the width to the marker's visual.
Creates marker's visual.
Disposes the marker and cleans up.
Returns markers bounding box.
Override to return a custom bounding box.
rectangle fitting the marker.
When overridden in a derived class, represents a preliminary outline for markers that can be displayed before the marker is actually created.
SVG path string.
ProtectedgetReturns current marker state that can be restored in the future.
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.
true if the element belongs to the marker.
Restores previously saved marker state.
previously saved state.
Rotates marker around the center.
coordinates of the rotation point.
Scales marker. Used after resize.
horizontal scale
vertical scale
Adjusts marker's size.
Protected_containerSVG container object holding the marker's visual.
It is created and passed to the constructor by marker editor or viewer when creating the marker.
Protected_fillMarker's fill color.
Protected_opacityOpacity of the marker.
Protected_strokeStroke (outline) color of the marker.
Protected_strokeStroke (outline) dash array of the marker.
Protected_strokeStroke (outline) width of the marker.
StaticapplyWhen true, the default filter is applied to the marker's visual.
The default marker size when the marker is created with a click (without dragging).
Marker height.
x coordinate of the top-left corner.
OptionalnotesAdditional information about the marker.
Generally, this isn't used for anything functional. However, in a derived type it could be used for storing arbitrary data with no need to create extra properties and state types.
Marker's rotation angle.
Marker lifecycle stage.
Most markers are created immediately after the user clicks on the canvas (normal).
However, some markers are only finished creating after additional interactions (creating).
StatictitleMarker type title (display name) used for accessibility and other attributes.
y coordinate of the top-left corner.
StatictypeMarker type name.
It's important to set this in each derived class. This value is used to identify marker types when restoring marker state and other scenarios.
Marker width.
Cover marker is a filled rectangle marker.
A typical use case is to cover some area of the image with a colored rectangle as a "redaction".