IAnnotatorSettings

Type interface

Inheritance

IAnnotatorSettings extends IEntitySettings.

IAnnotatorSettings is not extended by any other symbol.

Properties

animations
#

Type Array

Inherited from IEntitySettings

Animations the element plays on its own, described as data - so they can be set from a JSON config and saved with it.

Each one animates a setting of the element (or, with target: "dataItem", a value of its data item - a map point's positionOnLine, say). They start when the setting is applied, restart when it changes, and stop when the element is disposed. A saved config keeps what was configured, never a value caught half way through an animation.

sprite.set("animations", [
  { key: "rotation", to: 360, duration: 4000, loops: 0 },
  { key: "scale", from: 1, to: 1.3, duration: 800, loops: 0, yoyo: true, easing: "sine" }
]);

@since 5.21.0

id
#

Type undefined | string

Inherited from IEntitySettings

A custom string ID for the element.

If set, element can be looked up via root.entitiesById.

Will raise error if an element with the same ID already exists.

ignoreThemes
#

Type undefined | false | true

Default false

Inherited from IEntitySettings

If set to true the themes will be ignored when applying settings.

@since 5.15.6

layer
#

Type undefined | number

Default 1000

Layer number to use for annotations.

markerSettings
#

Type undefined | object

MarkerArea settings in form of an object where keys are setting names and value is a setting value. E.g.:

let annotator = am5plugins_exporting.Annotator.new(root, {
 markerSettings: {
   defaultColorSet: ["red", "green", "blue"],
   wrapText: true
 }
});
var annotator = am5plugins_exporting.Annotator.new(root, {
 markerSettings: {
   defaultColorSet: ["red", "green", "blue"],
   wrapText: true
 }
});

Click here for a full list of settings
@since 5.7.4

markerState
#

Type any

Raw annotation info saved by MarkerJS.

markerStyleSettings
#

Type undefined | object

MarkerArea style settings for user interface elements. E.g.:

let annotator = am5plugins_exporting.Annotator.new(root, {
 markerStyleSettings: {
   toolboxColor: "#F472B6",
   toolboxAccentColor: "#BE185D"
 }
});
var annotator = am5plugins_exporting.Annotator.new(root, {
 markerStyleSettings: {
   toolboxColor: "#F472B6",
   toolboxAccentColor: "#BE185D"
 }
});

Click here for a full list of settings
@since 5.7.5

stateAnimationDuration
#

Type undefined | number

Default 0

Inherited from IEntitySettings

Duration of transition from one state to another.

stateAnimationEasing
#

Type $ease.Easing

Default out(cubic)

Inherited from IEntitySettings

Easing of transition from one state to another.

themeTags
#

Type Array

Inherited from IEntitySettings

Tags which can be used by the theme rules.

Click here for more info

themeTagsSelf
#

Type Array

Inherited from IEntitySettings

Tags which can be used by the theme rules.

These tags only apply to this object, not any children.

Click here for more info

themes
#

Type Array

Inherited from IEntitySettings

A list of themes applied to the element.

userData
#

Type any

Inherited from IEntitySettings

A storage for any custom user data that needs to be associated with the element.

There are 9 inherited items currently hidden from this list.