@visactor/vchart-types 0.10.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.
- package/.eslintrc.js +7 -0
- package/.rush/temp/shrinkwrap-deps.json +4 -0
- package/README.md +30 -0
- package/package.json +29 -0
- package/tsconfig.eslint.json +9 -0
- package/tsconfig.json +3 -0
- package/tsconfig.test.json +5 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/types/animation/animate-manager.d.ts +12 -0
- package/types/animation/config.d.ts +60 -0
- package/types/animation/interface.d.ts +29 -0
- package/types/animation/spec.d.ts +24 -0
- package/types/animation/utils.d.ts +18 -0
- package/types/chart/area/area-transformer.d.ts +6 -0
- package/types/chart/area/area.d.ts +14 -0
- package/types/chart/area/index.d.ts +3 -0
- package/types/chart/area/interface.d.ts +7 -0
- package/types/chart/bar/3d/bar-3d-transformer.d.ts +6 -0
- package/types/chart/bar/3d/bar-3d.d.ts +14 -0
- package/types/chart/bar/3d/index.d.ts +2 -0
- package/types/chart/bar/bar-3d.d.ts +9 -0
- package/types/chart/bar/bar-transformer.d.ts +6 -0
- package/types/chart/bar/bar.d.ts +14 -0
- package/types/chart/bar/index.d.ts +4 -0
- package/types/chart/bar/interface.d.ts +11 -0
- package/types/chart/base/base-chart-transformer.d.ts +22 -0
- package/types/chart/base/base-chart.d.ts +149 -0
- package/types/chart/base/index.d.ts +2 -0
- package/types/chart/base/util.d.ts +7 -0
- package/types/chart/base-chart.d.ts +148 -0
- package/types/chart/box-plot/box-plot-transformer.d.ts +6 -0
- package/types/chart/box-plot/box-plot.d.ts +13 -0
- package/types/chart/box-plot/index.d.ts +3 -0
- package/types/chart/box-plot/interface.d.ts +7 -0
- package/types/chart/cartesian/cartesian-transformer.d.ts +8 -0
- package/types/chart/cartesian/cartesian.d.ts +8 -0
- package/types/chart/cartesian/index.d.ts +2 -0
- package/types/chart/cartesian/interface.d.ts +15 -0
- package/types/chart/chart-meta/data.d.ts +15 -0
- package/types/chart/circle-packing/circle-packing-transformer.d.ts +7 -0
- package/types/chart/circle-packing/circle-packing.d.ts +13 -0
- package/types/chart/circle-packing/index.d.ts +3 -0
- package/types/chart/circle-packing/interface.d.ts +6 -0
- package/types/chart/common/common-transformer.d.ts +7 -0
- package/types/chart/common/common.d.ts +13 -0
- package/types/chart/common/index.d.ts +3 -0
- package/types/chart/common/interface.d.ts +41 -0
- package/types/chart/correlation/correlation-transformer.d.ts +6 -0
- package/types/chart/correlation/correlation.d.ts +13 -0
- package/types/chart/correlation/index.d.ts +3 -0
- package/types/chart/correlation/interface.d.ts +6 -0
- package/types/chart/funnel/3d/funnel-3d.d.ts +14 -0
- package/types/chart/funnel/3d/index.d.ts +1 -0
- package/types/chart/funnel/base.d.ts +9 -0
- package/types/chart/funnel/funnel-3d.d.ts +8 -0
- package/types/chart/funnel/funnel-transformer.d.ts +8 -0
- package/types/chart/funnel/funnel.d.ts +13 -0
- package/types/chart/funnel/index.d.ts +4 -0
- package/types/chart/funnel/interface.d.ts +9 -0
- package/types/chart/gauge/gauge-transformer.d.ts +9 -0
- package/types/chart/gauge/gauge.d.ts +14 -0
- package/types/chart/gauge/index.d.ts +3 -0
- package/types/chart/gauge/interface.d.ts +10 -0
- package/types/chart/heatmap/heatmap-transformer.d.ts +5 -0
- package/types/chart/heatmap/heatmap.d.ts +13 -0
- package/types/chart/heatmap/index.d.ts +3 -0
- package/types/chart/heatmap/interface.d.ts +7 -0
- package/types/chart/histogram/3d/histogram-3d.d.ts +14 -0
- package/types/chart/histogram/3d/index.d.ts +1 -0
- package/types/chart/histogram/base/base.d.ts +8 -0
- package/types/chart/histogram/base/histogram-base-transformer.d.ts +6 -0
- package/types/chart/histogram/base/index.d.ts +2 -0
- package/types/chart/histogram/base.d.ts +6 -0
- package/types/chart/histogram/histogram-3d.d.ts +8 -0
- package/types/chart/histogram/histogram-transformer.d.ts +5 -0
- package/types/chart/histogram/histogram.d.ts +13 -0
- package/types/chart/histogram/index.d.ts +4 -0
- package/types/chart/histogram/interface.d.ts +9 -0
- package/types/chart/index.d.ts +60 -0
- package/types/chart/interface/chart.d.ts +105 -0
- package/types/chart/interface/common.d.ts +47 -0
- package/types/chart/interface/index.d.ts +3 -0
- package/types/chart/interface/type.d.ts +36 -0
- package/types/chart/line/index.d.ts +3 -0
- package/types/chart/line/interface.d.ts +7 -0
- package/types/chart/line/line-transformer.d.ts +6 -0
- package/types/chart/line/line.d.ts +14 -0
- package/types/chart/liquid/index.d.ts +2 -0
- package/types/chart/liquid/interface.d.ts +7 -0
- package/types/chart/liquid/liquid-transformer.d.ts +6 -0
- package/types/chart/liquid/liquid.d.ts +13 -0
- package/types/chart/map/index.d.ts +3 -0
- package/types/chart/map/interface.d.ts +6 -0
- package/types/chart/map/map-transformer.d.ts +8 -0
- package/types/chart/map/map.d.ts +13 -0
- package/types/chart/pie/3d/index.d.ts +1 -0
- package/types/chart/pie/3d/pie-3d.d.ts +17 -0
- package/types/chart/pie/base/base.d.ts +8 -0
- package/types/chart/pie/base/index.d.ts +2 -0
- package/types/chart/pie/base/pie-transformer.d.ts +7 -0
- package/types/chart/pie/base.d.ts +5 -0
- package/types/chart/pie/index.d.ts +4 -0
- package/types/chart/pie/interface.d.ts +11 -0
- package/types/chart/pie/pie-3d.d.ts +9 -0
- package/types/chart/pie/pie.d.ts +13 -0
- package/types/chart/polar/index.d.ts +4 -0
- package/types/chart/polar/interface.d.ts +7 -0
- package/types/chart/polar/polar-transformer.d.ts +9 -0
- package/types/chart/polar/polar.d.ts +9 -0
- package/types/chart/polar/progress-like/index.d.ts +1 -0
- package/types/chart/polar/progress-like/progress-like-transformer.d.ts +8 -0
- package/types/chart/polar/progress-like.d.ts +7 -0
- package/types/chart/polar/rose-like/index.d.ts +1 -0
- package/types/chart/polar/rose-like/rose-like-transformer.d.ts +7 -0
- package/types/chart/polar/rose-like.d.ts +7 -0
- package/types/chart/progress/circular/circular-progress-transformer.d.ts +7 -0
- package/types/chart/progress/circular/circular.d.ts +15 -0
- package/types/chart/progress/circular/index.d.ts +3 -0
- package/types/chart/progress/circular/interface.d.ts +7 -0
- package/types/chart/progress/interface.d.ts +8 -0
- package/types/chart/progress/linear/index.d.ts +3 -0
- package/types/chart/progress/linear/interface.d.ts +9 -0
- package/types/chart/progress/linear/linear-progress-transformer.d.ts +7 -0
- package/types/chart/progress/linear/linear.d.ts +14 -0
- package/types/chart/radar/index.d.ts +3 -0
- package/types/chart/radar/interface.d.ts +7 -0
- package/types/chart/radar/radar-transformer.d.ts +6 -0
- package/types/chart/radar/radar.d.ts +14 -0
- package/types/chart/range-area/index.d.ts +3 -0
- package/types/chart/range-area/interface.d.ts +7 -0
- package/types/chart/range-area/range-area-transformer.d.ts +6 -0
- package/types/chart/range-area/range-area.d.ts +13 -0
- package/types/chart/range-column/3d/index.d.ts +2 -0
- package/types/chart/range-column/3d/range-column-3d-transformer.d.ts +5 -0
- package/types/chart/range-column/3d/range-column-3d.d.ts +13 -0
- package/types/chart/range-column/index.d.ts +4 -0
- package/types/chart/range-column/interface.d.ts +11 -0
- package/types/chart/range-column/range-column-3d.d.ts +9 -0
- package/types/chart/range-column/range-column-transformer.d.ts +6 -0
- package/types/chart/range-column/range-column.d.ts +13 -0
- package/types/chart/rose/index.d.ts +3 -0
- package/types/chart/rose/interface.d.ts +7 -0
- package/types/chart/rose/rose-transformer.d.ts +6 -0
- package/types/chart/rose/rose.d.ts +14 -0
- package/types/chart/sankey/index.d.ts +3 -0
- package/types/chart/sankey/interface.d.ts +6 -0
- package/types/chart/sankey/sankey-transformer.d.ts +6 -0
- package/types/chart/sankey/sankey.d.ts +13 -0
- package/types/chart/scatter/index.d.ts +3 -0
- package/types/chart/scatter/interface.d.ts +7 -0
- package/types/chart/scatter/scatter-transformer.d.ts +5 -0
- package/types/chart/scatter/scatter.d.ts +14 -0
- package/types/chart/sequence/index.d.ts +3 -0
- package/types/chart/sequence/interface.d.ts +24 -0
- package/types/chart/sequence/sequence-transformer.d.ts +7 -0
- package/types/chart/sequence/sequence.d.ts +14 -0
- package/types/chart/stack.d.ts +11 -0
- package/types/chart/sunburst/index.d.ts +3 -0
- package/types/chart/sunburst/interface.d.ts +6 -0
- package/types/chart/sunburst/sunburst-transformer.d.ts +7 -0
- package/types/chart/sunburst/sunburst.d.ts +13 -0
- package/types/chart/treemap/index.d.ts +3 -0
- package/types/chart/treemap/interface.d.ts +6 -0
- package/types/chart/treemap/treemap-transformer.d.ts +7 -0
- package/types/chart/treemap/treemap.d.ts +14 -0
- package/types/chart/util.d.ts +23 -0
- package/types/chart/waterfall/index.d.ts +3 -0
- package/types/chart/waterfall/interface.d.ts +7 -0
- package/types/chart/waterfall/waterfall-transformer.d.ts +7 -0
- package/types/chart/waterfall/waterfall.d.ts +14 -0
- package/types/chart/word-cloud/3d/index.d.ts +2 -0
- package/types/chart/word-cloud/3d/word-cloud-3d-transformer.d.ts +6 -0
- package/types/chart/word-cloud/3d/word-cloud-3d.d.ts +15 -0
- package/types/chart/word-cloud/base/base.d.ts +9 -0
- package/types/chart/word-cloud/base/index.d.ts +2 -0
- package/types/chart/word-cloud/base/word-cloud-base-transformer.d.ts +5 -0
- package/types/chart/word-cloud/base.d.ts +6 -0
- package/types/chart/word-cloud/index.d.ts +4 -0
- package/types/chart/word-cloud/interface.d.ts +10 -0
- package/types/chart/word-cloud/word-cloud-3d.d.ts +11 -0
- package/types/chart/word-cloud/word-cloud-transformer.d.ts +5 -0
- package/types/chart/word-cloud/word-cloud.d.ts +14 -0
- package/types/compile/compilable-base.d.ts +11 -0
- package/types/compile/compiler.d.ts +71 -0
- package/types/compile/data/compilable-data.d.ts +23 -0
- package/types/compile/data/index.d.ts +2 -0
- package/types/compile/data/interface.d.ts +8 -0
- package/types/compile/grammar-item.d.ts +24 -0
- package/types/compile/interface/compilable-item.d.ts +36 -0
- package/types/compile/interface/compiler.d.ts +57 -0
- package/types/compile/interface/index.d.ts +2 -0
- package/types/compile/mark/compilable-mark.d.ts +116 -0
- package/types/compile/mark/index.d.ts +3 -0
- package/types/compile/mark/interface.d.ts +147 -0
- package/types/compile/mark/mark-data.d.ts +9 -0
- package/types/compile/mark/mark-state-manager.d.ts +26 -0
- package/types/compile/mark/util.d.ts +5 -0
- package/types/compile/signal/compilable-signal.d.ts +21 -0
- package/types/compile/signal/index.d.ts +4 -0
- package/types/compile/signal/interface.d.ts +12 -0
- package/types/compile/signal/signal-manager.d.ts +11 -0
- package/types/compile/signal/state-manager.d.ts +12 -0
- package/types/compile/util.d.ts +2 -0
- package/types/component/axis/base-axis.d.ts +151 -0
- package/types/component/axis/cartesian/axis.d.ts +113 -0
- package/types/component/axis/cartesian/band-axis.d.ts +35 -0
- package/types/component/axis/cartesian/config.d.ts +3 -0
- package/types/component/axis/cartesian/index.d.ts +7 -0
- package/types/component/axis/cartesian/interface/common.d.ts +48 -0
- package/types/component/axis/cartesian/interface/index.d.ts +3 -0
- package/types/component/axis/cartesian/interface/spec.d.ts +62 -0
- package/types/component/axis/cartesian/interface/theme.d.ts +22 -0
- package/types/component/axis/cartesian/linear-axis.d.ts +29 -0
- package/types/component/axis/cartesian/log-axis.d.ts +18 -0
- package/types/component/axis/cartesian/symlog-axis.d.ts +18 -0
- package/types/component/axis/cartesian/time-axis.d.ts +23 -0
- package/types/component/axis/cartesian/util/common.d.ts +15 -0
- package/types/component/axis/cartesian/util/index.d.ts +2 -0
- package/types/component/axis/cartesian/util/time.d.ts +80 -0
- package/types/component/axis/index.d.ts +3 -0
- package/types/component/axis/interface/common.d.ts +49 -0
- package/types/component/axis/interface/index.d.ts +3 -0
- package/types/component/axis/interface/spec.d.ts +92 -0
- package/types/component/axis/interface/theme.d.ts +15 -0
- package/types/component/axis/interface.d.ts +137 -0
- package/types/component/axis/mixin/band-axis-mixin.d.ts +59 -0
- package/types/component/axis/mixin/linear-axis-mixin.d.ts +64 -0
- package/types/component/axis/polar/axis.d.ts +89 -0
- package/types/component/axis/polar/band-axis.d.ts +35 -0
- package/types/component/axis/polar/config.d.ts +3 -0
- package/types/component/axis/polar/index.d.ts +4 -0
- package/types/component/axis/polar/interface/common.d.ts +31 -0
- package/types/component/axis/polar/interface/index.d.ts +4 -0
- package/types/component/axis/polar/interface/spec.d.ts +21 -0
- package/types/component/axis/polar/interface/theme.d.ts +11 -0
- package/types/component/axis/polar/linear-axis.d.ts +24 -0
- package/types/component/axis/polar/util/common.d.ts +9 -0
- package/types/component/axis/polar/util/index.d.ts +1 -0
- package/types/component/axis/util.d.ts +35 -0
- package/types/component/base/base-component-transformer.d.ts +10 -0
- package/types/component/base/base-component.d.ts +47 -0
- package/types/component/base/index.d.ts +2 -0
- package/types/component/base/interface.d.ts +8 -0
- package/types/component/base/util.d.ts +3 -0
- package/types/component/brush/brush.d.ts +85 -0
- package/types/component/brush/index.d.ts +2 -0
- package/types/component/brush/interface.d.ts +51 -0
- package/types/component/common/trigger/config.d.ts +22 -0
- package/types/component/common/trigger/desktop.d.ts +10 -0
- package/types/component/common/trigger/interface.d.ts +8 -0
- package/types/component/common/trigger/mobile.d.ts +11 -0
- package/types/component/crosshair/base.d.ts +84 -0
- package/types/component/crosshair/cartesian.d.ts +52 -0
- package/types/component/crosshair/config.d.ts +17 -0
- package/types/component/crosshair/index.d.ts +3 -0
- package/types/component/crosshair/interface/index.d.ts +2 -0
- package/types/component/crosshair/interface/spec.d.ts +76 -0
- package/types/component/crosshair/interface/theme.d.ts +9 -0
- package/types/component/crosshair/polar.d.ts +39 -0
- package/types/component/crosshair/util.d.ts +9 -0
- package/types/component/custom-mark/custom-mark.d.ts +35 -0
- package/types/component/custom-mark/index.d.ts +1 -0
- package/types/component/data-zoom/constant.d.ts +4 -0
- package/types/component/data-zoom/data-filter-base-component.d.ts +129 -0
- package/types/component/data-zoom/data-zoom/data-zoom-transformer.d.ts +9 -0
- package/types/component/data-zoom/data-zoom/data-zoom.d.ts +78 -0
- package/types/component/data-zoom/data-zoom/index.d.ts +3 -0
- package/types/component/data-zoom/data-zoom/interface.d.ts +67 -0
- package/types/component/data-zoom/index.d.ts +2 -0
- package/types/component/data-zoom/interface.d.ts +59 -0
- package/types/component/data-zoom/scroll-bar/index.d.ts +2 -0
- package/types/component/data-zoom/scroll-bar/interface.d.ts +27 -0
- package/types/component/data-zoom/scroll-bar/scroll-bar.d.ts +36 -0
- package/types/component/data-zoom/util.d.ts +23 -0
- package/types/component/geo/geo-coordinate.d.ts +61 -0
- package/types/component/geo/index.d.ts +2 -0
- package/types/component/geo/interface.d.ts +27 -0
- package/types/component/geo/projection.d.ts +17 -0
- package/types/component/index.d.ts +47 -0
- package/types/component/indicator/index.d.ts +2 -0
- package/types/component/indicator/indicator.d.ts +43 -0
- package/types/component/indicator/interface.d.ts +37 -0
- package/types/component/indicator/util.d.ts +13 -0
- package/types/component/interface/common.d.ts +39 -0
- package/types/component/interface/index.d.ts +4 -0
- package/types/component/interface/theme.d.ts +44 -0
- package/types/component/interface/tooltip-helper.d.ts +5 -0
- package/types/component/interface/type.d.ts +35 -0
- package/types/component/label/base-label.d.ts +35 -0
- package/types/component/label/index.d.ts +4 -0
- package/types/component/label/interface.d.ts +44 -0
- package/types/component/label/label-transformer.d.ts +8 -0
- package/types/component/label/label.d.ts +55 -0
- package/types/component/label/total-label.d.ts +28 -0
- package/types/component/label/totalLabel.d.ts +27 -0
- package/types/component/label/util.d.ts +65 -0
- package/types/component/legend/base-legend.d.ts +62 -0
- package/types/component/legend/continuous/index.d.ts +2 -0
- package/types/component/legend/continuous/interface.d.ts +59 -0
- package/types/component/legend/continuous/legend.d.ts +28 -0
- package/types/component/legend/continuous/util.d.ts +8 -0
- package/types/component/legend/discrete/index.d.ts +2 -0
- package/types/component/legend/discrete/interface.d.ts +61 -0
- package/types/component/legend/discrete/legend.d.ts +27 -0
- package/types/component/legend/discrete/util.d.ts +3 -0
- package/types/component/legend/index.d.ts +3 -0
- package/types/component/legend/interface.d.ts +40 -0
- package/types/component/legend/util.d.ts +32 -0
- package/types/component/map-label/component.d.ts +55 -0
- package/types/component/map-label/index.d.ts +2 -0
- package/types/component/map-label/interface.d.ts +40 -0
- package/types/component/map-label/layout.d.ts +23 -0
- package/types/component/marker/base-marker.d.ts +72 -0
- package/types/component/marker/interface.d.ts +86 -0
- package/types/component/marker/mark-area/index.d.ts +2 -0
- package/types/component/marker/mark-area/interface/index.d.ts +2 -0
- package/types/component/marker/mark-area/interface/spec.d.ts +24 -0
- package/types/component/marker/mark-area/interface/theme.d.ts +11 -0
- package/types/component/marker/mark-area/mark-area.d.ts +21 -0
- package/types/component/marker/mark-line/index.d.ts +2 -0
- package/types/component/marker/mark-line/interface/index.d.ts +2 -0
- package/types/component/marker/mark-line/interface/spec.d.ts +63 -0
- package/types/component/marker/mark-line/interface/theme.d.ts +13 -0
- package/types/component/marker/mark-line/mark-line.d.ts +22 -0
- package/types/component/marker/mark-line/util.d.ts +9 -0
- package/types/component/marker/mark-point/index.d.ts +2 -0
- package/types/component/marker/mark-point/interface/index.d.ts +2 -0
- package/types/component/marker/mark-point/interface/spec.d.ts +17 -0
- package/types/component/marker/mark-point/interface/theme.d.ts +38 -0
- package/types/component/marker/mark-point/mark-point.d.ts +21 -0
- package/types/component/marker/utils.d.ts +17 -0
- package/types/component/player/index.d.ts +2 -0
- package/types/component/player/interface/index.d.ts +2 -0
- package/types/component/player/interface/spec.d.ts +18 -0
- package/types/component/player/interface/theme.d.ts +32 -0
- package/types/component/player/player.d.ts +53 -0
- package/types/component/player/utils/index.d.ts +1 -0
- package/types/component/player/utils/orient.d.ts +3 -0
- package/types/component/player/utils/transform.d.ts +4 -0
- package/types/component/poptip/index.d.ts +1 -0
- package/types/component/poptip/interface.d.ts +15 -0
- package/types/component/title/index.d.ts +2 -0
- package/types/component/title/interface/index.d.ts +2 -0
- package/types/component/title/interface/spec.d.ts +47 -0
- package/types/component/title/interface/theme.d.ts +19 -0
- package/types/component/title/title.d.ts +49 -0
- package/types/component/title/utils.d.ts +2 -0
- package/types/component/tooltip/handler/base.d.ts +64 -0
- package/types/component/tooltip/handler/canvas/canvas-tooltip-handler.d.ts +19 -0
- package/types/component/tooltip/handler/canvas/index.d.ts +1 -0
- package/types/component/tooltip/handler/constants.d.ts +17 -0
- package/types/component/tooltip/handler/dom/dom-tooltip-handler.d.ts +25 -0
- package/types/component/tooltip/handler/dom/index.d.ts +1 -0
- package/types/component/tooltip/handler/dom/interface.d.ts +57 -0
- package/types/component/tooltip/handler/dom/model/base-tooltip-model.d.ts +25 -0
- package/types/component/tooltip/handler/dom/model/content-column-model.d.ts +23 -0
- package/types/component/tooltip/handler/dom/model/content-model.d.ts +15 -0
- package/types/component/tooltip/handler/dom/model/interface.d.ts +9 -0
- package/types/component/tooltip/handler/dom/model/shape-model.d.ts +23 -0
- package/types/component/tooltip/handler/dom/model/style-constants.d.ts +8 -0
- package/types/component/tooltip/handler/dom/model/text-model.d.ts +5 -0
- package/types/component/tooltip/handler/dom/model/title-model.d.ts +15 -0
- package/types/component/tooltip/handler/dom/model/tooltip-model.d.ts +21 -0
- package/types/component/tooltip/handler/dom/util.d.ts +6 -0
- package/types/component/tooltip/handler/index.d.ts +2 -0
- package/types/component/tooltip/handler/interface/index.d.ts +1 -0
- package/types/component/tooltip/handler/interface/style.d.ts +8 -0
- package/types/component/tooltip/handler/utils/attribute.d.ts +9 -0
- package/types/component/tooltip/handler/utils/common.d.ts +19 -0
- package/types/component/tooltip/handler/utils/compose.d.ts +5 -0
- package/types/component/tooltip/handler/utils/get-spec.d.ts +5 -0
- package/types/component/tooltip/handler/utils/index.d.ts +6 -0
- package/types/component/tooltip/handler/utils/pattern.d.ts +4 -0
- package/types/component/tooltip/handler/utils/position.d.ts +7 -0
- package/types/component/tooltip/index.d.ts +3 -0
- package/types/component/tooltip/interface/common.d.ts +24 -0
- package/types/component/tooltip/interface/event.d.ts +8 -0
- package/types/component/tooltip/interface/index.d.ts +3 -0
- package/types/component/tooltip/interface/spec.d.ts +29 -0
- package/types/component/tooltip/interface/theme.d.ts +49 -0
- package/types/component/tooltip/processor/base.d.ts +18 -0
- package/types/component/tooltip/processor/dimension-tooltip.d.ts +10 -0
- package/types/component/tooltip/processor/index.d.ts +5 -0
- package/types/component/tooltip/processor/interface.d.ts +16 -0
- package/types/component/tooltip/processor/mark-tooltip.d.ts +10 -0
- package/types/component/tooltip/processor/util.d.ts +4 -0
- package/types/component/tooltip/tooltip-transformer.d.ts +8 -0
- package/types/component/tooltip/tooltip.d.ts +68 -0
- package/types/component/tooltip/utils/common.d.ts +5 -0
- package/types/component/tooltip/utils/index.d.ts +2 -0
- package/types/component/tooltip/utils/show-tooltip.d.ts +3 -0
- package/types/component/util.d.ts +2 -0
- package/types/constant/base.d.ts +3 -0
- package/types/constant/box-plot.d.ts +10 -0
- package/types/constant/correlation.d.ts +3 -0
- package/types/constant/event.d.ts +58 -0
- package/types/constant/funnel.d.ts +14 -0
- package/types/constant/hierarchy.d.ts +3 -0
- package/types/constant/index.d.ts +111 -0
- package/types/constant/label.d.ts +6 -0
- package/types/constant/layout.d.ts +3 -0
- package/types/constant/marker.d.ts +4 -0
- package/types/constant/polar.d.ts +13 -0
- package/types/constant/scatter.d.ts +7 -0
- package/types/constant/scroll-bar.d.ts +1 -0
- package/types/constant/sunburst.d.ts +1 -0
- package/types/constant/waterfall.d.ts +1 -0
- package/types/constant/word-cloud.d.ts +7 -0
- package/types/core/expression-function.d.ts +12 -0
- package/types/core/factory.d.ts +65 -0
- package/types/core/index.d.ts +15 -0
- package/types/core/instance-manager.d.ts +10 -0
- package/types/core/interface.d.ts +106 -0
- package/types/core/util.d.ts +3 -0
- package/types/core/vchart.d.ts +185 -0
- package/types/data/initialize.d.ts +21 -0
- package/types/data/parser/array.d.ts +2 -0
- package/types/data/parser/scale.d.ts +2 -0
- package/types/data/register.d.ts +3 -0
- package/types/data/transforms/add-property.d.ts +12 -0
- package/types/data/transforms/aggregation.d.ts +34 -0
- package/types/data/transforms/box-plot.d.ts +5 -0
- package/types/data/transforms/circle-packing.d.ts +7 -0
- package/types/data/transforms/copy-data-view.d.ts +5 -0
- package/types/data/transforms/correlation-center.d.ts +4 -0
- package/types/data/transforms/correlation.d.ts +17 -0
- package/types/data/transforms/data-key.d.ts +20 -0
- package/types/data/transforms/dimension-data.d.ts +10 -0
- package/types/data/transforms/dimension-statistics.d.ts +24 -0
- package/types/data/transforms/drill.d.ts +14 -0
- package/types/data/transforms/flatten.d.ts +9 -0
- package/types/data/transforms/funnel.d.ts +51 -0
- package/types/data/transforms/hierarchy-dimension-statistics.d.ts +3 -0
- package/types/data/transforms/invalid-travel.d.ts +8 -0
- package/types/data/transforms/legend-data/continuous/continuous.d.ts +4 -0
- package/types/data/transforms/legend-data/continuous/index.d.ts +2 -0
- package/types/data/transforms/legend-data/continuous/interface.d.ts +13 -0
- package/types/data/transforms/legend-data/discrete/discrete.d.ts +4 -0
- package/types/data/transforms/legend-data/discrete/index.d.ts +2 -0
- package/types/data/transforms/legend-data/discrete/interface.d.ts +15 -0
- package/types/data/transforms/link-dot-info.d.ts +13 -0
- package/types/data/transforms/lookup.d.ts +12 -0
- package/types/data/transforms/map.d.ts +7 -0
- package/types/data/transforms/marker-filter.d.ts +5 -0
- package/types/data/transforms/obj-flat.d.ts +2 -0
- package/types/data/transforms/pie.d.ts +17 -0
- package/types/data/transforms/regression.d.ts +6 -0
- package/types/data/transforms/sankey-links.d.ts +2 -0
- package/types/data/transforms/sankey-nodes.d.ts +2 -0
- package/types/data/transforms/sankey.d.ts +19 -0
- package/types/data/transforms/stack-split.d.ts +6 -0
- package/types/data/transforms/sunburst.d.ts +7 -0
- package/types/data/transforms/treemap.d.ts +11 -0
- package/types/data/transforms/waterfall.d.ts +25 -0
- package/types/env/env.d.ts +7 -0
- package/types/env/index.d.ts +1 -0
- package/types/event/bubble.d.ts +15 -0
- package/types/event/event-dispatcher.d.ts +27 -0
- package/types/event/event.d.ts +18 -0
- package/types/event/events/base.d.ts +16 -0
- package/types/event/events/dimension/base.d.ts +20 -0
- package/types/event/events/dimension/dimension-click.d.ts +7 -0
- package/types/event/events/dimension/dimension-hover.d.ts +9 -0
- package/types/event/events/dimension/index.d.ts +3 -0
- package/types/event/events/dimension/interface.d.ts +23 -0
- package/types/event/events/dimension/util/cartesian.d.ts +8 -0
- package/types/event/events/dimension/util/common.d.ts +8 -0
- package/types/event/events/dimension/util/index.d.ts +3 -0
- package/types/event/events/dimension/util/polar.d.ts +4 -0
- package/types/event/events/index.d.ts +6 -0
- package/types/event/index.d.ts +2 -0
- package/types/event/interface.d.ts +160 -0
- package/types/index-lark.d.ts +4 -0
- package/types/index-wx-simple.d.ts +4 -0
- package/types/index-wx.d.ts +4 -0
- package/types/index.d.ts +10 -0
- package/types/interaction/config.d.ts +22 -0
- package/types/interaction/dimension-trigger.d.ts +32 -0
- package/types/interaction/drill/drillable.d.ts +28 -0
- package/types/interaction/drill/index.d.ts +1 -0
- package/types/interaction/interaction.d.ts +22 -0
- package/types/interaction/interface.d.ts +72 -0
- package/types/interaction/trigger.d.ts +39 -0
- package/types/interaction/zoom/index.d.ts +1 -0
- package/types/interaction/zoom/zoomable.d.ts +84 -0
- package/types/layout/base-layout.d.ts +77 -0
- package/types/layout/grid-layout/grid-layout.d.ts +50 -0
- package/types/layout/index.d.ts +6 -0
- package/types/layout/interface.d.ts +115 -0
- package/types/layout/layout-item.d.ts +72 -0
- package/types/layout/layout3d/index.d.ts +22 -0
- package/types/layout/util.d.ts +6 -0
- package/types/mark/arc-3d.d.ts +11 -0
- package/types/mark/arc.d.ts +21 -0
- package/types/mark/area.d.ts +12 -0
- package/types/mark/base/base-line.d.ts +8 -0
- package/types/mark/base/base-mark.d.ts +38 -0
- package/types/mark/base/index.d.ts +2 -0
- package/types/mark/box-plot.d.ts +13 -0
- package/types/mark/cell.d.ts +11 -0
- package/types/mark/component.d.ts +15 -0
- package/types/mark/group.d.ts +32 -0
- package/types/mark/image.d.ts +11 -0
- package/types/mark/index.d.ts +22 -0
- package/types/mark/interface/common.d.ts +77 -0
- package/types/mark/interface/index.d.ts +2 -0
- package/types/mark/interface/type.d.ts +25 -0
- package/types/mark/label.d.ts +28 -0
- package/types/mark/line.d.ts +12 -0
- package/types/mark/link-path.d.ts +13 -0
- package/types/mark/liquid.d.ts +13 -0
- package/types/mark/mark-set/index.d.ts +22 -0
- package/types/mark/path.d.ts +11 -0
- package/types/mark/polygon/base-polygon.d.ts +6 -0
- package/types/mark/polygon/polygon.d.ts +11 -0
- package/types/mark/polygon/pyramid-3d.d.ts +10 -0
- package/types/mark/progress-arc.d.ts +14 -0
- package/types/mark/rect-3d.d.ts +11 -0
- package/types/mark/rect.d.ts +11 -0
- package/types/mark/ripple.d.ts +13 -0
- package/types/mark/rule.d.ts +11 -0
- package/types/mark/symbol.d.ts +13 -0
- package/types/mark/text.d.ts +13 -0
- package/types/mark/utils/common.d.ts +3 -0
- package/types/mark/utils/index.d.ts +1 -0
- package/types/model/base-model-transformer.d.ts +25 -0
- package/types/model/base-model.d.ts +81 -0
- package/types/model/index.d.ts +3 -0
- package/types/model/interface.d.ts +153 -0
- package/types/model/layout-item.d.ts +59 -0
- package/types/model/layout-model.d.ts +41 -0
- package/types/model/tooltip-helper.d.ts +25 -0
- package/types/plugin/base/base-plugin-service.d.ts +13 -0
- package/types/plugin/base/base-plugin.d.ts +9 -0
- package/types/plugin/base/interface.d.ts +22 -0
- package/types/plugin/chart/index.d.ts +2 -0
- package/types/plugin/chart/interface.d.ts +26 -0
- package/types/plugin/chart/media-query/index.d.ts +2 -0
- package/types/plugin/chart/media-query/interface/common.d.ts +24 -0
- package/types/plugin/chart/media-query/interface/index.d.ts +2 -0
- package/types/plugin/chart/media-query/interface/spec.d.ts +25 -0
- package/types/plugin/chart/media-query/media-query.d.ts +30 -0
- package/types/plugin/chart/media-query/util/action.d.ts +3 -0
- package/types/plugin/chart/media-query/util/filter.d.ts +5 -0
- package/types/plugin/chart/media-query/util/index.d.ts +2 -0
- package/types/plugin/chart/media-query/util/query.d.ts +3 -0
- package/types/plugin/chart/plugin-service.d.ts +12 -0
- package/types/plugin/chart/register.d.ts +2 -0
- package/types/plugin/components/axis-sync/axis-sync.d.ts +13 -0
- package/types/plugin/components/axis-sync/index.d.ts +1 -0
- package/types/plugin/components/axis-sync/tick-align-transform.d.ts +7 -0
- package/types/plugin/components/axis-sync/zero-align-transform.d.ts +15 -0
- package/types/plugin/components/axis-sync-plugin/axis-sync.d.ts +13 -0
- package/types/plugin/components/axis-sync-plugin/index.d.ts +1 -0
- package/types/plugin/components/axis-sync-plugin/tick-align-transform.d.ts +7 -0
- package/types/plugin/components/axis-sync-plugin/zero-align-transform.d.ts +15 -0
- package/types/plugin/components/basic-plugin.d.ts +9 -0
- package/types/plugin/components/index.d.ts +5 -0
- package/types/plugin/components/interface.d.ts +23 -0
- package/types/plugin/components/plugin-service.d.ts +7 -0
- package/types/plugin/components/register.d.ts +2 -0
- package/types/plugin/components/tooltip-handler/base.d.ts +66 -0
- package/types/plugin/components/tooltip-handler/canvas/canvas-tooltip-handler.d.ts +22 -0
- package/types/plugin/components/tooltip-handler/canvas/index.d.ts +1 -0
- package/types/plugin/components/tooltip-handler/constants.d.ts +17 -0
- package/types/plugin/components/tooltip-handler/dom/constant.d.ts +1 -0
- package/types/plugin/components/tooltip-handler/dom/dom-tooltip-handler.d.ts +28 -0
- package/types/plugin/components/tooltip-handler/dom/index.d.ts +1 -0
- package/types/plugin/components/tooltip-handler/dom/interface.d.ts +57 -0
- package/types/plugin/components/tooltip-handler/dom/model/base-tooltip-model.d.ts +25 -0
- package/types/plugin/components/tooltip-handler/dom/model/content-column-model.d.ts +23 -0
- package/types/plugin/components/tooltip-handler/dom/model/content-model.d.ts +16 -0
- package/types/plugin/components/tooltip-handler/dom/model/interface.d.ts +10 -0
- package/types/plugin/components/tooltip-handler/dom/model/shape-model.d.ts +23 -0
- package/types/plugin/components/tooltip-handler/dom/model/style-constants.d.ts +7 -0
- package/types/plugin/components/tooltip-handler/dom/model/text-model.d.ts +5 -0
- package/types/plugin/components/tooltip-handler/dom/model/title-model.d.ts +15 -0
- package/types/plugin/components/tooltip-handler/dom/model/tooltip-model.d.ts +21 -0
- package/types/plugin/components/tooltip-handler/dom/utils/common.d.ts +3 -0
- package/types/plugin/components/tooltip-handler/dom/utils/index.d.ts +2 -0
- package/types/plugin/components/tooltip-handler/dom/utils/style.d.ts +4 -0
- package/types/plugin/components/tooltip-handler/index.d.ts +2 -0
- package/types/plugin/components/tooltip-handler/interface/common.d.ts +4 -0
- package/types/plugin/components/tooltip-handler/interface/index.d.ts +2 -0
- package/types/plugin/components/tooltip-handler/interface/style.d.ts +13 -0
- package/types/plugin/components/tooltip-handler/utils/attribute.d.ts +8 -0
- package/types/plugin/components/tooltip-handler/utils/common.d.ts +20 -0
- package/types/plugin/components/tooltip-handler/utils/compose.d.ts +4 -0
- package/types/plugin/components/tooltip-handler/utils/get-spec.d.ts +5 -0
- package/types/plugin/components/tooltip-handler/utils/index.d.ts +6 -0
- package/types/plugin/components/tooltip-handler/utils/pattern.d.ts +4 -0
- package/types/plugin/components/tooltip-handler/utils/position.d.ts +7 -0
- package/types/plugin/index.d.ts +1 -0
- package/types/plugin/interface.d.ts +4 -0
- package/types/plugin/series/interface.d.ts +9 -0
- package/types/region/index.d.ts +3 -0
- package/types/region/interface.d.ts +66 -0
- package/types/region/region-transformer.d.ts +8 -0
- package/types/region/region.d.ts +88 -0
- package/types/scale/color-ordinal-scale.d.ts +8 -0
- package/types/scale/global-scale.d.ts +37 -0
- package/types/scale/interface.d.ts +18 -0
- package/types/series/area/animation.d.ts +8 -0
- package/types/series/area/area-transformer.d.ts +7 -0
- package/types/series/area/area.d.ts +33 -0
- package/types/series/area/constant.d.ts +2 -0
- package/types/series/area/interface.d.ts +26 -0
- package/types/series/area/tooltip-helpter.d.ts +5 -0
- package/types/series/bar/animation.d.ts +14 -0
- package/types/series/bar/bar-3d.d.ts +14 -0
- package/types/series/bar/bar-transformer.d.ts +5 -0
- package/types/series/bar/bar.d.ts +67 -0
- package/types/series/bar/constant.d.ts +3 -0
- package/types/series/bar/interface.d.ts +42 -0
- package/types/series/base/base-series-transformer.d.ts +18 -0
- package/types/series/base/base-series.d.ts +228 -0
- package/types/series/base/constant.d.ts +6 -0
- package/types/series/base/group.d.ts +12 -0
- package/types/series/base/index.d.ts +2 -0
- package/types/series/base/series-data.d.ts +5 -0
- package/types/series/base/tooltip-helper.d.ts +31 -0
- package/types/series/box-plot/box-plot.d.ts +62 -0
- package/types/series/box-plot/constant.d.ts +2 -0
- package/types/series/box-plot/interface.d.ts +22 -0
- package/types/series/box-plot/tooltip-helper.d.ts +12 -0
- package/types/series/cartesian/cartesian.d.ts +105 -0
- package/types/series/cartesian/index.d.ts +2 -0
- package/types/series/cartesian/interface.d.ts +15 -0
- package/types/series/circle-packing/animation.d.ts +5 -0
- package/types/series/circle-packing/circle-packing.d.ts +45 -0
- package/types/series/circle-packing/constant.d.ts +2 -0
- package/types/series/circle-packing/interface.d.ts +20 -0
- package/types/series/circle-packing/tooltip-helper.d.ts +5 -0
- package/types/series/correlation/animation.d.ts +8 -0
- package/types/series/correlation/constant.d.ts +2 -0
- package/types/series/correlation/correlation-transformer.d.ts +5 -0
- package/types/series/correlation/correlation.d.ts +56 -0
- package/types/series/correlation/interface.d.ts +37 -0
- package/types/series/dot/config.d.ts +4 -0
- package/types/series/dot/constant.d.ts +2 -0
- package/types/series/dot/dot.d.ts +72 -0
- package/types/series/dot/interface.d.ts +40 -0
- package/types/series/dot/tooltip-helper.d.ts +7 -0
- package/types/series/funnel/3d/funnel-3d-transformer.d.ts +6 -0
- package/types/series/funnel/3d/funnel-3d.d.ts +22 -0
- package/types/series/funnel/3d/index.d.ts +2 -0
- package/types/series/funnel/constant.d.ts +3 -0
- package/types/series/funnel/funnel-3d.d.ts +22 -0
- package/types/series/funnel/funnel-transformer.d.ts +5 -0
- package/types/series/funnel/funnel.d.ts +97 -0
- package/types/series/funnel/interface.d.ts +60 -0
- package/types/series/funnel/tooltip-helper.d.ts +9 -0
- package/types/series/gauge/animation.d.ts +7 -0
- package/types/series/gauge/constant.d.ts +3 -0
- package/types/series/gauge/gauge-pointer.d.ts +38 -0
- package/types/series/gauge/gauge-transformer.d.ts +5 -0
- package/types/series/gauge/gauge.d.ts +33 -0
- package/types/series/gauge/index.d.ts +3 -0
- package/types/series/gauge/interface.d.ts +50 -0
- package/types/series/geo/geo.d.ts +55 -0
- package/types/series/geo/interface.d.ts +4 -0
- package/types/series/heatmap/animation.d.ts +4 -0
- package/types/series/heatmap/constant.d.ts +2 -0
- package/types/series/heatmap/heatmap-transformer.d.ts +5 -0
- package/types/series/heatmap/heatmap.d.ts +41 -0
- package/types/series/heatmap/interface.d.ts +23 -0
- package/types/series/heatmap/tooltip-helper.d.ts +6 -0
- package/types/series/index.d.ts +70 -0
- package/types/series/interface/common.d.ts +81 -0
- package/types/series/interface/index.d.ts +5 -0
- package/types/series/interface/series.d.ts +179 -0
- package/types/series/interface/theme.d.ts +106 -0
- package/types/series/interface/tooltip-helper.d.ts +13 -0
- package/types/series/interface/type.d.ts +96 -0
- package/types/series/line/animation.d.ts +7 -0
- package/types/series/line/constant.d.ts +2 -0
- package/types/series/line/interface.d.ts +25 -0
- package/types/series/line/line.d.ts +28 -0
- package/types/series/link/constant.d.ts +2 -0
- package/types/series/link/interface.d.ts +25 -0
- package/types/series/link/link.d.ts +53 -0
- package/types/series/link/tooltip-helper.d.ts +6 -0
- package/types/series/liquid/animation.d.ts +14 -0
- package/types/series/liquid/constant.d.ts +2 -0
- package/types/series/liquid/interface.d.ts +35 -0
- package/types/series/liquid/liquid.d.ts +50 -0
- package/types/series/liquid/tooltip-helper.d.ts +9 -0
- package/types/series/liquid/util.d.ts +2 -0
- package/types/series/map/constant.d.ts +2 -0
- package/types/series/map/geo-source.d.ts +20 -0
- package/types/series/map/interface.d.ts +31 -0
- package/types/series/map/map-transformer.d.ts +5 -0
- package/types/series/map/map.d.ts +53 -0
- package/types/series/map/tooltip-helper.d.ts +5 -0
- package/types/series/mixin/constant.d.ts +2 -0
- package/types/series/mixin/line-mixin-transformer.d.ts +5 -0
- package/types/series/mixin/line-mixin.d.ts +62 -0
- package/types/series/pie/3d/index.d.ts +2 -0
- package/types/series/pie/3d/pie-3d-transformer.d.ts +5 -0
- package/types/series/pie/3d/pie-3d.d.ts +20 -0
- package/types/series/pie/animation/animation.d.ts +25 -0
- package/types/series/pie/animation/centerOffset.d.ts +6 -0
- package/types/series/pie/constant.d.ts +3 -0
- package/types/series/pie/interface.d.ts +70 -0
- package/types/series/pie/pie-3d.d.ts +16 -0
- package/types/series/pie/pie-transformer.d.ts +9 -0
- package/types/series/pie/pie.d.ts +80 -0
- package/types/series/polar/animation.d.ts +41 -0
- package/types/series/polar/index.d.ts +3 -0
- package/types/series/polar/interface.d.ts +22 -0
- package/types/series/polar/polar.d.ts +60 -0
- package/types/series/polar/progress-like/animation.d.ts +7 -0
- package/types/series/polar/progress-like/constant.d.ts +2 -0
- package/types/series/polar/progress-like/index.d.ts +3 -0
- package/types/series/polar/progress-like/interface.d.ts +21 -0
- package/types/series/polar/progress-like/progress-like.d.ts +34 -0
- package/types/series/polar/rose-like/index.d.ts +2 -0
- package/types/series/polar/rose-like/interface.d.ts +3 -0
- package/types/series/polar/rose-like/rose-like.d.ts +13 -0
- package/types/series/progress/circular/circular.d.ts +28 -0
- package/types/series/progress/circular/constant.d.ts +2 -0
- package/types/series/progress/circular/index.d.ts +1 -0
- package/types/series/progress/circular/interface.d.ts +20 -0
- package/types/series/progress/interface.d.ts +7 -0
- package/types/series/progress/linear/animation.d.ts +10 -0
- package/types/series/progress/linear/constant.d.ts +2 -0
- package/types/series/progress/linear/index.d.ts +1 -0
- package/types/series/progress/linear/interface.d.ts +26 -0
- package/types/series/progress/linear/linear.d.ts +26 -0
- package/types/series/progress/linear/tooltip-helper.d.ts +7 -0
- package/types/series/radar/animation.d.ts +73 -0
- package/types/series/radar/constant.d.ts +2 -0
- package/types/series/radar/interface.d.ts +22 -0
- package/types/series/radar/radar.d.ts +31 -0
- package/types/series/range-area/constant.d.ts +2 -0
- package/types/series/range-area/interface.d.ts +7 -0
- package/types/series/range-area/range-area.d.ts +15 -0
- package/types/series/range-area/tooltip-helper.d.ts +7 -0
- package/types/series/range-column/3d/index.d.ts +2 -0
- package/types/series/range-column/3d/range-column-3d-transformer.d.ts +5 -0
- package/types/series/range-column/3d/range-column-3d.d.ts +15 -0
- package/types/series/range-column/animation.d.ts +10 -0
- package/types/series/range-column/constant.d.ts +3 -0
- package/types/series/range-column/interface.d.ts +56 -0
- package/types/series/range-column/range-column-3d.d.ts +15 -0
- package/types/series/range-column/range-column-transformer.d.ts +5 -0
- package/types/series/range-column/range-column.d.ts +32 -0
- package/types/series/range-column/tooltip-helper.d.ts +6 -0
- package/types/series/rose/animation.d.ts +13 -0
- package/types/series/rose/constant.d.ts +2 -0
- package/types/series/rose/interface.d.ts +19 -0
- package/types/series/rose/rose-transformer.d.ts +5 -0
- package/types/series/rose/rose.d.ts +33 -0
- package/types/series/sankey/animation.d.ts +13 -0
- package/types/series/sankey/constant.d.ts +2 -0
- package/types/series/sankey/interface.d.ts +108 -0
- package/types/series/sankey/sankey.d.ts +67 -0
- package/types/series/sankey/tooltip-helper.d.ts +7 -0
- package/types/series/scatter/animation.d.ts +8 -0
- package/types/series/scatter/constant.d.ts +2 -0
- package/types/series/scatter/interface.d.ts +24 -0
- package/types/series/scatter/scatter-transformer.d.ts +5 -0
- package/types/series/scatter/scatter.d.ts +39 -0
- package/types/series/sunburst/animation/enter.d.ts +3 -0
- package/types/series/sunburst/animation/exit.d.ts +3 -0
- package/types/series/sunburst/animation/index.d.ts +6 -0
- package/types/series/sunburst/animation/interface.d.ts +12 -0
- package/types/series/sunburst/animation/preset.d.ts +3 -0
- package/types/series/sunburst/animation/utils.d.ts +3 -0
- package/types/series/sunburst/constant.d.ts +2 -0
- package/types/series/sunburst/interface.d.ts +41 -0
- package/types/series/sunburst/sunburst.d.ts +60 -0
- package/types/series/sunburst/tooltip-helper.d.ts +5 -0
- package/types/series/treemap/animation.d.ts +5 -0
- package/types/series/treemap/constant.d.ts +2 -0
- package/types/series/treemap/interface.d.ts +41 -0
- package/types/series/treemap/tooltip-helper.d.ts +5 -0
- package/types/series/treemap/treemap-transform.d.ts +6 -0
- package/types/series/treemap/treemap.d.ts +61 -0
- package/types/series/util/label-mark.d.ts +4 -0
- package/types/series/util/spec.d.ts +2 -0
- package/types/series/util/stack.d.ts +9 -0
- package/types/series/util/utils.d.ts +10 -0
- package/types/series/waterfall/animation.d.ts +5 -0
- package/types/series/waterfall/constant.d.ts +2 -0
- package/types/series/waterfall/interface.d.ts +60 -0
- package/types/series/waterfall/waterfall-transformer.d.ts +5 -0
- package/types/series/waterfall/waterfall.d.ts +41 -0
- package/types/series/word-cloud/animation.d.ts +14 -0
- package/types/series/word-cloud/base.d.ts +66 -0
- package/types/series/word-cloud/config.d.ts +16 -0
- package/types/series/word-cloud/constant.d.ts +2 -0
- package/types/series/word-cloud/interface.d.ts +111 -0
- package/types/series/word-cloud/word-cloud-3d.d.ts +34 -0
- package/types/series/word-cloud/word-cloud.d.ts +9 -0
- package/types/theme/builtin/common/component/axis/band-axis.d.ts +2 -0
- package/types/theme/builtin/common/component/axis/cartesian-axis.d.ts +4 -0
- package/types/theme/builtin/common/component/axis/common-axis.d.ts +2 -0
- package/types/theme/builtin/common/component/axis/linear-axis.d.ts +2 -0
- package/types/theme/builtin/common/component/axis/polar-axis.d.ts +3 -0
- package/types/theme/builtin/common/component/brush.d.ts +2 -0
- package/types/theme/builtin/common/component/crosshair.d.ts +2 -0
- package/types/theme/builtin/common/component/data-zoom.d.ts +2 -0
- package/types/theme/builtin/common/component/index.d.ts +2 -0
- package/types/theme/builtin/common/component/indicator.d.ts +2 -0
- package/types/theme/builtin/common/component/legend/color-legend.d.ts +2 -0
- package/types/theme/builtin/common/component/legend/continuous.d.ts +2 -0
- package/types/theme/builtin/common/component/legend/discrete-legend.d.ts +2 -0
- package/types/theme/builtin/common/component/legend/size-legend.d.ts +2 -0
- package/types/theme/builtin/common/component/map-label.d.ts +2 -0
- package/types/theme/builtin/common/component/mark-area.d.ts +2 -0
- package/types/theme/builtin/common/component/mark-line.d.ts +2 -0
- package/types/theme/builtin/common/component/mark-point.d.ts +2 -0
- package/types/theme/builtin/common/component/player.d.ts +2 -0
- package/types/theme/builtin/common/component/poptip.d.ts +2 -0
- package/types/theme/builtin/common/component/scroll-bar.d.ts +2 -0
- package/types/theme/builtin/common/component/title.d.ts +2 -0
- package/types/theme/builtin/common/component/tooltip.d.ts +3 -0
- package/types/theme/builtin/common/component/total-label.d.ts +2 -0
- package/types/theme/builtin/common/constants.d.ts +2 -0
- package/types/theme/builtin/common/legacy/index.d.ts +1 -0
- package/types/theme/builtin/common/legacy/legend/color-legend.d.ts +2 -0
- package/types/theme/builtin/common/legacy/legend/continuous.d.ts +2 -0
- package/types/theme/builtin/common/legacy/legend/index.d.ts +2 -0
- package/types/theme/builtin/common/legacy/legend/size-legend.d.ts +2 -0
- package/types/theme/builtin/common/mark.d.ts +3 -0
- package/types/theme/builtin/common/series/area.d.ts +2 -0
- package/types/theme/builtin/common/series/bar.d.ts +2 -0
- package/types/theme/builtin/common/series/bar3d.d.ts +2 -0
- package/types/theme/builtin/common/series/box-plot.d.ts +2 -0
- package/types/theme/builtin/common/series/circle-packing.d.ts +2 -0
- package/types/theme/builtin/common/series/circular-progress.d.ts +2 -0
- package/types/theme/builtin/common/series/correlation.d.ts +2 -0
- package/types/theme/builtin/common/series/dot.d.ts +2 -0
- package/types/theme/builtin/common/series/funnel.d.ts +2 -0
- package/types/theme/builtin/common/series/funnel3d.d.ts +2 -0
- package/types/theme/builtin/common/series/gauge-pointer.d.ts +2 -0
- package/types/theme/builtin/common/series/gauge.d.ts +2 -0
- package/types/theme/builtin/common/series/heatmap.d.ts +2 -0
- package/types/theme/builtin/common/series/index.d.ts +2 -0
- package/types/theme/builtin/common/series/line.d.ts +2 -0
- package/types/theme/builtin/common/series/linear-progress.d.ts +2 -0
- package/types/theme/builtin/common/series/link.d.ts +2 -0
- package/types/theme/builtin/common/series/liquid.d.ts +2 -0
- package/types/theme/builtin/common/series/map.d.ts +2 -0
- package/types/theme/builtin/common/series/pie.d.ts +2 -0
- package/types/theme/builtin/common/series/pie3d.d.ts +2 -0
- package/types/theme/builtin/common/series/radar.d.ts +2 -0
- package/types/theme/builtin/common/series/rangeColumn.d.ts +2 -0
- package/types/theme/builtin/common/series/rose.d.ts +2 -0
- package/types/theme/builtin/common/series/sankey.d.ts +2 -0
- package/types/theme/builtin/common/series/scatter.d.ts +2 -0
- package/types/theme/builtin/common/series/sunburst.d.ts +2 -0
- package/types/theme/builtin/common/series/treemap.d.ts +2 -0
- package/types/theme/builtin/common/series/waterfall.d.ts +2 -0
- package/types/theme/builtin/common/series/word-cloud.d.ts +2 -0
- package/types/theme/builtin/common/series/word-cloud3d.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/axis/band-axis.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/axis/cartesian-axis.d.ts +4 -0
- package/types/theme/builtin/common-mobile/component/axis/common-axis.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/axis/linear-axis.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/axis/polar-axis.d.ts +3 -0
- package/types/theme/builtin/common-mobile/component/crosshair.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/data-zoom.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/index.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/indicator.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/legend/color-legend.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/legend/continuous.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/legend/discrete-legend.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/legend/size-legend.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/map-label.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/mark-area.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/mark-line.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/mark-point.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/player.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/poptip.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/title.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/tooltip.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/total-label.d.ts +2 -0
- package/types/theme/builtin/common-mobile/constants.d.ts +2 -0
- package/types/theme/builtin/common-mobile/mark.d.ts +3 -0
- package/types/theme/builtin/dark/color-scheme.d.ts +2 -0
- package/types/theme/builtin/dark/index.d.ts +2 -0
- package/types/theme/builtin/dark-mobile/index.d.ts +2 -0
- package/types/theme/builtin/index.d.ts +12 -0
- package/types/theme/builtin/light/color-scheme.d.ts +2 -0
- package/types/theme/builtin/light/index.d.ts +2 -0
- package/types/theme/builtin/light-mobile/index.d.ts +2 -0
- package/types/theme/color-scheme/builtin/default.d.ts +2 -0
- package/types/theme/color-scheme/builtin/index.d.ts +2 -0
- package/types/theme/color-scheme/builtin/interface.d.ts +30 -0
- package/types/theme/color-scheme/index.d.ts +3 -0
- package/types/theme/color-scheme/interface.d.ts +30 -0
- package/types/theme/color-scheme/legacy.d.ts +5 -0
- package/types/theme/color-scheme/util.d.ts +10 -0
- package/types/theme/index.d.ts +4 -0
- package/types/theme/interface.d.ts +56 -0
- package/types/theme/theme-manager.d.ts +13 -0
- package/types/theme/util.d.ts +5 -0
- package/types/typings/common.d.ts +7 -0
- package/types/typings/coordinate.d.ts +9 -0
- package/types/typings/cursor.d.ts +1 -0
- package/types/typings/data.d.ts +2 -0
- package/types/typings/event.d.ts +1 -0
- package/types/typings/geo.d.ts +3 -0
- package/types/typings/group.d.ts +8 -0
- package/types/typings/index.d.ts +15 -0
- package/types/typings/interpolate.d.ts +5 -0
- package/types/typings/layout.d.ts +24 -0
- package/types/typings/line-stroke.d.ts +3 -0
- package/types/typings/params.d.ts +17 -0
- package/types/typings/scale.d.ts +33 -0
- package/types/typings/shape.d.ts +6 -0
- package/types/typings/space.d.ts +19 -0
- package/types/typings/spec/chart.d.ts +62 -0
- package/types/typings/spec/common.d.ts +275 -0
- package/types/typings/spec/index.d.ts +5 -0
- package/types/typings/spec/media-query.d.ts +28 -0
- package/types/typings/tooltip/common.d.ts +8 -0
- package/types/typings/tooltip/handler.d.ts +8 -0
- package/types/typings/tooltip/index.d.ts +6 -0
- package/types/typings/tooltip/label.d.ts +10 -0
- package/types/typings/tooltip/line.d.ts +23 -0
- package/types/typings/tooltip/position.d.ts +31 -0
- package/types/typings/tooltip/shape.d.ts +23 -0
- package/types/typings/tooltip/tooltip.d.ts +26 -0
- package/types/typings/visual.d.ts +293 -0
- package/types/util/array.d.ts +3 -0
- package/types/util/color.d.ts +1 -0
- package/types/util/data.d.ts +38 -0
- package/types/util/debug.d.ts +9 -0
- package/types/util/env.d.ts +7 -0
- package/types/util/hierarchy.d.ts +3 -0
- package/types/util/id.d.ts +2 -0
- package/types/util/image.d.ts +4 -0
- package/types/util/index.d.ts +22 -0
- package/types/util/math.d.ts +28 -0
- package/types/util/model.d.ts +5 -0
- package/types/util/object.d.ts +3 -0
- package/types/util/scale.d.ts +21 -0
- package/types/util/space.d.ts +13 -0
- package/types/util/spec/background.d.ts +4 -0
- package/types/util/spec/clone-deep.d.ts +1 -0
- package/types/util/spec/common.d.ts +5 -0
- package/types/util/spec/index.d.ts +7 -0
- package/types/util/spec/merge-spec.d.ts +5 -0
- package/types/util/spec/merge-theme.d.ts +6 -0
- package/types/util/spec/preprocess.d.ts +3 -0
- package/types/util/spec/transform.d.ts +5 -0
- package/types/util/style.d.ts +4 -0
- package/types/util/text.d.ts +5 -0
- package/types/util/type.d.ts +7 -0
- package/types/vchart-all.d.ts +2 -0
- package/types/vchart-simple.d.ts +4 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TooltipAttributes } from '@visactor/vrender-components';
|
|
2
|
+
import type { ITextAttribute, IFillStyle, RichTextWordBreak } from '@visactor/vrender-core';
|
|
3
|
+
export interface ITooltipTextStyle extends Partial<ITextAttribute & IFillStyle> {
|
|
4
|
+
spacing?: number;
|
|
5
|
+
multiLine?: boolean;
|
|
6
|
+
maxWidth?: number;
|
|
7
|
+
wordBreak?: RichTextWordBreak;
|
|
8
|
+
autoWidth?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface ITooltipAttributes extends TooltipAttributes {
|
|
11
|
+
panelDomHeight?: number;
|
|
12
|
+
maxContentHeight?: number;
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TooltipPanelAttrs } from '@visactor/vrender-components';
|
|
2
|
+
import type { IToolTipActual } from '../../../../typings';
|
|
3
|
+
import type { ITooltipAttributes, ITooltipTextStyle } from '../interface';
|
|
4
|
+
import type { ITheme } from '../../../../theme';
|
|
5
|
+
import type { ITooltipSpec, ITooltipTextTheme, ITooltipTheme } from '../../../../component/tooltip';
|
|
6
|
+
export declare function getTextAttributes(style?: ITooltipTextTheme, globalTheme?: ITheme, defaultAttributes?: Partial<ITooltipTextStyle>): ITooltipTextStyle;
|
|
7
|
+
export declare const getPanelAttributes: (style: ITooltipTheme['panel']) => TooltipPanelAttrs;
|
|
8
|
+
export declare const getTooltipAttributes: (actualTooltip: IToolTipActual, spec: ITooltipSpec, globalTheme: ITheme) => ITooltipAttributes;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Datum } from '@visactor/vgrammar-core';
|
|
2
|
+
import type { IToolTipLinePattern, ITooltipPattern, MaybeArray, TooltipContentProperty, TooltipData, TooltipPatternProperty } from '../../../../typings';
|
|
3
|
+
import type { ITooltipTextStyle } from '../interface/style';
|
|
4
|
+
import type { TooltipRichTextAttrs } from '@visactor/vrender-components';
|
|
5
|
+
import type { TooltipHandlerParams } from '../../../../component/tooltip';
|
|
6
|
+
export declare function escapeHTML(value: any): string;
|
|
7
|
+
export declare const getTooltipContentValue: <T>(field?: TooltipContentProperty<T>, datum?: any, params?: TooltipHandlerParams) => T;
|
|
8
|
+
export declare const getTooltipPatternValue: <T>(field?: TooltipPatternProperty<T>, data?: TooltipData, params?: TooltipHandlerParams) => T;
|
|
9
|
+
export declare const getTooltipContentPattern: (field?: ITooltipPattern['content'], data?: TooltipData, params?: TooltipHandlerParams) => Array<IToolTipLinePattern> | undefined;
|
|
10
|
+
export declare function getFirstDatumFromTooltipData(data: TooltipData): Datum;
|
|
11
|
+
export declare function pickFirstValidValue<T>(isValid: (element?: T) => any, ...elements: T[]): T | undefined;
|
|
12
|
+
export declare function convertToColorString(color: any, defaultColor?: string): string;
|
|
13
|
+
export declare const getScale: (element: HTMLElement, boundingClientRect?: DOMRect) => number;
|
|
14
|
+
interface ITooltipTextInfo {
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
text: MaybeArray<number> | MaybeArray<string> | TooltipRichTextAttrs;
|
|
18
|
+
}
|
|
19
|
+
export declare const measureTooltipText: (text: string | TooltipRichTextAttrs, style: ITooltipTextStyle) => ITooltipTextInfo;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IToolTipLinePattern, ITooltipPattern, TooltipData, IToolTipLineActual } from '../../../../typings/tooltip';
|
|
2
|
+
import type { TooltipActualTitleContent, TooltipHandlerParams } from '../../../../component/tooltip';
|
|
3
|
+
export declare const getShowContent: (pattern: ITooltipPattern, data: TooltipData, params: TooltipHandlerParams) => TooltipActualTitleContent | null;
|
|
4
|
+
export declare const getOneLineData: (datum: any, config: IToolTipLinePattern, params: TooltipHandlerParams) => IToolTipLineActual;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { TooltipActiveType } from '../../../../typings';
|
|
2
|
+
import type { ISeries } from '../../../../series/interface';
|
|
3
|
+
import type { IDimensionInfo } from '../../../../event/events/dimension/interface';
|
|
4
|
+
import type { ITooltipSpec } from '../../../../component/tooltip';
|
|
5
|
+
export declare const getTooltipSpecForShow: (activeType: TooltipActiveType, globalSpec: ITooltipSpec, series?: ISeries, dimensionInfo?: IDimensionInfo[]) => ITooltipSpec;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IDimensionInfo } from '../../../../event/events/dimension/interface';
|
|
2
|
+
import type { ISeries } from '../../../../series/interface';
|
|
3
|
+
import type { ITooltipPattern, TooltipActiveType } from '../../../../typings';
|
|
4
|
+
export declare const makeDefaultPattern: (series: ISeries, activeType: TooltipActiveType, dimensionInfo?: IDimensionInfo[]) => ITooltipPattern | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TooltipFixedPosition } from '../../../../typings/tooltip/position';
|
|
2
|
+
export declare const getActualTooltipPositionValue: (position: number | ((event: MouseEvent) => number), event: MouseEvent) => number;
|
|
3
|
+
export type TooltipHorizontalPositionType = 'left' | 'right' | 'middle';
|
|
4
|
+
export type TooltipVerticalPositionType = 'top' | 'bottom' | 'middle';
|
|
5
|
+
export declare const positionType: Record<TooltipFixedPosition, [TooltipHorizontalPositionType, TooltipVerticalPositionType]>;
|
|
6
|
+
export declare const getHorizontalPositionType: (position: TooltipFixedPosition, defaultCase?: TooltipHorizontalPositionType) => TooltipHorizontalPositionType;
|
|
7
|
+
export declare const getVerticalPositionType: (position: TooltipFixedPosition, defaultCase?: TooltipVerticalPositionType) => TooltipVerticalPositionType;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './chart';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IChartPlugin, IChartPluginConstructor } from './chart/interface';
|
|
2
|
+
import type { ISeriesPlugin, ISeriesPluginConstructor } from './series/interface';
|
|
3
|
+
export type IPlugin = IChartPlugin | ISeriesPlugin;
|
|
4
|
+
export type IPluginConstructor = IChartPluginConstructor | ISeriesPluginConstructor;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ISeries } from '../../series/interface';
|
|
2
|
+
export interface ISeriesPlugin {
|
|
3
|
+
afterSeriesDataInit?: (series: ISeries) => void;
|
|
4
|
+
afterSeriesMarkInit?: (series: ISeries) => void;
|
|
5
|
+
}
|
|
6
|
+
export interface ISeriesPluginConstructor {
|
|
7
|
+
readonly type: 'seriesPlugin';
|
|
8
|
+
new (): ISeriesPlugin;
|
|
9
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { IMark } from '../mark/interface';
|
|
2
|
+
import type { ILayoutModel, IModelConstructor, IModelOption, IModelSpecInfo } from '../model/interface';
|
|
3
|
+
import type { ISeries, SeriesType } from '../series/interface';
|
|
4
|
+
import type { CoordinateType } from '../typings/coordinate';
|
|
5
|
+
import type { IInteraction } from '../interaction/interface';
|
|
6
|
+
import type { IProjectionSpec } from '../component/geo/interface';
|
|
7
|
+
import type { ConvertToMarkStyleSpec, IRectMarkSpec } from '../typings/visual';
|
|
8
|
+
import type { IAnimate } from '../animation/interface';
|
|
9
|
+
import type { IGroupMark } from '../mark/group';
|
|
10
|
+
import type { StringOrNumber } from '../typings';
|
|
11
|
+
import type { ILayoutItemSpec } from '../layout/interface';
|
|
12
|
+
export interface IRegion extends ILayoutModel {
|
|
13
|
+
animate?: IAnimate;
|
|
14
|
+
interaction: IInteraction;
|
|
15
|
+
getStackInverse: () => boolean;
|
|
16
|
+
getMaxWidth: () => number | undefined;
|
|
17
|
+
setMaxWidth: (value: number) => void;
|
|
18
|
+
getMaxHeight: () => number | undefined;
|
|
19
|
+
setMaxHeight: (value: number) => void;
|
|
20
|
+
addSeries: (series: ISeries) => void;
|
|
21
|
+
removeSeries: (series: ISeries) => void;
|
|
22
|
+
getSeries: (opt?: ISeriesFilter) => ISeries[];
|
|
23
|
+
getSeriesInName: (name: string) => ISeries;
|
|
24
|
+
getSeriesInUserId: (userId: string) => ISeries;
|
|
25
|
+
getSeriesInId: (id: number) => ISeries;
|
|
26
|
+
getSeriesInType: (type: SeriesType) => ISeries[];
|
|
27
|
+
getSeriesInCoordinateType: (type: CoordinateType) => ISeries[];
|
|
28
|
+
getSeriesInDataName: (dataName: string) => ISeries[];
|
|
29
|
+
getMarks: () => IMark[];
|
|
30
|
+
getGroupMark: () => IGroupMark;
|
|
31
|
+
getInteractionMark: () => IGroupMark;
|
|
32
|
+
getSpecInfo: () => IRegionSpecInfo;
|
|
33
|
+
}
|
|
34
|
+
export type ISeriesFilter = {
|
|
35
|
+
name?: string;
|
|
36
|
+
userId?: StringOrNumber | StringOrNumber[];
|
|
37
|
+
specIndex?: number | number[];
|
|
38
|
+
id?: number;
|
|
39
|
+
type?: string;
|
|
40
|
+
coordinateType?: CoordinateType;
|
|
41
|
+
dataName?: string;
|
|
42
|
+
};
|
|
43
|
+
export interface IRegionConstructor extends IModelConstructor {
|
|
44
|
+
new (spec: IRegionSpec, ctx: IModelOption): IRegion;
|
|
45
|
+
}
|
|
46
|
+
export interface IRegionSpec extends ILayoutItemSpec {
|
|
47
|
+
id?: StringOrNumber;
|
|
48
|
+
coordinate?: CoordinateType;
|
|
49
|
+
style?: ConvertToMarkStyleSpec<IRectMarkSpec>;
|
|
50
|
+
stackInverse?: boolean;
|
|
51
|
+
}
|
|
52
|
+
export interface IGeoRegionSpec extends IRegionSpec {
|
|
53
|
+
coordinate?: 'geo';
|
|
54
|
+
roam?: boolean;
|
|
55
|
+
longitudeField?: string;
|
|
56
|
+
latitudeField?: string;
|
|
57
|
+
projection?: Partial<Omit<IProjectionSpec, 'name'>>;
|
|
58
|
+
zoomLimit?: {
|
|
59
|
+
min?: number;
|
|
60
|
+
max?: number;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export interface IRegionSpecInfo<T extends IRegionSpec = IRegionSpec> extends IModelSpecInfo {
|
|
64
|
+
type: 'region';
|
|
65
|
+
spec: T;
|
|
66
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseModelSpecTransformer } from '../model/base-model-transformer';
|
|
2
|
+
import type { IRegionSpec } from './interface';
|
|
3
|
+
export declare class RegionSpecTransformer<T extends IRegionSpec = IRegionSpec, K extends Partial<IRegionSpec> = Partial<IRegionSpec>> extends BaseModelSpecTransformer<T, K> {
|
|
4
|
+
protected _initTheme(spec: T, chartSpec: any): {
|
|
5
|
+
spec: T;
|
|
6
|
+
theme: K;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { IGroupMark as IVGrammarGroupMark } from '@visactor/vgrammar-core';
|
|
2
|
+
import type { ISeries } from '../series/interface';
|
|
3
|
+
import type { IModelOption } from '../model/interface';
|
|
4
|
+
import type { CoordinateType } from '../typings/coordinate';
|
|
5
|
+
import type { IRegion, IRegionSpec, IRegionSpecInfo } from './interface';
|
|
6
|
+
import type { IGroupMark } from '../mark/group';
|
|
7
|
+
import type { IInteraction, ITrigger } from '../interaction/interface';
|
|
8
|
+
import type { IRectMark } from '../mark/rect';
|
|
9
|
+
import type { IAnimate } from '../animation/interface';
|
|
10
|
+
import type { ILayoutType, StringOrNumber } from '../typings';
|
|
11
|
+
import { LayoutModel } from '../model/layout-model';
|
|
12
|
+
import { RegionSpecTransformer } from './region-transformer';
|
|
13
|
+
export declare class Region<T extends IRegionSpec = IRegionSpec> extends LayoutModel<T> implements IRegion {
|
|
14
|
+
static type: string;
|
|
15
|
+
static readonly transformerConstructor: typeof RegionSpecTransformer;
|
|
16
|
+
readonly transformerConstructor: any;
|
|
17
|
+
readonly modelType: string;
|
|
18
|
+
static specKey: string;
|
|
19
|
+
specKey: string;
|
|
20
|
+
type: string;
|
|
21
|
+
protected _series: ISeries[];
|
|
22
|
+
layoutType: ILayoutType;
|
|
23
|
+
layoutZIndex: number;
|
|
24
|
+
animate?: IAnimate;
|
|
25
|
+
interaction: IInteraction;
|
|
26
|
+
getSpecInfo: () => IRegionSpecInfo;
|
|
27
|
+
getMaxWidth(): number;
|
|
28
|
+
setMaxWidth(value: number): void;
|
|
29
|
+
getMaxHeight(): number;
|
|
30
|
+
setMaxHeight(value: number): void;
|
|
31
|
+
protected _groupMark: IGroupMark;
|
|
32
|
+
getGroupMark(): IGroupMark;
|
|
33
|
+
protected _interactionMark: IGroupMark;
|
|
34
|
+
getInteractionMark(): IGroupMark;
|
|
35
|
+
getStackInverse(): boolean;
|
|
36
|
+
protected _backgroundMark?: IRectMark;
|
|
37
|
+
protected _foregroundMark?: IRectMark;
|
|
38
|
+
protected _trigger: ITrigger;
|
|
39
|
+
constructor(spec: T, ctx: IModelOption);
|
|
40
|
+
protected _getClipDefaultValue(): boolean;
|
|
41
|
+
created(): void;
|
|
42
|
+
private _createGroupMark;
|
|
43
|
+
init(option: any): void;
|
|
44
|
+
initMark(): void;
|
|
45
|
+
protected _initBackgroundMarkStyle(): void;
|
|
46
|
+
protected _initForegroundMarkStyle(): void;
|
|
47
|
+
_compareSpec(spec: T, prevSpec: T): {
|
|
48
|
+
change: boolean;
|
|
49
|
+
reMake: boolean;
|
|
50
|
+
reRender: boolean;
|
|
51
|
+
reSize: boolean;
|
|
52
|
+
reCompile: boolean;
|
|
53
|
+
};
|
|
54
|
+
reInit(spec?: T): void;
|
|
55
|
+
addSeries(s: ISeries): void;
|
|
56
|
+
removeSeries(s: ISeries): void;
|
|
57
|
+
getSeries(opt?: {
|
|
58
|
+
name?: string;
|
|
59
|
+
userId?: StringOrNumber | StringOrNumber[];
|
|
60
|
+
specIndex?: number | number[];
|
|
61
|
+
id?: StringOrNumber;
|
|
62
|
+
type?: string;
|
|
63
|
+
coordinateType?: CoordinateType;
|
|
64
|
+
dataName?: string;
|
|
65
|
+
}): ISeries[];
|
|
66
|
+
getSeriesInName(name: string): ISeries;
|
|
67
|
+
getSeriesInUserId(userId: string): ISeries;
|
|
68
|
+
getSeriesInId(id: number): ISeries;
|
|
69
|
+
getSeriesInType(type: string): ISeries[];
|
|
70
|
+
getSeriesInCoordinateType(coordinateType: CoordinateType): ISeries[];
|
|
71
|
+
getSeriesInDataName(dataName: string): ISeries[];
|
|
72
|
+
onRender(ctx: any): void;
|
|
73
|
+
initSeriesDataflow(): void;
|
|
74
|
+
seriesDataFilterOver: () => void;
|
|
75
|
+
release(): void;
|
|
76
|
+
createTrigger(): void;
|
|
77
|
+
initTrigger(): void;
|
|
78
|
+
initInteraction(): void;
|
|
79
|
+
compileMarks(group?: string | IVGrammarGroupMark): void;
|
|
80
|
+
compile(): void;
|
|
81
|
+
getBoundsInRect: () => {
|
|
82
|
+
x1: number;
|
|
83
|
+
y1: number;
|
|
84
|
+
x2: number;
|
|
85
|
+
y2: number;
|
|
86
|
+
};
|
|
87
|
+
onLayoutEnd(ctx: any): void;
|
|
88
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OrdinalScale } from '@visactor/vscale';
|
|
2
|
+
import type { ColorSchemeItem, ProgressiveDataScheme } from '../theme/color-scheme/interface';
|
|
3
|
+
export declare class ColorOrdinalScale extends OrdinalScale {
|
|
4
|
+
protected _range: Array<ColorSchemeItem> | ProgressiveDataScheme<ColorSchemeItem>;
|
|
5
|
+
range(value?: Array<ColorSchemeItem> | ProgressiveDataScheme<ColorSchemeItem>): this | any;
|
|
6
|
+
domain(value?: any[]): this | any;
|
|
7
|
+
protected _resetRange(): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { IGlobalScale } from './interface';
|
|
2
|
+
import type { IBaseScale } from '@visactor/vscale';
|
|
3
|
+
import type { IChart } from '../chart/interface';
|
|
4
|
+
import type { IChartSpec } from '../typings/spec';
|
|
5
|
+
import type { IVisualScale, IVisualSpecScale } from '../typings';
|
|
6
|
+
import type { StatisticOperations } from '../data/transforms/dimension-statistics';
|
|
7
|
+
export declare class GlobalScale implements IGlobalScale {
|
|
8
|
+
private _scaleSpecMap;
|
|
9
|
+
private _scaleMap;
|
|
10
|
+
private _modelScaleSpecMap;
|
|
11
|
+
private _markAttributeScaleMap;
|
|
12
|
+
private _spec;
|
|
13
|
+
private readonly _chart;
|
|
14
|
+
constructor(spec: IChartSpec['scales'], chart: IChart);
|
|
15
|
+
private _createFromSpec;
|
|
16
|
+
private _setAttrFromSpec;
|
|
17
|
+
updateSpec(spec: IChartSpec['scales']): {
|
|
18
|
+
change: boolean;
|
|
19
|
+
reMake: boolean;
|
|
20
|
+
reRender: boolean;
|
|
21
|
+
reSize: boolean;
|
|
22
|
+
reCompile: boolean;
|
|
23
|
+
};
|
|
24
|
+
registerModelScale(spec: IVisualSpecScale<unknown, unknown>): void;
|
|
25
|
+
removeModelScale(filter: (spec: IVisualSpecScale<unknown, unknown>) => boolean): void;
|
|
26
|
+
getScale(user_id: string): IBaseScale | null;
|
|
27
|
+
getScaleSpec(user_id: string): IVisualSpecScale<unknown, unknown> | null;
|
|
28
|
+
getStatisticalFields: (dataId: string) => {
|
|
29
|
+
key: string;
|
|
30
|
+
operations: StatisticOperations;
|
|
31
|
+
}[];
|
|
32
|
+
private _getSeriesByRawDataId;
|
|
33
|
+
private _getSeriesBySeriesId;
|
|
34
|
+
updateScaleDomain(defaultDomain: unknown[]): void;
|
|
35
|
+
private _updateMarkScale;
|
|
36
|
+
registerMarkAttributeScale(spec: IVisualScale, seriesId: number): IBaseScale;
|
|
37
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IBaseScale } from '@visactor/vscale';
|
|
2
|
+
import type { StatisticOperations } from '../data/transforms/dimension-statistics';
|
|
3
|
+
import type { IChartSpec, IVisualScale, IVisualSpecScale } from '../typings';
|
|
4
|
+
import type { IUpdateSpecResult } from '../model/interface';
|
|
5
|
+
export interface IGlobalScale {
|
|
6
|
+
color?: any;
|
|
7
|
+
getScale: (user_id: string) => IBaseScale | null;
|
|
8
|
+
getScaleSpec: (user_id: string) => IVisualSpecScale<unknown, unknown> | null;
|
|
9
|
+
getStatisticalFields: (dataId: string) => {
|
|
10
|
+
key: string;
|
|
11
|
+
operations: StatisticOperations;
|
|
12
|
+
}[];
|
|
13
|
+
updateScaleDomain: (string: unknown[]) => void;
|
|
14
|
+
registerMarkAttributeScale: (spec: IVisualScale, seriesId: number) => IBaseScale;
|
|
15
|
+
registerModelScale: (spec: IVisualSpecScale<unknown, unknown>) => void;
|
|
16
|
+
removeModelScale: (filter: (spec: IVisualSpecScale<unknown, unknown>) => boolean) => void;
|
|
17
|
+
updateSpec: (spec: IChartSpec['scales']) => IUpdateSpecResult;
|
|
18
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DirectionType } from '../../typings';
|
|
2
|
+
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
3
|
+
export interface IAreaAnimationParams {
|
|
4
|
+
direction: DirectionType;
|
|
5
|
+
}
|
|
6
|
+
export type AreaAppearPreset = 'clipIn' | 'fadeIn' | 'grow';
|
|
7
|
+
export declare function areaPresetAnimation(params: IAreaAnimationParams, preset: AreaAppearPreset | boolean): IAnimationTypeConfig;
|
|
8
|
+
export declare const registerAreaAnimation: () => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IChartSpecInfo } from '../../chart/interface';
|
|
2
|
+
import { LineLikeSeriesSpecTransformer } from '../mixin/line-mixin-transformer';
|
|
3
|
+
import type { IAreaSeriesSpec, IAreaSeriesTheme } from './interface';
|
|
4
|
+
export declare class AreaSeriesSpecTransformer<T extends IAreaSeriesSpec = IAreaSeriesSpec, K extends IAreaSeriesTheme = IAreaSeriesTheme> extends LineLikeSeriesSpecTransformer<T, K> {
|
|
5
|
+
protected _transformLabelSpec(spec: T): void;
|
|
6
|
+
protected _transformSpecAfterMergingTheme(spec: T, chartSpec: any, chartSpecInfo?: IChartSpecInfo): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { DataView } from '@visactor/vdataset';
|
|
2
|
+
import { LineLikeSeriesMixin } from '../mixin/line-mixin';
|
|
3
|
+
import type { IAreaMark } from '../../mark/area';
|
|
4
|
+
import { CartesianSeries } from '../cartesian/cartesian';
|
|
5
|
+
import type { Datum } from '../../typings';
|
|
6
|
+
import type { SeriesMarkMap } from '../interface';
|
|
7
|
+
import { SeriesTypeEnum } from '../interface/type';
|
|
8
|
+
import type { IAreaSeriesSpec } from './interface';
|
|
9
|
+
import type { IMark } from '../../mark/interface';
|
|
10
|
+
import { AreaSeriesSpecTransformer } from './area-transformer';
|
|
11
|
+
export interface AreaSeries<T extends IAreaSeriesSpec = IAreaSeriesSpec> extends Pick<LineLikeSeriesMixin, 'initLineMark' | 'initSymbolMark' | 'initLabelMarkStyle' | 'initLineMarkStyle' | 'initSymbolMarkStyle' | 'encodeDefined' | '_lineMark' | '_symbolMark' | 'addSamplingCompile' | 'addOverlapCompile' | 'reCompileSampling' | 'initLineLabelMarkStyle'>, CartesianSeries<T> {
|
|
12
|
+
}
|
|
13
|
+
export declare class AreaSeries<T extends IAreaSeriesSpec = IAreaSeriesSpec> extends CartesianSeries<T> {
|
|
14
|
+
static readonly type: string;
|
|
15
|
+
type: SeriesTypeEnum;
|
|
16
|
+
static readonly mark: SeriesMarkMap;
|
|
17
|
+
static readonly transformerConstructor: any;
|
|
18
|
+
readonly transformerConstructor: typeof AreaSeriesSpecTransformer;
|
|
19
|
+
protected _areaMark: IAreaMark;
|
|
20
|
+
protected _supportStack: boolean;
|
|
21
|
+
protected _sortDataByAxis: boolean;
|
|
22
|
+
initMark(): void;
|
|
23
|
+
initMarkStyle(): void;
|
|
24
|
+
initAnimation(): void;
|
|
25
|
+
protected initTooltip(): void;
|
|
26
|
+
viewDataStatisticsUpdate(d: DataView): void;
|
|
27
|
+
compile(): void;
|
|
28
|
+
getDefaultShapeType(): string;
|
|
29
|
+
getActiveMarks(): IMark[];
|
|
30
|
+
onLayoutEnd(ctx: any): void;
|
|
31
|
+
getSeriesStyle(datum: Datum): (attribute: string) => any;
|
|
32
|
+
}
|
|
33
|
+
export declare const registerAreaSeries: () => void;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ICartesianSeriesSpec } from '../cartesian/interface';
|
|
2
|
+
import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';
|
|
3
|
+
import type { ISymbolMarkSpec, ILineMarkSpec, IAreaMarkSpec } from '../../typings/visual';
|
|
4
|
+
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
5
|
+
import type { ILineLikeLabelSpec, ILineLikeSeriesTheme } from '../mixin/line-mixin';
|
|
6
|
+
import type { IAnimationSpec } from '../../animation/spec';
|
|
7
|
+
import type { AreaAppearPreset } from './animation';
|
|
8
|
+
import type { IDataSamping, IMarkOverlap, IMarkProgressiveConfig } from '../../mark/interface';
|
|
9
|
+
import type { ILabelSpec } from '../../component';
|
|
10
|
+
export interface IAreaSeriesSpec extends ICartesianSeriesSpec, IAnimationSpec<string, AreaAppearPreset>, IMarkProgressiveConfig, IDataSamping, IMarkOverlap {
|
|
11
|
+
type: 'area';
|
|
12
|
+
xField?: string | string[];
|
|
13
|
+
yField?: string | string[];
|
|
14
|
+
[SeriesMarkNameEnum.point]?: IMarkSpec<ISymbolMarkSpec>;
|
|
15
|
+
[SeriesMarkNameEnum.line]?: IMarkSpec<ILineMarkSpec>;
|
|
16
|
+
[SeriesMarkNameEnum.area]?: IMarkSpec<IAreaMarkSpec>;
|
|
17
|
+
[SeriesMarkNameEnum.label]?: ILineLikeLabelSpec;
|
|
18
|
+
[SeriesMarkNameEnum.areaLabel]?: Omit<ILabelSpec, 'position'> & {
|
|
19
|
+
position?: 'start' | 'end';
|
|
20
|
+
};
|
|
21
|
+
seriesMark?: 'point' | 'line' | 'area';
|
|
22
|
+
activePoint?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface IAreaSeriesTheme extends ILineLikeSeriesTheme {
|
|
25
|
+
[SeriesMarkNameEnum.area]?: Partial<IMarkTheme<IAreaMarkSpec>>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ISeriesTooltipHelper } from '../interface';
|
|
2
|
+
import { BaseSeriesTooltipHelper } from '../base/tooltip-helper';
|
|
3
|
+
export declare class AreaSeriesTooltipHelper extends BaseSeriesTooltipHelper implements ISeriesTooltipHelper {
|
|
4
|
+
protected _getSeriesStyle: (datum: any, styleKey: string | string[], defaultValue?: any) => any;
|
|
5
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DirectionType } from '../../typings';
|
|
2
|
+
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
3
|
+
export interface IBarAnimationParams {
|
|
4
|
+
xField: string;
|
|
5
|
+
yField: string;
|
|
6
|
+
direction: DirectionType;
|
|
7
|
+
growFrom: () => number;
|
|
8
|
+
}
|
|
9
|
+
export type BarAppearPreset = 'grow' | 'fadeIn' | 'scaleIn';
|
|
10
|
+
export declare const barGrowIn: (params: IBarAnimationParams, isOverall?: boolean) => IAnimationTypeConfig;
|
|
11
|
+
export declare const barGrowOut: (params: IBarAnimationParams, isOverall?: boolean) => IAnimationTypeConfig;
|
|
12
|
+
export declare function barPresetAnimation(params: IBarAnimationParams, preset: BarAppearPreset | boolean): IAnimationTypeConfig;
|
|
13
|
+
export declare const registerBarAnimation: () => void;
|
|
14
|
+
export declare const registerBar3dAnimation: () => void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MarkTypeEnum } from '../../mark/interface/type';
|
|
2
|
+
import type { SeriesMarkMap } from '../interface';
|
|
3
|
+
import { SeriesTypeEnum, SeriesMarkNameEnum } from '../interface/type';
|
|
4
|
+
import { BarSeries } from './bar';
|
|
5
|
+
import type { IBar3dSeriesSpec } from './interface';
|
|
6
|
+
import type { AdaptiveSpec } from '../../typings';
|
|
7
|
+
export declare class Bar3dSeries<T extends IBar3dSeriesSpec = IBar3dSeriesSpec> extends BarSeries<AdaptiveSpec<T, 'type'>> {
|
|
8
|
+
static readonly type: string;
|
|
9
|
+
type: SeriesTypeEnum;
|
|
10
|
+
static readonly mark: SeriesMarkMap;
|
|
11
|
+
protected _barMarkName: SeriesMarkNameEnum;
|
|
12
|
+
protected _barMarkType: MarkTypeEnum;
|
|
13
|
+
}
|
|
14
|
+
export declare const registerBar3dSeries: () => void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BaseSeriesSpecTransformer } from '../base';
|
|
2
|
+
import type { IBarSeriesSpec, IBarSeriesTheme } from './interface';
|
|
3
|
+
export declare class BarSeriesSpecTransformer<T extends IBarSeriesSpec = IBarSeriesSpec, K extends IBarSeriesTheme = IBarSeriesTheme> extends BaseSeriesSpecTransformer<T, K> {
|
|
4
|
+
protected _transformLabelSpec(spec: T): void;
|
|
5
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { CartesianSeries } from '../cartesian/cartesian';
|
|
2
|
+
import type { IMark, IMarkProgressiveConfig } from '../../mark/interface';
|
|
3
|
+
import { MarkTypeEnum } from '../../mark/interface/type';
|
|
4
|
+
import type { Datum, DirectionType } from '../../typings';
|
|
5
|
+
import type { IBarSeriesSpec } from './interface';
|
|
6
|
+
import type { IAxisHelper } from '../../component/axis/cartesian/interface';
|
|
7
|
+
import type { IRectMark } from '../../mark/rect';
|
|
8
|
+
import type { IModelInitOption } from '../../model/interface';
|
|
9
|
+
import type { ITextMark } from '../../mark/text';
|
|
10
|
+
import type { SeriesMarkMap } from '../interface';
|
|
11
|
+
import { SeriesMarkNameEnum, SeriesTypeEnum } from '../interface/type';
|
|
12
|
+
import { SeriesData } from '../base/series-data';
|
|
13
|
+
import { DataView } from '@visactor/vdataset';
|
|
14
|
+
import { BarSeriesSpecTransformer } from './bar-transformer';
|
|
15
|
+
export declare const DefaultBandWidth = 6;
|
|
16
|
+
export declare class BarSeries<T extends IBarSeriesSpec = IBarSeriesSpec> extends CartesianSeries<T> {
|
|
17
|
+
static readonly type: string;
|
|
18
|
+
type: SeriesTypeEnum;
|
|
19
|
+
protected _barMarkName: SeriesMarkNameEnum;
|
|
20
|
+
protected _barMarkType: MarkTypeEnum;
|
|
21
|
+
static readonly mark: SeriesMarkMap;
|
|
22
|
+
static readonly transformerConstructor: any;
|
|
23
|
+
readonly transformerConstructor: typeof BarSeriesSpecTransformer;
|
|
24
|
+
protected _supportStack: boolean;
|
|
25
|
+
protected _bandPosition: number;
|
|
26
|
+
protected _barMark: IRectMark;
|
|
27
|
+
protected _barBackgroundMark: IRectMark;
|
|
28
|
+
protected _barBackgroundViewData: SeriesData;
|
|
29
|
+
initMark(): void;
|
|
30
|
+
protected _initBarBackgroundMark(progressive?: IMarkProgressiveConfig): void;
|
|
31
|
+
initMarkStyle(): void;
|
|
32
|
+
initLabelMarkStyle(textMark: ITextMark): void;
|
|
33
|
+
protected initTooltip(): void;
|
|
34
|
+
protected _statisticViewData(): void;
|
|
35
|
+
init(option: IModelInitOption): void;
|
|
36
|
+
private _shouldDoPreCalculate;
|
|
37
|
+
private _calculateStackRectPosition;
|
|
38
|
+
private _calculateRectPosition;
|
|
39
|
+
protected _dataToPosX(datum: Datum): number;
|
|
40
|
+
protected _dataToPosX1(datum: Datum): number;
|
|
41
|
+
protected _dataToPosY(datum: Datum): number;
|
|
42
|
+
protected _dataToPosY1(datum: Datum): number;
|
|
43
|
+
initBandRectMarkStyle(): void;
|
|
44
|
+
protected _initBandBarBackgroundMarkStyle(): void;
|
|
45
|
+
initLinearRectMarkStyle(): void;
|
|
46
|
+
protected _initLinearBarBackgroundMarkStyle(): void;
|
|
47
|
+
initAnimation(): void;
|
|
48
|
+
protected _getBarWidth(axisHelper: IAxisHelper, scaleDepth?: number): number;
|
|
49
|
+
protected _getPosition(direction: DirectionType, datum: Datum, scaleDepth?: number, mark?: SeriesMarkNameEnum): number;
|
|
50
|
+
protected _barBackgroundPositionXEncoder?: (datum: Datum) => number;
|
|
51
|
+
protected _getBarBackgroundPositionXEncoder: () => (datum: Datum) => number;
|
|
52
|
+
protected _setBarBackgroundPositionXEncoder: (encoder: (datum: Datum) => number) => void;
|
|
53
|
+
dataToBarBackgroundPositionX(datum: Datum, scaleDepth?: number): number;
|
|
54
|
+
protected _barBackgroundPositionYEncoder?: (datum: Datum) => number;
|
|
55
|
+
protected _getBarBackgroundPositionYEncoder: () => (datum: Datum) => number;
|
|
56
|
+
protected _setBarBackgroundPositionYEncoder: (encoder: (datum: Datum) => number) => void;
|
|
57
|
+
dataToBarBackgroundPositionY(datum: Datum, scaleDepth?: number): number;
|
|
58
|
+
onLayoutEnd(ctx: any): void;
|
|
59
|
+
compile(): void;
|
|
60
|
+
getDefaultShapeType(): string;
|
|
61
|
+
getActiveMarks(): IMark[];
|
|
62
|
+
compileData(): void;
|
|
63
|
+
fillData(): void;
|
|
64
|
+
viewDataUpdate(d: DataView): void;
|
|
65
|
+
release(): void;
|
|
66
|
+
}
|
|
67
|
+
export declare const registerBarSeries: () => void;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { ICartesianSeriesSpec, ICartesianSeriesTheme } from '../cartesian/interface';
|
|
2
|
+
import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';
|
|
3
|
+
import type { IRect3dMarkSpec, IRectMarkSpec } from '../../typings/visual';
|
|
4
|
+
import type { IAnimationSpec } from '../../animation/spec';
|
|
5
|
+
import type { BarAppearPreset } from './animation';
|
|
6
|
+
import type { ILabelSpec } from '../../component/label';
|
|
7
|
+
import type { IDataSamping, IMarkProgressiveConfig } from '../../mark/interface';
|
|
8
|
+
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
9
|
+
import type { Functional } from '@visactor/vrender-components';
|
|
10
|
+
type BarMarks = 'bar';
|
|
11
|
+
export interface IBarSeriesSpec extends ICartesianSeriesSpec, IAnimationSpec<BarMarks, BarAppearPreset>, IMarkProgressiveConfig, IDataSamping {
|
|
12
|
+
type: 'bar';
|
|
13
|
+
xField?: string | string[];
|
|
14
|
+
yField?: string | string[];
|
|
15
|
+
[SeriesMarkNameEnum.bar]?: IMarkSpec<IRectMarkSpec>;
|
|
16
|
+
[SeriesMarkNameEnum.barBackground]?: IMarkSpec<IRectMarkSpec> & IBarBackgroundSpec;
|
|
17
|
+
[SeriesMarkNameEnum.label]?: Omit<ILabelSpec, 'position'> & {
|
|
18
|
+
position?: Functional<'outside' | 'top' | 'bottom' | 'left' | 'right' | 'inside' | 'inside-top' | 'inside-bottom' | 'inside-right' | 'inside-left' | 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'>;
|
|
19
|
+
};
|
|
20
|
+
barWidth?: number | string;
|
|
21
|
+
barMinWidth?: number | string;
|
|
22
|
+
barMaxWidth?: number | string;
|
|
23
|
+
barGapInGroup?: number | string | (number | string)[];
|
|
24
|
+
barMinHeight?: number;
|
|
25
|
+
}
|
|
26
|
+
export interface IBarBackgroundSpec {
|
|
27
|
+
fieldLevel?: number;
|
|
28
|
+
}
|
|
29
|
+
export interface IBarSeriesTheme extends ICartesianSeriesTheme {
|
|
30
|
+
[SeriesMarkNameEnum.bar]?: Partial<IMarkTheme<IRectMarkSpec>>;
|
|
31
|
+
[SeriesMarkNameEnum.barBackground]?: Partial<IMarkTheme<IRectMarkSpec>> & IBarBackgroundSpec;
|
|
32
|
+
barWidth?: number;
|
|
33
|
+
barMinWidth?: number;
|
|
34
|
+
barMaxWidth?: number;
|
|
35
|
+
}
|
|
36
|
+
export type IBar3dSeriesSpec = {
|
|
37
|
+
type: 'bar3d';
|
|
38
|
+
} & Omit<IBarSeriesSpec, 'type'> & ICartesianSeriesSpec & IAnimationSpec<BarMarks, BarAppearPreset>;
|
|
39
|
+
export interface IBar3dSeriesTheme extends ICartesianSeriesTheme {
|
|
40
|
+
[SeriesMarkNameEnum.bar3d]?: Partial<IMarkTheme<IRect3dMarkSpec>>;
|
|
41
|
+
}
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IChartSpecInfo } from '../../chart/interface';
|
|
2
|
+
import type { TransformedLabelSpec } from '../../component/label';
|
|
3
|
+
import type { IBaseModelSpecTransformerResult } from '../../model/interface';
|
|
4
|
+
import { BaseModelSpecTransformer } from '../../model/base-model-transformer';
|
|
5
|
+
import type { ISeriesSpec } from '../../typings';
|
|
6
|
+
import type { SeriesMarkNameEnum } from '../interface';
|
|
7
|
+
import type { ISeries } from '../interface';
|
|
8
|
+
export declare class BaseSeriesSpecTransformer<T extends ISeriesSpec, K> extends BaseModelSpecTransformer<T, K> {
|
|
9
|
+
markLabelSpec: Partial<Record<SeriesMarkNameEnum, TransformedLabelSpec[]>>;
|
|
10
|
+
getLabelSpec(markName: string): any;
|
|
11
|
+
setLabelSpec(markName: string, label: TransformedLabelSpec | TransformedLabelSpec[]): void;
|
|
12
|
+
addLabelSpec(markName: string, label: TransformedLabelSpec, head?: boolean): void;
|
|
13
|
+
getTheme(spec: T, chartSpec: any): K;
|
|
14
|
+
transformSpec(spec: T, chartSpec: any, chartSpecInfo?: IChartSpecInfo): IBaseModelSpecTransformerResult<T, K>;
|
|
15
|
+
protected _transformLabelSpec(spec: T): void;
|
|
16
|
+
protected _addMarkLabelSpec<V extends ISeries = ISeries>(spec: T, markName: SeriesMarkNameEnum, labelSpecKey?: keyof T, styleHandlerName?: keyof V, hasAnimation?: boolean, head?: boolean): void;
|
|
17
|
+
protected _getDefaultSpecFromChart(chartSpec: any): any;
|
|
18
|
+
}
|