Interface: Element<T, O>

Type parameters

NameDefault
T{}
O{}

Properties

active

Readonly active: boolean

Defined in: element.d.ts:6Element - 图1 (opens new window)


options

Readonly options: O

Defined in: element.d.ts:7Element - 图2 (opens new window)


x

Readonly x: number

Defined in: element.d.ts:4Element - 图3 (opens new window)


y

Readonly y: number

Defined in: element.d.ts:5Element - 图4 (opens new window)

Methods

getProps

getProps<P>(props: [P], final?: boolean): Pick<T, P>

Type parameters

NameType
Pstring | number | symbol

Parameters

NameType
props[P]
final?boolean

Returns: Pick<T, P>

Defined in: element.d.ts:11Element - 图5 (opens new window)

getProps<P, P2>(props: [P, P2], final?: boolean): Pick<T, P | P2>

Type parameters

NameType
Pstring | number | symbol
P2string | number | symbol

Parameters

NameType
props[P, P2]
final?boolean

Returns: Pick<T, P | P2>

Defined in: element.d.ts:12Element - 图6 (opens new window)

getProps<P, P2, P3>(props: [P, P2, P3], final?: boolean): Pick<T, P | P2 | P3>

Type parameters

NameType
Pstring | number | symbol
P2string | number | symbol
P3string | number | symbol

Parameters

NameType
props[P, P2, P3]
final?boolean

Returns: Pick<T, P | P2 | P3>

Defined in: element.d.ts:13Element - 图7 (opens new window)

getProps<P, P2, P3, P4>(props: [P, P2, P3, P4], final?: boolean): Pick<T, P | P2 | P3 | P4>

Type parameters

NameType
Pstring | number | symbol
P2string | number | symbol
P3string | number | symbol
P4string | number | symbol

Parameters

NameType
props[P, P2, P3, P4]
final?boolean

Returns: Pick<T, P | P2 | P3 | P4>

Defined in: element.d.ts:17Element - 图8 (opens new window)

getProps<P, P2, P3, P4, P5>(props: [P, P2, P3, P4, P5], final?: boolean): Pick<T, P | P2 | P3 | P4 | P5>

Type parameters

NameType
Pstring | number | symbol
P2string | number | symbol
P3string | number | symbol
P4string | number | symbol
P5string | number | symbol

Parameters

NameType
props[P, P2, P3, P4, P5]
final?boolean

Returns: Pick<T, P | P2 | P3 | P4 | P5>

Defined in: element.d.ts:21Element - 图9 (opens new window)

getProps(props: keyof T[], final?: boolean): T

Parameters

NameType
propskeyof T[]
final?boolean

Returns: T

Defined in: element.d.ts:25Element - 图10 (opens new window)


hasValue

hasValue(): boolean

Returns: boolean

Defined in: element.d.ts:10Element - 图11 (opens new window)


tooltipPosition

tooltipPosition(useFinalPosition?: boolean): Point

Parameters

NameType
useFinalPosition?boolean

Returns: Point

Defined in: element.d.ts:9Element - 图12 (opens new window)