# クラス: PointElement
# 階層
default
<PointProps
,PointOptions
&PointHoverOptions
>↳
PointElement
# コンストラクタ
# コンストラクタ
• new PointElement(cfg
)
# パラメータ
名前 | 型 |
---|---|
cfg | any |
# オーバーライド
Element<PointProps, PointOptions & PointHoverOptions>.constructor
# 定義元
elements/element.point.ts:49 (新しいウィンドウで開きます)
# プロパティ
# $animations
• $animations: Record
<keyof Point
, Animation
>
# 継承元
Element.$animations
# 定義元
core/core.element.ts:15 (新しいウィンドウで開きます)
# active
• active: boolean
= false
# 継承元
Element.active
# 定義元
core/core.element.ts:13 (新しいウィンドウで開きます)
# options
• options: PointOptions
& PointHoverOptions
# 継承元
Element.options
# 定義元
core/core.element.ts:14 (新しいウィンドウで開きます)
# parsed
• parsed: CartesianParsedData
# 定義元
elements/element.point.ts:24 (新しいウィンドウで開きます)
# skip
• Optional
skip: boolean
# 定義元
elements/element.point.ts:25 (新しいウィンドウで開きます)
# stop
• Optional
stop: boolean
# 定義元
elements/element.point.ts:26 (新しいウィンドウで開きます)
# x
• x: number
# 継承元
Element.x
# 定義元
core/core.element.ts:11 (新しいウィンドウで開きます)
# y
• y: number
# 継承元
Element.y
# 定義元
core/core.element.ts:12 (新しいウィンドウで開きます)
# defaultRoutes
▪ Static
defaultRoutes: Object
# 型宣言
名前 | 型 |
---|---|
backgroundColor | string |
borderColor | string |
# オーバーライド
Element.defaultRoutes
# 定義元
elements/element.point.ts:44 (新しいウィンドウで開きます)
# defaults
▪ Static
defaults: Object
# 型宣言
名前 | 型 |
---|---|
borderWidth | number |
hitRadius | number |
hoverBorderWidth | number |
hoverRadius | number |
pointStyle | string |
radius | number |
rotation | number |
# オーバーライド
Element.defaults
# 定義元
elements/element.point.ts:31 (新しいウィンドウで開きます)
# id
▪ Static
id: string
= 'point'
# 定義元
elements/element.point.ts:22 (新しいウィンドウで開く)
# メソッド
# draw
▸ draw(ctx
, area
): void
# パラメータ
名前 | 型 |
---|---|
ctx | CanvasRenderingContext2D |
area | ChartArea |
# 戻り値
void
# 定義元
elements/element.point.ts:89 (新しいウィンドウで開く)
# getCenterPoint
▸ getCenterPoint(useFinalPosition?
): Object
# パラメータ
名前 | 型 |
---|---|
useFinalPosition? | boolean |
# 戻り値
Object
名前 | 型 |
---|---|
x | number |
y | number |
# 定義元
elements/element.point.ts:76 (新しいウィンドウで開く)
# getProps
▸ getProps<P
>(props
, final?
): Pick
<Point
, P
[number
]>
各プロパティの現在または最終値を取得します。(オブジェクト全体で)追加のプロパティを返すことができます。
# 型パラメータ
名前 | 型 |
---|---|
P | extends keyof Point [] |
# パラメータ
名前 | 型 | Description |
---|---|---|
props | P | 取得するプロパティ |
final? | boolean | 最終値(アニメーションのターゲット)を取得する |
# 戻り値
Pick
<Point
, 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
▸ getRange(): any
# 戻り値
any
# 定義元
elements/element.point.ts:102 (新しいウィンドウで開く)
# hasValue
▸ hasValue(): boolean
# 戻り値
boolean
# 継承元
Element.hasValue
# 定義元
core/core.element.ts:22 (新しいウィンドウで開く)
# inRange
▸ inRange(mouseX
, mouseY
, useFinalPosition?
): boolean
# パラメータ
名前 | 型 |
---|---|
mouseX | number |
mouseY | number |
useFinalPosition? | boolean |
# 戻り値
boolean
# 定義元
elements/element.point.ts:62 (新しいウィンドウで開く)
# inXRange
▸ inXRange(mouseX
, useFinalPosition?
): boolean
# パラメータ
名前 | 型 |
---|---|
mouseX | number |
useFinalPosition? | boolean |
# 戻り値
boolean
# 定義元
elements/element.point.ts:68 (新しいウィンドウで開く)
# inYRange
▸ inYRange(mouseY
, useFinalPosition?
): boolean
# パラメータ
名前 | 型 |
---|---|
mouseY | number |
useFinalPosition? | boolean |
# 戻り値
boolean
# 定義元
elements/element.point.ts:72 (新しいウィンドウで開く)
# size
▸ size(options?
): number
# パラメータ
名前 | 型 |
---|---|
options? | Partial <PointOptions & PointHoverOptions > |
# 戻り値
number
# 定義元
elements/element.point.ts:81 (新しいウィンドウで開く)
# tooltipPosition
▸ tooltipPosition(useFinalPosition
): Point
# パラメータ
名前 | 型 |
---|---|
useFinalPosition | boolean |
# 戻り値
# 継承元
Element.tooltipPosition
# 定義元
← DomPlatform Scale →