# インターフェース: LineElement<T, O>
# 型パラメーター
名前 | 型 |
---|---|
T | extends LineProps = LineProps |
O | extends LineOptions = LineOptions |
# 階層構造
default
<T
,O
>-
↳
LineElement
# プロパティ
# $animations
• $animations: Record
<keyof T
, Animation
>
# 継承元
Element.$animations
# 定義済み
core/core.element.ts:15 (新しいウィンドウで開きます)
# active
• active: boolean
= false
# 継承元
Element.active
# 定義済み
core/core.element.ts:13 (新しいウィンドウで開きます)
# options
• options: O
# 継承元
Element.options
# 定義済み
core/core.element.ts:14 (新しいウィンドウで開きます)
# points
• points: Point
[]
# 定義済み
types/index.d.ts:1954 (新しいウィンドウで開きます)
# segments
• Readonly
segments: Segment
[]
# 定義済み
types/index.d.ts:1955 (新しいウィンドウで開きます)
# x
• x: number
# 継承元
Element.x
# 定義済み
core/core.element.ts:11 (新しいウィンドウで開きます)
# y
• y: number
# 継承元
Element.y
# 定義済み
core/core.element.ts:12 (新しいウィンドウで開きます)
# メソッド
# draw
▸ draw(ctx
, area?
): void
# パラメーター
名前 | 型 |
---|---|
ctx | CanvasRenderingContext2D |
area? | ChartArea |
# 戻り値
void
# 継承元
# 定義済み
types/index.d.ts:1796 (新しいウィンドウで開きます)
# first
▸ first(): false
| Point
# 戻り値
false
| Point
# 定義済み
types/index.d.ts:1956 (新しいウィンドウで開きます)
# getCenterPoint
▸ getCenterPoint(useFinalPosition?
): Point
# パラメータ
名前 | 型 |
---|---|
useFinalPosition? | boolean |
# 戻り値
# 継承元
# 定義位置
types/index.d.ts:1800 (新しいウィンドウで開きます)
# getProps
▸ getProps<P
>(props
, final?
): Pick
<T
, P
[number
]>
現在のプロパティ値または最終的な値を取得します。追加のプロパティ(オブジェクト全体)を返す可能性があります。
# 型パラメータ
名前 | 型 |
---|---|
P | extends keyof T [] |
# パラメータ
名前 | 型 | 説明 |
---|---|---|
props | P | 取得するプロパティ |
final? | boolean | 最終的な値(アニメーションのターゲット)を取得します |
# 戻り値
Pick
<T
, P
[number
]>
# 継承元
Element.getProps
# 定義位置
core/core.element.ts:31 (新しいウィンドウで開きます)
▸ getProps<P
>(props
, final?
): Partial
<Record
<P
, unknown
>>
# 型パラメータ
名前 | 型 |
---|---|
P | extends string |
# パラメータ
名前 | 型 |
---|---|
props | P [] |
final? | boolean |
# 戻り値
Partial
<Record
<P
, unknown
>>
# 継承元
Element.getProps
# 定義位置
core/core.element.ts:32 (新しいウィンドウで開きます)
# getRange
▸ Optional
getRange(axis
): number
# パラメータ
名前 | 型 |
---|---|
axis | "x" | "y" |
# 戻り値
number
# 継承元
# 定義位置
types/index.d.ts:1801 (新しいウィンドウで開きます)
# hasValue
▸ hasValue(): boolean
# 戻り値
boolean
# 継承元
Element.hasValue
# 定義位置
core/core.element.ts:22 (新しいウィンドウで開きます)
# inRange
▸ inRange(mouseX
, mouseY
, useFinalPosition?
): boolean
# パラメータ
名前 | 型 |
---|---|
mouseX | number |
mouseY | number |
useFinalPosition? | boolean |
# 戻り値
boolean
# 継承元
# 定義位置
types/index.d.ts:1797 (新しいウィンドウで開きます)
# inXRange
▸ inXRange(mouseX
, useFinalPosition?
): boolean
# パラメータ
名前 | 型 |
---|---|
mouseX | number |
useFinalPosition? | boolean |
# 戻り値
boolean
# 継承元
# 定義位置
types/index.d.ts:1798 (新しいウィンドウで開きます)
# inYRange
▸ inYRange(mouseY
, useFinalPosition?
): boolean
# パラメータ
名前 | 型 |
---|---|
mouseY | number |
useFinalPosition? | boolean |
# 戻り値
boolean
# 継承元
# 定義位置
types/index.d.ts:1799 (新しいウィンドウで開きます)
# interpolate
▸ interpolate(point
, property
): Point
| Point
[]
# パラメータ
名前 | 型 |
---|---|
point | Point |
property | "x" | "y" |
# 戻り値
# 定義位置
types/index.d.ts:1958 (新しいウィンドウで開きます)
# last
▸ last(): false
| Point
# 戻り値
false
| Point
# 定義位置
types/index.d.ts:1957 (新しいウィンドウで開きます)
# path
▸ path(ctx
): boolean
# パラメータ
名前 | 型 |
---|---|
ctx | CanvasRenderingContext2D |
# 戻り値
boolean
# 定義位置
types/index.d.ts:1960 (新しいウィンドウで開きます)
# pathSegment
▸ pathSegment(ctx
, segment
, params
): boolean
# パラメータ
名前 | 型 |
---|---|
ctx | CanvasRenderingContext2D |
segment | Segment |
params | AnyObject |
# 戻り値
boolean
# 定義位置
types/index.d.ts:1959 (新しいウィンドウで開きます)
# tooltipPosition
▸ tooltipPosition(useFinalPosition
): Point
# パラメータ
名前 | 型 |
---|---|
useFinalPosition | boolean |
# 戻り値
# 継承元
Element.tooltipPosition
# 定義位置
core/core.element.ts:17 (新しいウィンドウで開きます)
# updateControlPoints
▸ updateControlPoints(chartArea
, indexAxis?
): void
# パラメータ
名前 | 型 |
---|---|
chartArea | ChartArea |
indexAxis? | "x" | "y" |
# 戻り値
void