Interface: VisualElement

Hierarchy

Methods

draw

draw(ctx, area?): void

Parameters

NameType
ctxCanvasRenderingContext2D
area?ChartArea

Returns

void

Defined in

index.esm.d.ts:1643VisualElement - 图1 (opens new window)


getCenterPoint

getCenterPoint(useFinalPosition?): Object

Parameters

NameType
useFinalPosition?boolean

Returns

Object

NameType
xnumber
ynumber

Defined in

index.esm.d.ts:1647VisualElement - 图2 (opens new window)


getRange

Optional getRange(axis): number

Parameters

NameType
axis“x” | “y”

Returns

number

Defined in

index.esm.d.ts:1648VisualElement - 图3 (opens new window)


inRange

inRange(mouseX, mouseY, useFinalPosition?): boolean

Parameters

NameType
mouseXnumber
mouseYnumber
useFinalPosition?boolean

Returns

boolean

Defined in

index.esm.d.ts:1644VisualElement - 图4 (opens new window)


inXRange

inXRange(mouseX, useFinalPosition?): boolean

Parameters

NameType
mouseXnumber
useFinalPosition?boolean

Returns

boolean

Defined in

index.esm.d.ts:1645VisualElement - 图5 (opens new window)


inYRange

inYRange(mouseY, useFinalPosition?): boolean

Parameters

NameType
mouseYnumber
useFinalPosition?boolean

Returns

boolean

Defined in

index.esm.d.ts:1646VisualElement - 图6 (opens new window)