@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,115 @@
|
|
|
1
|
+
import type { IBoundsLike } from '@visactor/vutils';
|
|
2
|
+
import type { StringOrNumber } from '../typings/common';
|
|
3
|
+
import type { IOrientType, IRect } from '../typings/space';
|
|
4
|
+
import type { IPoint } from '../typings/coordinate';
|
|
5
|
+
import type { ILayoutNumber, ILayoutPaddingSpec, ILayoutPoint, ILayoutRect, ILayoutType } from '../typings/layout';
|
|
6
|
+
import type { ILayoutModel } from '../model/interface';
|
|
7
|
+
export interface IBaseLayout {
|
|
8
|
+
layoutItems: LayoutCallBack;
|
|
9
|
+
}
|
|
10
|
+
export type LayoutCallBack = (chart: any, item: ILayoutItem[], chartLayoutRect: IRect, chartViewBox: IBoundsLike) => void;
|
|
11
|
+
export interface ILayoutSpecBase {
|
|
12
|
+
type: string;
|
|
13
|
+
}
|
|
14
|
+
export type ElementSpec = ({
|
|
15
|
+
modelKey: string;
|
|
16
|
+
modelIndex: number;
|
|
17
|
+
} | {
|
|
18
|
+
modelId: string;
|
|
19
|
+
}) & {
|
|
20
|
+
col: number;
|
|
21
|
+
colSpan?: number;
|
|
22
|
+
row: number;
|
|
23
|
+
rowSpan?: number;
|
|
24
|
+
};
|
|
25
|
+
export interface IGridLayoutSpec extends ILayoutSpecBase {
|
|
26
|
+
type: 'grid';
|
|
27
|
+
col: number;
|
|
28
|
+
row: number;
|
|
29
|
+
colWidth?: {
|
|
30
|
+
index: number;
|
|
31
|
+
size: number | ((maxSize: number) => number);
|
|
32
|
+
}[];
|
|
33
|
+
rowHeight?: {
|
|
34
|
+
index: number;
|
|
35
|
+
size: number | ((maxSize: number) => number);
|
|
36
|
+
}[];
|
|
37
|
+
elements: ElementSpec[];
|
|
38
|
+
}
|
|
39
|
+
export interface IBaseLayoutSpec extends ILayoutSpecBase {
|
|
40
|
+
type: 'base';
|
|
41
|
+
}
|
|
42
|
+
export type ILayoutSpec = IBaseLayoutSpec | IGridLayoutSpec;
|
|
43
|
+
export interface ILayoutConstructor {
|
|
44
|
+
type: string;
|
|
45
|
+
new (spec: ILayoutSpec | any, ctx?: any): IBaseLayout;
|
|
46
|
+
}
|
|
47
|
+
export interface ILayoutItem {
|
|
48
|
+
readonly type: string;
|
|
49
|
+
directionStr?: 'l2r' | 'r2l' | 't2b' | 'b2t';
|
|
50
|
+
layoutClip: boolean;
|
|
51
|
+
layoutType: ILayoutType;
|
|
52
|
+
layoutBindRegionID: number | number[];
|
|
53
|
+
layoutOrient: IOrientType;
|
|
54
|
+
autoIndent: boolean;
|
|
55
|
+
alignSelf?: 'start' | 'end' | 'middle';
|
|
56
|
+
layoutPaddingLeft: number;
|
|
57
|
+
layoutPaddingTop: number;
|
|
58
|
+
layoutPaddingRight: number;
|
|
59
|
+
layoutPaddingBottom: number;
|
|
60
|
+
layoutOffsetX: number;
|
|
61
|
+
layoutOffsetY: number;
|
|
62
|
+
layoutLevel: number;
|
|
63
|
+
chartLayoutRect: ILayoutRect;
|
|
64
|
+
readonly layoutRectLevelMap: ILayoutRect;
|
|
65
|
+
minWidth: number;
|
|
66
|
+
maxWidth: number;
|
|
67
|
+
minHeight: number;
|
|
68
|
+
maxHeight: number;
|
|
69
|
+
readonly model: ILayoutModel;
|
|
70
|
+
getModelId: () => StringOrNumber;
|
|
71
|
+
getModelVisible: () => boolean;
|
|
72
|
+
getSpec?: () => any;
|
|
73
|
+
setAttrFromSpec: (spec: ILayoutItemSpec, chartViewRect: ILayoutRect) => void;
|
|
74
|
+
setRectInSpec: (rect: ILayoutRect) => ILayoutRect;
|
|
75
|
+
getLayoutStartPoint: () => ILayoutPoint;
|
|
76
|
+
getLayoutRect: () => ILayoutRect;
|
|
77
|
+
getLayout: () => IRect;
|
|
78
|
+
getLastComputeOutBounds: () => IBoundsLike;
|
|
79
|
+
onLayoutStart: (layoutRect: IRect, viewRect: ILayoutRect, ctx: any) => void;
|
|
80
|
+
onLayoutEnd: (option: any) => void;
|
|
81
|
+
setLayoutRect: (rect: Partial<ILayoutRect>, levelMap?: Partial<ILayoutRect>) => void;
|
|
82
|
+
computeBoundsInRect: (rect: ILayoutRect) => ILayoutRect;
|
|
83
|
+
setLayoutStartPosition: (pos: Partial<IPoint>) => void;
|
|
84
|
+
absoluteLayoutInRect: (rect: IRect) => void;
|
|
85
|
+
}
|
|
86
|
+
export interface ILayoutItemSpec {
|
|
87
|
+
layoutType?: ILayoutType;
|
|
88
|
+
layoutLevel?: number;
|
|
89
|
+
alignSelf?: 'start' | 'end' | 'middle';
|
|
90
|
+
orient?: IOrientType;
|
|
91
|
+
padding?: ILayoutPaddingSpec;
|
|
92
|
+
noOuterPadding?: boolean;
|
|
93
|
+
width?: ILayoutNumber;
|
|
94
|
+
maxWidth?: ILayoutNumber;
|
|
95
|
+
minWidth?: ILayoutNumber;
|
|
96
|
+
height?: ILayoutNumber;
|
|
97
|
+
maxHeight?: ILayoutNumber;
|
|
98
|
+
minHeight?: ILayoutNumber;
|
|
99
|
+
offsetX?: ILayoutNumber;
|
|
100
|
+
offsetY?: ILayoutNumber;
|
|
101
|
+
zIndex?: number;
|
|
102
|
+
clip?: boolean;
|
|
103
|
+
left?: ILayoutNumber;
|
|
104
|
+
right?: ILayoutNumber;
|
|
105
|
+
top?: ILayoutNumber;
|
|
106
|
+
bottom?: ILayoutNumber;
|
|
107
|
+
center?: boolean;
|
|
108
|
+
}
|
|
109
|
+
export interface ILayoutItemInitOption {
|
|
110
|
+
layoutType: ILayoutType;
|
|
111
|
+
layoutLevel: number;
|
|
112
|
+
layoutOrient?: IOrientType;
|
|
113
|
+
transformLayoutRect?: (rect: ILayoutRect) => ILayoutRect;
|
|
114
|
+
transformLayoutPosition?: (pos: Partial<IPoint>) => Partial<IPoint>;
|
|
115
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { ILayoutModel } from './../model/interface';
|
|
2
|
+
import type { IRect, IPoint } from '../typings';
|
|
3
|
+
import type { IBoundsLike } from '@visactor/vutils';
|
|
4
|
+
import type { ILayoutItem, ILayoutItemInitOption, ILayoutItemSpec } from './interface';
|
|
5
|
+
import type { IChartLayoutOption } from '../chart/interface/common';
|
|
6
|
+
import type { ILayoutAlignSelf, ILayoutPoint, ILayoutRect } from '../typings/layout';
|
|
7
|
+
export declare class LayoutItem implements ILayoutItem {
|
|
8
|
+
protected _spec: ILayoutItemSpec;
|
|
9
|
+
getSpec(): ILayoutItemSpec;
|
|
10
|
+
layoutClip: boolean;
|
|
11
|
+
autoIndent: boolean;
|
|
12
|
+
private _layoutStartPoint;
|
|
13
|
+
getLayoutStartPoint(): ILayoutPoint;
|
|
14
|
+
private _layoutRect;
|
|
15
|
+
protected _layoutRectLevelMap: ILayoutRect;
|
|
16
|
+
get layoutRectLevelMap(): ILayoutRect;
|
|
17
|
+
protected _minWidth: number;
|
|
18
|
+
get minWidth(): number;
|
|
19
|
+
set minWidth(v: number);
|
|
20
|
+
protected _maxWidth: number;
|
|
21
|
+
get maxWidth(): number;
|
|
22
|
+
set maxWidth(v: number);
|
|
23
|
+
protected _minHeight: number;
|
|
24
|
+
get minHeight(): number;
|
|
25
|
+
set minHeight(v: number);
|
|
26
|
+
protected _maxHeight: number;
|
|
27
|
+
get maxHeight(): number;
|
|
28
|
+
set maxHeight(v: number);
|
|
29
|
+
protected _lastComputeRect: ILayoutRect;
|
|
30
|
+
protected _lastComputeOutBounds: IBoundsLike;
|
|
31
|
+
getLastComputeOutBounds(): IBoundsLike;
|
|
32
|
+
getLayoutRect: () => ILayoutRect;
|
|
33
|
+
layoutType: ILayoutItem['layoutType'];
|
|
34
|
+
layoutBindRegionID: ILayoutItem['layoutBindRegionID'];
|
|
35
|
+
_layoutOrient: ILayoutItem['layoutOrient'];
|
|
36
|
+
get layoutOrient(): ILayoutItem['layoutOrient'];
|
|
37
|
+
set layoutOrient(v: ILayoutItem['layoutOrient']);
|
|
38
|
+
layoutPaddingLeft: ILayoutItem['layoutPaddingLeft'];
|
|
39
|
+
layoutPaddingTop: ILayoutItem['layoutPaddingTop'];
|
|
40
|
+
layoutPaddingRight: ILayoutItem['layoutPaddingRight'];
|
|
41
|
+
layoutPaddingBottom: ILayoutItem['layoutPaddingBottom'];
|
|
42
|
+
layoutOffsetX: ILayoutItem['layoutOffsetX'];
|
|
43
|
+
layoutOffsetY: ILayoutItem['layoutOffsetY'];
|
|
44
|
+
layoutLevel: ILayoutItem['layoutLevel'];
|
|
45
|
+
chartLayoutRect: ILayoutRect;
|
|
46
|
+
alignSelf: ILayoutAlignSelf;
|
|
47
|
+
protected _model: ILayoutModel;
|
|
48
|
+
get model(): ILayoutModel;
|
|
49
|
+
get type(): string;
|
|
50
|
+
protected _option: ILayoutItemInitOption;
|
|
51
|
+
constructor(model: ILayoutModel, option: ILayoutItemInitOption);
|
|
52
|
+
private _setLayoutAttributeFromSpec;
|
|
53
|
+
setAttrFromSpec(spec: ILayoutItemSpec, chartViewRect: ILayoutRect): void;
|
|
54
|
+
onLayoutStart(layoutRect: IRect, viewRect: ILayoutRect, ctx: any): void;
|
|
55
|
+
onLayoutEnd(option: IChartLayoutOption): void;
|
|
56
|
+
private _getAbsoluteSpecValue;
|
|
57
|
+
absoluteLayoutInRect(layoutRect: IRect): void;
|
|
58
|
+
setLayoutStartPosition(pos: Partial<IPoint>): void;
|
|
59
|
+
setLayoutRect({ width, height }: Partial<ILayoutRect>, levelMap?: Partial<ILayoutRect>): void;
|
|
60
|
+
getLayout(): IRect;
|
|
61
|
+
mergeLayoutRect({ width, height }: ILayoutRect): ILayoutRect;
|
|
62
|
+
getOrientPosAttribute(): "x" | "y";
|
|
63
|
+
getOrientSizeAttribute(): "width" | "height";
|
|
64
|
+
protected changeBoundsBySetting(bounds: IBoundsLike): IBoundsLike;
|
|
65
|
+
setRectInSpec(rect: ILayoutRect): {
|
|
66
|
+
width: number;
|
|
67
|
+
height: number;
|
|
68
|
+
};
|
|
69
|
+
computeBoundsInRect(rect: ILayoutRect): ILayoutRect;
|
|
70
|
+
getModelId(): number;
|
|
71
|
+
getModelVisible(): boolean;
|
|
72
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { IChart } from '../../chart/interface/chart';
|
|
2
|
+
import type { IBoundsLike } from '@visactor/vutils';
|
|
3
|
+
import type { IRect } from '../../typings/space';
|
|
4
|
+
import type { IBaseLayout, ILayoutItem } from '../interface';
|
|
5
|
+
import type { IOffset } from '../base-layout';
|
|
6
|
+
import { Layout } from '../base-layout';
|
|
7
|
+
export declare class Layout3d extends Layout implements IBaseLayout {
|
|
8
|
+
static type: string;
|
|
9
|
+
layoutItems(_chart: IChart, items: ILayoutItem[], chartLayoutRect: IRect, chartViewBox: IBoundsLike): void;
|
|
10
|
+
protected layoutZAxisItems(zItems: ILayoutItem[], zRect: IRect): void;
|
|
11
|
+
getItemComputeLayoutRect(item: ILayoutItem, extraOffset?: IOffset): {
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
};
|
|
15
|
+
protected _checkAutoIndent(items: ILayoutItem[]): {
|
|
16
|
+
top: number;
|
|
17
|
+
left: number;
|
|
18
|
+
bottom: number;
|
|
19
|
+
right: number;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export declare const registerLayout3d: () => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Layout } from './base-layout';
|
|
2
|
+
import type { ILayoutItem } from './interface';
|
|
3
|
+
export declare function layoutLeftInlineItems(items: ILayoutItem[], layout: Layout, limitHeight: number): void;
|
|
4
|
+
export declare function layoutRightInlineItems(items: ILayoutItem[], layout: Layout, limitHeight: number): void;
|
|
5
|
+
export declare function layoutTopInlineItems(items: ILayoutItem[], layout: Layout, limitWidth: number): void;
|
|
6
|
+
export declare function layoutBottomInlineItems(items: ILayoutItem[], layout: Layout, limitWidth: number): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IArc3dMarkSpec } from '../typings';
|
|
2
|
+
import { BaseArcMark } from './arc';
|
|
3
|
+
import type { IMarkRaw } from './interface';
|
|
4
|
+
import { MarkTypeEnum } from './interface/type';
|
|
5
|
+
export type IArc3dMark = IMarkRaw<IArc3dMarkSpec>;
|
|
6
|
+
export declare class Arc3dMark extends BaseArcMark<IArc3dMarkSpec> implements IArc3dMark {
|
|
7
|
+
static readonly type = MarkTypeEnum.arc3d;
|
|
8
|
+
readonly type: MarkTypeEnum;
|
|
9
|
+
protected _support3d?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const registerArc3dMark: () => void;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { IArcMarkSpec, Datum, StateValueType } from '../typings';
|
|
2
|
+
import { BaseMark } from './base/base-mark';
|
|
3
|
+
import type { IMarkOption, IMarkRaw, IMarkStyle } from './interface';
|
|
4
|
+
import { MarkTypeEnum } from './interface/type';
|
|
5
|
+
export type IArcMark = IMarkRaw<IArcMarkSpec>;
|
|
6
|
+
export declare class BaseArcMark<T extends IArcMarkSpec> extends BaseMark<T> implements IMarkRaw<T> {
|
|
7
|
+
readonly type: MarkTypeEnum;
|
|
8
|
+
_unCompileChannel: {
|
|
9
|
+
centerOffset: boolean;
|
|
10
|
+
radiusOffset: boolean;
|
|
11
|
+
};
|
|
12
|
+
constructor(name: string, option: IMarkOption);
|
|
13
|
+
protected _getDefaultStyle(): IMarkStyle<T>;
|
|
14
|
+
protected computeOuterRadius: (key: string, datum: Datum, states: StateValueType, opt: any, superValue: number) => number;
|
|
15
|
+
protected computeCenter: (key: 'x' | 'y', datum: Datum, states: StateValueType, opt: any, center: number) => number;
|
|
16
|
+
}
|
|
17
|
+
export declare class ArcMark extends BaseArcMark<IArcMarkSpec> implements IArcMark {
|
|
18
|
+
static readonly type = MarkTypeEnum.arc;
|
|
19
|
+
readonly type: MarkTypeEnum;
|
|
20
|
+
}
|
|
21
|
+
export declare const registerArcMark: () => void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IAreaMarkSpec } from '../typings/visual';
|
|
2
|
+
import { BaseLineMark } from './base/base-line';
|
|
3
|
+
import type { IMarkRaw, IMarkStyle } from './interface';
|
|
4
|
+
import { MarkTypeEnum } from './interface/type';
|
|
5
|
+
export type IAreaMark = IMarkRaw<IAreaMarkSpec>;
|
|
6
|
+
export declare class AreaMark extends BaseLineMark<IAreaMarkSpec> implements IAreaMark {
|
|
7
|
+
static readonly type = MarkTypeEnum.area;
|
|
8
|
+
readonly type = MarkTypeEnum.area;
|
|
9
|
+
protected _getDefaultStyle(): IMarkStyle<IAreaMarkSpec>;
|
|
10
|
+
protected _getIgnoreAttributes(): string[];
|
|
11
|
+
}
|
|
12
|
+
export declare const registerAreaMark: () => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StateValueType } from '../../compile/mark';
|
|
2
|
+
import type { ConvertToMarkStyleSpec, ILineLikeMarkSpec } from '../../typings/visual';
|
|
3
|
+
import { BaseMark } from './base-mark';
|
|
4
|
+
import type { IMarkStyle } from '../interface';
|
|
5
|
+
export declare abstract class BaseLineMark<T extends ILineLikeMarkSpec = ILineLikeMarkSpec> extends BaseMark<T> {
|
|
6
|
+
protected abstract _getIgnoreAttributes(): string[];
|
|
7
|
+
setStyle<T>(style: Partial<ConvertToMarkStyleSpec<T>> | Partial<IMarkStyle<T>>, state?: StateValueType, level?: number, stateStyle?: import("../interface").IMarkStateStyle<T>): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { IAttributeOpt, IModelMarkAttributeContext } from '../../compile/mark/interface';
|
|
2
|
+
import type { Datum, IMarkSpec, ICommonSpec } from '../../typings';
|
|
3
|
+
import type { IMarkRaw, IMarkStateStyle, IMarkStyle, IMarkOption, StyleConvert, MarkInputStyle } from '../interface';
|
|
4
|
+
import { CompilableMark } from '../../compile/mark/compilable-mark';
|
|
5
|
+
import type { StateValueType } from '../../compile/mark';
|
|
6
|
+
export type ExChannelCall = (key: string | number | symbol, datum: Datum, states: StateValueType, opt: unknown, baseValue: unknown) => unknown;
|
|
7
|
+
export declare class BaseMark<T extends ICommonSpec> extends CompilableMark implements IMarkRaw<T> {
|
|
8
|
+
stateStyle: IMarkStateStyle<T>;
|
|
9
|
+
protected _option: IMarkOption;
|
|
10
|
+
protected _attributeContext: IModelMarkAttributeContext;
|
|
11
|
+
_extensionChannel: {
|
|
12
|
+
[key: string | number | symbol]: string[];
|
|
13
|
+
};
|
|
14
|
+
_computeExChannel: {
|
|
15
|
+
[key: string | number | symbol]: ExChannelCall;
|
|
16
|
+
};
|
|
17
|
+
constructor(name: string, option: IMarkOption);
|
|
18
|
+
created(): void;
|
|
19
|
+
initStyleWithSpec(spec: IMarkSpec<T>, key?: string): void;
|
|
20
|
+
convertAngleToRadian(styleConverter: StyleConvert<number>): StyleConvert<any>;
|
|
21
|
+
isUserLevel(level: number): boolean;
|
|
22
|
+
setStyle<U extends keyof T>(style: Partial<IMarkStyle<T>>, state?: StateValueType, level?: number, stateStyle?: IMarkStateStyle<T>): void;
|
|
23
|
+
getStyle(key: string, state?: StateValueType): any;
|
|
24
|
+
protected _filterStyle(style: Partial<IMarkStyle<T>>, state: StateValueType, level: number, stateStyle?: IMarkStateStyle<T>): Partial<IMarkStyle<T>>;
|
|
25
|
+
protected _filterAttribute<U extends keyof T>(attr: U, style: MarkInputStyle<T[U]>, state: StateValueType, level: number, isUserLevel: boolean, stateStyle?: IMarkStateStyle<T>): StyleConvert<T[U]>;
|
|
26
|
+
setReferer<U extends keyof T>(mark: IMarkRaw<T>, styleKey?: U, state?: StateValueType, stateStyle?: IMarkStateStyle<T>): void;
|
|
27
|
+
setPostProcess<U extends keyof T>(key: U, postProcessFunc: any, state?: StateValueType): void;
|
|
28
|
+
getAttribute<U extends keyof T>(key: U, datum: Datum, state?: StateValueType, opt?: IAttributeOpt): any;
|
|
29
|
+
setAttribute<U extends keyof T>(attr: U, style: MarkInputStyle<T[U]>, state?: StateValueType, level?: number, stateStyle?: IMarkStateStyle<T>): void;
|
|
30
|
+
protected _getDefaultStyle(): IMarkStyle<T>;
|
|
31
|
+
protected _styleConvert<U extends keyof T>(style?: MarkInputStyle<T[U]>): StyleConvert<T[U]> | undefined;
|
|
32
|
+
protected _computeAttribute<U extends keyof T>(key: U, state: StateValueType): any;
|
|
33
|
+
protected _computeStateAttribute<U extends keyof T>(stateStyle: any, key: U, state: StateValueType): any;
|
|
34
|
+
private _initStyle;
|
|
35
|
+
private _initSpecStyle;
|
|
36
|
+
private _computeGradientAttr;
|
|
37
|
+
private _computeBorderAttr;
|
|
38
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IBoxPlotMarkSpec } from '../typings/visual';
|
|
2
|
+
import { BaseMark } from './base/base-mark';
|
|
3
|
+
import type { IGroupMark } from '@visactor/vgrammar-core';
|
|
4
|
+
import type { IMarkRaw, IMarkStyle } from './interface';
|
|
5
|
+
import { MarkTypeEnum } from './interface/type';
|
|
6
|
+
export type IBoxPlotMark = IMarkRaw<IBoxPlotMarkSpec>;
|
|
7
|
+
export declare class BoxPlotMark extends BaseMark<IBoxPlotMarkSpec> implements IBoxPlotMark {
|
|
8
|
+
static readonly type = MarkTypeEnum.boxPlot;
|
|
9
|
+
readonly type = MarkTypeEnum.boxPlot;
|
|
10
|
+
protected _getDefaultStyle(): IMarkStyle<IBoxPlotMarkSpec>;
|
|
11
|
+
protected _initProduct(group?: string | IGroupMark): void;
|
|
12
|
+
}
|
|
13
|
+
export declare const registerBoxPlotMark: () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ICellMarkSpec } from '../typings';
|
|
2
|
+
import type { IMarkRaw, IMarkStyle } from './interface';
|
|
3
|
+
import { MarkTypeEnum } from './interface/type';
|
|
4
|
+
import { BaseSymbolMark } from './symbol';
|
|
5
|
+
export type ICellMark = IMarkRaw<ICellMarkSpec>;
|
|
6
|
+
export declare class CellMark extends BaseSymbolMark<ICellMarkSpec> implements ICellMark {
|
|
7
|
+
static readonly type = MarkTypeEnum.cell;
|
|
8
|
+
readonly type = MarkTypeEnum.cell;
|
|
9
|
+
protected _getDefaultStyle(): IMarkStyle<ICellMarkSpec>;
|
|
10
|
+
}
|
|
11
|
+
export declare const registerCellMark: () => void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { IGroupMark } from '@visactor/vgrammar-core';
|
|
2
|
+
import type { ICommonSpec } from '../typings';
|
|
3
|
+
import { BaseMark } from './base/base-mark';
|
|
4
|
+
import type { IMarkOption, IMarkRaw } from './interface';
|
|
5
|
+
import { MarkTypeEnum } from './interface/type';
|
|
6
|
+
export type IComponentMark = IMarkRaw<ICommonSpec>;
|
|
7
|
+
export declare class ComponentMark extends BaseMark<ICommonSpec> implements IComponentMark {
|
|
8
|
+
static readonly type = MarkTypeEnum.component;
|
|
9
|
+
type: string;
|
|
10
|
+
private _componentType;
|
|
11
|
+
private _mode;
|
|
12
|
+
constructor(name: string, option: IMarkOption);
|
|
13
|
+
protected _initProduct(group?: string | IGroupMark): void;
|
|
14
|
+
}
|
|
15
|
+
export declare const registerComponentMark: () => void;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Maybe } from '../typings';
|
|
2
|
+
import type { IGroupMarkSpec } from '../typings/visual';
|
|
3
|
+
import { BaseMark } from './base/base-mark';
|
|
4
|
+
import type { IMark, IMarkRaw, IMarkStyle, MarkType } from './interface';
|
|
5
|
+
import { MarkTypeEnum } from './interface/type';
|
|
6
|
+
import type { IGroupMark as IVGrammarGroupMark } from '@visactor/vgrammar-core';
|
|
7
|
+
import type { IMarkCompileOption } from '../compile/mark';
|
|
8
|
+
export interface IGroupMark extends IMarkRaw<IGroupMarkSpec> {
|
|
9
|
+
addMark: (m: IMark) => boolean;
|
|
10
|
+
removeMark: (m: IMark) => boolean;
|
|
11
|
+
getMarks: () => IMark[];
|
|
12
|
+
getMarkInType: (type: MarkType) => IMark[];
|
|
13
|
+
getMarkInId: (id: number) => IMark | undefined;
|
|
14
|
+
getMarkInName: (name: string) => IMark | undefined;
|
|
15
|
+
}
|
|
16
|
+
export declare class GroupMark extends BaseMark<IGroupMarkSpec> implements IGroupMark {
|
|
17
|
+
static readonly type = MarkTypeEnum.group;
|
|
18
|
+
readonly type = MarkTypeEnum.group;
|
|
19
|
+
protected _marks: IMark[];
|
|
20
|
+
getMarks(): IMark[];
|
|
21
|
+
protected _product: Maybe<IVGrammarGroupMark>;
|
|
22
|
+
getProduct: () => Maybe<IVGrammarGroupMark>;
|
|
23
|
+
protected _getDefaultStyle(): IMarkStyle<IGroupMarkSpec>;
|
|
24
|
+
protected isMarkExist(mark: IMark): boolean;
|
|
25
|
+
addMark(mark: IMark): boolean;
|
|
26
|
+
removeMark(mark: IMark): boolean;
|
|
27
|
+
getMarkInType(type: MarkType): IMark[];
|
|
28
|
+
getMarkInId(id: number): IMark;
|
|
29
|
+
getMarkInName(name: string): IMark;
|
|
30
|
+
protected _compileProduct(option?: IMarkCompileOption): void;
|
|
31
|
+
}
|
|
32
|
+
export declare const registerGroupMark: () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IImageMarkSpec } from '../typings/visual';
|
|
2
|
+
import { BaseMark } from './base/base-mark';
|
|
3
|
+
import type { IMarkRaw, IMarkStyle } from './interface';
|
|
4
|
+
import { MarkTypeEnum } from './interface/type';
|
|
5
|
+
export type IImageMark = IMarkRaw<IImageMarkSpec>;
|
|
6
|
+
export declare class ImageMark extends BaseMark<IImageMarkSpec> implements IImageMark {
|
|
7
|
+
static readonly type = MarkTypeEnum.image;
|
|
8
|
+
readonly type = MarkTypeEnum.image;
|
|
9
|
+
protected _getDefaultStyle(): IMarkStyle<IImageMarkSpec>;
|
|
10
|
+
}
|
|
11
|
+
export declare const registerImageMark: () => void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BoxPlotMark } from './box-plot';
|
|
2
|
+
import { LineMark } from './line';
|
|
3
|
+
import { SymbolMark } from './symbol';
|
|
4
|
+
import { GroupMark } from './group';
|
|
5
|
+
import { RuleMark } from './rule';
|
|
6
|
+
import { TextMark } from './text';
|
|
7
|
+
import { AreaMark } from './area';
|
|
8
|
+
import { RectMark } from './rect';
|
|
9
|
+
import { Rect3dMark } from './rect-3d';
|
|
10
|
+
import { PathMark } from './path';
|
|
11
|
+
import { ArcMark } from './arc';
|
|
12
|
+
import { Arc3dMark } from './arc-3d';
|
|
13
|
+
import { ComponentMark } from './component';
|
|
14
|
+
import { LinkPathMark } from './link-path';
|
|
15
|
+
import { RippleMark } from './ripple';
|
|
16
|
+
import { ProgressArcMark } from './progress-arc';
|
|
17
|
+
import { CellMark } from './cell';
|
|
18
|
+
import { BaseMark } from './base';
|
|
19
|
+
import { PolygonMark } from './polygon/polygon';
|
|
20
|
+
import { Pyramid3dMark } from './polygon/pyramid-3d';
|
|
21
|
+
export type { IBoxPlotMarkSpec, ILineMarkSpec, ISymbolMarkSpec, IGroupMarkSpec, IRuleMarkSpec, ITextMarkSpec, IAreaMarkSpec, IRect3dMarkSpec, IRectMarkSpec, IPathMarkSpec, IArcMarkSpec, IArc3dMarkSpec, ICommonSpec, IPolygonMarkSpec, IPyramid3dMarkSpec, ILinkPathMarkSpec, IRippleMarkSpec, IProgressArcMarkSpec, ConvertToMarkStyleSpec, ICellMarkSpec } from '../typings/visual';
|
|
22
|
+
export { BoxPlotMark, LineMark, SymbolMark, GroupMark, RuleMark, TextMark, AreaMark, Rect3dMark, RectMark, PathMark, Arc3dMark, ArcMark, ComponentMark, PolygonMark, Pyramid3dMark, LinkPathMark, RippleMark, ProgressArcMark, CellMark, BaseMark };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { IGlobalScale } from '../../scale/interface';
|
|
2
|
+
import type { ICommonSpec, VisualType, ValueType, FunctionType } from '../../typings/visual';
|
|
3
|
+
import type { IModel } from '../../model/interface';
|
|
4
|
+
import type { IBaseScale } from '@visactor/vscale';
|
|
5
|
+
import type { MarkType } from './type';
|
|
6
|
+
import type { ICompilableMark, ICompilableMarkOption, IModelMarkAttributeContext, StateValueType } from '../../compile/mark';
|
|
7
|
+
import type { StringOrNumber } from '../../typings';
|
|
8
|
+
export interface VisualScaleType {
|
|
9
|
+
scale: IBaseScale;
|
|
10
|
+
field: StringOrNumber;
|
|
11
|
+
changeDomain?: 'none' | 'replace' | 'expand';
|
|
12
|
+
}
|
|
13
|
+
export type MarkInputStyle<T> = StyleConvert<T> | VisualType<T>;
|
|
14
|
+
export type StyleConvert<T> = ValueType<T> | FunctionType<T> | VisualScaleType;
|
|
15
|
+
export interface IAttrConfig<A, R extends ICommonSpec> {
|
|
16
|
+
level: number;
|
|
17
|
+
style: StyleConvert<A>;
|
|
18
|
+
referer?: IMarkRaw<R>;
|
|
19
|
+
postProcess?: (result: A, ...args: Parameters<FunctionType<A>>) => A;
|
|
20
|
+
}
|
|
21
|
+
export type IAttrs<T extends ICommonSpec> = {
|
|
22
|
+
[K in keyof T]: IAttrConfig<T[K], T>;
|
|
23
|
+
};
|
|
24
|
+
export type IMarkProgressiveConfig = {
|
|
25
|
+
large?: boolean;
|
|
26
|
+
largeThreshold?: number;
|
|
27
|
+
progressiveStep?: number;
|
|
28
|
+
progressiveThreshold?: number;
|
|
29
|
+
};
|
|
30
|
+
export type IMarkStateStyle<T extends ICommonSpec> = Record<StateValueType, Partial<IAttrs<T>>>;
|
|
31
|
+
export type IMarkStyle<T extends ICommonSpec> = {
|
|
32
|
+
[key in keyof T]: MarkInputStyle<T[key]>;
|
|
33
|
+
};
|
|
34
|
+
export interface IMarkRaw<T extends ICommonSpec> extends ICompilableMark {
|
|
35
|
+
readonly stateStyle: IMarkStateStyle<T>;
|
|
36
|
+
getAttribute: <U extends keyof T>(key: U, datum: any, state?: StateValueType, opt?: any) => unknown;
|
|
37
|
+
setAttribute: <U extends keyof T>(attr: U, style: StyleConvert<T[U]>, state?: StateValueType, level?: number) => void;
|
|
38
|
+
setStyle: (style: Partial<IMarkStyle<T>>, state?: StateValueType, level?: number) => void;
|
|
39
|
+
setReferer: (mark: IMarkRaw<T>, styleKey?: string, state?: StateValueType, stateStyle?: IMarkStateStyle<T>) => void;
|
|
40
|
+
initStyleWithSpec: (spec: any, key?: string) => void;
|
|
41
|
+
created: () => void;
|
|
42
|
+
setPostProcess: <U extends keyof T, A>(key: U, postProcessFunc: IAttrConfig<A, T>['postProcess'], state?: StateValueType) => void;
|
|
43
|
+
}
|
|
44
|
+
export type IMark = IMarkRaw<ICommonSpec>;
|
|
45
|
+
export interface IMarkOption extends ICompilableMarkOption {
|
|
46
|
+
model: IModel;
|
|
47
|
+
map: Map<StringOrNumber, IModel | IMark>;
|
|
48
|
+
globalScale: IGlobalScale;
|
|
49
|
+
seriesId?: number;
|
|
50
|
+
componentType?: string;
|
|
51
|
+
attributeContext?: IModelMarkAttributeContext;
|
|
52
|
+
}
|
|
53
|
+
export interface IMarkConstructor {
|
|
54
|
+
type: MarkType;
|
|
55
|
+
constructorType?: MarkType;
|
|
56
|
+
new (name: string, options: IMarkOption): IMark;
|
|
57
|
+
}
|
|
58
|
+
export interface IComponentMarkConstructor {
|
|
59
|
+
type: MarkType;
|
|
60
|
+
constructorType?: MarkType;
|
|
61
|
+
new (componentType: string, name: string, options: IMarkOption): IMark;
|
|
62
|
+
}
|
|
63
|
+
export type MarkConstructor = IMarkConstructor | IComponentMarkConstructor;
|
|
64
|
+
export interface IMarkDataInitOption extends IMarkOption {
|
|
65
|
+
mark: IMark;
|
|
66
|
+
}
|
|
67
|
+
export type ISamplingMethod = 'lttb' | 'min' | 'max' | 'sum' | 'average';
|
|
68
|
+
export interface IDataSamping {
|
|
69
|
+
activePoint?: boolean;
|
|
70
|
+
sampling?: ISamplingMethod;
|
|
71
|
+
samplingFactor?: number;
|
|
72
|
+
}
|
|
73
|
+
export interface IMarkOverlap {
|
|
74
|
+
pointDis?: number;
|
|
75
|
+
pointDisMul?: number;
|
|
76
|
+
markOverlap?: boolean;
|
|
77
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type MarkType = keyof typeof MarkTypeEnum | string;
|
|
2
|
+
export declare const enum MarkTypeEnum {
|
|
3
|
+
group = "group",
|
|
4
|
+
symbol = "symbol",
|
|
5
|
+
rule = "rule",
|
|
6
|
+
line = "line",
|
|
7
|
+
text = "text",
|
|
8
|
+
rect = "rect",
|
|
9
|
+
rect3d = "rect3d",
|
|
10
|
+
image = "image",
|
|
11
|
+
path = "path",
|
|
12
|
+
area = "area",
|
|
13
|
+
arc = "arc",
|
|
14
|
+
arc3d = "arc3d",
|
|
15
|
+
polygon = "polygon",
|
|
16
|
+
pyramid3d = "pyramid3d",
|
|
17
|
+
boxPlot = "boxPlot",
|
|
18
|
+
linkPath = "linkPath",
|
|
19
|
+
progressArc = "progressArc",
|
|
20
|
+
cell = "cell",
|
|
21
|
+
ripple = "ripple",
|
|
22
|
+
liquid = "liquid",
|
|
23
|
+
component = "component",
|
|
24
|
+
label = "label"
|
|
25
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { IComponentMark } from './component';
|
|
2
|
+
import type { IMark } from './interface/common';
|
|
3
|
+
import { MarkTypeEnum } from './interface/type';
|
|
4
|
+
import { TextMark } from './text';
|
|
5
|
+
export declare class LabelMark extends TextMark implements ILabelMark {
|
|
6
|
+
static readonly type = MarkTypeEnum.text;
|
|
7
|
+
static readonly constructorType = MarkTypeEnum.label;
|
|
8
|
+
skipEncode: boolean;
|
|
9
|
+
private _rule;
|
|
10
|
+
getRule(): string;
|
|
11
|
+
setRule(rule: string): void;
|
|
12
|
+
private _target;
|
|
13
|
+
getTarget(): IMark;
|
|
14
|
+
setTarget(target: IMark): void;
|
|
15
|
+
private _component;
|
|
16
|
+
getComponent(): IMark;
|
|
17
|
+
setComponent(component: IMark): void;
|
|
18
|
+
}
|
|
19
|
+
export interface ILabelMark extends IMark {
|
|
20
|
+
skipEncode: boolean;
|
|
21
|
+
getRule: () => string;
|
|
22
|
+
setRule: (rule: string) => void;
|
|
23
|
+
getTarget: () => IMark;
|
|
24
|
+
setTarget: (target: IMark) => void;
|
|
25
|
+
getComponent: () => IComponentMark;
|
|
26
|
+
setComponent: (component: IComponentMark) => void;
|
|
27
|
+
}
|
|
28
|
+
export declare const registerLabelMark: () => void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ILineMarkSpec } from '../typings/visual';
|
|
2
|
+
import { BaseLineMark } from './base/base-line';
|
|
3
|
+
import type { IMarkRaw, IMarkStyle } from './interface';
|
|
4
|
+
import { MarkTypeEnum } from './interface/type';
|
|
5
|
+
export type ILineMark = IMarkRaw<ILineMarkSpec>;
|
|
6
|
+
export declare class LineMark extends BaseLineMark<ILineMarkSpec> implements ILineMark {
|
|
7
|
+
static readonly type = MarkTypeEnum.line;
|
|
8
|
+
readonly type = MarkTypeEnum.line;
|
|
9
|
+
protected _getDefaultStyle(): IMarkStyle<ILineMarkSpec>;
|
|
10
|
+
protected _getIgnoreAttributes(): string[];
|
|
11
|
+
}
|
|
12
|
+
export declare const registerLineMark: () => void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseMark } from './base/base-mark';
|
|
2
|
+
import type { ILinkPathMarkSpec } from '../typings/visual';
|
|
3
|
+
import type { IMarkRaw, IMarkStyle } from './interface';
|
|
4
|
+
import { MarkTypeEnum } from './interface/type';
|
|
5
|
+
import type { IGroupMark } from '@visactor/vgrammar-core';
|
|
6
|
+
export type ILinkPathMark = IMarkRaw<ILinkPathMarkSpec>;
|
|
7
|
+
export declare class LinkPathMark extends BaseMark<ILinkPathMarkSpec> implements ILinkPathMark {
|
|
8
|
+
static readonly type = MarkTypeEnum.linkPath;
|
|
9
|
+
readonly type = MarkTypeEnum.linkPath;
|
|
10
|
+
protected _getDefaultStyle(): IMarkStyle<ILinkPathMarkSpec>;
|
|
11
|
+
protected _initProduct(group?: string | IGroupMark): void;
|
|
12
|
+
}
|
|
13
|
+
export declare const registerLinkPathMark: () => void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ILiquidMarkSpec } from '../typings';
|
|
2
|
+
import type { IMarkStyle } from './interface';
|
|
3
|
+
import { MarkTypeEnum } from './interface/type';
|
|
4
|
+
import { BaseMark } from './base';
|
|
5
|
+
import type { ILiquidMark } from '../series/liquid/liquid';
|
|
6
|
+
import type { IGroupMark } from '@visactor/vgrammar-core';
|
|
7
|
+
export declare class LiquidMark extends BaseMark<ILiquidMarkSpec> implements ILiquidMark {
|
|
8
|
+
static readonly type = MarkTypeEnum.liquid;
|
|
9
|
+
readonly type = MarkTypeEnum.liquid;
|
|
10
|
+
protected _getDefaultStyle(): IMarkStyle<ILiquidMarkSpec>;
|
|
11
|
+
protected _initProduct(group?: string | IGroupMark): void;
|
|
12
|
+
}
|
|
13
|
+
export declare const registerLiquidMark: () => void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { IMark } from '../interface';
|
|
2
|
+
export interface IMarkInfo {
|
|
3
|
+
styleWithSeriesField?: boolean;
|
|
4
|
+
name?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class MarkSet {
|
|
7
|
+
protected _children: IMark[];
|
|
8
|
+
protected _markNameMap: Record<string, IMark>;
|
|
9
|
+
getMarkNameMap(): Record<string, IMark>;
|
|
10
|
+
protected readonly _infoMap: Map<IMark, IMarkInfo>;
|
|
11
|
+
static readonly defaultMarkInfo: IMarkInfo;
|
|
12
|
+
addMark(mark?: IMark, markInfo?: IMarkInfo): void;
|
|
13
|
+
removeMark(markName: string): void;
|
|
14
|
+
clear(): void;
|
|
15
|
+
forEach(callbackfn: (value: IMark, index: number, array: IMark[]) => void): void;
|
|
16
|
+
includes(mark: IMark, fromIndex?: number): boolean;
|
|
17
|
+
get(key: number | string): any;
|
|
18
|
+
getMarks(): IMark[];
|
|
19
|
+
getMarksInType(type: string | string[]): IMark[];
|
|
20
|
+
getMarkInId(markId: number): IMark | undefined;
|
|
21
|
+
getMarkWithInfo(info: Partial<IMarkInfo>): IMark;
|
|
22
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IPathMarkSpec } from '../typings/visual';
|
|
2
|
+
import { BaseMark } from './base/base-mark';
|
|
3
|
+
import type { IMarkRaw, IMarkStyle } from './interface';
|
|
4
|
+
import { MarkTypeEnum } from './interface/type';
|
|
5
|
+
export type IPathMark = IMarkRaw<IPathMarkSpec>;
|
|
6
|
+
export declare class PathMark extends BaseMark<IPathMarkSpec> implements IPathMark {
|
|
7
|
+
static readonly type = MarkTypeEnum.path;
|
|
8
|
+
readonly type = MarkTypeEnum.path;
|
|
9
|
+
protected _getDefaultStyle(): IMarkStyle<IPathMarkSpec>;
|
|
10
|
+
}
|
|
11
|
+
export declare const registerPathMark: () => void;
|