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_STEPSType
number[]Default[ 0, 0.25, 0.5, 0.75, 1 ]CAP_NAMESType
string[]Default[ "No arrows", "Arrow at the end", "Arrow at the start", "Arrows at both ends", "Ticks at both ends" ]ICON_FILL_OPACITYType
0.2Default0.2ICONS_WIDTHType
numberDefault5 * 28 + 4 * 3SWATCHES_WIDTHType
numberDefault8 * 22 + 7 * 3TOOL_GROUPSType
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
Arraycss(color:Color|undefined)Returns
string|undefinedrotateAround(point:IPoint,
center:IPoint,
angle:number)Returns
IPointtoolOf(annotation:IAnnotation)Returns
AnnotationTool