# 介面:TooltipModel<TType>

# 型別參數

名稱 型別
TType 繼承 ChartType

# 階層

# 屬性

# $animations

$animations: Record<string, Animation>

# 繼承自

Element.$animations

# 定義於

core/core.element.ts:15 (開啟新視窗)


# active

active: boolean = false

# 繼承自

Element.active

# 定義於

core/core.element.ts:13 (開啟新視窗)


# afterBody

afterBody: string[]

# 定義於

types/index.d.ts:2609 (開啟新視窗)


# beforeBody

beforeBody: string[]

# 定義於

types/index.d.ts:2607 (開啟新視窗)


# body

body: { after: string[] ; before: string[] ; lines: string[] }[]

# 定義於

types/index.d.ts:2605 (開啟新視窗)


# caretX

caretX: number

# 定義於

types/index.d.ts:2596 (開啟新視窗)


# caretY

caretY: number

# 定義於

types/index.d.ts:2597 (開啟新視窗)


# chart

Readonly chart: Chart<TType, DistributiveArray<ChartTypeRegistry[TType]["defaultDataPoint"]>, unknown>

# 定義於

types/index.d.ts:2581 (開啟新視窗)


# dataPoints

dataPoints: TooltipItem<TType>[]

# 定義於

types/index.d.ts:2584 (開啟新視窗)


footer: string[]

# 定義於

types/index.d.ts:2617 (開啟新視窗)


# height

height: number

# 定義於

types/index.d.ts:2594 (在新視窗開啟)


# labelColors

labelColors: TooltipLabelStyle[]

# 定義於

types/index.d.ts:2620 (在新視窗開啟)


# labelPointStyles

labelPointStyles: { pointStyle: PointStyle ; rotation: number }[]

# 定義於

types/index.d.ts:2622 (在新視窗開啟)


# labelTextColors

labelTextColors: Color[]

# 定義於

types/index.d.ts:2621 (在新視窗開啟)


# opacity

opacity: number

# 定義於

types/index.d.ts:2625 (在新視窗開啟)


# options

options: TooltipOptions<TType>

# 覆寫

Element.options

# 定義於

types/index.d.ts:2628 (在新視窗開啟)


# title

title: string[]

# 定義於

types/index.d.ts:2613 (在新視窗開啟)


# width

width: number

# 定義於

types/index.d.ts:2593 (在新視窗開啟)


# x

x: number

# 覆寫

Element.x

# 定義於

types/index.d.ts:2591 (在新視窗開啟)


# xAlign

xAlign: TooltipXAlignment

# 定義於

types/index.d.ts:2587 (在新視窗開啟)


# y

y: number

# 覆寫

Element.y

# 定義於

types/index.d.ts:2592 (在新視窗開啟)


# yAlign

yAlign: TooltipYAlignment

# 定義於

types/index.d.ts:2588 (在新視窗開啟)

# 方法

# getActiveElements

getActiveElements(): ActiveElement[]

# 返回值

ActiveElement[]

# 定義於

types/index.d.ts:2630 (在新視窗開啟)


# getProps

getProps<P>(props, final?): Pick<AnyObject, P[number]>

取得每個屬性的目前或最終值。可以返回額外的屬性(整個物件)。

# 類型參數

名稱 型別
P extends string[]

# 參數

名稱 型別 描述
props P 要取得的屬性
final? boolean 取得最終值(動畫目標)

# 返回值

Pick<AnyObject, 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 (在新視窗開啟)


# hasValue

hasValue(): boolean

# 返回值

boolean

# 繼承自

Element.hasValue

# 定義於

core/core.element.ts:22 (在新視窗開啟)


# setActiveElements

setActiveElements(active, eventPosition): void

# 參數

名稱 型別
active ActiveDataPoint[]
eventPosition Point

# 返回值

void

# 定義於

types/index.d.ts:2631 (在新視窗開啟)


# tooltipPosition

tooltipPosition(useFinalPosition): Point

# 參數

名稱 型別
useFinalPosition boolean

# 回傳

Point

# 繼承自

Element.tooltipPosition

# 定義於

core/core.element.ts:17 (開啟新視窗)