# Interface: LineElement<T, O>
# Type parameters
Name | Type |
---|---|
T | extends LineProps = LineProps |
O | extends LineOptions = LineOptions |
# Hierarchy
default
<T
,O
>-
↳
LineElement
# Properties
# $animations
• $animations: Record
<keyof T
, Animation
>
# Inherited from
Element.$animations
# Defined in
core/core.element.ts:15
# active
• active: boolean
= false
# Inherited from
Element.active
# Defined in
core/core.element.ts:13
# options
• options: O
# Inherited from
Element.options
# Defined in
core/core.element.ts:14
# points
• points: Point
[]
# Defined in
types/index.d.ts:1954
# segments
• Readonly
segments: Segment
[]
# Defined in
types/index.d.ts:1955
# x
• x: number
# Inherited from
Element.x
# Defined in
core/core.element.ts:11
# y
• y: number
# Inherited from
Element.y
# Defined in
core/core.element.ts:12
# Methods
# draw
▸ draw(ctx
, area?
): void
# Parameters
Name | Type |
---|---|
ctx | CanvasRenderingContext2D |
area? | ChartArea |
# Returns
void
# Inherited from
# Defined in
types/index.d.ts:1796
# first
▸ first(): false
| Point
# Returns
false
| Point
# Defined in
types/index.d.ts:1956
# getCenterPoint
▸ getCenterPoint(useFinalPosition?
): Point
# Parameters
Name | Type |
---|---|
useFinalPosition? | boolean |
# Returns
# Inherited from
# Defined in
types/index.d.ts:1800
# getProps
▸ getProps<P
>(props
, final?
): Pick
<T
, P
[number
]>
Gets the current or final value of each prop. Can return extra properties (whole object).
# Type parameters
Name | Type |
---|---|
P | extends keyof T [] |
# Parameters
Name | Type | Description |
---|---|---|
props | P | properties to get |
final? | boolean | get the final value (animation target) |
# Returns
Pick
<T
, P
[number
]>
# Inherited from
Element.getProps
# Defined in
core/core.element.ts:31
▸ getProps<P
>(props
, final?
): Partial
<Record
<P
, unknown
>>
# Type parameters
Name | Type |
---|---|
P | extends string |
# Parameters
Name | Type |
---|---|
props | P [] |
final? | boolean |
# Returns
Partial
<Record
<P
, unknown
>>
# Inherited from
Element.getProps
# Defined in
core/core.element.ts:32
# getRange
▸ Optional
getRange(axis
): number
# Parameters
Name | Type |
---|---|
axis | "x" | "y" |
# Returns
number
# Inherited from
# Defined in
types/index.d.ts:1801
# hasValue
▸ hasValue(): boolean
# Returns
boolean
# Inherited from
Element.hasValue
# Defined in
core/core.element.ts:22
# inRange
▸ inRange(mouseX
, mouseY
, useFinalPosition?
): boolean
# Parameters
Name | Type |
---|---|
mouseX | number |
mouseY | number |
useFinalPosition? | boolean |
# Returns
boolean
# Inherited from
# Defined in
types/index.d.ts:1797
# inXRange
▸ inXRange(mouseX
, useFinalPosition?
): boolean
# Parameters
Name | Type |
---|---|
mouseX | number |
useFinalPosition? | boolean |
# Returns
boolean
# Inherited from
# Defined in
types/index.d.ts:1798
# inYRange
▸ inYRange(mouseY
, useFinalPosition?
): boolean
# Parameters
Name | Type |
---|---|
mouseY | number |
useFinalPosition? | boolean |
# Returns
boolean
# Inherited from
# Defined in
types/index.d.ts:1799
# interpolate
▸ interpolate(point
, property
): Point
| Point
[]
# Parameters
Name | Type |
---|---|
point | Point |
property | "x" | "y" |
# Returns
# Defined in
types/index.d.ts:1958
# last
▸ last(): false
| Point
# Returns
false
| Point
# Defined in
types/index.d.ts:1957
# path
▸ path(ctx
): boolean
# Parameters
Name | Type |
---|---|
ctx | CanvasRenderingContext2D |
# Returns
boolean
# Defined in
types/index.d.ts:1960
# pathSegment
▸ pathSegment(ctx
, segment
, params
): boolean
# Parameters
Name | Type |
---|---|
ctx | CanvasRenderingContext2D |
segment | Segment |
params | AnyObject |
# Returns
boolean
# Defined in
types/index.d.ts:1959
# tooltipPosition
▸ tooltipPosition(useFinalPosition
): Point
# Parameters
Name | Type |
---|---|
useFinalPosition | boolean |
# Returns
# Inherited from
Element.tooltipPosition
# Defined in
core/core.element.ts:17
# updateControlPoints
▸ updateControlPoints(chartArea
, indexAxis?
): void
# Parameters
Name | Type |
---|---|
chartArea | ChartArea |
indexAxis? | "x" | "y" |
# Returns
void
# Defined in
types/index.d.ts:1953