Skip to content

MarkerState

Type module

Sources

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

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

Variables

MarkerState does not have any variables.

Functions

arrowType(start: AnnotationCap | undefined,
end: AnnotationCap | undefined
)

Returns string

box(bounds: IBounds)

Returns { height: number, left: any, top: any, width: number }

color(input: number | string)

Returns Color

Returns a new Color from a hex number, or a CSS hex, rgb() or rgba() string (color names such as "red" are not accepted):

  • "#f00"

  • "#ff0000"

  • "rgb(255, 0, 0)"

  • "rgba(255, 0, 0, 1)"

  • 0xff0000

dash(value: any)

Returns Array | undefined

dashString(value: Array | undefined)

Returns string

fitFontSize(text: string,
width: number,
height: number,
padding: number
)

Returns number

fontSize(value: any)

Returns number | undefined

freehandImage(points: Array,
bounds: IBounds,
stroke: string,
strokeWidth: number,
dashArray: Array | undefined
)

Returns string