This is an automated email from the ASF dual-hosted git repository.

sushuang pushed a commit to branch fix/ts-export-type
in repository https://gitbox.apache.org/repos/asf/echarts.git

commit 98778a0dae1a45d84fa050e974ffcb843469b527
Author: 100pah <sushuang0...@gmail.com>
AuthorDate: Thu Jul 31 19:26:22 2025 +0800

    fix(ts): Fix exported option type of visualMap referencing (querying) 
series.
---
 src/component/visualMap/VisualMapModel.ts | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/component/visualMap/VisualMapModel.ts 
b/src/component/visualMap/VisualMapModel.ts
index 9139d54e8..d2756a4a9 100644
--- a/src/component/visualMap/VisualMapModel.ts
+++ b/src/component/visualMap/VisualMapModel.ts
@@ -33,7 +33,9 @@ import {
     OptionDataValue,
     BuiltinVisualProperty,
     DimensionIndex,
-    OptionId
+    OptionId,
+    ComponentOnCalendarOptionMixin,
+    ComponentOnMatrixOptionMixin
 } from '../../util/types';
 import ComponentModel from '../../model/Component';
 import Model from '../../model/Model';
@@ -56,6 +58,8 @@ type LabelFormatter = (min: OptionDataValue, max?: 
OptionDataValue) => string;
 type VisualState = VisualMapModel['stateList'][number];
 export interface VisualMapOption<T extends VisualOptionBase = 
VisualOptionBase> extends
     ComponentOption,
+    ComponentOnCalendarOptionMixin,
+    ComponentOnMatrixOptionMixin,
     BoxLayoutOptionMixin,
     BorderOptionMixin {
 
@@ -70,8 +74,8 @@ export interface VisualMapOption<T extends VisualOptionBase = 
VisualOptionBase>
      * 'all' or null/undefined: all series.
      * A number or an array of number: the specified series.
      */
-    seriesIndex?: 'all' | number[] | number
-    seriesId?: OptionId | OptionId[]
+    seriesIndex?: modelUtil.ModelFinderIndexQuery
+    seriesId?: modelUtil.ModelFinderIdQuery
 
     /**
      * set min: 0, max: 200, only for campatible with ec2.


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to