@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.
Files changed (43) hide show
  1. package/package.json +1 -1
  2. package/tsconfig.tsbuildinfo +1 -1
  3. package/types/chart/gauge/interface.d.ts +1 -1
  4. package/types/chart/treemap/interface.d.ts +1 -1
  5. package/types/chart/venn/interface.d.ts +2 -2
  6. package/types/component/axis/cartesian/interface/common.d.ts +1 -0
  7. package/types/component/interface/index.d.ts +0 -1
  8. package/types/component/title/interface/spec.d.ts +3 -3
  9. package/types/component/tooltip/constant.d.ts +5 -4
  10. package/types/component/tooltip/interface/common.d.ts +1 -1
  11. package/types/component/tooltip/interface/spec.d.ts +8 -0
  12. package/types/component/tooltip/interface/theme.d.ts +2 -2
  13. package/types/component/tooltip/processor/base.d.ts +3 -5
  14. package/types/component/tooltip/tooltip.d.ts +9 -4
  15. package/types/component/tooltip/utils/common.d.ts +6 -4
  16. package/types/component/tooltip/utils/get-spec.d.ts +4 -4
  17. package/types/component/tooltip/utils/get-value.d.ts +1 -2
  18. package/types/component/tooltip/utils/index.d.ts +0 -1
  19. package/types/data/transforms/pie.d.ts +3 -0
  20. package/types/model/interface.d.ts +14 -0
  21. package/types/plugin/components/tooltip-handler/base.d.ts +1 -13
  22. package/types/plugin/components/tooltip-handler/dom/dom-tooltip-handler.d.ts +0 -1
  23. package/types/plugin/components/tooltip-handler/interface/style.d.ts +1 -2
  24. package/types/plugin/components/tooltip-handler/utils/position.d.ts +3 -5
  25. package/types/region/interface.d.ts +3 -1
  26. package/types/series/base/tooltip-helper.d.ts +30 -6
  27. package/types/series/box-plot/tooltip-helper.d.ts +2 -2
  28. package/types/series/cartesian/cartesian.d.ts +1 -1
  29. package/types/series/dot/tooltip-helper.d.ts +8 -2
  30. package/types/series/gauge/pointer-tooltip-helper.d.ts +2 -1
  31. package/types/series/heatmap/tooltip-helper.d.ts +2 -3
  32. package/types/series/interface/tooltip-helper.d.ts +5 -4
  33. package/types/series/link/tooltip-helper.d.ts +5 -2
  34. package/types/series/liquid/tooltip-helper.d.ts +4 -5
  35. package/types/series/progress/linear/tooltip-helper.d.ts +2 -3
  36. package/types/series/range-area/tooltip-helper.d.ts +1 -3
  37. package/types/series/range-column/tooltip-helper.d.ts +1 -2
  38. package/types/series/sankey/sankey.d.ts +1 -1
  39. package/types/series/sankey/tooltip-helper.d.ts +3 -3
  40. package/types/typings/spec/common.d.ts +3 -3
  41. package/types/typings/tooltip/position.d.ts +1 -0
  42. package/types/typings/tooltip/shape.d.ts +0 -1
  43. 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?: ITooltipSpec;
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
  } & {
@@ -23,3 +23,4 @@ export interface ITooltipPositionActual {
23
23
  x: number;
24
24
  y: number;
25
25
  }
26
+ export type TooltipPositionKeys = 'top' | 'left' | 'right' | 'bottom';
@@ -19,5 +19,4 @@ export interface ITooltipShapeActual {
19
19
  shapeLineWidth?: number;
20
20
  shapeSize?: number;
21
21
  shapeHollow?: boolean;
22
- shapeColor?: string;
23
22
  }
@@ -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
  }