Markup Class
Beta
The current markup being created/edited. Holds the SVG elements, plus the active MarkupTool. When starting a Markup, a new Div is added as a child of the ScreenViewport's vpDiv.
Methods
| Name | Description | |
|---|---|---|
| constructor(vp: ScreenViewport, markupData?: MarkupSvgData): Markup | Create a new Markup for the supplied ScreenViewport. | |
| bringToFront(): void | Bring all the entries in the selection set to the front. | |
| deleteSelected(): void | Delete all the entries in the selection set, then empty it. | |
| destroy(): void | Called when the Markup is destroyed | |
| disablePick(): void | Turn off picking the markup elements in the markup view | |
| enablePick(): void | Turn on picking the markup elements in the markup view | |
| groupSelected(): void | Group all the entries in the selection set, then select the group. | |
| sendToBack(): void | Send all the entries in the selection set to the back. | |
| setCursor(cursor: string): void | Change the default cursor for the markup view | |
| ungroupSelected(): void | Ungroup all the group entries in the selection set. |
Properties
| Name | Type | Description | |
|---|---|---|---|
| markupDiv | HTMLDivElement | ||
| selected | MarkupSelected | ||
| svgContainer | undefined | Svg | ||
| svgDecorations | undefined | G | ||
| svgDynamics | undefined | G | ||
| svgMarkup | undefined | G | ||
| undo | UndoManager | ||
| vp ConstructorProperty | ScreenViewport |
Defined in
Last Updated: 08 January, 2020