@visactor/vchart-types 2.0.0-alpha.0 → 2.0.0-alpha.2

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 (255) hide show
  1. package/package.json +1 -1
  2. package/tsconfig.tsbuildinfo +1 -1
  3. package/types/animation/animate-manager.d.ts +0 -10
  4. package/types/animation/animation-planner.d.ts +13 -0
  5. package/types/animation/config.d.ts +5 -5
  6. package/types/animation/grammar-dector.d.ts +22 -0
  7. package/types/animation/index.d.ts +7 -0
  8. package/types/animation/interface.d.ts +14 -7
  9. package/types/animation/sequential-animate.d.ts +1 -0
  10. package/types/animation/state-transition.d.ts +1 -0
  11. package/types/animation/strategy/common.d.ts +17 -0
  12. package/types/animation/strategy/horizontal-bar-split.d.ts +11 -0
  13. package/types/animation/strategy/vertical-bar-split.d.ts +11 -0
  14. package/types/animation/utils.d.ts +2 -2
  15. package/types/chart/area/area.d.ts +1 -0
  16. package/types/chart/bar/bar.d.ts +1 -0
  17. package/types/chart/bar/index.d.ts +0 -1
  18. package/types/chart/bar/interface.d.ts +1 -5
  19. package/types/chart/base/base-chart.d.ts +12 -2
  20. package/types/chart/box-plot/box-plot.d.ts +1 -0
  21. package/types/chart/common/common.d.ts +1 -0
  22. package/types/chart/common/interface.d.ts +5 -5
  23. package/types/chart/funnel/index.d.ts +0 -1
  24. package/types/chart/funnel/interface.d.ts +1 -4
  25. package/types/chart/histogram/histogram.d.ts +1 -0
  26. package/types/chart/histogram/index.d.ts +0 -1
  27. package/types/chart/histogram/interface.d.ts +1 -4
  28. package/types/chart/index.d.ts +19 -17
  29. package/types/chart/interface/chart.d.ts +11 -1
  30. package/types/chart/interface/type.d.ts +1 -8
  31. package/types/chart/line/line.d.ts +1 -0
  32. package/types/chart/mosaic/mosaic.d.ts +1 -0
  33. package/types/chart/pictogram/interface.d.ts +1 -1
  34. package/types/chart/pie/index.d.ts +0 -1
  35. package/types/chart/pie/interface.d.ts +1 -5
  36. package/types/chart/progress/circular/circular.d.ts +1 -0
  37. package/types/chart/progress/linear/linear.d.ts +1 -0
  38. package/types/chart/radar/radar.d.ts +1 -0
  39. package/types/chart/range-area/range-area.d.ts +1 -0
  40. package/types/chart/range-column/index.d.ts +0 -1
  41. package/types/chart/range-column/interface.d.ts +1 -5
  42. package/types/chart/range-column/range-column.d.ts +1 -0
  43. package/types/chart/rose/rose.d.ts +1 -0
  44. package/types/chart/scatter/scatter.d.ts +1 -0
  45. package/types/chart/waterfall/waterfall.d.ts +1 -0
  46. package/types/chart/word-cloud/index.d.ts +0 -1
  47. package/types/chart/word-cloud/interface.d.ts +1 -5
  48. package/types/chart/word-cloud/word-cloud.d.ts +4 -8
  49. package/types/compile/interface/compiler.d.ts +2 -1
  50. package/types/compile/mark/compilable-mark.d.ts +1 -0
  51. package/types/compile/mark/interface.d.ts +9 -4
  52. package/types/compile/mark/mark-state-manager.d.ts +1 -0
  53. package/types/compile/morph.d.ts +3 -0
  54. package/types/component/axis/base-axis.d.ts +5 -0
  55. package/types/component/axis/cartesian/axis.d.ts +6 -13
  56. package/types/component/axis/cartesian/band-axis.d.ts +6 -0
  57. package/types/component/axis/cartesian/linear-axis.d.ts +2 -1
  58. package/types/component/axis/cartesian/log-axis.d.ts +6 -0
  59. package/types/component/axis/cartesian/symlog-axis.d.ts +6 -0
  60. package/types/component/axis/cartesian/time-axis.d.ts +5 -0
  61. package/types/component/axis/cartesian/util/common.d.ts +3 -1
  62. package/types/component/axis/interface/spec.d.ts +7 -2
  63. package/types/component/axis/mixin/band-axis-mixin.d.ts +1 -0
  64. package/types/component/axis/polar/band-axis.d.ts +6 -0
  65. package/types/component/axis/polar/linear-axis.d.ts +6 -0
  66. package/types/component/axis/polar/util/common.d.ts +4 -1
  67. package/types/component/axis/util.d.ts +2 -6
  68. package/types/component/base/base-component.d.ts +0 -3
  69. package/types/component/base/util.d.ts +1 -2
  70. package/types/component/brush/brush.d.ts +29 -26
  71. package/types/component/brush/interface.d.ts +2 -0
  72. package/types/component/common/trigger/desktop.d.ts +0 -2
  73. package/types/component/common/trigger/interface.d.ts +0 -2
  74. package/types/component/common/trigger/mobile.d.ts +0 -2
  75. package/types/component/crosshair/base.d.ts +1 -1
  76. package/types/component/crosshair/cartesian.d.ts +4 -1
  77. package/types/component/crosshair/interface/spec.d.ts +1 -1
  78. package/types/component/crosshair/polar.d.ts +4 -1
  79. package/types/component/crosshair/utils/cartesian.d.ts +11 -1
  80. package/types/component/crosshair/utils/common.d.ts +2 -3
  81. package/types/component/custom-mark/custom-mark.d.ts +1 -0
  82. package/types/component/data-zoom/data-zoom/data-zoom.d.ts +3 -0
  83. package/types/component/data-zoom/data-zoom/interface.d.ts +2 -3
  84. package/types/component/data-zoom/scroll-bar/scroll-bar.d.ts +3 -0
  85. package/types/component/index.d.ts +14 -8
  86. package/types/component/indicator/indicator.d.ts +3 -0
  87. package/types/component/interface/common.d.ts +0 -2
  88. package/types/component/interface/theme.d.ts +1 -3
  89. package/types/component/interface/type.d.ts +0 -1
  90. package/types/component/label/base-label.d.ts +4 -4
  91. package/types/component/label/interface.d.ts +10 -5
  92. package/types/component/label/total-label.d.ts +4 -1
  93. package/types/component/label/util.d.ts +1 -1
  94. package/types/component/legend/continuous/legend.d.ts +4 -0
  95. package/types/component/legend/discrete/legend.d.ts +3 -0
  96. package/types/component/legend/util.d.ts +1 -1
  97. package/types/component/marker/mark-area/cartesian-mark-area.d.ts +3 -0
  98. package/types/component/marker/mark-area/interface/theme.d.ts +4 -3
  99. package/types/component/marker/mark-area/polar-mark-area.d.ts +3 -0
  100. package/types/component/marker/mark-line/cartesian-mark-line.d.ts +3 -0
  101. package/types/component/marker/mark-line/interface/theme.d.ts +4 -3
  102. package/types/component/marker/mark-line/polar-mark-line.d.ts +3 -0
  103. package/types/component/marker/mark-point/cartesian-mark-point.d.ts +3 -0
  104. package/types/component/marker/mark-point/geo-mark-point.d.ts +3 -0
  105. package/types/component/marker/mark-point/interface/theme.d.ts +5 -2
  106. package/types/component/marker/mark-point/polar-mark-point.d.ts +3 -0
  107. package/types/component/marker/utils.d.ts +12 -0
  108. package/types/component/player/player.d.ts +3 -0
  109. package/types/component/title/title.d.ts +3 -0
  110. package/types/component/tooltip/constant.d.ts +6 -2
  111. package/types/component/tooltip/interface/common.d.ts +2 -1
  112. package/types/component/tooltip/processor/base.d.ts +4 -5
  113. package/types/component/tooltip/processor/dimension-tooltip.d.ts +1 -0
  114. package/types/component/tooltip/processor/group-tooltip.d.ts +1 -0
  115. package/types/component/tooltip/processor/interface.d.ts +11 -0
  116. package/types/component/tooltip/processor/mark-tooltip.d.ts +1 -0
  117. package/types/component/tooltip/processor/util.d.ts +1 -1
  118. package/types/component/tooltip/tooltip.d.ts +5 -2
  119. package/types/component/util.d.ts +1 -2
  120. package/types/constant/event.d.ts +2 -0
  121. package/types/core/factory.d.ts +16 -12
  122. package/types/core/index.d.ts +16 -1
  123. package/types/core/interface.d.ts +6 -1
  124. package/types/core/vchart.d.ts +2 -1
  125. package/types/data/transforms/circle-packing.d.ts +1 -1
  126. package/types/data/transforms/data-key.d.ts +1 -1
  127. package/types/data/transforms/flatten.d.ts +1 -1
  128. package/types/data/transforms/funnel.d.ts +1 -6
  129. package/types/data/transforms/pictogram.d.ts +2 -10
  130. package/types/data/transforms/sankey-links.d.ts +1 -2
  131. package/types/data/transforms/sankey-nodes.d.ts +1 -2
  132. package/types/data/transforms/sankey.d.ts +4 -4
  133. package/types/data/transforms/sunburst.d.ts +1 -1
  134. package/types/data/transforms/treemap.d.ts +1 -1
  135. package/types/data/transforms/venn.d.ts +1 -1
  136. package/types/event/event-dispatcher.d.ts +4 -1
  137. package/types/event/event.d.ts +4 -1
  138. package/types/event/events/dimension/util/cartesian.d.ts +2 -1
  139. package/types/event/events/index.d.ts +1 -5
  140. package/types/event/index.d.ts +1 -1
  141. package/types/event/interface.d.ts +13 -4
  142. package/types/index-harmony-simple.d.ts +2 -3
  143. package/types/index-harmony.d.ts +1 -1
  144. package/types/index.d.ts +12 -0
  145. package/types/interaction/index.d.ts +3 -2
  146. package/types/interaction/triggers/enum.d.ts +1 -3
  147. package/types/interaction/zoom/zoomable.d.ts +4 -0
  148. package/types/layout/base-layout.d.ts +12 -9
  149. package/types/layout/index.d.ts +4 -4
  150. package/types/layout/interface.d.ts +6 -1
  151. package/types/layout/layout-item.d.ts +5 -0
  152. package/types/layout/util.d.ts +17 -4
  153. package/types/mark/arc.d.ts +1 -1
  154. package/types/mark/base/base-line.d.ts +11 -2
  155. package/types/mark/base/base-mark.d.ts +46 -17
  156. package/types/mark/cell.d.ts +2 -2
  157. package/types/mark/component.d.ts +1 -0
  158. package/types/mark/glyph.d.ts +1 -0
  159. package/types/mark/group.d.ts +2 -1
  160. package/types/mark/index.d.ts +8 -7
  161. package/types/mark/interface/common.d.ts +20 -0
  162. package/types/mark/interface/mark.d.ts +2 -4
  163. package/types/mark/interface/type.d.ts +0 -3
  164. package/types/mark/rule.d.ts +2 -2
  165. package/types/mark/symbol.d.ts +2 -3
  166. package/types/mark/text.d.ts +2 -2
  167. package/types/mark/transform/symbol-overlap.d.ts +0 -1
  168. package/types/mark/utils/common.d.ts +0 -1
  169. package/types/model/base-model.d.ts +3 -2
  170. package/types/model/interface.d.ts +7 -2
  171. package/types/model/layout-model.d.ts +2 -1
  172. package/types/plugin/chart/index.d.ts +1 -0
  173. package/types/plugin/components/tooltip-handler/utils/attribute.d.ts +2 -3
  174. package/types/plugin/components/tooltip-handler/utils/position.d.ts +1 -12
  175. package/types/plugin/other.d.ts +0 -1
  176. package/types/region/interface.d.ts +0 -2
  177. package/types/region/region.d.ts +0 -2
  178. package/types/series/area/area.d.ts +2 -1
  179. package/types/series/bar/animation.d.ts +0 -1
  180. package/types/series/bar/bar.d.ts +7 -6
  181. package/types/series/bar/constant.d.ts +0 -1
  182. package/types/series/bar/interface.d.ts +1 -7
  183. package/types/series/base/base-series-transformer.d.ts +1 -1
  184. package/types/series/base/base-series.d.ts +2 -3
  185. package/types/series/box-plot/animation.d.ts +52 -0
  186. package/types/series/box-plot/box-plot.d.ts +3 -0
  187. package/types/series/circle-packing/circle-packing.d.ts +3 -0
  188. package/types/series/correlation/correlation.d.ts +3 -0
  189. package/types/series/dot/dot.d.ts +3 -0
  190. package/types/series/funnel/constant.d.ts +0 -1
  191. package/types/series/funnel/funnel.d.ts +7 -9
  192. package/types/series/funnel/interface.d.ts +2 -13
  193. package/types/series/funnel/tooltip-helper.d.ts +3 -1
  194. package/types/series/gauge/gauge-pointer.d.ts +3 -0
  195. package/types/series/gauge/gauge.d.ts +3 -0
  196. package/types/series/geo/geo.d.ts +1 -2
  197. package/types/series/heatmap/heatmap.d.ts +3 -0
  198. package/types/series/index.d.ts +24 -19
  199. package/types/series/interface/theme.d.ts +5 -16
  200. package/types/series/interface/type.d.ts +1 -11
  201. package/types/series/line/line.d.ts +3 -0
  202. package/types/series/link/link.d.ts +3 -0
  203. package/types/series/liquid/liquid.d.ts +3 -0
  204. package/types/series/map/map.d.ts +3 -0
  205. package/types/series/mosaic/mosaic.d.ts +2 -0
  206. package/types/series/pictogram/pictogram.d.ts +19 -13
  207. package/types/series/pictogram/tooltip-helper.d.ts +2 -2
  208. package/types/series/pie/animation/animation.d.ts +2 -3
  209. package/types/series/pie/constant.d.ts +0 -1
  210. package/types/series/pie/interface.d.ts +1 -11
  211. package/types/series/pie/pie.d.ts +5 -5
  212. package/types/series/polar/animation.d.ts +2 -4
  213. package/types/series/polar/progress-like/interface.d.ts +1 -0
  214. package/types/series/progress/circular/circular.d.ts +3 -0
  215. package/types/series/progress/linear/animation.d.ts +1 -1
  216. package/types/series/progress/linear/interface.d.ts +1 -0
  217. package/types/series/progress/linear/linear.d.ts +3 -0
  218. package/types/series/radar/animation.d.ts +1 -1
  219. package/types/series/radar/radar.d.ts +3 -0
  220. package/types/series/range-column/constant.d.ts +0 -1
  221. package/types/series/range-column/interface.d.ts +0 -3
  222. package/types/series/range-column/range-column.d.ts +5 -4
  223. package/types/series/rose/rose.d.ts +3 -0
  224. package/types/series/sankey/animation.d.ts +13 -0
  225. package/types/series/sankey/interface.d.ts +0 -1
  226. package/types/series/sankey/sankey.d.ts +3 -0
  227. package/types/series/scatter/scatter.d.ts +3 -0
  228. package/types/series/sunburst/interface.d.ts +1 -1
  229. package/types/series/sunburst/sunburst.d.ts +3 -0
  230. package/types/series/treemap/interface.d.ts +1 -1
  231. package/types/series/treemap/treemap.d.ts +3 -0
  232. package/types/series/venn/animation.d.ts +11 -0
  233. package/types/series/venn/venn.d.ts +3 -0
  234. package/types/series/waterfall/waterfall.d.ts +4 -0
  235. package/types/series/word-cloud/animation.d.ts +1 -3
  236. package/types/series/word-cloud/base.d.ts +3 -2
  237. package/types/series/word-cloud/interface.d.ts +1 -19
  238. package/types/theme/builtin/common/component/axis/cartesian-axis.d.ts +0 -1
  239. package/types/theme/builtin/common/series/funnel.d.ts +2 -2
  240. package/types/theme/builtin/common/series/word-cloud.d.ts +1 -2
  241. package/types/theme/builtin/index.d.ts +3 -1
  242. package/types/theme/color-scheme/util.d.ts +1 -1
  243. package/types/typings/spec/chart.d.ts +6 -12
  244. package/types/typings/spec/common.d.ts +3 -5
  245. package/types/typings/tooltip/position.d.ts +1 -1
  246. package/types/typings/visual.d.ts +2 -11
  247. package/types/util/mark.d.ts +1 -1
  248. package/types/util/region.d.ts +5 -0
  249. package/types/util/scale.d.ts +1 -0
  250. package/types/util/theme/common.d.ts +1 -1
  251. package/types/util/theme/merge-theme.d.ts +2 -2
  252. package/types/util/theme/preprocess.d.ts +1 -2
  253. package/types/vrender-tools.d.ts +1 -0
  254. package/types/interaction/triggers/element-highlight-by-graphic-name.d.ts +0 -13
  255. package/types/interaction/triggers/element-select-by-graphic-name.d.ts +0 -8
@@ -1,20 +1,20 @@
1
1
  import type { IAreaChartSpec } from '../../chart/area/interface';
2
- import type { IBarChartSpec, IBar3dChartSpec } from '../../chart/bar/interface';
2
+ import type { IBarChartSpec } from '../../chart/bar/interface';
3
3
  import type { IBoxPlotChartSpec } from '../../chart/box-plot/interface';
4
4
  import type { ICirclePackingChartSpec } from '../../chart/circle-packing/interface';
5
5
  import type { ICommonChartSpec } from '../../chart/common/interface';
6
- import type { IFunnelChartSpec, IFunnel3dChartSpec } from '../../chart/funnel/interface';
6
+ import type { IFunnelChartSpec } from '../../chart/funnel/interface';
7
7
  import type { IGaugeChartSpec } from '../../chart/gauge/interface';
8
8
  import type { IHeatmapChartSpec } from '../../chart/heatmap/interface';
9
- import type { IHistogramChartSpec, IHistogram3dChartSpec } from '../../chart/histogram/interface';
9
+ import type { IHistogramChartSpec } from '../../chart/histogram/interface';
10
10
  import type { ILineChartSpec } from '../../chart/line/interface';
11
11
  import type { IMapChartSpec } from '../../chart/map/interface';
12
- import type { IPieChartSpec, IPie3dChartSpec } from '../../chart/pie/interface';
12
+ import type { IPieChartSpec } from '../../chart/pie/interface';
13
13
  import type { ICircularProgressChartSpec } from '../../chart/progress/circular/interface';
14
14
  import type { ILinearProgressChartSpec } from '../../chart/progress/linear/interface';
15
15
  import type { IRadarChartSpec } from '../../chart/radar/interface';
16
16
  import type { IRangeAreaChartSpec } from '../../chart/range-area/interface';
17
- import type { IRangeColumnChartSpec, IRangeColumn3dChartSpec } from '../../chart/range-column/interface';
17
+ import type { IRangeColumnChartSpec } from '../../chart/range-column/interface';
18
18
  import type { IRoseChartSpec } from '../../chart/rose/interface';
19
19
  import type { ISankeyChartSpec } from '../../chart/sankey/interface';
20
20
  import type { IScatterChartSpec } from '../../chart/scatter/interface';
@@ -23,7 +23,7 @@ import type { ISunburstChartSpec } from '../../chart/sunburst/interface';
23
23
  import type { ITreemapChartSpec } from '../../chart/treemap/interface';
24
24
  import type { IWaterfallChartSpec } from '../../chart/waterfall/interface';
25
25
  import type { ICorrelationChartSpec } from '../../chart/correlation/interface';
26
- import type { IWordCloudChartSpec, IWordCloud3dChartSpec } from '../../chart/word-cloud/interface';
26
+ import type { IWordCloudChartSpec } from '../../chart/word-cloud/interface';
27
27
  import type { IChartSpec } from './common';
28
28
  import type { ILiquidChartSpec } from '../../chart/liquid/interface';
29
29
  export interface ChartSpecMap {
@@ -31,15 +31,11 @@ export interface ChartSpecMap {
31
31
  readonly area: IAreaChartSpec;
32
32
  readonly line: ILineChartSpec;
33
33
  readonly bar: IBarChartSpec;
34
- readonly bar3d: IBar3dChartSpec;
35
34
  readonly histogram: IHistogramChartSpec;
36
- readonly histogram3d: IHistogram3dChartSpec;
37
35
  readonly rangeColumn: IRangeColumnChartSpec;
38
- readonly rangeColumn3d: IRangeColumn3dChartSpec;
39
36
  readonly rangeArea: IRangeAreaChartSpec;
40
37
  readonly map: IMapChartSpec;
41
38
  readonly pie: IPieChartSpec;
42
- readonly pie3d: IPie3dChartSpec;
43
39
  readonly radar: IRadarChartSpec;
44
40
  readonly rose: IRoseChartSpec;
45
41
  readonly scatter: IScatterChartSpec;
@@ -47,9 +43,7 @@ export interface ChartSpecMap {
47
43
  readonly circleProgress: ICircularProgressChartSpec;
48
44
  readonly linearProgress: ILinearProgressChartSpec;
49
45
  readonly wordCloud: IWordCloudChartSpec;
50
- readonly wordCloud3d: IWordCloud3dChartSpec;
51
46
  readonly funnel: IFunnelChartSpec;
52
- readonly funnel3d: IFunnel3dChartSpec;
53
47
  readonly waterfall: IWaterfallChartSpec;
54
48
  readonly boxplot: IBoxPlotChartSpec;
55
49
  readonly gauge: IGaugeChartSpec;
@@ -7,7 +7,7 @@ import type { IHoverSpec, ISelectSpec, IInteractionSpec } from '../../interactio
7
7
  import type { IRenderOption } from '../../compile/interface';
8
8
  import type { ISeriesTooltipSpec, ITooltipSpec } from '../../component/tooltip/interface';
9
9
  import type { ILayoutSpec } from '../../layout/interface';
10
- import type { ConvertToMarkStyleSpec, IArc3dMarkSpec, IArcMarkSpec, IAreaMarkSpec, IBoxPlotMarkSpec, ICommonSpec, IGroupMarkSpec, ILineMarkSpec, ILinkPathMarkSpec, IPathMarkSpec, IPolygonMarkSpec, IPyramid3dMarkSpec, IRect3dMarkSpec, IRectMarkSpec, IRuleMarkSpec, ISymbolMarkSpec, IRippleMarkSpec, ITextMarkSpec, IVisualSpecScale } from '../visual';
10
+ import type { ConvertToMarkStyleSpec, IArcMarkSpec, IAreaMarkSpec, IBoxPlotMarkSpec, ICommonSpec, IGroupMarkSpec, ILineMarkSpec, ILinkPathMarkSpec, IPathMarkSpec, IPolygonMarkSpec, IRectMarkSpec, IRuleMarkSpec, ISymbolMarkSpec, IRippleMarkSpec, ITextMarkSpec, IVisualSpecScale } from '../visual';
11
11
  import type { ISeriesStyle, SeriesType } from '../../series/interface';
12
12
  import type { Datum, StringOrNumber } from '../common';
13
13
  import type { IInvalidType } from '../data';
@@ -106,10 +106,11 @@ export type BuildInTransformOptions = {
106
106
  export interface IFieldsMeta {
107
107
  alias?: string;
108
108
  domain?: StringOrNumber[];
109
- lockStatisticsByDomain?: boolean;
109
+ lockStatisticsByDomain?: boolean | 'onlyFull';
110
110
  type?: 'ordinal' | 'linear';
111
111
  sortIndex?: number;
112
112
  sortReverse?: boolean;
113
+ sort?: 'desc' | 'asc';
113
114
  }
114
115
  export interface SheetParseOptions extends CommonParseOptions {
115
116
  type: 'csv' | 'dsv' | 'tsv';
@@ -262,14 +263,11 @@ export type IBuildinMarkSpec = {
262
263
  line: ILineMarkSpec;
263
264
  text: ITextMarkSpec;
264
265
  rect: IRectMarkSpec;
265
- rect3d: IRect3dMarkSpec;
266
266
  image: IImageMarkSpec;
267
267
  path: IPathMarkSpec;
268
268
  area: IAreaMarkSpec;
269
269
  arc: IArcMarkSpec;
270
- arc3d: IArc3dMarkSpec;
271
270
  polygon: IPolygonMarkSpec;
272
- pyramid3d: IPyramid3dMarkSpec;
273
271
  boxPlot: IBoxPlotMarkSpec;
274
272
  linkPath: ILinkPathMarkSpec;
275
273
  ripple: IRippleMarkSpec;
@@ -6,7 +6,7 @@ export interface ITooltipPositionFixedValue {
6
6
  offset?: number;
7
7
  }
8
8
  export type TooltipPositionPatternItem = TooltipPositionValue | ITooltipPositionFixedValue;
9
- export type TooltipFixedPosition = 'top' | 'bottom' | 'left' | 'right' | 'tl' | 'lt' | 'tr' | 'rt' | 'bl' | 'lb' | 'br' | 'rb' | 'center' | 'centerTop' | 'centerBottom' | 'centerLeft' | 'centerRight' | 'inside';
9
+ export type TooltipFixedPosition = 'top' | 'bottom' | 'left' | 'right' | 'tl' | 'lt' | 'tr' | 'rt' | 'bl' | 'lb' | 'br' | 'rb' | 'center' | 'centerTop' | 'centerBottom' | 'centerLeft' | 'centerRight' | 'inside' | 'insideTop' | 'insideBottom' | 'insideLeft' | 'insideRight' | 'insideTopLeft' | 'insideTopRight' | 'insideBottomLeft' | 'insideBottomRight';
10
10
  export type TooltipPositionMode = 'pointer' | 'mark' | 'crosshair';
11
11
  export interface IGlobalTooltipPositionPattern {
12
12
  left?: TooltipPositionValue;
@@ -57,7 +57,7 @@ export interface ICommonSpec {
57
57
  x?: number;
58
58
  y?: number;
59
59
  z?: number;
60
- stroke?: string | IGradient | false | (number | boolean)[] | IColorKey;
60
+ stroke?: string | IGradient | false | (number | boolean)[] | IColorKey | null;
61
61
  strokeOpacity?: number;
62
62
  opacity?: number;
63
63
  lineWidth?: number;
@@ -157,9 +157,6 @@ export interface IRectMarkSpec extends IFillMarkSpec {
157
157
  x1?: number;
158
158
  y1?: number;
159
159
  }
160
- export interface IRect3dMarkSpec extends IRectMarkSpec {
161
- length?: number;
162
- }
163
160
  export interface IBoxPlotMarkSpec extends ICommonSpec {
164
161
  lineWidth?: number;
165
162
  boxWidth?: number;
@@ -220,9 +217,6 @@ export interface IArcMarkSpec extends IFillMarkSpec {
220
217
  cap?: boolean | [boolean, boolean];
221
218
  autoCapConical?: boolean;
222
219
  }
223
- export interface IArc3dMarkSpec extends IArcMarkSpec {
224
- height?: number;
225
- }
226
220
  export interface ICellMarkSpec extends ISymbolMarkSpec {
227
221
  padding?: number | number[] | IPadding;
228
222
  }
@@ -238,9 +232,6 @@ export interface IPolygonMarkSpec extends ICommonSpec, IFillMarkSpec {
238
232
  scaleX?: number;
239
233
  scaleY?: number;
240
234
  }
241
- export interface IPyramid3dMarkSpec extends IPolygonMarkSpec {
242
- points?: IPoint[];
243
- }
244
235
  export type RepeatType = 'no-repeat' | 'repeat-x' | 'repeat-y' | 'repeat';
245
236
  export type RepeatXYType = 'no-repeat' | 'repeat' | 'stretch';
246
237
  export type ImageOriginType = 'top' | 'bottom';
@@ -296,7 +287,7 @@ export interface IImageMarkSpec extends IFillMarkSpec {
296
287
  height?: number;
297
288
  repeatX?: IRepeatType;
298
289
  repeatY?: IRepeatType;
299
- image: string | HTMLImageElement | HTMLCanvasElement;
290
+ image?: string | HTMLImageElement | HTMLCanvasElement;
300
291
  }
301
292
  export type TextAlign = TextAlignType;
302
293
  export type TextBaseLine = TextBaselineType;
@@ -1,5 +1,5 @@
1
1
  import type { IGraphic } from '@visactor/vrender-core';
2
2
  import type { IMarkGraphic } from '../mark/interface/common';
3
3
  export declare const isCollectionMark: (type: string) => boolean;
4
- export declare const getDatumOfGraphic: (g: IMarkGraphic) => import("../typings").Datum;
4
+ export declare const getDatumOfGraphic: (g: IMarkGraphic) => import("..").Datum;
5
5
  export declare const findMarkGraphic: (rootGroup: IGraphic, target: IGraphic) => IGraphic<Partial<import("@visactor/vrender-core").IGraphicAttribute>>;
@@ -0,0 +1,5 @@
1
+ import type { IRegion } from '../region/interface';
2
+ export declare const getCombinedSizeOfRegions: (regions: IRegion[]) => {
3
+ width: number;
4
+ height: number;
5
+ };
@@ -17,5 +17,6 @@ export declare function createScaleWithSpec(spec: IVisual<any>, context: {
17
17
  seriesId: number;
18
18
  }): IBaseScale | null;
19
19
  export declare function valueInScaleRange(v: number, s?: IBaseScale, useWholeRange?: boolean): number;
20
+ export declare function isValueInScaleDomain(v: number | number[], s?: IBaseScale, useWholeRange?: boolean): boolean;
20
21
  export declare function isSpecValueWithScale(specValue: any): boolean;
21
22
  export {};
@@ -1,2 +1,2 @@
1
1
  import type { ITheme } from '../../theme';
2
- export declare function getThemeObject(theme?: string | ITheme, transformed?: boolean): ITheme;
2
+ export declare function getThemeObject(theme?: string | ITheme): ITheme;
@@ -1,6 +1,6 @@
1
1
  import type { Maybe } from '@visactor/vutils';
2
- import type { IGlobalMarkThemeByName, IGlobalMarkThemeByType, ITheme } from '../../theme';
2
+ import type { ITheme } from '../../theme';
3
3
  import type { IThemeColorScheme } from '../../theme/color-scheme/interface';
4
4
  export declare function mergeTheme(target: Maybe<ITheme>, ...sources: Maybe<ITheme>[]): Maybe<ITheme>;
5
5
  export declare function transformColorSchemeToMerge(colorScheme?: Maybe<IThemeColorScheme>): Maybe<IThemeColorScheme>;
6
- export declare function transformSeriesThemeToMerge(seriesTheme: any, seriesType: string, markByType: IGlobalMarkThemeByType, markByName: IGlobalMarkThemeByName): any;
6
+ export declare function transformSeriesThemeToMerge(seriesTheme: any, seriesType: string, getTheme: (...keys: string[]) => any): any;
@@ -1,4 +1,3 @@
1
1
  import type { IThemeColorScheme } from '../../theme/color-scheme/interface';
2
- import type { ISeriesSpec } from '../../typings';
3
2
  import type { TokenMap } from '../../theme/token';
4
- export declare function preprocessTheme(obj: any, colorScheme?: IThemeColorScheme, tokenMap?: TokenMap, seriesSpec?: ISeriesSpec): any;
3
+ export declare function preprocessTheme(obj: any, colorScheme?: IThemeColorScheme, tokenMap?: TokenMap): any;
@@ -0,0 +1 @@
1
+ export { randomOpacity, columnLeftToRight, columnRightToLeft, rowTopToBottom, rowBottomToTop, diagonalCenterToEdge, diagonalTopLeftToBottomRight, rotationScan, rippleEffect, snakeWave, alternatingWave, spiralEffect, columnEdgeToCenter, columnCenterToEdge, rowEdgeToCenter, rowCenterToEdge, cornerToCenter, centerToCorner, pulseWave, particleEffect } from '@visactor/vrender-kits';
@@ -1,13 +0,0 @@
1
- import { ElementHighlight } from './element-highlight';
2
- import type { BaseEventParams } from '../../event/interface';
3
- export declare class ElementHighlightByGraphicName extends ElementHighlight {
4
- static type: string;
5
- type: string;
6
- protected _filterByName(e: BaseEventParams): boolean;
7
- protected _parseTargetKey(e: BaseEventParams): string;
8
- start(itemKey: any): void;
9
- reset(): void;
10
- handleStart: (e: BaseEventParams) => void;
11
- handleReset: (e: BaseEventParams) => void;
12
- }
13
- export declare const registerElementHighlightByGraphicName: () => void;
@@ -1,8 +0,0 @@
1
- import type { IMarkGraphic } from '../../mark/interface/common';
2
- import { ElementSelect } from './element-select';
3
- export declare class ElementSelectByGraphicName extends ElementSelect {
4
- static type: string;
5
- type: string;
6
- start(markGraphic: IMarkGraphic): void;
7
- }
8
- export declare const registerElementSelectByGraphicName: () => void;