Font size of new markup text.
Line type of new markup objects. Can be solid
, dot
or dash
.
Line width of new markup objects.
Deletes all markup objects and clears the markup overlay.
Clears the markup objects selection.
Colors all markup objects with the specified color.
The red
component of the color, as a number between 0 and 255.
The green
component of the color, as a number between 0 and 255.
The blue
component of the color, as a number between 0 and 255.
Colors the selected markup objects with the specified color.
The red
component of the color, as a number between 0 and 255.
The green
component of the color, as a number between 0 and 255.
The blue
component of the color, as a number between 0 and 255.
Creates a markup object.
Markup object type. Can be Line
, Text
, Rectangle
, Ellipse
, Arrow
, Image
or
Cloud
.
Parameters for creating a markup object. Must match the object type:
Line
- IMarkupLineParamsText
- IMarkupTextParamsRectangle
- IMarkupRectangleParamsEllipse
- IMarkupEllipseParamsArrow
- IMarkupArrowParamsImage
- IMarkupImageParamsCloud
- IMarkupCloudParamsReleases resources allocated in the initialize().
Enables mouse interactions to select or draw markups.
Edit mode. Matches the type of markup object being created. Specify false
to exit
edit mode.
Returns the color of new markup objects.
Returns the list of all markup objects.
Returns the list of selected markup objects.
Initializes the markup instance. Call dispose() to release allocated resources.
Container element used to operate on. This is usually a <canvas>
or <div>
on
top of which the markup is drawn. If the container
is a <canvas>
element, its content will be
combined with the markup in the viewpoint snapshot.
Optional
containerEvents: string[]List of container events, such as mouse events or
pointer events
or touch events
that the markup should redirect to the viewer
.
Optional
viewer: IEventEmitterViewer
instance that receives pointing device events.
Optional
worldTransformer: IWorldTransformTransformer of screen space into the viewer
world space and vice versa.
If a transformer is defined, markup objects will be stored at the viewpoint in world coordinates,
otherwise in screen coordinates.
Selects the specified markup objects.
The list of markup objects.
Sets the default color of new markup objects.
The red
component of the color, as a number between 0 and 255.
The green
component of the color, as a number between 0 and 255.
The blue
component of the color, as a number between 0 and 255.
Sets the markup state to the specified viewpoint.
Viewpoint data.
Creates the markup overlay.
2D markup core interface.