@visactor/vchart-types 1.6.0
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 +111 -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 +7 -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 +149 -0
- package/types/component/axis/cartesian/axis.d.ts +112 -0
- package/types/component/axis/cartesian/band-axis.d.ts +40 -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 +56 -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 +38 -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 +42 -0
- package/types/component/axis/mixin/linear-axis-mixin.d.ts +57 -0
- package/types/component/axis/polar/axis.d.ts +85 -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 +45 -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 +79 -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 +77 -0
- package/types/component/crosshair/cartesian.d.ts +67 -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 +78 -0
- package/types/component/crosshair/util.d.ts +10 -0
- package/types/component/custom-mark/custom-mark.d.ts +34 -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 +122 -0
- package/types/component/data-zoom/data-zoom/data-zoom.d.ts +65 -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 +29 -0
- package/types/component/data-zoom/util.d.ts +19 -0
- package/types/component/geo/geo-coordinate.d.ts +62 -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 +42 -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 +40 -0
- package/types/component/label/index.d.ts +2 -0
- package/types/component/label/interface.d.ts +32 -0
- package/types/component/label/label.d.ts +47 -0
- package/types/component/label/totalLabel.d.ts +28 -0
- package/types/component/label/util.d.ts +57 -0
- package/types/component/legend/base-legend.d.ts +63 -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 +27 -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 +26 -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 +54 -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 +66 -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 +20 -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 +20 -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 +20 -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 +54 -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 +49 -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 +22 -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 +64 -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 +2 -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/factory.d.ts +48 -0
- package/types/core/index.d.ts +12 -0
- package/types/core/instance-manager.d.ts +10 -0
- package/types/core/interface.d.ts +92 -0
- package/types/core/util.d.ts +3 -0
- package/types/core/vchart.d.ts +149 -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 +22 -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 +19 -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 +8 -0
- package/types/event/events/dimension/util/index.d.ts +3 -0
- package/types/event/events/dimension/util/polar.d.ts +4 -0
- package/types/event/events/index.d.ts +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 +80 -0
- package/types/layout/base-layout.d.ts +35 -0
- package/types/layout/grid-layout/grid-layout.d.ts +51 -0
- package/types/layout/index.d.ts +6 -0
- package/types/layout/interface.d.ts +45 -0
- package/types/layout/layout3d/index.d.ts +31 -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 +84 -0
- package/types/model/interface.d.ts +188 -0
- package/types/model/layout-item.d.ts +59 -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 +59 -0
- package/types/region/region.d.ts +75 -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 +189 -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 +61 -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 +177 -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 +60 -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 +61 -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 +23 -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/util.d.ts +10 -0
- package/types/theme/index.d.ts +4 -0
- package/types/theme/interface.d.ts +57 -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 +14 -0
- package/types/typings/interpolate.d.ts +5 -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 +267 -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 +3 -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,91 @@
|
|
|
1
|
+
export type SeriesType = keyof typeof SeriesTypeEnum | string;
|
|
2
|
+
export declare enum SeriesTypeEnum {
|
|
3
|
+
area = "area",
|
|
4
|
+
line = "line",
|
|
5
|
+
bar = "bar",
|
|
6
|
+
bar3d = "bar3d",
|
|
7
|
+
rangeColumn = "rangeColumn",
|
|
8
|
+
rangeColumn3d = "rangeColumn3d",
|
|
9
|
+
rangeArea = "rangeArea",
|
|
10
|
+
dot = "dot",
|
|
11
|
+
geo = "geo",
|
|
12
|
+
link = "link",
|
|
13
|
+
map = "map",
|
|
14
|
+
pie = "pie",
|
|
15
|
+
pie3d = "pie3d",
|
|
16
|
+
radar = "radar",
|
|
17
|
+
rose = "rose",
|
|
18
|
+
scatter = "scatter",
|
|
19
|
+
circularProgress = "circularProgress",
|
|
20
|
+
wordCloud = "wordCloud",
|
|
21
|
+
wordCloud3d = "wordCloud3d",
|
|
22
|
+
funnel = "funnel",
|
|
23
|
+
funnel3d = "funnel3d",
|
|
24
|
+
linearProgress = "linearProgress",
|
|
25
|
+
boxPlot = "boxPlot",
|
|
26
|
+
sankey = "sankey",
|
|
27
|
+
gaugePointer = "gaugePointer",
|
|
28
|
+
gauge = "gauge",
|
|
29
|
+
treemap = "treemap",
|
|
30
|
+
sunburst = "sunburst",
|
|
31
|
+
circlePacking = "circlePacking",
|
|
32
|
+
waterfall = "waterfall",
|
|
33
|
+
heatmap = "heatmap",
|
|
34
|
+
correlation = "correlation"
|
|
35
|
+
}
|
|
36
|
+
export declare enum SeriesMarkNameEnum {
|
|
37
|
+
label = "label",
|
|
38
|
+
point = "point",
|
|
39
|
+
line = "line",
|
|
40
|
+
area = "area",
|
|
41
|
+
bar = "bar",
|
|
42
|
+
bar3d = "bar3d",
|
|
43
|
+
boxPlot = "boxPlot",
|
|
44
|
+
outlier = "outlier",
|
|
45
|
+
circlePacking = "circlePacking",
|
|
46
|
+
group = "group",
|
|
47
|
+
gridBackground = "gridBackground",
|
|
48
|
+
grid = "grid",
|
|
49
|
+
dot = "dot",
|
|
50
|
+
title = "title",
|
|
51
|
+
subTitle = "subTitle",
|
|
52
|
+
symbol = "symbol",
|
|
53
|
+
funnel = "funnel",
|
|
54
|
+
funnel3d = "funnel3d",
|
|
55
|
+
transform = "transform",
|
|
56
|
+
transform3d = "transform3d",
|
|
57
|
+
transformLabel = "transformLabel",
|
|
58
|
+
outerLabel = "outerLabel",
|
|
59
|
+
outerLabelLine = "outerLabelLine",
|
|
60
|
+
pin = "pin",
|
|
61
|
+
pinBackground = "pinBackground",
|
|
62
|
+
pointer = "pointer",
|
|
63
|
+
segment = "segment",
|
|
64
|
+
track = "track",
|
|
65
|
+
cell = "cell",
|
|
66
|
+
cellBackground = "cellBackground",
|
|
67
|
+
link = "link",
|
|
68
|
+
arrow = "arrow",
|
|
69
|
+
pie = "pie",
|
|
70
|
+
pie3d = "pie3d",
|
|
71
|
+
labelLine = "labelLine",
|
|
72
|
+
progress = "progress",
|
|
73
|
+
minLabel = "minLabel",
|
|
74
|
+
maxLabel = "maxLabel",
|
|
75
|
+
rose = "rose",
|
|
76
|
+
node = "node",
|
|
77
|
+
sunburst = "sunburst",
|
|
78
|
+
nonLeaf = "nonLeaf",
|
|
79
|
+
leaf = "leaf",
|
|
80
|
+
nonLeafLabel = "nonLeafLabel",
|
|
81
|
+
leaderLine = "leaderLine",
|
|
82
|
+
stackLabel = "stackLabel",
|
|
83
|
+
word = "word",
|
|
84
|
+
fillingWord = "fillingWord",
|
|
85
|
+
nodePoint = "nodePoint",
|
|
86
|
+
ripplePoint = "ripplePoint",
|
|
87
|
+
centerPoint = "centerPoint",
|
|
88
|
+
centerLabel = "centerLabel",
|
|
89
|
+
barBackground = "barBackground"
|
|
90
|
+
}
|
|
91
|
+
export declare const seriesMarkNameSet: Set<string>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DirectionType } from '../../typings';
|
|
2
|
+
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
3
|
+
export interface ILineAnimationParams {
|
|
4
|
+
direction: DirectionType;
|
|
5
|
+
}
|
|
6
|
+
export type LineAppearPreset = 'clipIn' | 'fadeIn' | 'grow';
|
|
7
|
+
export declare function linePresetAnimation(params: ILineAnimationParams, preset: LineAppearPreset): IAnimationTypeConfig;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { IMarkSpec } from '../../typings/spec/common';
|
|
2
|
+
import type { ICartesianSeriesSpec } from '../cartesian/interface';
|
|
3
|
+
import type { ISymbolMarkSpec, ILineMarkSpec } from '../../typings/visual';
|
|
4
|
+
import type { IAnimationSpec } from '../../animation/spec';
|
|
5
|
+
import type { LineAppearPreset } from './animation';
|
|
6
|
+
import type { ILineLikeLabelSpec, ILineLikeSeriesTheme } from '../mixin/line-mixin';
|
|
7
|
+
import type { IDataSamping, IMarkOverlap, IMarkProgressiveConfig } from '../../mark/interface';
|
|
8
|
+
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
9
|
+
type LineMarks = 'point' | 'line';
|
|
10
|
+
export interface ILineSeriesSpec extends ICartesianSeriesSpec, IAnimationSpec<LineMarks, LineAppearPreset>, IMarkProgressiveConfig, IDataSamping, IMarkOverlap {
|
|
11
|
+
type: 'line';
|
|
12
|
+
xField: string | string[];
|
|
13
|
+
yField: string | string[];
|
|
14
|
+
[SeriesMarkNameEnum.point]?: IMarkSpec<ISymbolMarkSpec>;
|
|
15
|
+
[SeriesMarkNameEnum.line]?: IMarkSpec<ILineMarkSpec>;
|
|
16
|
+
[SeriesMarkNameEnum.label]?: ILineLikeLabelSpec;
|
|
17
|
+
seriesMark?: 'line' | 'point';
|
|
18
|
+
activePoint?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export type ILineSeriesTheme = ILineLikeSeriesTheme;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CartesianSeries } from '../cartesian/cartesian';
|
|
2
|
+
import type { SeriesMarkMap } from '../interface';
|
|
3
|
+
import { SeriesTypeEnum } from '../interface/type';
|
|
4
|
+
import { LineLikeSeriesMixin } from '../mixin/line-mixin';
|
|
5
|
+
import { type Datum, type Maybe } from '../../typings';
|
|
6
|
+
import type { ILineSeriesSpec, ILineSeriesTheme } from './interface';
|
|
7
|
+
import type { IMark } from '../../mark/interface';
|
|
8
|
+
export interface LineSeries<T extends ILineSeriesSpec = ILineSeriesSpec> extends Pick<LineLikeSeriesMixin, 'initLineMark' | 'initSymbolMark' | 'initLabelMarkStyle' | 'initLineMarkStyle' | 'initSymbolMarkStyle' | '_lineMark' | '_symbolMark' | 'addSamplingCompile' | 'addOverlapCompile' | 'reCompileSampling'>, CartesianSeries<T> {
|
|
9
|
+
}
|
|
10
|
+
export declare class LineSeries<T extends ILineSeriesSpec = ILineSeriesSpec> extends CartesianSeries<T> {
|
|
11
|
+
static readonly type: string;
|
|
12
|
+
type: SeriesTypeEnum;
|
|
13
|
+
static readonly mark: SeriesMarkMap;
|
|
14
|
+
protected _theme: Maybe<ILineSeriesTheme>;
|
|
15
|
+
protected _sortDataByAxis: boolean;
|
|
16
|
+
compile(): void;
|
|
17
|
+
initMark(): void;
|
|
18
|
+
protected initTooltip(): void;
|
|
19
|
+
initMarkStyle(): void;
|
|
20
|
+
initAnimation(): void;
|
|
21
|
+
onLayoutEnd(ctx: any): void;
|
|
22
|
+
getSeriesStyle(datum: Datum): (attribute: string) => unknown;
|
|
23
|
+
getDefaultShapeType(): string;
|
|
24
|
+
getActiveMarks(): IMark[];
|
|
25
|
+
}
|
|
26
|
+
export declare const registerLineSeries: () => void;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ICartesianSeriesSpec, ICartesianSeriesTheme } from '../cartesian/interface';
|
|
2
|
+
import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';
|
|
3
|
+
import type { ILineMarkSpec, ISymbolMarkSpec } from '../../typings/visual';
|
|
4
|
+
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
5
|
+
import type { DataView } from '@visactor/vdataset';
|
|
6
|
+
import type { IDotSeriesSpec } from '../dot/interface';
|
|
7
|
+
export interface ILinkSeriesSpec extends ICartesianSeriesSpec, ILinkSeriesSpecFromDot {
|
|
8
|
+
type: 'link';
|
|
9
|
+
fromField: string;
|
|
10
|
+
toField: string;
|
|
11
|
+
dotSeriesIndex: number;
|
|
12
|
+
dotTypeField?: string;
|
|
13
|
+
[SeriesMarkNameEnum.link]?: IMarkSpec<ILineMarkSpec>;
|
|
14
|
+
}
|
|
15
|
+
type ILinkSeriesSpecFromDot = {
|
|
16
|
+
dataDot?: DataView;
|
|
17
|
+
dotSeriesSpec?: IDotSeriesSpec;
|
|
18
|
+
leftAppendPadding?: number;
|
|
19
|
+
clipHeight?: number;
|
|
20
|
+
};
|
|
21
|
+
export interface ILinkSeriesTheme extends ICartesianSeriesTheme {
|
|
22
|
+
[SeriesMarkNameEnum.link]?: Partial<IMarkTheme<ILineMarkSpec>>;
|
|
23
|
+
[SeriesMarkNameEnum.arrow]?: Partial<IMarkTheme<ISymbolMarkSpec>>;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { CartesianSeries } from '../cartesian/cartesian';
|
|
2
|
+
import type { Maybe, Datum } from '../../typings';
|
|
3
|
+
import type { IMark } from '../../mark/interface';
|
|
4
|
+
import { SeriesTypeEnum } from '../interface/type';
|
|
5
|
+
import type { IDotSeriesSpec } from '../dot/interface';
|
|
6
|
+
import type { ILinkSeriesSpec, ILinkSeriesTheme } from './interface';
|
|
7
|
+
import type { SeriesMarkMap } from '../interface';
|
|
8
|
+
export declare class LinkSeries<T extends ILinkSeriesSpec = ILinkSeriesSpec> extends CartesianSeries<T> {
|
|
9
|
+
static readonly type: string;
|
|
10
|
+
type: SeriesTypeEnum;
|
|
11
|
+
static readonly mark: SeriesMarkMap;
|
|
12
|
+
protected _theme: Maybe<ILinkSeriesTheme>;
|
|
13
|
+
protected _fromField?: string;
|
|
14
|
+
getFromField(): string;
|
|
15
|
+
setFromField(field: string): void;
|
|
16
|
+
protected _toField?: string;
|
|
17
|
+
getToField(): string;
|
|
18
|
+
setToField(field: string): void;
|
|
19
|
+
protected _dotTypeField?: string;
|
|
20
|
+
getDotTypeField(): string;
|
|
21
|
+
setDotTypeField(field: string): void;
|
|
22
|
+
protected _dotSeriesSpec?: IDotSeriesSpec;
|
|
23
|
+
getDotSeriesSpec(): IDotSeriesSpec;
|
|
24
|
+
setDotSeriesSpec(spec: IDotSeriesSpec): void;
|
|
25
|
+
protected _getDotData(): any;
|
|
26
|
+
initData(): void;
|
|
27
|
+
setAttrFromSpec(): void;
|
|
28
|
+
private _clipMark;
|
|
29
|
+
private _containerMark;
|
|
30
|
+
private _linkMark;
|
|
31
|
+
private _arrowMark;
|
|
32
|
+
initMark(): void;
|
|
33
|
+
initMarkStyle(): void;
|
|
34
|
+
afterInitMark(): void;
|
|
35
|
+
dataToPositionXFrom(datum: Datum): number;
|
|
36
|
+
dataToPositionYFrom(datum: Datum): number;
|
|
37
|
+
dataToPositionXTo(datum: Datum): number;
|
|
38
|
+
dataToPositionYTo(datum: Datum): number;
|
|
39
|
+
dataToPositionArrowYTo(datum: Datum, arrowSize: number): number;
|
|
40
|
+
dataToOpacity(datum: Datum): number;
|
|
41
|
+
isPositionYFromHigher(datum: Datum): boolean;
|
|
42
|
+
isPositionXOuterRange(datum: Datum, field: string): boolean;
|
|
43
|
+
getDefaultColorDomain(): any;
|
|
44
|
+
getColorAttribute(): {
|
|
45
|
+
scale: any;
|
|
46
|
+
field: string;
|
|
47
|
+
};
|
|
48
|
+
protected initTooltip(): void;
|
|
49
|
+
protected onMarkTreePositionUpdate(marks: IMark[]): void;
|
|
50
|
+
getDotInfoData(): import("../../compile/mark/mark-data").MarkData;
|
|
51
|
+
getActiveMarks(): IMark[];
|
|
52
|
+
}
|
|
53
|
+
export declare const registerLinkSeries: () => 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 LinkSeriesTooltipHelper extends BaseSeriesTooltipHelper implements ISeriesTooltipHelper {
|
|
5
|
+
getDefaultTooltipPattern(activeType: TooltipActiveType): ITooltipPattern | null;
|
|
6
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DataView } from '@visactor/vdataset';
|
|
2
|
+
import type { GeoSourceType } from '../../typings/geo';
|
|
3
|
+
export interface IGeoJsonOption {
|
|
4
|
+
type: 'geojson';
|
|
5
|
+
centroid?: boolean;
|
|
6
|
+
simplify?: boolean;
|
|
7
|
+
rewind?: boolean | {
|
|
8
|
+
reverse?: boolean;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface ITopoJsonOption extends Omit<IGeoJsonOption, 'type'> {
|
|
12
|
+
type: 'topojson';
|
|
13
|
+
object: string;
|
|
14
|
+
}
|
|
15
|
+
export type GeoSourceOption = IGeoJsonOption | ITopoJsonOption;
|
|
16
|
+
export declare const geoSourceMap: Map<string, DataView>;
|
|
17
|
+
export declare function registerMapSource(key: string, source: GeoSourceType, option?: GeoSourceOption): void;
|
|
18
|
+
export declare function unregisterMapSource(key: string): void;
|
|
19
|
+
export declare function getMapSource(type: string): DataView;
|
|
20
|
+
export declare function clearMapSource(): void;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { IPathMarkSpec, ITextMarkSpec } from '../../typings/visual';
|
|
2
|
+
import type { IMarkSpec, IMarkTheme, ISeriesSpec } from '../../typings/spec/common';
|
|
3
|
+
import type { IAnimationSpec } from '../../animation/spec';
|
|
4
|
+
type LineMarks = 'area';
|
|
5
|
+
export interface IMapSeriesSpec extends ISeriesSpec, IAnimationSpec<LineMarks, 'fadeIn'> {
|
|
6
|
+
type: 'map';
|
|
7
|
+
map: string;
|
|
8
|
+
nameField?: string;
|
|
9
|
+
valueField?: string;
|
|
10
|
+
nameProperty?: string;
|
|
11
|
+
centroidProperty?: string;
|
|
12
|
+
nameMap?: {
|
|
13
|
+
[key: string]: string;
|
|
14
|
+
};
|
|
15
|
+
area?: IMarkSpec<Omit<IPathMarkSpec, 'smoothScale'>>;
|
|
16
|
+
defaultFillColor?: string;
|
|
17
|
+
label?: IMarkSpec<ITextMarkSpec> & {
|
|
18
|
+
offset?: number;
|
|
19
|
+
position?: string;
|
|
20
|
+
formatMethod?: (text: string | string[], datum?: any) => string | string[];
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export interface IMapSeriesTheme {
|
|
24
|
+
defaultFillColor?: string;
|
|
25
|
+
label?: Partial<IMarkTheme<ITextMarkSpec> & {
|
|
26
|
+
offset?: number;
|
|
27
|
+
position?: string;
|
|
28
|
+
}>;
|
|
29
|
+
area?: Partial<IMarkTheme<Omit<IPathMarkSpec, 'smoothScale'>>>;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { DataView } from '@visactor/vdataset';
|
|
2
|
+
import type { Maybe, StringOrNumber } from '../../typings';
|
|
3
|
+
import { GeoSeries } from '../geo/geo';
|
|
4
|
+
import type { SeriesMarkMap } from '../interface';
|
|
5
|
+
import { SeriesTypeEnum } from '../interface/type';
|
|
6
|
+
import type { IMapSeriesSpec, IMapSeriesTheme } from './interface';
|
|
7
|
+
import type { PanEventParam, ZoomEventParam } from '../../event/interface';
|
|
8
|
+
import type { ILabelMark } from '../../mark/label';
|
|
9
|
+
import type { IMark } from '../../mark/interface';
|
|
10
|
+
export declare class MapSeries<T extends IMapSeriesSpec = IMapSeriesSpec> extends GeoSeries<T> {
|
|
11
|
+
static readonly type: string;
|
|
12
|
+
type: SeriesTypeEnum;
|
|
13
|
+
static readonly mark: SeriesMarkMap;
|
|
14
|
+
map: string;
|
|
15
|
+
protected _nameMap: {
|
|
16
|
+
[key: StringOrNumber]: StringOrNumber;
|
|
17
|
+
};
|
|
18
|
+
getNameMap(): {
|
|
19
|
+
[key: string]: StringOrNumber;
|
|
20
|
+
[key: number]: StringOrNumber;
|
|
21
|
+
};
|
|
22
|
+
protected _theme: Maybe<IMapSeriesTheme>;
|
|
23
|
+
private _areaCache;
|
|
24
|
+
private _pathMark;
|
|
25
|
+
private _labelMark;
|
|
26
|
+
setAttrFromSpec(): void;
|
|
27
|
+
initData(): void;
|
|
28
|
+
initMark(): void;
|
|
29
|
+
initMarkStyle(): void;
|
|
30
|
+
initLabelMarkStyle(labelMark: ILabelMark): void;
|
|
31
|
+
initAnimation(): void;
|
|
32
|
+
protected initTooltip(): void;
|
|
33
|
+
protected getPath(datum: any): string;
|
|
34
|
+
onEvaluateEnd(): void;
|
|
35
|
+
getDimensionField(): string[];
|
|
36
|
+
getMeasureField(): string[];
|
|
37
|
+
release(): void;
|
|
38
|
+
handleZoom(e: ZoomEventParam): void;
|
|
39
|
+
handlePan(e: PanEventParam): void;
|
|
40
|
+
getDatumCenter(datum: any): [number, number];
|
|
41
|
+
getDatumName(datum: any): string;
|
|
42
|
+
dataToPositionX(data: any): number;
|
|
43
|
+
dataToPositionY(data: any): number;
|
|
44
|
+
viewDataUpdate(d: DataView): void;
|
|
45
|
+
protected _getDataIdKey(): string;
|
|
46
|
+
getActiveMarks(): IMark[];
|
|
47
|
+
}
|
|
48
|
+
export declare const registerMapSeries: () => void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ISeriesTooltipHelper } from '../interface';
|
|
2
|
+
import { BaseSeriesTooltipHelper } from '../base/tooltip-helper';
|
|
3
|
+
export declare class MapSeriesTooltipHelper extends BaseSeriesTooltipHelper implements ISeriesTooltipHelper {
|
|
4
|
+
titleValueCallback: (datum: any) => any;
|
|
5
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { ISeriesOption } from '../interface/common';
|
|
2
|
+
import type { ITrigger } from '../../interaction/interface';
|
|
3
|
+
import type { ISeries } from '../interface/series';
|
|
4
|
+
import type { IMark, IMarkProgressiveConfig } from '../../mark/interface';
|
|
5
|
+
import type { ILineMark } from '../../mark/line';
|
|
6
|
+
import type { ISymbolMark } from '../../mark/symbol';
|
|
7
|
+
import type { ITextMark } from '../../mark/text';
|
|
8
|
+
import type { DirectionType, IInvalidType, InterpolateType, ILineMarkSpec, ISymbolMarkSpec, Maybe, Datum, IMarkTheme } from '../../typings';
|
|
9
|
+
import type { ISeriesMarkInfo, ISeriesMarkInitOption, ISeriesTooltipHelper } from '../interface';
|
|
10
|
+
import type { ILabelSpec } from '../../component/label';
|
|
11
|
+
import { type DimensionEventParams } from '../../event/events/dimension';
|
|
12
|
+
import type { ILabelMark } from '../../mark/label';
|
|
13
|
+
import type { Functional } from '@visactor/vrender-components';
|
|
14
|
+
import type { IRegion } from '../../region/interface';
|
|
15
|
+
import type { SeriesData } from '../base/series-data';
|
|
16
|
+
export interface ILineLikeSeriesTheme {
|
|
17
|
+
line?: Partial<IMarkTheme<ILineMarkSpec>>;
|
|
18
|
+
point?: Partial<IMarkTheme<ISymbolMarkSpec>> & {
|
|
19
|
+
visibleInActive?: boolean;
|
|
20
|
+
};
|
|
21
|
+
label?: Partial<ILineLikeLabelSpec>;
|
|
22
|
+
}
|
|
23
|
+
export type ILineLikeLabelSpec = Omit<ILabelSpec, 'position'> & {
|
|
24
|
+
position?: Functional<'top' | 'bottom' | 'left' | 'right' | 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'center'>;
|
|
25
|
+
};
|
|
26
|
+
export interface LineLikeSeriesMixin extends ISeries {
|
|
27
|
+
_spec: any;
|
|
28
|
+
_option: ISeriesOption;
|
|
29
|
+
_seriesField: string;
|
|
30
|
+
_theme: Maybe<ILineLikeSeriesTheme>;
|
|
31
|
+
_trigger: ITrigger;
|
|
32
|
+
_tooltipHelper: ISeriesTooltipHelper;
|
|
33
|
+
_invalidType: IInvalidType;
|
|
34
|
+
_region: IRegion;
|
|
35
|
+
_direction: DirectionType;
|
|
36
|
+
_data: SeriesData;
|
|
37
|
+
_lineMark: ILineMark;
|
|
38
|
+
_symbolMark: ISymbolMark;
|
|
39
|
+
_symbolActiveMark: ISymbolMark;
|
|
40
|
+
_labelMark: ITextMark;
|
|
41
|
+
_fieldX?: string[];
|
|
42
|
+
_fieldY?: string[];
|
|
43
|
+
_fieldZ?: string[];
|
|
44
|
+
_createMark: (markInfo: ISeriesMarkInfo, option?: ISeriesMarkInitOption) => IMark;
|
|
45
|
+
_getInvalidDefined: () => boolean;
|
|
46
|
+
_getInvalidConnectType: () => IInvalidType;
|
|
47
|
+
}
|
|
48
|
+
export declare class LineLikeSeriesMixin {
|
|
49
|
+
addSamplingCompile(): void;
|
|
50
|
+
addOverlapCompile(): void;
|
|
51
|
+
reCompileSampling(): void;
|
|
52
|
+
initLineMark(progressive?: IMarkProgressiveConfig, isSeriesMark?: boolean): ILineMark;
|
|
53
|
+
initLineMarkStyle(direction?: DirectionType, areaCurveType?: InterpolateType): ILineMark;
|
|
54
|
+
protected _getEventElement(params: DimensionEventParams, reverse?: boolean): Datum[];
|
|
55
|
+
protected _dimensionTrigger(params: DimensionEventParams): void;
|
|
56
|
+
initSymbolMark(progressive?: IMarkProgressiveConfig, isSeriesMark?: boolean): ISymbolMark;
|
|
57
|
+
initSymbolMarkStyle(): ISymbolMark;
|
|
58
|
+
initLabelMarkStyle(labelMark?: ILabelMark): void;
|
|
59
|
+
encodeDefined(mark: IMark, attr: string): void;
|
|
60
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { IElement, IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
|
+
import { AnimationStateEnum } from '../../../animation/interface';
|
|
3
|
+
import type { Datum } from '../../../typings';
|
|
4
|
+
export interface IPieAnimationParams {
|
|
5
|
+
growField?: 'angle' | 'radius';
|
|
6
|
+
growFrom: (datum: Datum, element: IElement, state: AnimationStateEnum) => number;
|
|
7
|
+
}
|
|
8
|
+
export type PieAppearPreset = 'growAngle' | 'growRadius' | 'fadeIn';
|
|
9
|
+
export declare function pieGrowOption(pieParams: IPieAnimationParams, isOverall: boolean, state: AnimationStateEnum): (datum: Datum, element: IElement, params: AnimationStateEnum) => {
|
|
10
|
+
overall: number;
|
|
11
|
+
} | {
|
|
12
|
+
overall: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare const Appear_Grow: (params: IPieAnimationParams) => IAnimationTypeConfig;
|
|
15
|
+
export declare const Appear_FadeIn: {
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const pieEnter: (params: IPieAnimationParams) => IAnimationTypeConfig;
|
|
19
|
+
export declare const pieExit: (params: IPieAnimationParams) => IAnimationTypeConfig;
|
|
20
|
+
export declare const pieDisappear: (params: IPieAnimationParams) => IAnimationTypeConfig;
|
|
21
|
+
export declare function piePresetAnimation(params: IPieAnimationParams, preset: PieAppearPreset | boolean): IAnimationTypeConfig | {
|
|
22
|
+
type: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const registerPieAnimation: () => void;
|
|
25
|
+
export declare const registerPie3dAnimation: () => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IAnimationTimeline, IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
|
+
import type { IArcMark } from '../../../mark/arc';
|
|
3
|
+
export type ICenterOffsetAnimationOptions = {
|
|
4
|
+
distance?: number;
|
|
5
|
+
};
|
|
6
|
+
export declare function centerOffsetConfig(mark: IArcMark, originalConfig: IAnimationTypeConfig): IAnimationTimeline;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { IAnimationSpec } from '../../animation/spec';
|
|
2
|
+
import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';
|
|
3
|
+
import type { IArcMarkSpec, ITextMarkSpec, IArc3dMarkSpec, ILineMarkSpec } from '../../typings/visual';
|
|
4
|
+
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
5
|
+
import type { IPolarSeriesSpec, IPolarSeriesTheme } from '../polar/interface';
|
|
6
|
+
import type { PieAppearPreset } from './animation/animation';
|
|
7
|
+
import type { ILabelSpec } from '../../component/label';
|
|
8
|
+
export type PieMarks = 'pie' | 'label' | 'labelLine';
|
|
9
|
+
export interface IPieSeriesSpec extends IPolarSeriesSpec, IAnimationSpec<PieMarks, PieAppearPreset> {
|
|
10
|
+
type: 'pie';
|
|
11
|
+
categoryField: string;
|
|
12
|
+
valueField: string;
|
|
13
|
+
centerX?: number;
|
|
14
|
+
centerY?: number;
|
|
15
|
+
centerOffset?: number;
|
|
16
|
+
radius?: number;
|
|
17
|
+
outerRadius?: number;
|
|
18
|
+
innerRadius?: number;
|
|
19
|
+
cornerRadius?: number;
|
|
20
|
+
startAngle?: number;
|
|
21
|
+
endAngle?: number;
|
|
22
|
+
padAngle?: number;
|
|
23
|
+
minAngle?: number;
|
|
24
|
+
[SeriesMarkNameEnum.pie]?: IMarkSpec<IArcMarkSpec>;
|
|
25
|
+
[SeriesMarkNameEnum.label]?: IArcLabelSpec;
|
|
26
|
+
}
|
|
27
|
+
export interface IPieSeriesTheme extends IPolarSeriesTheme {
|
|
28
|
+
[SeriesMarkNameEnum.pie]?: Partial<IMarkTheme<IArcMarkSpec>>;
|
|
29
|
+
[SeriesMarkNameEnum.label]?: IArcLabelSpec;
|
|
30
|
+
innerLabel?: IArcLabelSpec;
|
|
31
|
+
outerLabel?: IArcLabelSpec;
|
|
32
|
+
}
|
|
33
|
+
export type IPie3dSeriesSpec = {
|
|
34
|
+
type: 'pie3d';
|
|
35
|
+
angle3d?: number;
|
|
36
|
+
} & Omit<IPieSeriesSpec, 'type'>;
|
|
37
|
+
export interface IPie3dSeriesTheme extends IPolarSeriesTheme {
|
|
38
|
+
[SeriesMarkNameEnum.pie3d]?: Partial<IMarkTheme<IArc3dMarkSpec>>;
|
|
39
|
+
[SeriesMarkNameEnum.label]?: IArcLabelSpec;
|
|
40
|
+
innerLabel?: IArcLabelSpec;
|
|
41
|
+
outerLabel?: IArcLabelSpec;
|
|
42
|
+
}
|
|
43
|
+
export interface IArcLabelLineSpec extends IMarkSpec<ILineMarkSpec> {
|
|
44
|
+
visible?: boolean;
|
|
45
|
+
line1MinLength?: number;
|
|
46
|
+
line2MinLength?: number;
|
|
47
|
+
smooth?: boolean;
|
|
48
|
+
}
|
|
49
|
+
export type ArcLabelAlignType = 'arc' | 'labelLine' | 'edge';
|
|
50
|
+
export type ArcLabelStrategyType = 'priority' | 'vertical' | 'none';
|
|
51
|
+
export interface IArcLabelLayoutSpec {
|
|
52
|
+
textAlign?: ArcLabelAlignType;
|
|
53
|
+
align?: ArcLabelAlignType;
|
|
54
|
+
strategy?: ArcLabelStrategyType;
|
|
55
|
+
tangentConstraint?: boolean;
|
|
56
|
+
}
|
|
57
|
+
export interface IArcLabelSpec extends ILabelSpec {
|
|
58
|
+
position?: 'outside' | 'inside';
|
|
59
|
+
showRule?: 'all' | 'max' | 'min' | 'minAndMax' | 'headAndTail';
|
|
60
|
+
coverEnable?: boolean;
|
|
61
|
+
rotate?: boolean;
|
|
62
|
+
spaceWidth?: number;
|
|
63
|
+
layoutArcGap?: number;
|
|
64
|
+
style?: ITextMarkSpec;
|
|
65
|
+
line?: IArcLabelLineSpec;
|
|
66
|
+
layout?: IArcLabelLayoutSpec;
|
|
67
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MarkTypeEnum } from '../../mark/interface/type';
|
|
2
|
+
import type { IArcSeries, SeriesMarkMap } from '../interface';
|
|
3
|
+
import { SeriesMarkNameEnum, SeriesTypeEnum } from '../interface/type';
|
|
4
|
+
import type { IPie3dSeriesSpec } from './interface';
|
|
5
|
+
import { BasePieSeries } from './pie';
|
|
6
|
+
export declare class Pie3dSeries<T extends IPie3dSeriesSpec = IPie3dSeriesSpec> extends BasePieSeries<T> implements IArcSeries {
|
|
7
|
+
static readonly type: string;
|
|
8
|
+
type: SeriesTypeEnum;
|
|
9
|
+
protected _pieMarkName: SeriesMarkNameEnum;
|
|
10
|
+
protected _pieMarkType: MarkTypeEnum;
|
|
11
|
+
static readonly mark: SeriesMarkMap;
|
|
12
|
+
protected _angle3d: number;
|
|
13
|
+
setAttrFromSpec(): void;
|
|
14
|
+
initMarkStyle(): void;
|
|
15
|
+
}
|
|
16
|
+
export declare const registerPie3dSeries: () => void;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { Maybe, IPoint, Datum, StateValueType } from '../../typings';
|
|
2
|
+
import type { IModelLayoutOption } from '../../model/interface';
|
|
3
|
+
import { PolarSeries } from '../polar/polar';
|
|
4
|
+
import type { IMark } from '../../mark/interface';
|
|
5
|
+
import { MarkTypeEnum } from '../../mark/interface/type';
|
|
6
|
+
import type { IArcMark } from '../../mark/arc';
|
|
7
|
+
import type { ITextMark } from '../../mark/text';
|
|
8
|
+
import type { IPathMark } from '../../mark/path';
|
|
9
|
+
import type { IArcSeries, SeriesMarkMap } from '../interface';
|
|
10
|
+
import { SeriesMarkNameEnum, SeriesTypeEnum } from '../interface/type';
|
|
11
|
+
import type { IArcLabelSpec, IPieSeriesSpec, IPieSeriesTheme } from './interface';
|
|
12
|
+
import { SeriesData } from '../base/series-data';
|
|
13
|
+
type IBasePieSeriesSpec = Omit<IPieSeriesSpec, 'type'> & {
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
export declare class BasePieSeries<T extends IBasePieSeriesSpec> extends PolarSeries<T> implements IArcSeries {
|
|
17
|
+
protected _pieMarkName: SeriesMarkNameEnum;
|
|
18
|
+
protected _pieMarkType: MarkTypeEnum;
|
|
19
|
+
static readonly mark: SeriesMarkMap;
|
|
20
|
+
protected _viewDataLabel: SeriesData;
|
|
21
|
+
protected _center: IPoint | null;
|
|
22
|
+
get center(): IPoint;
|
|
23
|
+
protected _centerOffset: number;
|
|
24
|
+
protected _cornerRadius: number;
|
|
25
|
+
protected _startAngle: number;
|
|
26
|
+
protected _endAngle: number;
|
|
27
|
+
protected _padAngle: number;
|
|
28
|
+
protected _pieMark: IArcMark | null;
|
|
29
|
+
protected _labelMark: ITextMark | null;
|
|
30
|
+
protected _labelLineMark: IPathMark | null;
|
|
31
|
+
protected _theme: Maybe<IPieSeriesTheme>;
|
|
32
|
+
setAttrFromSpec(): void;
|
|
33
|
+
initData(): void;
|
|
34
|
+
initMark(): void;
|
|
35
|
+
initMarkStyle(): void;
|
|
36
|
+
protected initTooltip(): void;
|
|
37
|
+
initMarkStyleWithSpec(mark?: IMark, spec?: any, key?: string): void;
|
|
38
|
+
initLabelMarkStyle(textMark: ITextMark): void;
|
|
39
|
+
afterInitMark(): void;
|
|
40
|
+
initEvent(): void;
|
|
41
|
+
initGroups(): void;
|
|
42
|
+
onLayoutEnd(ctx: IModelLayoutOption): void;
|
|
43
|
+
getDimensionField(): string[];
|
|
44
|
+
getMeasureField(): string[];
|
|
45
|
+
private viewDataLabelUpdate;
|
|
46
|
+
protected generateRadiusStyle(spec: any): any;
|
|
47
|
+
protected computeLayoutRadius(): number;
|
|
48
|
+
computeCenter(datum: Datum): IPoint;
|
|
49
|
+
protected generateLinePath(state: StateValueType): {
|
|
50
|
+
path: (datum: Datum) => string;
|
|
51
|
+
};
|
|
52
|
+
getRadius(state?: StateValueType): number;
|
|
53
|
+
getInnerRadius(state?: StateValueType): number;
|
|
54
|
+
getLabelConfig(): IArcLabelSpec;
|
|
55
|
+
computeRadius(r: number, k?: number): number;
|
|
56
|
+
computeDatumRadius(datum: Datum, state?: string): number;
|
|
57
|
+
_compareSpec(ignoreCheckKeys?: {
|
|
58
|
+
[key: string]: true;
|
|
59
|
+
}): {
|
|
60
|
+
change: boolean;
|
|
61
|
+
reMake: boolean;
|
|
62
|
+
reRender: boolean;
|
|
63
|
+
reSize: boolean;
|
|
64
|
+
reCompile: boolean;
|
|
65
|
+
};
|
|
66
|
+
computeDatumInnerRadius(datum: Datum, state?: string): number;
|
|
67
|
+
dataToPosition(datum: Datum): IPoint | null;
|
|
68
|
+
dataToCentralPosition: (datum: Datum) => IPoint | null;
|
|
69
|
+
initAnimation(): void;
|
|
70
|
+
getDefaultShapeType(): string;
|
|
71
|
+
getGroupFields(): string[];
|
|
72
|
+
getStackGroupFields(): string[];
|
|
73
|
+
getStackValueField(): string;
|
|
74
|
+
protected _noAnimationDataKey(datum: Datum, index: number): number;
|
|
75
|
+
getActiveMarks(): IMark[];
|
|
76
|
+
protected _mergeThemeToSpec(): void;
|
|
77
|
+
}
|
|
78
|
+
export declare class PieSeries<T extends IPieSeriesSpec = IPieSeriesSpec> extends BasePieSeries<T> implements IArcSeries {
|
|
79
|
+
static readonly type: string;
|
|
80
|
+
type: SeriesTypeEnum;
|
|
81
|
+
}
|
|
82
|
+
export declare const registerPieSeries: () => void;
|
|
83
|
+
export {};
|