@visactor/vchart-types 0.16.17-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 +56 -0
- package/types/animation/interface.d.ts +29 -0
- package/types/animation/spec.d.ts +24 -0
- package/types/animation/utils.d.ts +17 -0
- package/types/chart/area/area.d.ts +12 -0
- package/types/chart/area/index.d.ts +2 -0
- package/types/chart/area/interface.d.ts +7 -0
- package/types/chart/bar/bar-3d.d.ts +9 -0
- package/types/chart/bar/bar.d.ts +11 -0
- package/types/chart/bar/index.d.ts +3 -0
- package/types/chart/bar/interface.d.ts +11 -0
- package/types/chart/base-chart.d.ts +154 -0
- package/types/chart/box-plot/box-plot.d.ts +11 -0
- package/types/chart/box-plot/index.d.ts +2 -0
- package/types/chart/box-plot/interface.d.ts +7 -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.d.ts +12 -0
- package/types/chart/circle-packing/index.d.ts +2 -0
- package/types/chart/circle-packing/interface.d.ts +6 -0
- package/types/chart/common/common.d.ts +10 -0
- package/types/chart/common/index.d.ts +2 -0
- package/types/chart/common/interface.d.ts +41 -0
- package/types/chart/correlation/correlation.d.ts +11 -0
- package/types/chart/correlation/index.d.ts +2 -0
- package/types/chart/correlation/interface.d.ts +6 -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.d.ts +8 -0
- package/types/chart/funnel/index.d.ts +3 -0
- package/types/chart/funnel/interface.d.ts +9 -0
- package/types/chart/gauge/gauge.d.ts +12 -0
- package/types/chart/gauge/index.d.ts +2 -0
- package/types/chart/gauge/interface.d.ts +10 -0
- package/types/chart/heatmap/heatmap.d.ts +9 -0
- package/types/chart/heatmap/index.d.ts +2 -0
- package/types/chart/heatmap/interface.d.ts +7 -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.d.ts +9 -0
- package/types/chart/histogram/index.d.ts +3 -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 +87 -0
- package/types/chart/interface/common.d.ts +32 -0
- package/types/chart/interface/index.d.ts +3 -0
- package/types/chart/interface/type.d.ts +35 -0
- package/types/chart/line/index.d.ts +2 -0
- package/types/chart/line/interface.d.ts +7 -0
- package/types/chart/line/line.d.ts +12 -0
- package/types/chart/map/index.d.ts +2 -0
- package/types/chart/map/interface.d.ts +6 -0
- package/types/chart/map/map.d.ts +13 -0
- package/types/chart/pie/base.d.ts +5 -0
- package/types/chart/pie/index.d.ts +3 -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 +8 -0
- package/types/chart/polar/index.d.ts +4 -0
- package/types/chart/polar/interface.d.ts +7 -0
- package/types/chart/polar/polar.d.ts +9 -0
- package/types/chart/polar/progress-like.d.ts +7 -0
- package/types/chart/polar/rose-like.d.ts +7 -0
- package/types/chart/progress/circular/circular.d.ts +11 -0
- package/types/chart/progress/circular/index.d.ts +2 -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 +2 -0
- package/types/chart/progress/linear/interface.d.ts +9 -0
- package/types/chart/progress/linear/linear.d.ts +13 -0
- package/types/chart/radar/index.d.ts +2 -0
- package/types/chart/radar/interface.d.ts +7 -0
- package/types/chart/radar/radar.d.ts +10 -0
- package/types/chart/range-area/index.d.ts +2 -0
- package/types/chart/range-area/interface.d.ts +7 -0
- package/types/chart/range-area/range-area.d.ts +10 -0
- package/types/chart/range-column/index.d.ts +3 -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.d.ts +10 -0
- package/types/chart/rose/index.d.ts +2 -0
- package/types/chart/rose/interface.d.ts +7 -0
- package/types/chart/rose/rose.d.ts +10 -0
- package/types/chart/sankey/index.d.ts +2 -0
- package/types/chart/sankey/interface.d.ts +6 -0
- package/types/chart/sankey/sankey.d.ts +11 -0
- package/types/chart/scatter/index.d.ts +2 -0
- package/types/chart/scatter/interface.d.ts +7 -0
- package/types/chart/scatter/scatter.d.ts +11 -0
- package/types/chart/sequence/index.d.ts +2 -0
- package/types/chart/sequence/interface.d.ts +24 -0
- package/types/chart/sequence/sequence.d.ts +12 -0
- package/types/chart/stack.d.ts +11 -0
- package/types/chart/sunburst/index.d.ts +2 -0
- package/types/chart/sunburst/interface.d.ts +6 -0
- package/types/chart/sunburst/sunburst.d.ts +12 -0
- package/types/chart/treemap/index.d.ts +2 -0
- package/types/chart/treemap/interface.d.ts +6 -0
- package/types/chart/treemap/treemap.d.ts +11 -0
- package/types/chart/util.d.ts +12 -0
- package/types/chart/waterfall/index.d.ts +2 -0
- package/types/chart/waterfall/interface.d.ts +7 -0
- package/types/chart/waterfall/waterfall.d.ts +11 -0
- package/types/chart/word-cloud/base.d.ts +6 -0
- package/types/chart/word-cloud/index.d.ts +3 -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.d.ts +11 -0
- package/types/compile/compilable-base.d.ts +11 -0
- package/types/compile/compiler.d.ts +60 -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 +49 -0
- package/types/compile/interface/index.d.ts +2 -0
- package/types/compile/mark/compilable-mark.d.ts +110 -0
- package/types/compile/mark/index.d.ts +3 -0
- package/types/compile/mark/interface.d.ts +154 -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 +147 -0
- package/types/component/axis/cartesian/axis.d.ts +105 -0
- package/types/component/axis/cartesian/band-axis.d.ts +33 -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 +50 -0
- package/types/component/axis/cartesian/interface/index.d.ts +3 -0
- package/types/component/axis/cartesian/interface/spec.d.ts +45 -0
- package/types/component/axis/cartesian/interface/theme.d.ts +22 -0
- package/types/component/axis/cartesian/linear-axis.d.ts +28 -0
- package/types/component/axis/cartesian/log-axis.d.ts +17 -0
- package/types/component/axis/cartesian/symlog-axis.d.ts +17 -0
- package/types/component/axis/cartesian/time-axis.d.ts +22 -0
- package/types/component/axis/cartesian/util/common.d.ts +13 -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 +37 -0
- package/types/component/axis/interface/index.d.ts +3 -0
- package/types/component/axis/interface/spec.d.ts +91 -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 +41 -0
- package/types/component/axis/mixin/linear-axis-mixin.d.ts +56 -0
- package/types/component/axis/polar/axis.d.ts +84 -0
- package/types/component/axis/polar/band-axis.d.ts +33 -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 +34 -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 +23 -0
- package/types/component/axis/util.d.ts +28 -0
- package/types/component/base/base-component.d.ts +53 -0
- package/types/component/base/index.d.ts +1 -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 +77 -0
- package/types/component/brush/index.d.ts +2 -0
- package/types/component/brush/interface.d.ts +48 -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 +76 -0
- package/types/component/crosshair/cartesian.d.ts +69 -0
- package/types/component/crosshair/config.d.ts +12 -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 +71 -0
- package/types/component/crosshair/interface/theme.d.ts +9 -0
- package/types/component/crosshair/polar.d.ts +80 -0
- package/types/component/crosshair/util.d.ts +10 -0
- package/types/component/custom-mark/custom-mark.d.ts +33 -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 +120 -0
- package/types/component/data-zoom/data-zoom/data-zoom.d.ts +66 -0
- package/types/component/data-zoom/data-zoom/index.d.ts +2 -0
- package/types/component/data-zoom/data-zoom/interface.d.ts +59 -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 +23 -0
- package/types/component/data-zoom/scroll-bar/scroll-bar.d.ts +31 -0
- package/types/component/data-zoom/util.d.ts +19 -0
- package/types/component/geo/geo-coordinate.d.ts +63 -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 +46 -0
- package/types/component/indicator/index.d.ts +2 -0
- package/types/component/indicator/indicator.d.ts +40 -0
- package/types/component/indicator/interface.d.ts +32 -0
- package/types/component/indicator/util.d.ts +13 -0
- package/types/component/interface/common.d.ts +36 -0
- package/types/component/interface/index.d.ts +4 -0
- package/types/component/interface/theme.d.ts +42 -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 +38 -0
- package/types/component/label/index.d.ts +2 -0
- package/types/component/label/interface.d.ts +37 -0
- package/types/component/label/label.d.ts +45 -0
- package/types/component/label/totalLabel.d.ts +26 -0
- package/types/component/label/util.d.ts +58 -0
- package/types/component/legend/base-legend.d.ts +60 -0
- package/types/component/legend/continuous/index.d.ts +2 -0
- package/types/component/legend/continuous/interface.d.ts +58 -0
- package/types/component/legend/continuous/legend.d.ts +30 -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 +29 -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 +39 -0
- package/types/component/legend/util.d.ts +26 -0
- package/types/component/map-label/component.d.ts +52 -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 +68 -0
- package/types/component/marker/interface.d.ts +65 -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 +26 -0
- package/types/component/marker/mark-area/interface/theme.d.ts +11 -0
- package/types/component/marker/mark-area/mark-area.d.ts +18 -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 +53 -0
- package/types/component/marker/mark-line/interface/theme.d.ts +13 -0
- package/types/component/marker/mark-line/mark-line.d.ts +18 -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 +14 -0
- package/types/component/marker/mark-point/interface/theme.d.ts +37 -0
- package/types/component/marker/mark-point/mark-point.d.ts +18 -0
- package/types/component/marker/utils.d.ts +6 -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 +45 -0
- package/types/component/title/interface/theme.d.ts +19 -0
- package/types/component/title/title.d.ts +46 -0
- package/types/component/title/utils.d.ts +2 -0
- package/types/component/tooltip/handler/base.d.ts +50 -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 +18 -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 +2 -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.d.ts +65 -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 +4 -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 +57 -0
- package/types/constant/funnel.d.ts +14 -0
- package/types/constant/hierarchy.d.ts +3 -0
- package/types/constant/index.d.ts +110 -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 +23 -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 +51 -0
- package/types/core/index.d.ts +12 -0
- package/types/core/instance-manager.d.ts +10 -0
- package/types/core/interface.d.ts +96 -0
- package/types/core/util.d.ts +3 -0
- package/types/core/vchart.d.ts +158 -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 +33 -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/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/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 +22 -0
- package/types/event/events/dimension/util/cartesian.d.ts +8 -0
- package/types/event/events/dimension/util/common.d.ts +7 -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 +5 -0
- package/types/event/interface.d.ts +160 -0
- package/types/index-lark.d.ts +4 -0
- package/types/index-wx.d.ts +4 -0
- package/types/index.d.ts +9 -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 +20 -0
- package/types/interaction/interface.d.ts +49 -0
- package/types/interaction/trigger.d.ts +38 -0
- package/types/interaction/zoom/index.d.ts +1 -0
- package/types/interaction/zoom/zoomable.d.ts +81 -0
- package/types/layout/base-layout.d.ts +33 -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 +113 -0
- package/types/layout/layout-item.d.ts +71 -0
- package/types/layout/layout3d/index.d.ts +29 -0
- package/types/layout/util.d.ts +6 -0
- package/types/mark/arc-3d.d.ts +9 -0
- package/types/mark/arc.d.ts +20 -0
- package/types/mark/area.d.ts +11 -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 +12 -0
- package/types/mark/cell.d.ts +10 -0
- package/types/mark/component.d.ts +14 -0
- package/types/mark/group.d.ts +31 -0
- package/types/mark/image.d.ts +10 -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 +24 -0
- package/types/mark/label.d.ts +27 -0
- package/types/mark/line.d.ts +11 -0
- package/types/mark/link-path.d.ts +12 -0
- package/types/mark/mark-set/index.d.ts +22 -0
- package/types/mark/path.d.ts +10 -0
- package/types/mark/polygon/base-polygon.d.ts +6 -0
- package/types/mark/polygon/polygon.d.ts +10 -0
- package/types/mark/polygon/pyramid-3d.d.ts +9 -0
- package/types/mark/progress-arc.d.ts +13 -0
- package/types/mark/rect-3d.d.ts +10 -0
- package/types/mark/rect.d.ts +10 -0
- package/types/mark/ripple.d.ts +12 -0
- package/types/mark/rule.d.ts +10 -0
- package/types/mark/symbol.d.ts +12 -0
- package/types/mark/text.d.ts +10 -0
- package/types/mark/utils/common.d.ts +3 -0
- package/types/mark/utils/index.d.ts +1 -0
- package/types/model/base-model.d.ts +88 -0
- package/types/model/interface.d.ts +126 -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/chart/interface.d.ts +6 -0
- package/types/plugin/components/axis-sync-plugin/axis-sync.d.ts +11 -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 +33 -0
- package/types/plugin/components/plugin-service.d.ts +15 -0
- package/types/plugin/interface.d.ts +4 -0
- package/types/plugin/series/interface.d.ts +9 -0
- package/types/region/interface.d.ts +60 -0
- package/types/region/region.d.ts +80 -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.d.ts +32 -0
- package/types/series/area/constant.d.ts +2 -0
- package/types/series/area/interface.d.ts +22 -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.d.ts +52 -0
- package/types/series/bar/constant.d.ts +3 -0
- package/types/series/bar/interface.d.ts +39 -0
- package/types/series/base/base-series.d.ts +195 -0
- package/types/series/base/constant.d.ts +2 -0
- package/types/series/base/group.d.ts +12 -0
- package/types/series/base/series-data.d.ts +5 -0
- package/types/series/base/tooltip-helper.d.ts +29 -0
- package/types/series/box-plot/box-plot.d.ts +63 -0
- package/types/series/box-plot/constant.d.ts +2 -0
- package/types/series/box-plot/interface.d.ts +23 -0
- package/types/series/box-plot/tooltip-helper.d.ts +12 -0
- package/types/series/cartesian/cartesian.d.ts +95 -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 +21 -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.d.ts +55 -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 +73 -0
- package/types/series/dot/interface.d.ts +40 -0
- package/types/series/dot/tooltip-helper.d.ts +7 -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.d.ts +95 -0
- package/types/series/funnel/interface.d.ts +60 -0
- package/types/series/funnel/tooltip-helper.d.ts +9 -0
- package/types/series/gauge/constant.d.ts +3 -0
- package/types/series/gauge/gauge-pointer.d.ts +37 -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 +48 -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.d.ts +39 -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 +73 -0
- package/types/series/interface/index.d.ts +5 -0
- package/types/series/interface/series.d.ts +178 -0
- package/types/series/interface/theme.d.ts +104 -0
- package/types/series/interface/tooltip-helper.d.ts +13 -0
- package/types/series/interface/type.d.ts +91 -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 +21 -0
- package/types/series/line/line.d.ts +26 -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/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.d.ts +48 -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.d.ts +61 -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 +67 -0
- package/types/series/pie/pie-3d.d.ts +16 -0
- package/types/series/pie/pie.d.ts +83 -0
- package/types/series/polar/animation.d.ts +41 -0
- package/types/series/polar/interface.d.ts +22 -0
- package/types/series/polar/polar.d.ts +59 -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 +27 -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 +29 -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/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.d.ts +26 -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.d.ts +28 -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.d.ts +37 -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.d.ts +58 -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 +5 -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.d.ts +40 -0
- package/types/series/word-cloud/animation.d.ts +14 -0
- package/types/series/word-cloud/base.d.ts +62 -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 +120 -0
- package/types/series/word-cloud/word-cloud-3d.d.ts +13 -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 +3 -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 +2 -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/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/dark/color-scheme.d.ts +2 -0
- package/types/theme/builtin/dark/index.d.ts +2 -0
- package/types/theme/builtin/index.d.ts +15 -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/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 +21 -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 +23 -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 +27 -0
- package/types/typings/space.d.ts +19 -0
- package/types/typings/spec/chart.d.ts +61 -0
- package/types/typings/spec/common.d.ts +266 -0
- package/types/typings/spec/index.d.ts +4 -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 +18 -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 +285 -0
- package/types/util/array.d.ts +3 -0
- package/types/util/color.d.ts +3 -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 +27 -0
- package/types/util/model.d.ts +4 -0
- package/types/util/object.d.ts +3 -0
- package/types/util/scale.d.ts +20 -0
- package/types/util/space.d.ts +14 -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 +3 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StateManager } from '../compile/signal/state-manager';
|
|
2
|
+
import type { StateValueMap } from '../compile/signal/interface';
|
|
3
|
+
import type { IAnimate, IAnimateState } from './interface';
|
|
4
|
+
import { AnimationStateEnum } from './interface';
|
|
5
|
+
export declare class AnimateManager extends StateManager implements IAnimate {
|
|
6
|
+
protected _stateMap: IAnimateState & StateValueMap;
|
|
7
|
+
readonly id: number;
|
|
8
|
+
protected stateKeyToSignalName: (key: string) => string;
|
|
9
|
+
getAnimationStateSignalName(): string;
|
|
10
|
+
updateAnimateState(state: AnimationStateEnum, noRender?: boolean): void;
|
|
11
|
+
protected _getDefaultStateMap(): IAnimateState & StateValueMap;
|
|
12
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export declare const DEFAULT_ANIMATION_CONFIG: {
|
|
2
|
+
appear: {
|
|
3
|
+
duration: number;
|
|
4
|
+
easing: string;
|
|
5
|
+
};
|
|
6
|
+
update: {
|
|
7
|
+
type: string;
|
|
8
|
+
duration: number;
|
|
9
|
+
easing: string;
|
|
10
|
+
};
|
|
11
|
+
enter: {
|
|
12
|
+
duration: number;
|
|
13
|
+
easing: string;
|
|
14
|
+
};
|
|
15
|
+
exit: {
|
|
16
|
+
duration: number;
|
|
17
|
+
easing: string;
|
|
18
|
+
};
|
|
19
|
+
disappear: {
|
|
20
|
+
duration: number;
|
|
21
|
+
easing: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const ScaleInOutAnimation: {
|
|
25
|
+
appear: {
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
enter: {
|
|
29
|
+
type: string;
|
|
30
|
+
};
|
|
31
|
+
exit: {
|
|
32
|
+
type: string;
|
|
33
|
+
};
|
|
34
|
+
disappear: {
|
|
35
|
+
type: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export declare const FadeInOutAnimation: {
|
|
39
|
+
appear: {
|
|
40
|
+
type: string;
|
|
41
|
+
};
|
|
42
|
+
enter: {
|
|
43
|
+
type: string;
|
|
44
|
+
};
|
|
45
|
+
exit: {
|
|
46
|
+
type: string;
|
|
47
|
+
};
|
|
48
|
+
disappear: {
|
|
49
|
+
type: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export declare const registerScaleInOutAnimation: () => void;
|
|
53
|
+
export declare const registerFadeInOutAnimation: () => void;
|
|
54
|
+
export declare const registerCartesianGroupClipAnimation: () => void;
|
|
55
|
+
export declare const registerLineAnimation: () => void;
|
|
56
|
+
export declare const registerVGrammarAnimation: () => void;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type { MarkAnimationSpec } from '@visactor/vgrammar-core';
|
|
2
|
+
import type { ICompilable } from '../compile/interface';
|
|
3
|
+
export declare enum AnimationStateEnum {
|
|
4
|
+
appear = "appear",
|
|
5
|
+
disappear = "disappear",
|
|
6
|
+
enter = "enter",
|
|
7
|
+
update = "update",
|
|
8
|
+
state = "state",
|
|
9
|
+
exit = "exit",
|
|
10
|
+
normal = "normal",
|
|
11
|
+
none = "none"
|
|
12
|
+
}
|
|
13
|
+
export type IAnimationState = keyof typeof AnimationStateEnum;
|
|
14
|
+
export interface IAnimateState {
|
|
15
|
+
animationState: {
|
|
16
|
+
callback: (datum: any, element: any) => AnimationStateEnum;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface IAnimate extends ICompilable {
|
|
20
|
+
id: number;
|
|
21
|
+
updateAnimateState: (state: AnimationStateEnum, noRender?: boolean) => void;
|
|
22
|
+
getAnimationStateSignalName: () => string;
|
|
23
|
+
}
|
|
24
|
+
export interface ICartesianGroupAnimationParams {
|
|
25
|
+
direction: () => 'x' | 'y';
|
|
26
|
+
orient: () => 'positive' | 'negative';
|
|
27
|
+
width: () => number;
|
|
28
|
+
height: () => number;
|
|
29
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { IAnimationConfig } from '@visactor/vgrammar-core';
|
|
2
|
+
import type { EasingType } from '@visactor/vrender-core';
|
|
3
|
+
export type { IRunningConfig as IMorphConfig, IMorphAnimationConfig } from '@visactor/vgrammar-core';
|
|
4
|
+
export type IStateAnimateSpec<Preset extends string> = {
|
|
5
|
+
preset?: Preset | false;
|
|
6
|
+
duration?: number;
|
|
7
|
+
delay?: number;
|
|
8
|
+
easing?: EasingType;
|
|
9
|
+
oneByOne?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type IMarkAnimateSpec<MarkName extends string> = Partial<Record<MarkName, false | IAnimationConfig | IAnimationConfig[]>>;
|
|
12
|
+
export interface IAnimationSpec<MarkName extends string, Preset extends string> {
|
|
13
|
+
animationAppear?: boolean | IStateAnimateSpec<Preset> | IMarkAnimateSpec<MarkName>;
|
|
14
|
+
animationEnter?: boolean | Omit<IStateAnimateSpec<Preset>, 'preset'> | IMarkAnimateSpec<MarkName>;
|
|
15
|
+
animationUpdate?: boolean | Omit<IStateAnimateSpec<Preset>, 'preset'> | IMarkAnimateSpec<MarkName>;
|
|
16
|
+
animationExit?: boolean | Omit<IStateAnimateSpec<Preset>, 'preset'> | IMarkAnimateSpec<MarkName>;
|
|
17
|
+
animationDisappear?: boolean | Omit<IStateAnimateSpec<Preset>, 'preset'> | IMarkAnimateSpec<MarkName>;
|
|
18
|
+
animationNormal?: IMarkAnimateSpec<MarkName>;
|
|
19
|
+
}
|
|
20
|
+
export interface IMorphSeriesSpec {
|
|
21
|
+
enable?: boolean;
|
|
22
|
+
morphKey?: string;
|
|
23
|
+
morphElementKey?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IAnimationConfig } from '@visactor/vgrammar-core';
|
|
2
|
+
import type { MarkAnimationSpec, IAnimationState } from './interface';
|
|
3
|
+
import type { IStateAnimateSpec, IAnimationSpec } from './spec';
|
|
4
|
+
import type { SeriesMarkNameEnum } from '../series/interface/type';
|
|
5
|
+
import type { ISeries } from '../series';
|
|
6
|
+
import type { ISeriesSpec } from '../typings';
|
|
7
|
+
import type { ISeriesMarkAttributeContext } from '../compile/mark';
|
|
8
|
+
export declare const AnimationStates: string[];
|
|
9
|
+
export declare function animationConfig<Preset extends string>(defaultConfig?: MarkAnimationSpec, userConfig?: Partial<Record<IAnimationState, boolean | IStateAnimateSpec<Preset> | IAnimationConfig | IAnimationConfig[]>>, params?: {
|
|
10
|
+
dataIndex: (datum: any) => number;
|
|
11
|
+
}): MarkAnimationSpec;
|
|
12
|
+
export declare function userAnimationConfig<M extends string, Preset extends string>(markName: SeriesMarkNameEnum | string, spec: IAnimationSpec<M, Preset>, ctx: ISeriesMarkAttributeContext): Partial<Record<"none" | "normal" | "state" | "update" | "appear" | "enter" | "exit" | "disappear", boolean | IAnimationConfig | IAnimationConfig[] | IStateAnimateSpec<string>>>;
|
|
13
|
+
export declare function shouldMarkDoMorph(spec: ISeriesSpec & IAnimationSpec<string, string>, markName: string): boolean;
|
|
14
|
+
export declare function isTimeLineAnimation(animationConfig: IAnimationConfig): boolean;
|
|
15
|
+
export declare function isChannelAnimation(animationConfig: IAnimationConfig): boolean;
|
|
16
|
+
export declare function uniformAnimationConfig<Preset extends string>(config: Partial<Record<IAnimationState, boolean | IStateAnimateSpec<Preset> | IAnimationConfig | IAnimationConfig[]>>, ctx: ISeriesMarkAttributeContext): Partial<Record<"none" | "normal" | "state" | "update" | "appear" | "enter" | "exit" | "disappear", boolean | IAnimationConfig | IAnimationConfig[] | IStateAnimateSpec<Preset>>>;
|
|
17
|
+
export declare function isAnimationEnabledForSeries(series: ISeries): boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CartesianChart } from '../cartesian/cartesian';
|
|
2
|
+
import type { IAreaChartSpec } from './interface';
|
|
3
|
+
export declare class AreaChart extends CartesianChart {
|
|
4
|
+
static readonly type: string;
|
|
5
|
+
static readonly view: string;
|
|
6
|
+
readonly type: string;
|
|
7
|
+
readonly seriesType: string;
|
|
8
|
+
protected _canStack: boolean;
|
|
9
|
+
protected _getDefaultSeriesSpec(spec: IAreaChartSpec): any;
|
|
10
|
+
transformSpec(spec: any): void;
|
|
11
|
+
}
|
|
12
|
+
export declare const registerAreaChart: () => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ICartesianChartSpec } from '../cartesian/interface';
|
|
2
|
+
import type { IAreaSeriesSpec } from '../../series/area/interface';
|
|
3
|
+
import type { IChartExtendsSeriesSpec } from '../../typings/spec';
|
|
4
|
+
export interface IAreaChartSpec extends ICartesianChartSpec, IChartExtendsSeriesSpec<IAreaSeriesSpec> {
|
|
5
|
+
type: 'area';
|
|
6
|
+
series?: IAreaSeriesSpec[];
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CartesianChart } from '../cartesian/cartesian';
|
|
2
|
+
export declare class Bar3dChart extends CartesianChart {
|
|
3
|
+
static readonly type: string;
|
|
4
|
+
static readonly view: string;
|
|
5
|
+
readonly type: string;
|
|
6
|
+
readonly seriesType: string;
|
|
7
|
+
protected _getDefaultSeriesSpec(spec: any): any;
|
|
8
|
+
}
|
|
9
|
+
export declare const registerBar3dChart: () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CartesianChart } from '../cartesian/cartesian';
|
|
2
|
+
export declare class BarChart extends CartesianChart {
|
|
3
|
+
static readonly type: string;
|
|
4
|
+
static readonly view: string;
|
|
5
|
+
readonly type: string;
|
|
6
|
+
readonly seriesType: string;
|
|
7
|
+
protected _canStack: boolean;
|
|
8
|
+
protected _getDefaultSeriesSpec(spec: any): any;
|
|
9
|
+
transformSpec(spec: any): void;
|
|
10
|
+
}
|
|
11
|
+
export declare const registerBarChart: () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IBarSeriesSpec, IBar3dSeriesSpec } from '../../series/bar/interface';
|
|
2
|
+
import type { IChartExtendsSeriesSpec } from '../../typings/spec/common';
|
|
3
|
+
import type { ICartesianChartSpec } from '../cartesian/interface';
|
|
4
|
+
export interface IBarChartSpec extends ICartesianChartSpec, IChartExtendsSeriesSpec<IBarSeriesSpec> {
|
|
5
|
+
type: 'bar';
|
|
6
|
+
series?: IBarSeriesSpec[];
|
|
7
|
+
}
|
|
8
|
+
export interface IBar3dChartSpec extends ICartesianChartSpec, IChartExtendsSeriesSpec<IBar3dSeriesSpec> {
|
|
9
|
+
type: 'bar3d';
|
|
10
|
+
series?: IBar3dSeriesSpec[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { ChartData } from './chart-meta/data';
|
|
2
|
+
import type { ISeriesSpec, Datum, IMarkStateSpec, IRegionQuerier, MaybeArray, IPadding, IRect, StringOrNumber, IChartSpec, IDataValues, ILayoutRect, ILayoutOrientPadding } from '../typings';
|
|
3
|
+
import type { ILayoutItem, LayoutCallBack } from '../layout/interface';
|
|
4
|
+
import type { ILayoutModelState, IModel, IModelOption, IUpdateSpecResult } from '../model/interface';
|
|
5
|
+
import type { IChart, IChartLayoutOption, IChartRenderOption, IChartOption, IChartEvaluateOption, ILayoutParams, DimensionIndexOption } from './interface';
|
|
6
|
+
import type { ISeries } from '../series/interface';
|
|
7
|
+
import type { IRegion } from '../region/interface';
|
|
8
|
+
import type { IComponent } from '../component/interface';
|
|
9
|
+
import { type IMark } from '../mark/interface';
|
|
10
|
+
import type { IEvent } from '../event/interface';
|
|
11
|
+
import type { DataView } from '@visactor/vdataset';
|
|
12
|
+
import type { DataSet } from '@visactor/vdataset/es/data-set';
|
|
13
|
+
import { Stack } from './stack';
|
|
14
|
+
import type { IParserOptions } from '@visactor/vdataset/es/parser';
|
|
15
|
+
import type { IBoundsLike } from '@visactor/vutils';
|
|
16
|
+
import type { IRunningConfig as IMorphConfig, IView } from '@visactor/vgrammar-core';
|
|
17
|
+
import { CompilableBase } from '../compile/compilable-base';
|
|
18
|
+
import type { IGlobalScale } from '../scale/interface';
|
|
19
|
+
import type { IRectMark } from '../mark/rect';
|
|
20
|
+
export declare class BaseChart extends CompilableBase implements IChart {
|
|
21
|
+
readonly type: string;
|
|
22
|
+
readonly id: number;
|
|
23
|
+
protected _spec: any;
|
|
24
|
+
getSpec(): any;
|
|
25
|
+
setSpec(s: any): void;
|
|
26
|
+
getOption(): IChartOption;
|
|
27
|
+
protected _regions: IRegion[];
|
|
28
|
+
protected _series: ISeries[];
|
|
29
|
+
protected _components: IComponent[];
|
|
30
|
+
protected _layoutFunc: LayoutCallBack;
|
|
31
|
+
protected _layoutRect: IRect;
|
|
32
|
+
getLayoutRect(): IRect;
|
|
33
|
+
protected _viewRect: ILayoutRect;
|
|
34
|
+
getViewRect(): ILayoutRect;
|
|
35
|
+
protected _viewBox: IBoundsLike;
|
|
36
|
+
protected _layoutTag: boolean;
|
|
37
|
+
getLayoutTag(): boolean;
|
|
38
|
+
setLayoutTag(tag: boolean, morphConfig?: IMorphConfig, reLayout?: boolean): boolean;
|
|
39
|
+
protected _modelOption: IModelOption;
|
|
40
|
+
protected _globalScale: IGlobalScale;
|
|
41
|
+
protected _idMap: Map<number, IModel | IMark>;
|
|
42
|
+
protected _event: IEvent;
|
|
43
|
+
getEvent(): IEvent;
|
|
44
|
+
protected _dataSet: DataSet;
|
|
45
|
+
protected _chartData: ChartData;
|
|
46
|
+
get chartData(): ChartData;
|
|
47
|
+
protected _option: IChartOption;
|
|
48
|
+
readonly state: ILayoutModelState;
|
|
49
|
+
protected _stack: Stack;
|
|
50
|
+
protected _canStack: boolean;
|
|
51
|
+
padding: IPadding;
|
|
52
|
+
protected _paddingSpec: ILayoutOrientPadding;
|
|
53
|
+
protected _canvasRect: ILayoutRect;
|
|
54
|
+
protected _backgroundMark: IRectMark;
|
|
55
|
+
constructor(spec: any, option: IChartOption);
|
|
56
|
+
created(): void;
|
|
57
|
+
transformSpec(spec: any): void;
|
|
58
|
+
init(options?: any): void;
|
|
59
|
+
reDataFlow(): void;
|
|
60
|
+
onResize(width: number, height: number): void;
|
|
61
|
+
updateViewBox(viewBox: IBoundsLike, reLayout: boolean): void;
|
|
62
|
+
createBackground(bg: IChartSpec['background']): void;
|
|
63
|
+
createRegion(regionSpec: any[]): void;
|
|
64
|
+
initRegion(): void;
|
|
65
|
+
createSeries(seriesSpec: ISeriesSpec[]): void;
|
|
66
|
+
initSeries(): void;
|
|
67
|
+
getAllSeries: () => ISeries[];
|
|
68
|
+
getSeriesById(id: number): ISeries | undefined;
|
|
69
|
+
private _createComponent;
|
|
70
|
+
createComponent(spec: any): void;
|
|
71
|
+
initComponent(): void;
|
|
72
|
+
getAllComponents(): IComponent[];
|
|
73
|
+
getAllModels(): IModel[];
|
|
74
|
+
getModelInFilter(filter: string | {
|
|
75
|
+
type: string;
|
|
76
|
+
index: number;
|
|
77
|
+
} | ((model: IModel) => boolean)): IModel;
|
|
78
|
+
createLayout(): void;
|
|
79
|
+
setLayout(layout: LayoutCallBack): void;
|
|
80
|
+
private _initLayoutFunc;
|
|
81
|
+
layout(params: ILayoutParams): void;
|
|
82
|
+
onLayoutStart(option: IChartLayoutOption): void;
|
|
83
|
+
onLayoutEnd(option: IChartLayoutOption): void;
|
|
84
|
+
onEvaluateEnd(option: IChartEvaluateOption): void;
|
|
85
|
+
getLayoutElements(): ILayoutItem[];
|
|
86
|
+
getRegionsInIndex: (index?: number[]) => IRegion[];
|
|
87
|
+
getAllRegions: () => IRegion[];
|
|
88
|
+
getRegionsInIds: (ids: number[]) => IRegion[];
|
|
89
|
+
getRegionsInQuerier: (region?: MaybeArray<IRegionQuerier>) => IRegion[];
|
|
90
|
+
getRegionsInUserId: (userId: StringOrNumber) => IRegion | undefined;
|
|
91
|
+
getRegionsInUserIdOrIndex: (user_ids?: StringOrNumber[], index?: number[]) => IRegion[];
|
|
92
|
+
getComponents: () => IComponent[];
|
|
93
|
+
getSeriesInIndex: (index?: number[]) => ISeries[];
|
|
94
|
+
getSeriesInIds: (ids?: number[]) => ISeries[];
|
|
95
|
+
getSeriesInUserId: (userId: StringOrNumber) => ISeries | undefined;
|
|
96
|
+
getSeriesInUserIdOrIndex: (user_ids?: StringOrNumber[], index?: number[]) => ISeries[];
|
|
97
|
+
getComponentByIndex: (key: string, index: number) => IComponent;
|
|
98
|
+
getComponentsByKey: (key: string) => IComponent[];
|
|
99
|
+
getComponentByUserId: (userId: StringOrNumber) => IComponent;
|
|
100
|
+
getModelById(id: number): IModel | undefined;
|
|
101
|
+
getModelByUserId(userId: StringOrNumber): IModel | undefined;
|
|
102
|
+
getAllMarks(): IMark[];
|
|
103
|
+
getMarkById(id: number): IMark | undefined;
|
|
104
|
+
updateData(id: StringOrNumber, data: unknown, updateGlobalScale?: boolean, options?: IParserOptions): void;
|
|
105
|
+
updateFullData(data: IDataValues | IDataValues[], updateGlobalScale?: boolean): void;
|
|
106
|
+
onRender(option: IChartRenderOption): void;
|
|
107
|
+
setCanvasRect(width: number, height: number): void;
|
|
108
|
+
getCanvasRect(): Omit<IRect, 'x' | 'y'>;
|
|
109
|
+
getSeriesData(id: StringOrNumber | undefined, index: number | undefined): DataView | undefined;
|
|
110
|
+
private _transformSpecScale;
|
|
111
|
+
createGlobalScale(): void;
|
|
112
|
+
updateGlobalScaleDomain(): void;
|
|
113
|
+
updateGlobalScale(result: IUpdateSpecResult): void;
|
|
114
|
+
updateGlobalScaleTheme(): void;
|
|
115
|
+
updateSpec(spec: any, morphConfig?: IMorphConfig): {
|
|
116
|
+
change: boolean;
|
|
117
|
+
reMake: boolean;
|
|
118
|
+
reRender: boolean;
|
|
119
|
+
reSize: boolean;
|
|
120
|
+
reCompile: boolean;
|
|
121
|
+
};
|
|
122
|
+
updateChartConfig(result: IUpdateSpecResult, oldSpec: IChartSpec): void;
|
|
123
|
+
updateDataSpec(result: IUpdateSpecResult): void;
|
|
124
|
+
updateRegionSpec(result: IUpdateSpecResult): void;
|
|
125
|
+
updateComponentSpec(result: IUpdateSpecResult): void;
|
|
126
|
+
updateSeriesSpec(result: IUpdateSpecResult): void;
|
|
127
|
+
getCanvas(): HTMLCanvasElement;
|
|
128
|
+
protected isValidSeries(seriesType: string): boolean;
|
|
129
|
+
protected _getDefaultSeriesSpec(spec: any): any;
|
|
130
|
+
private _updateLayoutRect;
|
|
131
|
+
setCurrentTheme(reInit?: boolean): void;
|
|
132
|
+
protected setRegionTheme(reInit?: boolean): void;
|
|
133
|
+
protected setComponentTheme(reInit?: boolean): void;
|
|
134
|
+
protected setSeriesTheme(reInit?: boolean): void;
|
|
135
|
+
clear(): void;
|
|
136
|
+
compile(): void;
|
|
137
|
+
afterCompile(): void;
|
|
138
|
+
compileLayout(): void;
|
|
139
|
+
compileBackground(): void;
|
|
140
|
+
compileRegions(): void;
|
|
141
|
+
compileSeries(): void;
|
|
142
|
+
compileComponents(): void;
|
|
143
|
+
release(): void;
|
|
144
|
+
onLayout(srView: IView): void;
|
|
145
|
+
updateState(state: Record<string, Omit<IMarkStateSpec<unknown>, 'style'>>, filter?: (series: ISeries, mark: IMark, stateKey: string) => boolean): void;
|
|
146
|
+
setSelected(datum: MaybeArray<any> | null, filter?: (series: ISeries, mark: IMark) => boolean, region?: IRegionQuerier): void;
|
|
147
|
+
setHovered(datum: MaybeArray<Datum> | null, filter?: (series: ISeries, mark: IMark) => boolean, region?: IRegionQuerier): void;
|
|
148
|
+
initEvent(): void;
|
|
149
|
+
protected _enableMarkAnimation(states: string | string[]): void;
|
|
150
|
+
protected _disableMarkAnimation(states: string | string[]): void;
|
|
151
|
+
protected _setStateInDatum(stateKey: string, checkReverse: boolean, datum: MaybeArray<Datum> | null, filter?: (series: ISeries, mark: IMark) => boolean, region?: IRegionQuerier): void;
|
|
152
|
+
setDimensionIndex(value: StringOrNumber, opt: DimensionIndexOption): void;
|
|
153
|
+
getColorScheme(): import("../theme").IThemeColorScheme;
|
|
154
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CartesianChart } from '../cartesian/cartesian';
|
|
2
|
+
import type { IBoxPlotChartSpec } from './interface';
|
|
3
|
+
export declare class BoxPlotChart extends CartesianChart {
|
|
4
|
+
static readonly type: string;
|
|
5
|
+
static readonly view: string;
|
|
6
|
+
readonly type: string;
|
|
7
|
+
readonly seriesType: string;
|
|
8
|
+
protected _getDefaultSeriesSpec(spec: IBoxPlotChartSpec): any;
|
|
9
|
+
transformSpec(spec: IBoxPlotChartSpec): void;
|
|
10
|
+
}
|
|
11
|
+
export declare const registerBoxplotChart: () => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IBoxPlotSeriesSpec } from '../../series/box-plot/interface';
|
|
2
|
+
import type { ICartesianChartSpec } from '../cartesian/interface';
|
|
3
|
+
import type { IChartExtendsSeriesSpec } from '../../typings/spec/common';
|
|
4
|
+
export interface IBoxPlotChartSpec extends ICartesianChartSpec, IChartExtendsSeriesSpec<IBoxPlotSeriesSpec> {
|
|
5
|
+
type: 'boxPlot';
|
|
6
|
+
series?: IBoxPlotSeriesSpec[];
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseChart } from '../base-chart';
|
|
2
|
+
export declare class CartesianChart extends BaseChart {
|
|
3
|
+
readonly seriesType: string;
|
|
4
|
+
protected isValidSeries(type: string): boolean;
|
|
5
|
+
protected needAxes(): boolean;
|
|
6
|
+
protected _getDefaultSeriesSpec(spec: any): any;
|
|
7
|
+
transformSpec(spec: any): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { IChartSpec } from '../../typings/spec/common';
|
|
2
|
+
import type { ICartesianAxisSpec } from '../../component/axis/cartesian/interface';
|
|
3
|
+
import type { ICartesianCrosshairSpec } from '../../component/crosshair/interface';
|
|
4
|
+
import type { IMarkLineSpec } from '../../component/marker/mark-line/interface';
|
|
5
|
+
import type { IMarkAreaSpec } from '../../component/marker/mark-area/interface';
|
|
6
|
+
import type { IMarkPointSpec } from '../../component/marker/mark-point/interface';
|
|
7
|
+
import type { DirectionType } from '../../typings';
|
|
8
|
+
export interface ICartesianChartSpec extends IChartSpec {
|
|
9
|
+
direction?: DirectionType;
|
|
10
|
+
axes?: ICartesianAxisSpec[];
|
|
11
|
+
crosshair?: ICartesianCrosshairSpec | ICartesianCrosshairSpec[];
|
|
12
|
+
markLine?: IMarkLineSpec | IMarkLineSpec[];
|
|
13
|
+
markArea?: IMarkAreaSpec | IMarkLineSpec[];
|
|
14
|
+
markPoint?: IMarkPointSpec | IMarkPointSpec[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { IData } from './../../typings/spec/common';
|
|
2
|
+
import { DataView } from '@visactor/vdataset';
|
|
3
|
+
import type { DataSet } from '@visactor/vdataset';
|
|
4
|
+
import type { StringOrNumber } from '../../typings';
|
|
5
|
+
export declare class ChartData {
|
|
6
|
+
protected _dataArr: DataView[];
|
|
7
|
+
get dataList(): DataView[];
|
|
8
|
+
protected _onError: (...args: any[]) => void;
|
|
9
|
+
protected _dataSet: DataSet;
|
|
10
|
+
constructor(dataSet: DataSet, onError: (...args: any[]) => void);
|
|
11
|
+
parseData(dataSpec: IData): void;
|
|
12
|
+
updateData(dataSpec: IData, fullUp?: boolean, forceMerge?: boolean): boolean;
|
|
13
|
+
private _dataValueForEach;
|
|
14
|
+
getSeriesData(id: StringOrNumber | undefined, index: number | undefined): DataView | undefined;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ICirclePackingSeriesSpec } from '../../series/circle-packing/interface';
|
|
2
|
+
import { BaseChart } from '../base-chart';
|
|
3
|
+
import type { ICirclePackingChartSpec } from './interface';
|
|
4
|
+
export declare class CirclePackingChart extends BaseChart {
|
|
5
|
+
static readonly type: string;
|
|
6
|
+
static readonly view: string;
|
|
7
|
+
readonly type: string;
|
|
8
|
+
readonly seriesType: string;
|
|
9
|
+
protected getDefaultSeriesSpec(spec: ICirclePackingChartSpec): ICirclePackingSeriesSpec;
|
|
10
|
+
transformSpec(spec: ICirclePackingChartSpec): void;
|
|
11
|
+
}
|
|
12
|
+
export declare const registerCirclePackingChart: () => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ICirclePackingSeriesSpec } from '../../series/circle-packing/interface';
|
|
2
|
+
import type { IChartExtendsSeriesSpec, IChartSpec } from '../../typings/spec/common';
|
|
3
|
+
export interface ICirclePackingChartSpec extends IChartSpec, IChartExtendsSeriesSpec<ICirclePackingSeriesSpec> {
|
|
4
|
+
type: 'circlePacking';
|
|
5
|
+
series?: ICirclePackingSeriesSpec[];
|
|
6
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseChart } from '../base-chart';
|
|
2
|
+
export declare class CommonChart extends BaseChart {
|
|
3
|
+
static readonly type: string;
|
|
4
|
+
static readonly view: string;
|
|
5
|
+
readonly type: string;
|
|
6
|
+
protected _canStack: boolean;
|
|
7
|
+
protected _getDefaultSeriesSpec(spec: any): any;
|
|
8
|
+
transformSpec(spec: any): void;
|
|
9
|
+
}
|
|
10
|
+
export declare const registerCommonChart: () => void;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ILineSeriesSpec } from '../../series/line/interface';
|
|
2
|
+
import type { IAreaSeriesSpec } from '../../series/area/interface';
|
|
3
|
+
import type { IChartSpec } from '../../typings/spec/common';
|
|
4
|
+
import type { IBar3dSeriesSpec, IBarSeriesSpec } from '../../series/bar/interface';
|
|
5
|
+
import type { IRangeColumnChartSpec } from '../range-column';
|
|
6
|
+
import type { IRangeAreaChartSpec } from '../range-area';
|
|
7
|
+
import type { IDotSeriesSpec } from '../../series/dot/interface';
|
|
8
|
+
import type { IMapSeriesSpec } from '../../series/map/interface';
|
|
9
|
+
import type { IPie3dSeriesSpec, IPieSeriesSpec } from '../../series/pie/interface';
|
|
10
|
+
import type { ILinkSeriesSpec } from '../../series/link/interface';
|
|
11
|
+
import type { IRadarSeriesSpec } from '../../series/radar/interface';
|
|
12
|
+
import type { IRoseSeriesSpec } from '../../series/rose/interface';
|
|
13
|
+
import type { IScatterSeriesSpec } from '../../series/scatter/interface';
|
|
14
|
+
import type { IWordCloud3dSeriesSpec, IWordCloudSeriesSpec } from '../../series/word-cloud/interface';
|
|
15
|
+
import type { IGaugePointerSeriesSpec, IGaugeSeriesSpec } from '../../series/gauge';
|
|
16
|
+
import type { IBoxPlotSeriesSpec } from '../../series/box-plot/interface';
|
|
17
|
+
import type { ICirclePackingSeriesSpec } from '../../series/circle-packing/interface';
|
|
18
|
+
import type { IFunnelSeriesSpec, IFunnel3dSeriesSpec } from '../../series/funnel/interface';
|
|
19
|
+
import type { IHeatmapSeriesSpec } from '../../series/heatmap/interface';
|
|
20
|
+
import type { ICircularProgressSeriesSpec } from '../../series/progress/circular/interface';
|
|
21
|
+
import type { ILinearProgressSeriesSpec } from '../../series/progress/linear/interface';
|
|
22
|
+
import type { ISankeySeriesSpec } from '../../series/sankey/interface';
|
|
23
|
+
import type { ISunburstSeriesSpec } from '../../series/sunburst/interface';
|
|
24
|
+
import type { ITreemapSeriesSpec } from '../../series/treemap/interface';
|
|
25
|
+
import type { IWaterfallSeriesSpec } from '../../series/waterfall/interface';
|
|
26
|
+
import type { ICorrelationSeriesSpec } from '../../series/correlation/interface';
|
|
27
|
+
import type { ICartesianAxisSpec, IPolarAxisSpec } from '../../component';
|
|
28
|
+
import type { ICartesianCrosshairSpec, IPolarCrosshairSpec } from '../../component/crosshair/interface';
|
|
29
|
+
import type { IMarkLineSpec } from '../../component/marker/mark-line/interface';
|
|
30
|
+
import type { IMarkAreaSpec } from '../../component/marker/mark-area/interface';
|
|
31
|
+
import type { IMarkPointSpec } from '../../component/marker/mark-point/interface';
|
|
32
|
+
export interface ICommonChartSpec extends Omit<IChartSpec, 'series'> {
|
|
33
|
+
type: 'common';
|
|
34
|
+
seriesField?: string;
|
|
35
|
+
series?: (IAreaSeriesSpec | ILineSeriesSpec | IBar3dSeriesSpec | IBarSeriesSpec | IRangeColumnChartSpec | IRangeAreaChartSpec | IDotSeriesSpec | IMapSeriesSpec | IPie3dSeriesSpec | IPieSeriesSpec | ILinkSeriesSpec | IRadarSeriesSpec | IRoseSeriesSpec | IScatterSeriesSpec | ICircularProgressSeriesSpec | ILinearProgressSeriesSpec | IWordCloudSeriesSpec | IWordCloud3dSeriesSpec | IFunnelSeriesSpec | IFunnel3dSeriesSpec | IBoxPlotSeriesSpec | IGaugeSeriesSpec | ISankeySeriesSpec | ITreemapSeriesSpec | ISunburstSeriesSpec | ICirclePackingSeriesSpec | IWaterfallSeriesSpec | IHeatmapSeriesSpec | IGaugePointerSeriesSpec | ICorrelationSeriesSpec)[];
|
|
36
|
+
axes?: ICartesianAxisSpec[] | IPolarAxisSpec[];
|
|
37
|
+
crosshair?: ICartesianCrosshairSpec | ICartesianCrosshairSpec[] | IPolarCrosshairSpec | IPolarCrosshairSpec[];
|
|
38
|
+
markLine?: IMarkLineSpec | IMarkLineSpec[];
|
|
39
|
+
markArea?: IMarkAreaSpec;
|
|
40
|
+
markPoint?: IMarkPointSpec;
|
|
41
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseChart } from '../base-chart';
|
|
2
|
+
import type { ICorrelationChartSpec } from './interface';
|
|
3
|
+
export declare class CorrelationChart extends BaseChart {
|
|
4
|
+
static readonly type: string;
|
|
5
|
+
static readonly view: string;
|
|
6
|
+
readonly type: string;
|
|
7
|
+
readonly seriesType: string;
|
|
8
|
+
protected _getDefaultSeriesSpec(spec: ICorrelationChartSpec): any;
|
|
9
|
+
transformSpec(spec: ICorrelationChartSpec): void;
|
|
10
|
+
}
|
|
11
|
+
export declare const registerCorrelationChart: () => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ICorrelationSeriesSpec } from '../../series/correlation/interface';
|
|
2
|
+
import type { IChartExtendsSeriesSpec, IChartSpec } from '../../typings/spec/common';
|
|
3
|
+
export interface ICorrelationChartSpec extends Omit<IChartSpec, 'padding'>, IChartExtendsSeriesSpec<ICorrelationSeriesSpec> {
|
|
4
|
+
type: 'correlation';
|
|
5
|
+
series?: ICorrelationSeriesSpec[];
|
|
6
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IFunnelSeriesSpec } from '../../series/funnel/interface';
|
|
2
|
+
import type { IFunnelChartSpec } from './interface';
|
|
3
|
+
import { BaseChart } from '../base-chart';
|
|
4
|
+
export declare class BaseFunnelChart extends BaseChart {
|
|
5
|
+
seriesType: string;
|
|
6
|
+
protected needAxes(): boolean;
|
|
7
|
+
protected _getDefaultSeriesSpec(spec: IFunnelChartSpec): IFunnelSeriesSpec;
|
|
8
|
+
transformSpec(spec: IFunnelChartSpec): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseFunnelChart } from './base';
|
|
2
|
+
export declare class Funnel3dChart extends BaseFunnelChart {
|
|
3
|
+
static readonly type: string;
|
|
4
|
+
static readonly view: string;
|
|
5
|
+
readonly type: string;
|
|
6
|
+
readonly seriesType: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const registerFunnel3dChart: () => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseFunnelChart } from './base';
|
|
2
|
+
export declare class FunnelChart extends BaseFunnelChart {
|
|
3
|
+
static readonly type: string;
|
|
4
|
+
static readonly view: string;
|
|
5
|
+
readonly type: string;
|
|
6
|
+
readonly seriesType: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const registerFunnelChart: () => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IChartExtendsSeriesSpec } from '../..';
|
|
2
|
+
import type { IFunnelSeriesSpec, IFunnel3dSeriesSpec } from '../../series/funnel/interface';
|
|
3
|
+
import type { IChartSpec } from '../../typings/spec';
|
|
4
|
+
export interface IFunnelChartSpec extends IChartSpec, IChartExtendsSeriesSpec<IFunnelSeriesSpec> {
|
|
5
|
+
type: 'funnel';
|
|
6
|
+
}
|
|
7
|
+
export interface IFunnel3dChartSpec extends IChartSpec, IChartExtendsSeriesSpec<IFunnel3dSeriesSpec> {
|
|
8
|
+
type: 'funnel3d';
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ProgressLikeChart } from '../polar/progress-like';
|
|
2
|
+
export declare class GaugeChart extends ProgressLikeChart {
|
|
3
|
+
static readonly type: string;
|
|
4
|
+
static readonly view: string;
|
|
5
|
+
readonly type: string;
|
|
6
|
+
readonly seriesType: string;
|
|
7
|
+
protected _getDefaultSeriesSpec(spec: any): any;
|
|
8
|
+
protected _getDefaultCircularProgressSeriesSpec(spec: any): any;
|
|
9
|
+
transformSpec(spec: any): void;
|
|
10
|
+
protected _transformGaugeAxisSpec(spec: any): void;
|
|
11
|
+
}
|
|
12
|
+
export declare const registerGaugeChart: () => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IChartSpec } from '../../typings/spec/common';
|
|
2
|
+
import type { IPolarAxisSpec } from '../../component/axis/polar/interface';
|
|
3
|
+
import type { IGaugePointerSeriesSpec, IGaugeSeriesSpec } from '../../series/gauge';
|
|
4
|
+
import type { ILinearAxisSpec } from '../../component/axis/interface';
|
|
5
|
+
import type { ICircularProgressSeriesSpec } from '../../series/progress/circular/interface';
|
|
6
|
+
export interface IGaugeChartSpec extends IChartSpec, Omit<IGaugePointerSeriesSpec, 'data' | 'type' | 'morph'> {
|
|
7
|
+
type: 'gauge';
|
|
8
|
+
gauge?: Omit<IGaugeSeriesSpec, 'data'> | Omit<ICircularProgressSeriesSpec, 'data'>;
|
|
9
|
+
axes?: (IPolarAxisSpec | ILinearAxisSpec)[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CartesianChart } from '../cartesian/cartesian';
|
|
2
|
+
export declare class HeatmapChart extends CartesianChart {
|
|
3
|
+
static readonly type: string;
|
|
4
|
+
static readonly view: string;
|
|
5
|
+
readonly type: string;
|
|
6
|
+
readonly seriesType: string;
|
|
7
|
+
protected _getDefaultSeriesSpec(spec: any): any;
|
|
8
|
+
}
|
|
9
|
+
export declare const registerHeatmapChart: () => void;
|