@visactor/vchart-types 1.6.0-beta.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 +36 -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 +58 -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,33 @@
|
|
|
1
|
+
import type { DataView } from '@visactor/vdataset';
|
|
2
|
+
import type { IAggrType } from '../../component/marker/interface';
|
|
3
|
+
import type { ICartesianSeries } from '../../series/interface';
|
|
4
|
+
export type IOption = {
|
|
5
|
+
field: string;
|
|
6
|
+
};
|
|
7
|
+
export type IOptionAggrField = {
|
|
8
|
+
field: string;
|
|
9
|
+
aggrType: IAggrType;
|
|
10
|
+
};
|
|
11
|
+
export type IOptionPos = IOptionAggrField | string | number;
|
|
12
|
+
export type IOptionSeries = {
|
|
13
|
+
getRelativeSeries: () => ICartesianSeries;
|
|
14
|
+
getStartRelativeSeries: () => ICartesianSeries;
|
|
15
|
+
getEndRelativeSeries: () => ICartesianSeries;
|
|
16
|
+
};
|
|
17
|
+
export type IOptionCallback = (relativeSeriesData: any, startRelativeSeriesData: any, endRelativeSeriesData: any) => IOptionPos;
|
|
18
|
+
export type IOptionAggr = {
|
|
19
|
+
x?: IOptionPos | IOptionCallback;
|
|
20
|
+
y?: IOptionPos | IOptionCallback;
|
|
21
|
+
getRefRelativeSeries?: () => ICartesianSeries;
|
|
22
|
+
} & IOptionSeries;
|
|
23
|
+
export declare const markerMin: (_data: Array<DataView>, opt: IOption) => number;
|
|
24
|
+
export declare const markerMax: (_data: Array<DataView>, opt: IOption) => number;
|
|
25
|
+
export declare function markerSum(_data: Array<DataView>, opt: IOption): number;
|
|
26
|
+
export declare function markerAverage(_data: Array<DataView>, opt: IOption): number;
|
|
27
|
+
export declare function markerVariance(_data: Array<DataView>, opt: IOption): number;
|
|
28
|
+
export declare function markerStandardDeviation(_data: Array<DataView>, opt: IOption): number;
|
|
29
|
+
export declare function markerMedian(_data: Array<DataView>, opt: IOption): number;
|
|
30
|
+
export declare function markerAggregation(_data: Array<DataView>, options: IOptionAggr[]): {
|
|
31
|
+
x: string | number | null;
|
|
32
|
+
y: string | number | null;
|
|
33
|
+
}[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Datum } from '../../typings';
|
|
2
|
+
import type { CirclePackingOptions } from '@visactor/vgrammar-hierarchy';
|
|
3
|
+
export interface ICirclePackingOpt extends CirclePackingOptions {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const circlePackingLayout: (data: Array<Datum>, op: () => ICirclePackingOpt) => Datum[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface ICorrelationOpt {
|
|
2
|
+
field: string;
|
|
3
|
+
radiusField?: string;
|
|
4
|
+
radiusRange?: [number, number];
|
|
5
|
+
center?: [string | number, string | number];
|
|
6
|
+
startAngle?: number;
|
|
7
|
+
endAngle?: number;
|
|
8
|
+
innerRadius?: string | number;
|
|
9
|
+
outerRadius?: string | number;
|
|
10
|
+
}
|
|
11
|
+
export interface CircularRelationItem {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
size: number;
|
|
15
|
+
datum: any;
|
|
16
|
+
}
|
|
17
|
+
export declare const correlation: (data: any, options: any) => any;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { BaseSeries } from '../../series/base/base-series';
|
|
2
|
+
import type { TreemapSeries } from '../../series/treemap/treemap';
|
|
3
|
+
import type { AddVChartPropertyContext } from './add-property';
|
|
4
|
+
import type { SunburstSeries } from '../../series/sunburst/sunburst';
|
|
5
|
+
import type { CirclePackingSeries } from '../../series/circle-packing/circle-packing';
|
|
6
|
+
export declare function initKeyMap(this: BaseSeries<any>): {
|
|
7
|
+
keyMap: Map<any, any>;
|
|
8
|
+
needDefaultSeriesField: boolean;
|
|
9
|
+
defaultSeriesField: string;
|
|
10
|
+
getKey: (datum: import("../../typings").Datum, index: number, context: AddVChartPropertyContext) => unknown;
|
|
11
|
+
};
|
|
12
|
+
export declare function addDataKey(d: any, i: number, context: AddVChartPropertyContext): void;
|
|
13
|
+
export declare function initHierarchyKeyMap(this: TreemapSeries | SunburstSeries | CirclePackingSeries): {
|
|
14
|
+
keyMap: Map<any, any>;
|
|
15
|
+
needDefaultSeriesField: boolean;
|
|
16
|
+
defaultSeriesField: string;
|
|
17
|
+
getKey: any;
|
|
18
|
+
categoryField: string;
|
|
19
|
+
};
|
|
20
|
+
export declare function addHierarchyDataKey(d: any, i: number, context: AddVChartPropertyContext, depth?: number, root?: string, rootIndex?: number): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DataView } from '@visactor/vdataset';
|
|
2
|
+
export interface IDimensionTreeOpt {
|
|
3
|
+
fields: string[];
|
|
4
|
+
}
|
|
5
|
+
export declare const dimensionTree: (data: Array<DataView>, op: IDimensionTreeOpt) => DataView[] | {
|
|
6
|
+
dimensionValues: {};
|
|
7
|
+
dimensionData: any;
|
|
8
|
+
};
|
|
9
|
+
export declare function mapValues(target: object, fn: (value: any, key: string) => any): {};
|
|
10
|
+
export declare function findDataInFields(data: any, fields: string[]): any;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { IFieldsMeta } from '../../typings/spec';
|
|
2
|
+
import type { DataView } from '@visactor/vdataset';
|
|
3
|
+
import type { Datum } from '../../typings';
|
|
4
|
+
export type StatisticOperations = Array<'max' | 'min' | 'values' | 'array-max' | 'array-min' | 'allValid'>;
|
|
5
|
+
export interface IStatisticsOption {
|
|
6
|
+
fields: {
|
|
7
|
+
key: string;
|
|
8
|
+
operations: StatisticOperations;
|
|
9
|
+
customize?: {
|
|
10
|
+
max: number;
|
|
11
|
+
min: number;
|
|
12
|
+
} | any[];
|
|
13
|
+
}[];
|
|
14
|
+
target?: 'parser' | 'latest';
|
|
15
|
+
}
|
|
16
|
+
export declare const dimensionStatistics: (data: Array<DataView>, op: IStatisticsOption) => {};
|
|
17
|
+
export declare const dimensionStatisticsOfSimpleData: (latestData: Datum[], fields: {
|
|
18
|
+
key: string;
|
|
19
|
+
operations: StatisticOperations;
|
|
20
|
+
customize?: {
|
|
21
|
+
max: number;
|
|
22
|
+
min: number;
|
|
23
|
+
} | any[];
|
|
24
|
+
}[], dataFields?: Record<string, IFieldsMeta>) => {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Datum } from '../../typings';
|
|
2
|
+
export declare enum DrillEnum {
|
|
3
|
+
DrillDown = "drillDown",
|
|
4
|
+
DrillUp = "drillUp"
|
|
5
|
+
}
|
|
6
|
+
export type DrillInfo = {
|
|
7
|
+
key: string;
|
|
8
|
+
type: DrillEnum;
|
|
9
|
+
path: string[];
|
|
10
|
+
};
|
|
11
|
+
export declare const drillFilter: (data: Array<Datum>, op: {
|
|
12
|
+
info: () => DrillInfo;
|
|
13
|
+
keyField: () => string;
|
|
14
|
+
}) => any[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Datum } from '../../typings';
|
|
2
|
+
import type { TreemapNodeElement, SunburstNodeElement } from '@visactor/vgrammar-hierarchy';
|
|
3
|
+
export type FlattenNodeElement = TreemapNodeElement | SunburstNodeElement;
|
|
4
|
+
export interface IFlattenOpt {
|
|
5
|
+
output?: Datum[];
|
|
6
|
+
maxDepth?: number;
|
|
7
|
+
callback?: <T>(node: FlattenNodeElement) => T;
|
|
8
|
+
}
|
|
9
|
+
export declare const flatten: (data: Array<Datum>, op?: IFlattenOpt) => FlattenNodeElement[];
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { DataView } from '@visactor/vdataset';
|
|
2
|
+
export interface IFunnelOpt {
|
|
3
|
+
valueField: string;
|
|
4
|
+
asTransformRatio: string;
|
|
5
|
+
asReachRatio: string;
|
|
6
|
+
asHeightRatio: string;
|
|
7
|
+
asValueRatio: string;
|
|
8
|
+
asLastValueRatio: string;
|
|
9
|
+
asNextValueRatio: string;
|
|
10
|
+
asCurrentValue: string;
|
|
11
|
+
asLastValue: string;
|
|
12
|
+
asNextValue: string;
|
|
13
|
+
isCone?: boolean;
|
|
14
|
+
heightVisual?: boolean;
|
|
15
|
+
range?: {
|
|
16
|
+
min: number;
|
|
17
|
+
max: number;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export declare const funnel: (originData: Array<DataView>, op: IFunnelOpt) => {
|
|
21
|
+
dataSet: import("@visactor/vdataset").DataSet;
|
|
22
|
+
options?: import("@visactor/vdataset").IDataViewOptions;
|
|
23
|
+
isDataView: boolean;
|
|
24
|
+
type: import("@visactor/vdataset/es/constants").DATAVIEW_TYPE;
|
|
25
|
+
name: string | number;
|
|
26
|
+
target: any;
|
|
27
|
+
parseOption: import("@visactor/vdataset/es/parser").IParserOptions;
|
|
28
|
+
transformsArr: import("@visactor/vdataset").ITransformOptions[];
|
|
29
|
+
isRunning: boolean;
|
|
30
|
+
rawData: any;
|
|
31
|
+
history: boolean;
|
|
32
|
+
historyData: any[];
|
|
33
|
+
parserData: any;
|
|
34
|
+
latestData: any;
|
|
35
|
+
_diffMap: Map<string, any>;
|
|
36
|
+
_diffRank: number;
|
|
37
|
+
latestDataAUD: {
|
|
38
|
+
add: any;
|
|
39
|
+
update: any;
|
|
40
|
+
del: any;
|
|
41
|
+
};
|
|
42
|
+
reRunAllTransform: (opt?: {
|
|
43
|
+
pushHistory: boolean;
|
|
44
|
+
emitMessage: boolean;
|
|
45
|
+
}) => DataView;
|
|
46
|
+
markRunning: () => void;
|
|
47
|
+
}[];
|
|
48
|
+
export interface IFunnelTransformOpt {
|
|
49
|
+
asIsTransformLevel: string;
|
|
50
|
+
}
|
|
51
|
+
export declare const funnelTransform: (originData: Array<DataView>, op: IFunnelTransformOpt) => any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IInvalidType, StringOrNumber } from '../../typings';
|
|
2
|
+
export interface ITravelOpt {
|
|
3
|
+
config: () => {
|
|
4
|
+
invalidType: IInvalidType;
|
|
5
|
+
checkField: StringOrNumber;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export declare const invalidTravel: (data: Array<any>, op: ITravelOpt) => any[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ISeries } from '../../../../series/interface';
|
|
2
|
+
import type { IContinuousLegendDataMakeOption, IContinuousLegendFilterOption } from './interface';
|
|
3
|
+
export declare const continuousLegendDataMake: (data: Array<ISeries>, op: IContinuousLegendDataMakeOption) => any;
|
|
4
|
+
export declare const continuousLegendFilter: (data: Array<any>, op: IContinuousLegendFilterOption) => any[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IBaseScale } from '@visactor/vscale';
|
|
2
|
+
import type { ISeries } from '../../../../series/interface';
|
|
3
|
+
import type { StringOrNumber } from '../../../../typings';
|
|
4
|
+
export interface IContinuousLegendDataMakeOption {
|
|
5
|
+
series: () => ISeries[];
|
|
6
|
+
field: () => string | undefined;
|
|
7
|
+
scale?: () => IBaseScale;
|
|
8
|
+
}
|
|
9
|
+
export interface IContinuousLegendFilterOption {
|
|
10
|
+
selected: () => StringOrNumber[];
|
|
11
|
+
field: () => string | undefined;
|
|
12
|
+
data: () => StringOrNumber[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ISeries } from '../../../../series/interface';
|
|
2
|
+
import type { IDiscreteLegendData, IDiscreteLegendDataMakeOption, IDiscreteLegendFilterOption } from './interface';
|
|
3
|
+
export declare const discreteLegendDataMake: (data: Array<ISeries>, op: IDiscreteLegendDataMakeOption) => IDiscreteLegendData[];
|
|
4
|
+
export declare const discreteLegendFilter: (data: Array<any>, op: IDiscreteLegendFilterOption) => any[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ISeries } from '../../../../series/interface';
|
|
2
|
+
import type { StringOrNumber } from '../../../../typings';
|
|
3
|
+
export interface IDiscreteLegendData {
|
|
4
|
+
key: string;
|
|
5
|
+
style: (attribute: string) => any;
|
|
6
|
+
}
|
|
7
|
+
export interface IDiscreteLegendDataMakeOption {
|
|
8
|
+
series: () => ISeries[];
|
|
9
|
+
seriesField: (s: ISeries) => string;
|
|
10
|
+
}
|
|
11
|
+
export interface IDiscreteLegendFilterOption {
|
|
12
|
+
selected: () => StringOrNumber[];
|
|
13
|
+
field: () => string;
|
|
14
|
+
data: () => StringOrNumber[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Datum } from '../../typings';
|
|
2
|
+
export interface ILinkDotInfoOpt {
|
|
3
|
+
infoKey: string;
|
|
4
|
+
fields: () => {
|
|
5
|
+
fromField: string;
|
|
6
|
+
toField: string;
|
|
7
|
+
xField: string | string[];
|
|
8
|
+
yField: string | string[];
|
|
9
|
+
};
|
|
10
|
+
linkData: () => Datum[];
|
|
11
|
+
dotData: () => Datum[];
|
|
12
|
+
}
|
|
13
|
+
export declare const linkDotInfo: (data: Array<DataView>, op: ILinkDotInfoOpt) => Datum[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DataView } from '@visactor/vdataset';
|
|
2
|
+
import type { Datum } from '../../typings';
|
|
3
|
+
export interface ILookUpOpt {
|
|
4
|
+
from: () => object[];
|
|
5
|
+
key: string;
|
|
6
|
+
fields: string;
|
|
7
|
+
values?: string[];
|
|
8
|
+
as?: string[];
|
|
9
|
+
default?: any;
|
|
10
|
+
set?: (A: Datum, B: Datum) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const lookup: (data: Array<DataView>, opt: ILookUpOpt) => DataView[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { GeoSourceType } from '../../typings/geo';
|
|
2
|
+
export interface IMapOpt {
|
|
3
|
+
nameMap: Record<string, string>;
|
|
4
|
+
nameProperty: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const DEFAULT_MAP_LOOK_UP_KEY: string;
|
|
7
|
+
export declare const map: (data: GeoSourceType, opt: IMapOpt) => any;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { DataView } from '@visactor/vdataset';
|
|
2
|
+
export interface IPieOpt {
|
|
3
|
+
angleField: string;
|
|
4
|
+
startAngle: number;
|
|
5
|
+
endAngle: number;
|
|
6
|
+
minAngle: number;
|
|
7
|
+
asStartAngle: string;
|
|
8
|
+
asEndAngle: string;
|
|
9
|
+
asMiddleAngle: string;
|
|
10
|
+
asRadian: string;
|
|
11
|
+
asRatio: string;
|
|
12
|
+
asQuadrant: string;
|
|
13
|
+
asK: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const pie: (originData: Array<DataView>, op: IPieOpt) => {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
}[];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { SankeyOptions, SankeyData } from '@visactor/vgrammar-sankey';
|
|
2
|
+
export interface ISankeyOpt extends SankeyOptions {
|
|
3
|
+
targetField: string;
|
|
4
|
+
sourceField: string;
|
|
5
|
+
valueField: string;
|
|
6
|
+
view: () => {
|
|
7
|
+
x0: number;
|
|
8
|
+
x1: number;
|
|
9
|
+
y0: number;
|
|
10
|
+
y1: number;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare const sankey: (data: SankeyData, op: ISankeyOpt) => {
|
|
14
|
+
nodes?: import("@visactor/vgrammar-sankey").SankeyNodeDatum[];
|
|
15
|
+
links: import("@visactor/vgrammar-sankey").SankeyLinkDatum[];
|
|
16
|
+
} | {
|
|
17
|
+
nodes: import("@visactor/vgrammar-sankey").HierarchyNodeDatum[];
|
|
18
|
+
} | {
|
|
19
|
+
nodes: import("@visactor/vgrammar-sankey").SankeyNodeElement[];
|
|
20
|
+
links: import("@visactor/vgrammar-sankey").SankeyLinkElement[];
|
|
21
|
+
columns: import("@visactor/vgrammar-sankey").SankeyNodeElement[][];
|
|
22
|
+
}[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ISeriesStackDataNode } from '../../series/interface';
|
|
2
|
+
import type { DataView } from '@visactor/vdataset';
|
|
3
|
+
export interface IStackOption {
|
|
4
|
+
fields: string[];
|
|
5
|
+
}
|
|
6
|
+
export declare const stackSplit: (data: Array<DataView>, op: IStackOption) => ISeriesStackDataNode;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SunburstOptions } from '@visactor/vgrammar-hierarchy';
|
|
2
|
+
import type { Datum } from '../../typings';
|
|
3
|
+
export interface ISunburstOpt extends SunburstOptions {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const sunburstLayout: (data: Array<Datum>, op: () => ISunburstOpt) => Datum[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TreemapOptions } from '@visactor/vgrammar-hierarchy';
|
|
2
|
+
import type { Datum } from '../../typings';
|
|
3
|
+
export interface ITreemapOpt extends TreemapOptions {
|
|
4
|
+
range: () => {
|
|
5
|
+
x0: number;
|
|
6
|
+
x1: number;
|
|
7
|
+
y0: number;
|
|
8
|
+
y1: number;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare const treemap: (data: Array<Datum>, op: ITreemapOpt) => Datum[];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { DataView } from '@visactor/vdataset';
|
|
2
|
+
import type { IWaterfallSeriesSpec } from '../../series/waterfall/interface';
|
|
3
|
+
import type { Datum } from '../../typings';
|
|
4
|
+
export interface IWaterfallOpt {
|
|
5
|
+
indexField: string;
|
|
6
|
+
valueField: string;
|
|
7
|
+
seriesField?: string;
|
|
8
|
+
startAs: string;
|
|
9
|
+
endAs: string;
|
|
10
|
+
total: IWaterfallSeriesSpec['total'];
|
|
11
|
+
seriesFieldName: {
|
|
12
|
+
total: string;
|
|
13
|
+
increase: string;
|
|
14
|
+
decrease: string;
|
|
15
|
+
};
|
|
16
|
+
groupData: () => DataView;
|
|
17
|
+
}
|
|
18
|
+
export declare const waterfall: (lastData: Array<Datum>, op: IWaterfallOpt) => Datum[];
|
|
19
|
+
export interface IWaterfallFillEndOpt {
|
|
20
|
+
indexField: string;
|
|
21
|
+
valueField: string;
|
|
22
|
+
seriesField?: string;
|
|
23
|
+
total: IWaterfallSeriesSpec['total'];
|
|
24
|
+
}
|
|
25
|
+
export declare const waterfallFillTotal: (data: Array<Datum>, op: IWaterfallFillEndOpt) => Datum[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const registerAllEnv: () => void;
|
|
2
|
+
export declare const registerBrowserEnv: () => void;
|
|
3
|
+
export declare const registerLarkEnv: () => void;
|
|
4
|
+
export declare const registerLynxEnv: () => void;
|
|
5
|
+
export declare const registerNodeEnv: () => void;
|
|
6
|
+
export declare const registerTaroEnv: () => void;
|
|
7
|
+
export declare const registerWXEnv: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './env';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { EventHandler, EventParams, EventBubbleLevel } from './interface';
|
|
2
|
+
export type BubbleNode = {
|
|
3
|
+
handler: EventHandler<EventParams>;
|
|
4
|
+
level: EventBubbleLevel;
|
|
5
|
+
};
|
|
6
|
+
export declare class Bubble {
|
|
7
|
+
private _map;
|
|
8
|
+
private _levelNodes;
|
|
9
|
+
constructor();
|
|
10
|
+
addHandler(handler: EventHandler<EventParams>, level: EventBubbleLevel): this;
|
|
11
|
+
removeHandler(handler: EventHandler<EventParams>): this;
|
|
12
|
+
getHandlers(level: EventBubbleLevel): EventHandler<EventParams>[];
|
|
13
|
+
getCount(): number;
|
|
14
|
+
release(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { EventType, EventHandler, EventParamsDefinition, IEventDispatcher, EventBubbleLevel } from './interface';
|
|
2
|
+
import type { VChart } from '../core/vchart';
|
|
3
|
+
import type { Compiler } from '../compile/compiler';
|
|
4
|
+
export declare class EventDispatcher implements IEventDispatcher {
|
|
5
|
+
globalInstance: VChart;
|
|
6
|
+
private _viewBubbles;
|
|
7
|
+
private _windowBubbles;
|
|
8
|
+
private _canvasBubbles;
|
|
9
|
+
private _viewListeners;
|
|
10
|
+
private _windowListeners;
|
|
11
|
+
private _canvasListeners;
|
|
12
|
+
private _compiler;
|
|
13
|
+
constructor(vchart: VChart, compiler: Compiler);
|
|
14
|
+
register<Evt extends EventType>(eType: Evt, handler: EventHandler<EventParamsDefinition[Evt]>): this;
|
|
15
|
+
unregister<Evt extends EventType>(eType: Evt, handler?: EventHandler<EventParamsDefinition[Evt]>): this;
|
|
16
|
+
dispatch<Evt extends EventType>(eType: Evt, params: EventParamsDefinition[Evt], level?: EventBubbleLevel): this;
|
|
17
|
+
release(): void;
|
|
18
|
+
private _filter;
|
|
19
|
+
private _prepareParams;
|
|
20
|
+
private _onDelegate;
|
|
21
|
+
private _invoke;
|
|
22
|
+
private _getQueryLevel;
|
|
23
|
+
private _parseQuery;
|
|
24
|
+
private getEventBubble;
|
|
25
|
+
private getEventListeners;
|
|
26
|
+
private _isValidEvent;
|
|
27
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { RenderMode } from '../typings/spec/common';
|
|
2
|
+
import type { EventType, EventQuery, EventCallback, EventParamsDefinition, IEvent, IEventDispatcher, IComposedEvent, EventParams, EventBubbleLevel } from './interface';
|
|
3
|
+
export declare class Event implements IEvent {
|
|
4
|
+
private _eventDispatcher;
|
|
5
|
+
private _mode;
|
|
6
|
+
private _composedEventMap;
|
|
7
|
+
getComposedEventMap(): Map<EventCallback<EventParams>, {
|
|
8
|
+
eventType: string;
|
|
9
|
+
event: IComposedEvent;
|
|
10
|
+
}>;
|
|
11
|
+
constructor(eventDispatcher: IEventDispatcher, mode: RenderMode);
|
|
12
|
+
on<Evt extends EventType>(eType: Evt, callback: EventCallback<EventParamsDefinition[Evt]>): this;
|
|
13
|
+
on<Evt extends EventType>(eType: Evt, query: EventQuery, callback: EventCallback<EventParamsDefinition[Evt]>): this;
|
|
14
|
+
off<Evt extends EventType>(eType: Evt, callback?: EventCallback<EventParamsDefinition[Evt]>): this;
|
|
15
|
+
off<Evt extends EventType>(eType: Evt, query: EventQuery, callback: EventCallback<EventParamsDefinition[Evt]>): this;
|
|
16
|
+
emit<Evt extends EventType>(eType: Evt, params: EventParamsDefinition[Evt], level?: EventBubbleLevel): this;
|
|
17
|
+
release(): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IAxis } from '../../../component/axis/interface';
|
|
2
|
+
import type { RenderMode } from '../../../typings/spec/common';
|
|
3
|
+
import type { BaseEventParams, EventHandler, EventParamsDefinition, IComposedEvent, IEventDispatcher } from '../../interface';
|
|
4
|
+
import type { IChart } from '../../../chart/interface';
|
|
5
|
+
import type { IDimensionInfo } from './interface';
|
|
6
|
+
import type { Maybe } from '../../../typings';
|
|
7
|
+
export declare class DimensionEvent implements IComposedEvent {
|
|
8
|
+
protected _eventDispatcher: IEventDispatcher;
|
|
9
|
+
protected _mode: RenderMode;
|
|
10
|
+
protected _callback: (params: BaseEventParams) => void;
|
|
11
|
+
protected _chart: Maybe<IChart>;
|
|
12
|
+
constructor(eventDispatcher: IEventDispatcher, mode: RenderMode);
|
|
13
|
+
register<Evt extends string>(eType: Evt, handler: EventHandler<EventParamsDefinition[Evt]>): void;
|
|
14
|
+
unregister(): void;
|
|
15
|
+
protected getTargetDimensionInfo(x: number, y: number): IDimensionInfo[] | null;
|
|
16
|
+
dispatch(v: unknown, opt: {
|
|
17
|
+
filter?: (axis: IAxis) => boolean;
|
|
18
|
+
}): IDimensionInfo[];
|
|
19
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { EventHandler, EventParamsDefinition, EventType } from '../../interface';
|
|
2
|
+
import { DimensionEvent } from './base';
|
|
3
|
+
export declare class DimensionClickEvent extends DimensionEvent {
|
|
4
|
+
register<Evt extends EventType>(eType: Evt, handler: EventHandler<EventParamsDefinition[Evt]>): void;
|
|
5
|
+
unregister(): void;
|
|
6
|
+
private onClick;
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { EventHandler, EventParamsDefinition, EventType } from '../../interface';
|
|
2
|
+
import { DimensionEvent } from './base';
|
|
3
|
+
export declare class DimensionHoverEvent extends DimensionEvent {
|
|
4
|
+
private _cacheDimensionInfo;
|
|
5
|
+
register<Evt extends EventType>(eType: Evt, handler: EventHandler<EventParamsDefinition[Evt]>): void;
|
|
6
|
+
unregister(): void;
|
|
7
|
+
private onMouseMove;
|
|
8
|
+
private onMouseOut;
|
|
9
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { BaseEventParams } from '../../interface';
|
|
2
|
+
import type { ISeries } from '../../../series/interface';
|
|
3
|
+
import type { Datum } from '../../../typings';
|
|
4
|
+
import type { AxisComponent } from '../../../component/axis/base-axis';
|
|
5
|
+
export declare enum DimensionEventEnum {
|
|
6
|
+
dimensionHover = "dimensionHover",
|
|
7
|
+
dimensionClick = "dimensionClick"
|
|
8
|
+
}
|
|
9
|
+
export interface IDimensionInfo {
|
|
10
|
+
index?: number;
|
|
11
|
+
value: string | number;
|
|
12
|
+
axis?: AxisComponent;
|
|
13
|
+
data: IDimensionData[];
|
|
14
|
+
}
|
|
15
|
+
export interface IDimensionData {
|
|
16
|
+
datum: Datum[];
|
|
17
|
+
series: ISeries;
|
|
18
|
+
}
|
|
19
|
+
export type DimensionEventParams = BaseEventParams & {
|
|
20
|
+
action: 'enter' | 'leave' | 'move' | 'click';
|
|
21
|
+
dimensionInfo: IDimensionInfo[];
|
|
22
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IChart } from '../../../../chart/interface';
|
|
2
|
+
import type { ILayoutPoint } from '../../../../model/interface';
|
|
3
|
+
import type { IDimensionInfo } from '../interface';
|
|
4
|
+
import type { CartesianAxis } from '../../../../component/axis/cartesian';
|
|
5
|
+
import type { ICartesianSeries } from '../../../../series/interface';
|
|
6
|
+
export declare const getCartesianDimensionInfo: (chart: IChart | undefined, pos: ILayoutPoint) => IDimensionInfo[] | null;
|
|
7
|
+
export declare const getDimensionInfoByPosition: (axis: CartesianAxis, posValue: number, posKey: 'x' | 'y', getDimensionField: (series: ICartesianSeries) => string | string[]) => IDimensionInfo | null;
|
|
8
|
+
export declare const getDimensionInfoByValue: (axis: CartesianAxis, value: any, getDimensionField?: (series: ICartesianSeries) => string | string[]) => IDimensionInfo | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ILayoutPoint } from '../../../../model/interface';
|
|
2
|
+
import type { IChart } from '../../../../chart/interface';
|
|
3
|
+
import type { IDimensionData, IDimensionInfo } from '../interface';
|
|
4
|
+
import type { AxisComponent } from '../../../../component/axis/base-axis';
|
|
5
|
+
import type { CoordinateType } from '../../../../typings';
|
|
6
|
+
export declare const isInRegionBound: (chart: IChart, axis: AxisComponent, pos: ILayoutPoint) => boolean;
|
|
7
|
+
export declare const isSameDimensionInfo: (a?: IDimensionInfo, b?: IDimensionInfo) => boolean;
|
|
8
|
+
export declare const getDimensionData: (value: any, axis: AxisComponent, coordinate: CoordinateType, getDimensionField: (series: any) => string | string[]) => IDimensionData[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IChart } from '../../../../chart/interface';
|
|
2
|
+
import type { ILayoutPoint } from '../../../../model/interface';
|
|
3
|
+
import type { IDimensionInfo } from '../interface';
|
|
4
|
+
export declare const getPolarDimensionInfo: (chart: IChart | undefined, pos: ILayoutPoint) => IDimensionInfo[] | null;
|