From 7b45fb1ede355b3d41f4920121ad05a9ec7ccc6f Mon Sep 17 00:00:00 2001 From: Jaisung Lee Date: Thu, 19 Sep 2024 20:40:26 +0900 Subject: [PATCH] Add hoverColorFrom, hoverColorTo types (Scriptable) --- types/index.esm.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/index.esm.d.ts b/types/index.esm.d.ts index 3086949..361f429 100644 --- a/types/index.esm.d.ts +++ b/types/index.esm.d.ts @@ -5,6 +5,7 @@ import { DatasetController, Element, FontSpec, + Scriptable, ScriptableContext, VisualElement } from 'chart.js'; @@ -27,6 +28,8 @@ declare module 'chart.js' { colorFrom: (data: ScriptableContext<'sankey'>) => string; colorTo: (data: ScriptableContext<'sankey'>) => string; colorMode: 'gradient' | 'from' | 'to'; + hoverColorFrom?: Scriptable>; + hoverColorTo?: Scriptable>; /* Map */ priority?: Record column?: Record