From c32750650c83739a6c7e65b3e2121995ce225886 Mon Sep 17 00:00:00 2001 From: mroloux Date: Wed, 17 Apr 2024 09:09:35 +0200 Subject: [PATCH] Added mode to BaseChartDesignerConfigOptions --- src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.ts b/src/index.ts index 4e1db0c..19e864b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -429,7 +429,10 @@ export type ChartDesignerConfigOptions = | ChartDesignerReadOnlyModeConfigOptions | ChartDesignerSafeModeConfigOptions +export type ChartDesignerMode = 'normal' | 'readOnly' | 'safe' + export interface BaseChartDesignerConfigOptions { + mode?: ChartDesignerMode canvasColorScheme?: 'auto' | 'light' | 'dark' chartKey?: string container?: Element