@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,10 @@
|
|
|
1
|
+
import type { DirectionType } from '../../typings';
|
|
2
|
+
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
3
|
+
export interface IRangeColumnAnimationParams {
|
|
4
|
+
direction: DirectionType;
|
|
5
|
+
}
|
|
6
|
+
export type RangeColumnAppearPreset = 'fadeIn' | 'grow';
|
|
7
|
+
export declare const rangeColumnGrowIn: (params: IRangeColumnAnimationParams) => IAnimationTypeConfig;
|
|
8
|
+
export declare const rangeColumnGrowOut: (params: IRangeColumnAnimationParams) => IAnimationTypeConfig;
|
|
9
|
+
export declare function rangeColumnPresetAnimation(params: IRangeColumnAnimationParams, preset: RangeColumnAppearPreset): IAnimationTypeConfig;
|
|
10
|
+
export declare const registerRangeColumnAnimation: () => void;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { IBarSeriesSpec } from '../bar/interface';
|
|
2
|
+
import type { ICartesianSeriesTheme } from '../cartesian/interface';
|
|
3
|
+
import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';
|
|
4
|
+
import type { IPositionedTextMarkSpec, IRectMarkSpec, ITextMarkSpec } from '../../typings/visual';
|
|
5
|
+
import type { IAnimationSpec } from '../../animation/spec';
|
|
6
|
+
import type { RangeColumnAppearPreset } from './animation';
|
|
7
|
+
import type { ILabelSpec } from '../../component/label';
|
|
8
|
+
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
9
|
+
export declare enum PositionEnum {
|
|
10
|
+
middle = "middle",
|
|
11
|
+
start = "start",
|
|
12
|
+
end = "end",
|
|
13
|
+
bothEnd = "bothEnd"
|
|
14
|
+
}
|
|
15
|
+
export declare enum minMaxPositionEnum {
|
|
16
|
+
middle = "middle",
|
|
17
|
+
start = "start",
|
|
18
|
+
end = "end"
|
|
19
|
+
}
|
|
20
|
+
type RangeColumnMarks = 'rangeColumn';
|
|
21
|
+
export interface IRangeColumnSeriesSpec extends Omit<IBarSeriesSpec, 'type' | 'label' | keyof IAnimationSpec<RangeColumnMarks, RangeColumnAppearPreset>>, IAnimationSpec<RangeColumnMarks, RangeColumnAppearPreset> {
|
|
22
|
+
type: 'rangeColumn';
|
|
23
|
+
minField: string;
|
|
24
|
+
maxField: string;
|
|
25
|
+
[SeriesMarkNameEnum.bar]?: IMarkSpec<IRectMarkSpec>;
|
|
26
|
+
[SeriesMarkNameEnum.label]?: Partial<ILabelSpec> & {
|
|
27
|
+
position?: PositionEnum;
|
|
28
|
+
[SeriesMarkNameEnum.minLabel]?: IMarkSpec<IPositionedTextMarkSpec> & {
|
|
29
|
+
visible: boolean;
|
|
30
|
+
position?: keyof typeof minMaxPositionEnum;
|
|
31
|
+
offset?: number;
|
|
32
|
+
formatMethod?: (text: string | string[], datum?: any) => string | string[];
|
|
33
|
+
};
|
|
34
|
+
[SeriesMarkNameEnum.maxLabel]?: IMarkSpec<IPositionedTextMarkSpec> & {
|
|
35
|
+
visible: boolean;
|
|
36
|
+
position?: minMaxPositionEnum;
|
|
37
|
+
offset?: number;
|
|
38
|
+
formatMethod?: (text: string | string[], datum?: any) => string | string[];
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export interface IRangeColumnSeriesTheme extends ICartesianSeriesTheme {
|
|
43
|
+
[SeriesMarkNameEnum.bar]?: Partial<IMarkTheme<IRectMarkSpec>>;
|
|
44
|
+
[SeriesMarkNameEnum.label]?: Partial<ILabelSpec> & {
|
|
45
|
+
[SeriesMarkNameEnum.minLabel]?: Partial<IMarkTheme<ITextMarkSpec> & {
|
|
46
|
+
position?: keyof typeof minMaxPositionEnum;
|
|
47
|
+
}>;
|
|
48
|
+
[SeriesMarkNameEnum.maxLabel]?: Partial<IMarkTheme<ITextMarkSpec> & {
|
|
49
|
+
position?: keyof typeof minMaxPositionEnum;
|
|
50
|
+
}>;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export interface IRangeColumn3dSeriesSpec extends Omit<IRangeColumnSeriesSpec, 'type'> {
|
|
54
|
+
type: 'rangeColumn3d';
|
|
55
|
+
}
|
|
56
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MarkTypeEnum } from '../../mark/interface/type';
|
|
2
|
+
import type { SeriesMarkMap } from '../interface';
|
|
3
|
+
import { SeriesTypeEnum } from '../interface/type';
|
|
4
|
+
import { RangeColumnSeries } from './range-column';
|
|
5
|
+
import type { AdaptiveSpec } from '../../typings';
|
|
6
|
+
import type { IRangeColumn3dSeriesSpec } from './interface';
|
|
7
|
+
export declare const DefaultBandWidth = 6;
|
|
8
|
+
export declare class RangeColumn3dSeries<T extends IRangeColumn3dSeriesSpec = IRangeColumn3dSeriesSpec> extends RangeColumnSeries<AdaptiveSpec<T, 'type'>> {
|
|
9
|
+
static readonly type: string;
|
|
10
|
+
type: SeriesTypeEnum;
|
|
11
|
+
protected _barMarkType: MarkTypeEnum;
|
|
12
|
+
protected _barName: string;
|
|
13
|
+
static readonly mark: SeriesMarkMap;
|
|
14
|
+
}
|
|
15
|
+
export declare const registerRangeColumn3dSeries: () => void;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BarSeries } from '../bar/bar';
|
|
2
|
+
import { MarkTypeEnum } from '../../mark/interface/type';
|
|
3
|
+
import type { SeriesMarkMap } from '../interface';
|
|
4
|
+
import { SeriesTypeEnum } from '../interface/type';
|
|
5
|
+
import { type ITextMark } from '../../mark/text';
|
|
6
|
+
import type { IRangeColumnSeriesSpec } from './interface';
|
|
7
|
+
export declare const DefaultBandWidth = 6;
|
|
8
|
+
export declare class RangeColumnSeries<T extends IRangeColumnSeriesSpec = IRangeColumnSeriesSpec> extends BarSeries<any> {
|
|
9
|
+
static readonly type: string;
|
|
10
|
+
type: SeriesTypeEnum;
|
|
11
|
+
protected _barMarkType: MarkTypeEnum;
|
|
12
|
+
protected _barName: string;
|
|
13
|
+
protected _spec: T;
|
|
14
|
+
static readonly mark: SeriesMarkMap;
|
|
15
|
+
protected _stack: boolean;
|
|
16
|
+
private _minLabelMark?;
|
|
17
|
+
private _maxLabelMark?;
|
|
18
|
+
private _labelMark?;
|
|
19
|
+
initMark(): void;
|
|
20
|
+
initMarkStyle(): void;
|
|
21
|
+
initLabelMarkStyle(labelMark: ITextMark): void;
|
|
22
|
+
initBandRectMarkStyle(): void;
|
|
23
|
+
initAnimation(): void;
|
|
24
|
+
protected initTooltip(): void;
|
|
25
|
+
}
|
|
26
|
+
export declare const registerRangeColumnSeries: () => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ISeriesTooltipHelper } from '../interface';
|
|
2
|
+
import { BaseSeriesTooltipHelper } from '../base/tooltip-helper';
|
|
3
|
+
import type { ITooltipPattern, TooltipActiveType } from '../../typings';
|
|
4
|
+
export declare class RangeColumnSeriesTooltipHelper extends BaseSeriesTooltipHelper implements ISeriesTooltipHelper {
|
|
5
|
+
getDefaultTooltipPattern(activeType: TooltipActiveType): ITooltipPattern | null;
|
|
6
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
|
+
export interface IRoseAnimationParams {
|
|
3
|
+
innerRadius: () => number;
|
|
4
|
+
growField?: 'angle' | 'radius';
|
|
5
|
+
}
|
|
6
|
+
export type RoseAppearPreset = 'growAngle' | 'growRadius' | 'fadeIn';
|
|
7
|
+
export declare const Appear_Grow: (params: IRoseAnimationParams) => IAnimationTypeConfig;
|
|
8
|
+
export declare const Appear_FadeIn: IAnimationTypeConfig;
|
|
9
|
+
export declare const roseEnter: (params: IRoseAnimationParams) => IAnimationTypeConfig;
|
|
10
|
+
export declare const roseExit: (params: IRoseAnimationParams) => IAnimationTypeConfig;
|
|
11
|
+
export declare const roseDisappear: (params: IRoseAnimationParams) => IAnimationTypeConfig;
|
|
12
|
+
export declare function rosePresetAnimation(params: IRoseAnimationParams, preset: RoseAppearPreset | boolean): IAnimationTypeConfig;
|
|
13
|
+
export declare const registerRoseAnimation: () => void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IAnimationSpec } from '../../animation/spec';
|
|
2
|
+
import type { IMarkSpec, IMarkTheme } from '../../typings/spec';
|
|
3
|
+
import type { IArcMarkSpec } from '../../typings/visual';
|
|
4
|
+
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
5
|
+
import type { IRoseLikeSeriesSpec, IRoseLikeSeriesTheme } from '../polar/rose-like';
|
|
6
|
+
import type { RoseAppearPreset } from './animation';
|
|
7
|
+
import type { IArcLabelSpec } from '../pie/interface';
|
|
8
|
+
export type RoseMarks = 'rose';
|
|
9
|
+
export interface IRoseSeriesSpec extends IRoseLikeSeriesSpec, IAnimationSpec<RoseMarks, RoseAppearPreset> {
|
|
10
|
+
type: 'rose';
|
|
11
|
+
categoryField: string | string[];
|
|
12
|
+
valueField: string | string[];
|
|
13
|
+
[SeriesMarkNameEnum.rose]?: IMarkSpec<IArcMarkSpec>;
|
|
14
|
+
[SeriesMarkNameEnum.label]?: IArcLabelSpec;
|
|
15
|
+
}
|
|
16
|
+
export interface IRoseSeriesTheme extends IRoseLikeSeriesTheme {
|
|
17
|
+
[SeriesMarkNameEnum.rose]?: Partial<IMarkTheme<IArcMarkSpec>>;
|
|
18
|
+
[SeriesMarkNameEnum.label]?: IArcLabelSpec;
|
|
19
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Maybe } from '../../typings';
|
|
2
|
+
import type { SeriesMarkMap } from '../interface';
|
|
3
|
+
import { SeriesTypeEnum } from '../interface/type';
|
|
4
|
+
import type { IRoseSeriesSpec, IRoseSeriesTheme } from './interface';
|
|
5
|
+
import { RoseLikeSeries } from '../polar/rose-like';
|
|
6
|
+
import type { ITextMark } from '../../mark/text';
|
|
7
|
+
import type { IMark } from '../../mark/interface';
|
|
8
|
+
export declare const DefaultBandWidth = 0.5;
|
|
9
|
+
export declare class RoseSeries<T extends IRoseSeriesSpec = IRoseSeriesSpec> extends RoseLikeSeries<T> {
|
|
10
|
+
static readonly type: string;
|
|
11
|
+
type: SeriesTypeEnum;
|
|
12
|
+
static readonly mark: SeriesMarkMap;
|
|
13
|
+
protected _theme: Maybe<IRoseSeriesTheme>;
|
|
14
|
+
protected _supportStack: boolean;
|
|
15
|
+
private _roseMark;
|
|
16
|
+
protected _labelMark: ITextMark | null;
|
|
17
|
+
initMark(): void;
|
|
18
|
+
initMarkStyle(): void;
|
|
19
|
+
private initRoseMark;
|
|
20
|
+
private getRoseAngle;
|
|
21
|
+
private initRoseMarkStyle;
|
|
22
|
+
protected initTooltip(): void;
|
|
23
|
+
initLabelMarkStyle(textMark: ITextMark): void;
|
|
24
|
+
initAnimation(): void;
|
|
25
|
+
getDefaultShapeType(): string;
|
|
26
|
+
getActiveMarks(): IMark[];
|
|
27
|
+
}
|
|
28
|
+
export declare const registerRoseSeries: () => void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
|
+
import type { DirectionType } from '../../typings';
|
|
3
|
+
export type SankeyMark = 'node' | 'link' | 'label';
|
|
4
|
+
export type SankeyAppearPreset = 'growIn' | 'fadeIn';
|
|
5
|
+
export interface ISankeyAnimationParams {
|
|
6
|
+
direction: DirectionType;
|
|
7
|
+
growFrom: () => number;
|
|
8
|
+
}
|
|
9
|
+
export declare const sankeyGrowIn: (params: ISankeyAnimationParams, isOverall?: boolean) => IAnimationTypeConfig;
|
|
10
|
+
export declare const sankeyGrowOut: (params: ISankeyAnimationParams, isOverall?: boolean) => IAnimationTypeConfig;
|
|
11
|
+
export declare const sankeyNodePresetAnimation: (params: ISankeyAnimationParams, preset: SankeyAppearPreset) => IAnimationTypeConfig;
|
|
12
|
+
export declare const sankeyLinkPresetAnimation: (preset: SankeyAppearPreset) => IAnimationTypeConfig;
|
|
13
|
+
export declare const registerSankeyAnimation: () => void;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import type { ISeriesSpec, DirectionType, IMarkTheme } from '../../typings';
|
|
2
|
+
import type { IMarkSpec } from '../../typings/spec/common';
|
|
3
|
+
import type { IRectMarkSpec, ILinkPathMarkSpec } from '../../typings/visual';
|
|
4
|
+
import type { IAnimationSpec } from '../../animation/spec';
|
|
5
|
+
import type { SankeyAppearPreset, SankeyMark } from './animation';
|
|
6
|
+
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
7
|
+
import type { ILabelSpec } from '../../component/label';
|
|
8
|
+
export interface ISankeySeriesSpec extends Omit<ISeriesSpec, 'data'>, IAnimationSpec<SankeyMark, SankeyAppearPreset> {
|
|
9
|
+
nameKey: any;
|
|
10
|
+
type: 'sankey';
|
|
11
|
+
categoryField: string;
|
|
12
|
+
valueField: string;
|
|
13
|
+
sourceField?: string;
|
|
14
|
+
targetField?: string;
|
|
15
|
+
direction?: DirectionType;
|
|
16
|
+
nodeAlign?: 'left' | 'right' | 'center' | 'justify' | 'start' | 'end';
|
|
17
|
+
nodeGap?: number;
|
|
18
|
+
nodeWidth?: string | number | ((node: SankeyNodeElement) => number);
|
|
19
|
+
linkWidth?: number | ((link: SankeyLinkElement) => number);
|
|
20
|
+
minStepWidth?: number;
|
|
21
|
+
minNodeHeight?: number;
|
|
22
|
+
minLinkHeight?: number;
|
|
23
|
+
iterations?: number;
|
|
24
|
+
nodeKey?: string | number | ((datum: SankeyNodeDatum) => string | number);
|
|
25
|
+
linkSortBy?: (a: SankeyLinkElement, b: SankeyLinkElement) => number;
|
|
26
|
+
nodeSortBy?: (a: SankeyNodeElement, b: SankeyNodeElement) => number;
|
|
27
|
+
setNodeLayer?: (datum: SankeyNodeDatum) => number;
|
|
28
|
+
[SeriesMarkNameEnum.node]?: IMarkSpec<IRectMarkSpec>;
|
|
29
|
+
[SeriesMarkNameEnum.link]?: IMarkSpec<ILinkPathMarkSpec>;
|
|
30
|
+
emphasis?: {
|
|
31
|
+
enable: boolean;
|
|
32
|
+
trigger?: 'click' | 'hover';
|
|
33
|
+
effect: 'self' | 'adjacency' | 'related';
|
|
34
|
+
};
|
|
35
|
+
[SeriesMarkNameEnum.label]?: ILabelSpec & {
|
|
36
|
+
position: 'outside' | 'inside-start' | 'inside-middle' | 'inside-end' | 'left' | 'right';
|
|
37
|
+
limit: number;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export interface SankeyLinkDatum {
|
|
41
|
+
source: string | number;
|
|
42
|
+
target: string | number;
|
|
43
|
+
value?: number;
|
|
44
|
+
}
|
|
45
|
+
export interface SankeyNodeDatum {
|
|
46
|
+
value?: number;
|
|
47
|
+
}
|
|
48
|
+
export interface HierarchyNodeDatum {
|
|
49
|
+
value?: number;
|
|
50
|
+
children?: HierarchyNodeDatum[];
|
|
51
|
+
}
|
|
52
|
+
export type SankeyData = {
|
|
53
|
+
nodes?: SankeyNodeDatum[];
|
|
54
|
+
links: SankeyLinkDatum[];
|
|
55
|
+
} | {
|
|
56
|
+
nodes: HierarchyNodeDatum[];
|
|
57
|
+
};
|
|
58
|
+
export interface SankeyNodeElement {
|
|
59
|
+
key: string | number;
|
|
60
|
+
index: number;
|
|
61
|
+
depth: number;
|
|
62
|
+
endDepth?: number;
|
|
63
|
+
layer?: number;
|
|
64
|
+
isLastLayer?: boolean;
|
|
65
|
+
value: number;
|
|
66
|
+
datum: SankeyNodeDatum;
|
|
67
|
+
sourceLinks: SankeyLinkElement[];
|
|
68
|
+
targetLinks: SankeyLinkElement[];
|
|
69
|
+
x0?: number;
|
|
70
|
+
y0?: number;
|
|
71
|
+
x1?: number;
|
|
72
|
+
y1?: number;
|
|
73
|
+
}
|
|
74
|
+
export interface SankeyLinkElement {
|
|
75
|
+
vertical?: boolean;
|
|
76
|
+
index: number;
|
|
77
|
+
source: string | number;
|
|
78
|
+
target: string | number;
|
|
79
|
+
value: number;
|
|
80
|
+
datum: SankeyLinkDatum | SankeyLinkDatum[];
|
|
81
|
+
thickness?: number;
|
|
82
|
+
sourceRect?: {
|
|
83
|
+
x0: number;
|
|
84
|
+
x1: number;
|
|
85
|
+
y0: number;
|
|
86
|
+
y1: number;
|
|
87
|
+
};
|
|
88
|
+
targetRect?: {
|
|
89
|
+
x0: number;
|
|
90
|
+
x1: number;
|
|
91
|
+
y0: number;
|
|
92
|
+
y1: number;
|
|
93
|
+
};
|
|
94
|
+
parents?: (string | number)[];
|
|
95
|
+
y0?: number;
|
|
96
|
+
y1?: number;
|
|
97
|
+
x0?: number;
|
|
98
|
+
x1?: number;
|
|
99
|
+
}
|
|
100
|
+
export type SankeyLayoutResult = {
|
|
101
|
+
nodes: SankeyNodeElement[];
|
|
102
|
+
links: SankeyLinkElement[];
|
|
103
|
+
columns: SankeyNodeElement[][];
|
|
104
|
+
}[];
|
|
105
|
+
export interface ISankeySeriesTheme {
|
|
106
|
+
[SeriesMarkNameEnum.node]?: IMarkTheme<IRectMarkSpec>;
|
|
107
|
+
[SeriesMarkNameEnum.link]?: IMarkTheme<ILinkPathMarkSpec>;
|
|
108
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { CartesianSeries } from '../cartesian/cartesian';
|
|
2
|
+
import type { SeriesMarkMap } from '../interface';
|
|
3
|
+
import { SeriesTypeEnum } from '../interface/type';
|
|
4
|
+
import type { Datum } from '../../typings';
|
|
5
|
+
import { SeriesData } from '../base/series-data';
|
|
6
|
+
import type { ISankeySeriesSpec } from './interface';
|
|
7
|
+
import type { ExtendEventParam } from '../../event/interface';
|
|
8
|
+
import type { IElement, IGlyphElement } from '@visactor/vgrammar-core';
|
|
9
|
+
import type { IMark } from '../../mark/interface';
|
|
10
|
+
export declare class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpec> extends CartesianSeries<T> {
|
|
11
|
+
static readonly type: string;
|
|
12
|
+
type: SeriesTypeEnum;
|
|
13
|
+
static readonly mark: SeriesMarkMap;
|
|
14
|
+
private _nodeMark;
|
|
15
|
+
private _linkMark;
|
|
16
|
+
private _labelMark?;
|
|
17
|
+
private _nodeLayoutZIndex;
|
|
18
|
+
private _labelLayoutZIndex;
|
|
19
|
+
private _labelLimit;
|
|
20
|
+
protected _nodesSeriesData?: SeriesData;
|
|
21
|
+
protected _linksSeriesData?: SeriesData;
|
|
22
|
+
private _viewBox;
|
|
23
|
+
protected _categoryField: string;
|
|
24
|
+
private _colorScale;
|
|
25
|
+
getCategoryField(): string;
|
|
26
|
+
setCategoryField(f: string): string;
|
|
27
|
+
protected _valueField: string;
|
|
28
|
+
getValueField(): string;
|
|
29
|
+
setValueField(f: string): string;
|
|
30
|
+
setAttrFromSpec(): void;
|
|
31
|
+
initData(): void;
|
|
32
|
+
initMark(): void;
|
|
33
|
+
initMarkStyle(): void;
|
|
34
|
+
protected _initNodeMarkStyle(): void;
|
|
35
|
+
protected _initLinkMarkStyle(): void;
|
|
36
|
+
protected _initLabelMarkStyle(): void;
|
|
37
|
+
private _createText;
|
|
38
|
+
initAnimation(): void;
|
|
39
|
+
protected initEvent(): void;
|
|
40
|
+
private nodesSeriesDataUpdate;
|
|
41
|
+
private linksSeriesDataUpdate;
|
|
42
|
+
protected _handleAdjacencyClick: (params: ExtendEventParam) => void;
|
|
43
|
+
protected _handleRelatedClick: (params: ExtendEventParam) => void;
|
|
44
|
+
protected _handleClearEmpty: () => void;
|
|
45
|
+
protected _handleNodeAdjacencyClick: (element: IElement) => void;
|
|
46
|
+
protected _handleLinkAdjacencyClick: (element: IGlyphElement) => void;
|
|
47
|
+
protected _handleNodeRelatedClick: (element: IElement) => void;
|
|
48
|
+
protected _handleLinkRelatedClick: (element: IGlyphElement) => void;
|
|
49
|
+
protected initTooltip(): void;
|
|
50
|
+
_setNodeOrdinalColorScale(): void;
|
|
51
|
+
getNodeList(): any;
|
|
52
|
+
_getNodeNameFromData(datum: Datum): any;
|
|
53
|
+
extractNamesFromTree(tree: any, categoryName: string): Set<unknown>;
|
|
54
|
+
getDimensionField(): string[];
|
|
55
|
+
getMeasureField(): string[];
|
|
56
|
+
getRawDataStatisticsByField(field: string, isNumeric?: boolean): {
|
|
57
|
+
values?: any[];
|
|
58
|
+
min?: number;
|
|
59
|
+
max?: number;
|
|
60
|
+
};
|
|
61
|
+
private _collectByField;
|
|
62
|
+
onLayoutEnd(ctx: any): void;
|
|
63
|
+
getDefaultShapeType(): string;
|
|
64
|
+
protected _noAnimationDataKey(datum: Datum, index: number): unknown | undefined;
|
|
65
|
+
getActiveMarks(): IMark[];
|
|
66
|
+
}
|
|
67
|
+
export declare const registerSankeySeries: () => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ISeriesTooltipHelper } from '../interface';
|
|
2
|
+
import { BaseSeriesTooltipHelper } from '../base/tooltip-helper';
|
|
3
|
+
import type { ITooltipPattern, TooltipActiveType } from '../../typings';
|
|
4
|
+
import type { IDimensionInfo } from '../../event/events/dimension/interface';
|
|
5
|
+
export declare class SankeySeriesTooltipHelper extends BaseSeriesTooltipHelper implements ISeriesTooltipHelper {
|
|
6
|
+
getDefaultTooltipPattern(activeType: TooltipActiveType, dimensionInfo?: IDimensionInfo[]): ITooltipPattern | null;
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
|
+
export type ScatterMarks = 'point' | 'label';
|
|
3
|
+
export type ScatterAppearPreset = 'scaleIn' | 'fadeIn';
|
|
4
|
+
export interface IScatterAnimationParams {
|
|
5
|
+
[key: string]: object;
|
|
6
|
+
}
|
|
7
|
+
export declare const scatterPresetAnimation: (_params: IScatterAnimationParams, preset: ScatterAppearPreset) => IAnimationTypeConfig;
|
|
8
|
+
export declare const registerScatterAnimation: () => void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ICartesianSeriesSpec, ICartesianSeriesTheme } from '../cartesian/interface';
|
|
2
|
+
import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';
|
|
3
|
+
import type { ISymbolMarkSpec, IVisualSpecBase, ShapeType, FunctionType } from '../../typings';
|
|
4
|
+
import type { IAnimationSpec } from '../../animation/spec';
|
|
5
|
+
import type { ScatterAppearPreset, ScatterMarks } from './animation';
|
|
6
|
+
import type { IMarkProgressiveConfig } from '../../mark/interface';
|
|
7
|
+
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
8
|
+
import type { ILineLikeLabelSpec } from '../mixin/line-mixin';
|
|
9
|
+
export interface IScatterSeriesSpec extends ICartesianSeriesSpec, IAnimationSpec<ScatterMarks, ScatterAppearPreset>, IMarkProgressiveConfig {
|
|
10
|
+
type: 'scatter';
|
|
11
|
+
xField: string | string[];
|
|
12
|
+
yField: string | string[];
|
|
13
|
+
[SeriesMarkNameEnum.point]?: IMarkSpec<ISymbolMarkSpec>;
|
|
14
|
+
sizeField?: string;
|
|
15
|
+
size?: number | number[] | FunctionType<number> | IVisualSpecBase<unknown, number>;
|
|
16
|
+
shapeField?: string;
|
|
17
|
+
shape?: ShapeType | ShapeType[] | FunctionType<ShapeType> | IVisualSpecBase<unknown, ShapeType>;
|
|
18
|
+
[SeriesMarkNameEnum.label]?: ILineLikeLabelSpec;
|
|
19
|
+
}
|
|
20
|
+
export interface IScatterSeriesTheme extends ICartesianSeriesTheme {
|
|
21
|
+
size?: number;
|
|
22
|
+
shape?: ShapeType;
|
|
23
|
+
[SeriesMarkNameEnum.point]?: Partial<IMarkTheme<ISymbolMarkSpec>>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { DataView } from '@visactor/vdataset';
|
|
2
|
+
import type { Maybe, IScatterInvalidType } from '../../typings';
|
|
3
|
+
import type { IScatterSeriesSpec, IScatterSeriesTheme } from './interface';
|
|
4
|
+
import { CartesianSeries } from '../cartesian/cartesian';
|
|
5
|
+
import type { SeriesMarkMap } from '../interface';
|
|
6
|
+
import { SeriesTypeEnum } from '../interface/type';
|
|
7
|
+
import type { ILabelMark } from '../../mark/label';
|
|
8
|
+
import type { IMark } from '../../mark/interface';
|
|
9
|
+
export declare class ScatterSeries<T extends IScatterSeriesSpec = IScatterSeriesSpec> extends CartesianSeries<T> {
|
|
10
|
+
static readonly type: string;
|
|
11
|
+
type: SeriesTypeEnum;
|
|
12
|
+
static readonly mark: SeriesMarkMap;
|
|
13
|
+
protected _theme: Maybe<IScatterSeriesTheme>;
|
|
14
|
+
private _symbolMark;
|
|
15
|
+
private _labelMark;
|
|
16
|
+
private _size;
|
|
17
|
+
private _sizeField;
|
|
18
|
+
private _shape;
|
|
19
|
+
private _shapeField;
|
|
20
|
+
protected _invalidType: IScatterInvalidType;
|
|
21
|
+
setAttrFromSpec(): void;
|
|
22
|
+
private _getSeriesAttribute;
|
|
23
|
+
private getSizeAttribute;
|
|
24
|
+
private getShapeAttribute;
|
|
25
|
+
initMark(): void;
|
|
26
|
+
initMarkStyle(): void;
|
|
27
|
+
initAnimation(): void;
|
|
28
|
+
private initSymbolMarkStyle;
|
|
29
|
+
protected initTooltip(): void;
|
|
30
|
+
viewDataStatisticsUpdate(d: DataView): void;
|
|
31
|
+
initLabelMarkStyle(labelMark?: ILabelMark): void;
|
|
32
|
+
handleZoom(e: any): void;
|
|
33
|
+
handlePan(e: any): void;
|
|
34
|
+
getDefaultShapeType(): string;
|
|
35
|
+
getActiveMarks(): IMark[];
|
|
36
|
+
}
|
|
37
|
+
export declare const registerScatterSeries: () => void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type SunburstMark = 'arc' | 'label';
|
|
2
|
+
export type SunburstAppearPreset = 'growAngle' | 'growRadius' | 'fadeIn';
|
|
3
|
+
export type SunburstAppearParams = 'growAngle' | 'growRadius' | 'fadeIn';
|
|
4
|
+
export interface ISunburstAnimationParams {
|
|
5
|
+
animationInfo: () => animationInfo;
|
|
6
|
+
}
|
|
7
|
+
export type animationInfo = {
|
|
8
|
+
startAngle: number;
|
|
9
|
+
endAngle: number;
|
|
10
|
+
outerRadius: number;
|
|
11
|
+
innerRadius: number;
|
|
12
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
|
+
import type { ISunburstAnimationParams, SunburstAppearPreset } from './interface';
|
|
3
|
+
export declare const sunburstPresetAnimation: (_params: ISunburstAnimationParams, preset: SunburstAppearPreset) => IAnimationTypeConfig;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { IAnimationSpec } from '../../animation/spec';
|
|
2
|
+
import type { IMarkSpec, IMarkTheme, ISeriesSpec } from '../../typings/spec';
|
|
3
|
+
import type { SunburstLabelConfig } from '@visactor/vgrammar-hierarchy';
|
|
4
|
+
import type { SunburstAppearPreset, SunburstMark } from './animation';
|
|
5
|
+
import type { IArcMarkSpec, ITextMarkSpec } from '../../typings';
|
|
6
|
+
import type { IPolarSeriesTheme } from '../polar/interface';
|
|
7
|
+
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
8
|
+
export interface ISunburstSeriesSpec extends Omit<ISeriesSpec, 'data'>, IAnimationSpec<SunburstMark, SunburstAppearPreset> {
|
|
9
|
+
type: 'sunburst';
|
|
10
|
+
categoryField: string;
|
|
11
|
+
valueField: string;
|
|
12
|
+
centerX?: number;
|
|
13
|
+
centerY?: number;
|
|
14
|
+
offsetX?: number;
|
|
15
|
+
offsetY?: number;
|
|
16
|
+
startAngle?: number;
|
|
17
|
+
endAngle?: number;
|
|
18
|
+
innerRadius?: number | number[];
|
|
19
|
+
outerRadius?: number | number[];
|
|
20
|
+
gap?: number | number[];
|
|
21
|
+
labelLayout?: SunburstLabelConfig | (SunburstLabelConfig | null)[];
|
|
22
|
+
labelAutoVisible?: LabelAutoVisibleType;
|
|
23
|
+
drill?: boolean;
|
|
24
|
+
drillField?: string;
|
|
25
|
+
[SeriesMarkNameEnum.label]?: IMarkSpec<ITextMarkSpec>;
|
|
26
|
+
[SeriesMarkNameEnum.sunburst]?: IMarkSpec<IArcMarkSpec>;
|
|
27
|
+
}
|
|
28
|
+
export interface ISunburstSeriesTheme extends Omit<IPolarSeriesTheme, 'label' | 'innerRadius' | 'outerRadius'> {
|
|
29
|
+
startAngle?: number;
|
|
30
|
+
endAngle?: number;
|
|
31
|
+
innerRadius?: number | number[];
|
|
32
|
+
outerRadius?: number | number[];
|
|
33
|
+
gap?: number | number[];
|
|
34
|
+
labelLayout?: SunburstLabelConfig | SunburstLabelConfig[];
|
|
35
|
+
[SeriesMarkNameEnum.label]?: IMarkTheme<ITextMarkSpec>;
|
|
36
|
+
[SeriesMarkNameEnum.sunburst]?: IMarkTheme<IArcMarkSpec>;
|
|
37
|
+
}
|
|
38
|
+
export type LabelAutoVisibleType = {
|
|
39
|
+
enable?: boolean;
|
|
40
|
+
circumference?: number;
|
|
41
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { Datum } from '../../typings';
|
|
2
|
+
import type { ISunburstSeriesSpec } from './interface';
|
|
3
|
+
import type { SeriesMarkMap } from '../interface';
|
|
4
|
+
import { SeriesTypeEnum } from '../interface/type';
|
|
5
|
+
import type { IMark } from '../../mark/interface';
|
|
6
|
+
import { PolarSeries } from '../polar/polar';
|
|
7
|
+
export declare class SunburstSeries extends PolarSeries<any> {
|
|
8
|
+
protected _spec: ISunburstSeriesSpec;
|
|
9
|
+
static readonly type: string;
|
|
10
|
+
type: SeriesTypeEnum;
|
|
11
|
+
static readonly mark: SeriesMarkMap;
|
|
12
|
+
private _sunburstMark;
|
|
13
|
+
private _labelMark;
|
|
14
|
+
protected _categoryField: string;
|
|
15
|
+
protected _valueField: string;
|
|
16
|
+
private _centerX;
|
|
17
|
+
private _centerY;
|
|
18
|
+
private _offsetX;
|
|
19
|
+
private _offsetY;
|
|
20
|
+
private _startAngle;
|
|
21
|
+
private _endAngle;
|
|
22
|
+
private __innerRadius;
|
|
23
|
+
private __outerRadius;
|
|
24
|
+
private _gap;
|
|
25
|
+
private _labelLayout;
|
|
26
|
+
private _labelAutoVisible?;
|
|
27
|
+
private _label;
|
|
28
|
+
private _sunburst;
|
|
29
|
+
setCategoryField(f: string): string;
|
|
30
|
+
getCategoryField(): string;
|
|
31
|
+
setValueField(f: string): string;
|
|
32
|
+
getValueField(): string;
|
|
33
|
+
getDimensionField(): string[];
|
|
34
|
+
getMeasureField(): string[];
|
|
35
|
+
setAttrFromSpec(): void;
|
|
36
|
+
protected initData(): void;
|
|
37
|
+
getStatisticFields(): {
|
|
38
|
+
key: string;
|
|
39
|
+
operations: ("values" | "max" | "min")[];
|
|
40
|
+
}[];
|
|
41
|
+
protected _addDataIndexAndKey(): void;
|
|
42
|
+
initMark(): void;
|
|
43
|
+
initMarkStyle(): void;
|
|
44
|
+
private _initArcMark;
|
|
45
|
+
private _initArcMarkStyle;
|
|
46
|
+
private _initLabelMark;
|
|
47
|
+
private _initLabelMarkStyle;
|
|
48
|
+
protected initTooltip(): void;
|
|
49
|
+
initAnimation(): void;
|
|
50
|
+
initEvent(): void;
|
|
51
|
+
onLayoutEnd(ctx: any): void;
|
|
52
|
+
private _computeRadius;
|
|
53
|
+
private _computeLevel;
|
|
54
|
+
getGroupFields(): string[];
|
|
55
|
+
getStackGroupFields(): string[];
|
|
56
|
+
getStackValueField(): string;
|
|
57
|
+
protected _noAnimationDataKey(datum: Datum, index: number): unknown | undefined;
|
|
58
|
+
getActiveMarks(): IMark[];
|
|
59
|
+
}
|
|
60
|
+
export declare const registerSunBurstSeries: () => void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
|
+
export type TreemapMark = 'leaf' | 'nonLeaf';
|
|
3
|
+
export type TreemapAppearPreset = 'growIn' | 'fadeIn';
|
|
4
|
+
export declare const treemapPresetAnimation: (preset: TreemapAppearPreset) => IAnimationTypeConfig;
|
|
5
|
+
export declare const registerTreemapAnimation: () => void;
|