Interface: VisualElement

Hierarchy

Methods

draw

draw(ctx): void

Parameters

NameType
ctxCanvasRenderingContext2D

Returns

void

Defined in

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


getCenterPoint

getCenterPoint(useFinalPosition?): Object

Parameters

NameType
useFinalPosition?boolean

Returns

Object

NameType
xnumber
ynumber

Defined in

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


getRange

Optional getRange(axis): number

Parameters

NameType
axis“x” | “y”

Returns

number

Defined in

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


inRange

inRange(mouseX, mouseY, useFinalPosition?): boolean

Parameters

NameType
mouseXnumber
mouseYnumber
useFinalPosition?boolean

Returns

boolean

Defined in

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


inXRange

inXRange(mouseX, useFinalPosition?): boolean

Parameters

NameType
mouseXnumber
useFinalPosition?boolean

Returns

boolean

Defined in

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


inYRange

inYRange(mouseY, useFinalPosition?): boolean

Parameters

NameType
mouseYnumber
useFinalPosition?boolean

Returns

boolean

Defined in

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