@visactor/vchart-types 1.12.7 → 1.12.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/types/chart/gauge/interface.d.ts +1 -1
- package/types/chart/treemap/interface.d.ts +1 -1
- package/types/chart/venn/interface.d.ts +2 -2
- package/types/component/axis/cartesian/interface/common.d.ts +1 -0
- package/types/component/interface/index.d.ts +0 -1
- package/types/component/title/interface/spec.d.ts +3 -3
- package/types/component/tooltip/constant.d.ts +5 -4
- package/types/component/tooltip/interface/common.d.ts +1 -1
- package/types/component/tooltip/interface/spec.d.ts +8 -0
- package/types/component/tooltip/interface/theme.d.ts +2 -2
- package/types/component/tooltip/processor/base.d.ts +3 -5
- package/types/component/tooltip/tooltip.d.ts +9 -4
- package/types/component/tooltip/utils/common.d.ts +6 -4
- package/types/component/tooltip/utils/get-spec.d.ts +4 -4
- package/types/component/tooltip/utils/get-value.d.ts +1 -2
- package/types/component/tooltip/utils/index.d.ts +0 -1
- package/types/data/transforms/pie.d.ts +3 -0
- package/types/model/interface.d.ts +14 -0
- package/types/plugin/components/tooltip-handler/base.d.ts +1 -13
- package/types/plugin/components/tooltip-handler/dom/dom-tooltip-handler.d.ts +0 -1
- package/types/plugin/components/tooltip-handler/interface/style.d.ts +1 -2
- package/types/plugin/components/tooltip-handler/utils/position.d.ts +3 -5
- package/types/region/interface.d.ts +3 -1
- package/types/series/base/tooltip-helper.d.ts +30 -6
- package/types/series/box-plot/tooltip-helper.d.ts +2 -2
- package/types/series/cartesian/cartesian.d.ts +1 -1
- package/types/series/dot/tooltip-helper.d.ts +8 -2
- package/types/series/gauge/pointer-tooltip-helper.d.ts +2 -1
- package/types/series/heatmap/tooltip-helper.d.ts +2 -3
- package/types/series/interface/tooltip-helper.d.ts +5 -4
- package/types/series/link/tooltip-helper.d.ts +5 -2
- package/types/series/liquid/tooltip-helper.d.ts +4 -5
- package/types/series/progress/linear/tooltip-helper.d.ts +2 -3
- package/types/series/range-area/tooltip-helper.d.ts +1 -3
- package/types/series/range-column/tooltip-helper.d.ts +1 -2
- package/types/series/sankey/sankey.d.ts +1 -1
- package/types/series/sankey/tooltip-helper.d.ts +3 -3
- package/types/typings/spec/common.d.ts +3 -3
- package/types/typings/tooltip/position.d.ts +1 -0
- package/types/typings/tooltip/shape.d.ts +0 -1
- package/types/typings/tooltip/tooltip.d.ts +7 -0
|
@@ -6,7 +6,7 @@ import type { DataSet, DataView, ISimplifyOptions, IFieldsOptions, IFilterOption
|
|
|
6
6
|
import type { RegionSpec } from '../../region/interface';
|
|
7
7
|
import type { IHoverSpec, ISelectSpec, IInteractionSpec } from '../../interaction/interface';
|
|
8
8
|
import type { IRenderOption } from '../../compile/interface';
|
|
9
|
-
import type { ITooltipSpec } from '../../component/tooltip/interface';
|
|
9
|
+
import type { ISeriesTooltipSpec, ITooltipSpec } from '../../component/tooltip/interface';
|
|
10
10
|
import type { ILayoutSpec } from '../../layout/interface';
|
|
11
11
|
import type { ConvertToMarkStyleSpec, IArc3dMarkSpec, IArcMarkSpec, IAreaMarkSpec, IBoxPlotMarkSpec, ICommonSpec, IGroupMarkSpec, ILineMarkSpec, ILinkPathMarkSpec, IPathMarkSpec, IPolygonMarkSpec, IPyramid3dMarkSpec, IRect3dMarkSpec, IRectMarkSpec, IRuleMarkSpec, ISymbolMarkSpec, IRippleMarkSpec, ITextMarkSpec, IVisualSpecScale } from '../visual';
|
|
12
12
|
import type { StateValue } from '../../compile/mark';
|
|
@@ -160,14 +160,14 @@ export interface ISeriesSpec extends IInteractionSpec {
|
|
|
160
160
|
percent?: boolean;
|
|
161
161
|
stackOffsetSilhouette?: boolean;
|
|
162
162
|
invalidType?: IInvalidType;
|
|
163
|
-
tooltip?:
|
|
163
|
+
tooltip?: ISeriesTooltipSpec;
|
|
164
164
|
animation?: boolean;
|
|
165
165
|
animationThreshold?: number;
|
|
166
166
|
support3d?: boolean;
|
|
167
167
|
morph?: IMorphSeriesSpec;
|
|
168
168
|
extensionMark?: (IExtensionMarkSpec<Exclude<EnableMarkType, 'group'>> | IExtensionGroupMarkSpec)[];
|
|
169
169
|
}
|
|
170
|
-
export type IChartExtendsSeriesSpec<T extends ISeriesSpec> = Omit<T, 'data' | 'morph' | 'stackValue'>;
|
|
170
|
+
export type IChartExtendsSeriesSpec<T extends ISeriesSpec> = Omit<T, 'data' | 'morph' | 'stackValue' | 'tooltip'>;
|
|
171
171
|
export type AdaptiveSpec<T, K extends keyof any> = {
|
|
172
172
|
[key in Exclude<keyof T, K>]: T[key];
|
|
173
173
|
} & {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ITooltipHandlerSpec } from '../../component/tooltip/interface/spec';
|
|
1
2
|
import type { MaybeArray } from '../common';
|
|
2
3
|
import type { TooltipPatternProperty, TooltipUpdateCallback } from './common';
|
|
3
4
|
import type { TooltipActiveType, TooltipData } from './handler';
|
|
@@ -28,4 +29,10 @@ export interface ITooltipActual {
|
|
|
28
29
|
activeType?: TooltipActiveType;
|
|
29
30
|
position?: ITooltipPositionActual;
|
|
30
31
|
data?: TooltipData;
|
|
32
|
+
handler?: Partial<ITooltipHandlerSpec>;
|
|
33
|
+
maxLineCount?: number;
|
|
34
|
+
updateTitle?: TooltipUpdateCallback<ITooltipLineActual>;
|
|
35
|
+
updateContent?: TooltipUpdateCallback<ITooltipLineActual[]>;
|
|
36
|
+
updatePosition?: TooltipUpdateCallback<ITooltipPositionActual>;
|
|
37
|
+
othersLine?: ITooltipLineActual;
|
|
31
38
|
}
|