Skip to content

AnnotatorEditor

Type module

Sources

Items from AnnotatorEditor can be imported/included and used via following ways.

/**
* Import via: AnnotatorEditor.ts
* Access items like: $annotatoreditor.myVariable
*/
import * as $annotatoreditor from "@amcharts/amcharts5/AnnotatorEditor";

Variables

BLUR_STEPS

Type number[]Default [ 0, 0.25, 0.5, 0.75, 1 ]

CAP_NAMES

Type string[]Default [ "No arrows", "Arrow at the end", "Arrow at the start", "Arrows at both ends", "Ticks at both ends" ]

ICON_FILL_OPACITY

Type 0.2Default 0.2

ICONS_WIDTH

Type numberDefault 5 * 28 + 4 * 3

SWATCHES_WIDTH

Type numberDefault 8 * 22 + 7 * 3

TOOL_GROUPS

Type ArrayDefault [ { name: "Shapes", tools: ["rectangle", "ellipse", "cover"] }, { name: "Lines", tools: ["line", "arrow", "curve", "measure", "polyline"] }, { name: "Draw", tools: ["freehand", "highlight"] }, { name: "Text", tools: ["text", "callout", "caption"] } ]

Tools that share a toolbar button. Its other tools are in a fly-out.

Functions

controlsFor(tool: AnnotationTool)

Returns Array

css(color: Color | undefined)

Returns string | undefined

rotateAround(point: IPoint,
center: IPoint,
angle: number
)

Returns IPoint

toolOf(annotation: IAnnotation)

Returns AnnotationTool