@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,22 @@
|
|
|
1
|
+
import type { ICartesianSeriesSpec } from '../cartesian/interface';
|
|
2
|
+
import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';
|
|
3
|
+
import type { ISymbolMarkSpec, ILineMarkSpec, IAreaMarkSpec } from '../../typings/visual';
|
|
4
|
+
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
5
|
+
import type { ILineLikeLabelSpec, ILineLikeSeriesTheme } from '../mixin/line-mixin';
|
|
6
|
+
import type { IAnimationSpec } from '../../animation/spec';
|
|
7
|
+
import type { AreaAppearPreset } from './animation';
|
|
8
|
+
import type { IDataSamping, IMarkOverlap, IMarkProgressiveConfig } from '../../mark/interface';
|
|
9
|
+
export interface IAreaSeriesSpec extends ICartesianSeriesSpec, IAnimationSpec<string, AreaAppearPreset>, IMarkProgressiveConfig, IDataSamping, IMarkOverlap {
|
|
10
|
+
type: 'area';
|
|
11
|
+
xField: string | string[];
|
|
12
|
+
yField: string | string[];
|
|
13
|
+
[SeriesMarkNameEnum.point]?: IMarkSpec<ISymbolMarkSpec>;
|
|
14
|
+
[SeriesMarkNameEnum.line]?: IMarkSpec<ILineMarkSpec>;
|
|
15
|
+
[SeriesMarkNameEnum.area]?: IMarkSpec<IAreaMarkSpec>;
|
|
16
|
+
[SeriesMarkNameEnum.label]?: ILineLikeLabelSpec;
|
|
17
|
+
seriesMark?: 'point' | 'line' | 'area';
|
|
18
|
+
activePoint?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface IAreaSeriesTheme extends ILineLikeSeriesTheme {
|
|
21
|
+
[SeriesMarkNameEnum.area]?: Partial<IMarkTheme<IAreaMarkSpec>>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ISeriesTooltipHelper } from '../interface';
|
|
2
|
+
import { BaseSeriesTooltipHelper } from '../base/tooltip-helper';
|
|
3
|
+
export declare class AreaSeriesTooltipHelper extends BaseSeriesTooltipHelper implements ISeriesTooltipHelper {
|
|
4
|
+
protected _getSeriesStyle: (datum: any, styleKey: string | string[], defaultValue?: any) => any;
|
|
5
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DirectionType } from '../../typings';
|
|
2
|
+
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
3
|
+
export interface IBarAnimationParams {
|
|
4
|
+
xField: string;
|
|
5
|
+
yField: string;
|
|
6
|
+
direction: DirectionType;
|
|
7
|
+
growFrom: () => number;
|
|
8
|
+
}
|
|
9
|
+
export type BarAppearPreset = 'grow' | 'fadeIn' | 'scaleIn';
|
|
10
|
+
export declare const barGrowIn: (params: IBarAnimationParams, isOverall?: boolean) => IAnimationTypeConfig;
|
|
11
|
+
export declare const barGrowOut: (params: IBarAnimationParams, isOverall?: boolean) => IAnimationTypeConfig;
|
|
12
|
+
export declare function barPresetAnimation(params: IBarAnimationParams, preset: BarAppearPreset | boolean): IAnimationTypeConfig;
|
|
13
|
+
export declare const registerBarAnimation: () => void;
|
|
14
|
+
export declare const registerBar3dAnimation: () => void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MarkTypeEnum } from '../../mark/interface/type';
|
|
2
|
+
import type { SeriesMarkMap } from '../interface';
|
|
3
|
+
import { SeriesTypeEnum, SeriesMarkNameEnum } from '../interface/type';
|
|
4
|
+
import { BarSeries } from './bar';
|
|
5
|
+
import type { IBar3dSeriesSpec } from './interface';
|
|
6
|
+
import type { AdaptiveSpec } from '../../typings';
|
|
7
|
+
export declare class Bar3dSeries<T extends IBar3dSeriesSpec = IBar3dSeriesSpec> extends BarSeries<AdaptiveSpec<T, 'type'>> {
|
|
8
|
+
static readonly type: string;
|
|
9
|
+
type: SeriesTypeEnum;
|
|
10
|
+
static readonly mark: SeriesMarkMap;
|
|
11
|
+
protected _barMarkName: SeriesMarkNameEnum;
|
|
12
|
+
protected _barMarkType: MarkTypeEnum;
|
|
13
|
+
}
|
|
14
|
+
export declare const registerBar3dSeries: () => void;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { CartesianSeries } from '../cartesian/cartesian';
|
|
2
|
+
import type { IMark, IMarkProgressiveConfig } from '../../mark/interface';
|
|
3
|
+
import { MarkTypeEnum } from '../../mark/interface/type';
|
|
4
|
+
import type { Maybe, Datum, DirectionType } from '../../typings';
|
|
5
|
+
import type { IBarSeriesSpec, IBarSeriesTheme } from './interface';
|
|
6
|
+
import type { IAxisHelper } from '../../component/axis/cartesian/interface';
|
|
7
|
+
import type { IRectMark } from '../../mark/rect';
|
|
8
|
+
import type { IModelInitOption } from '../../model/interface';
|
|
9
|
+
import type { ITextMark } from '../../mark/text';
|
|
10
|
+
import type { SeriesMarkMap } from '../interface';
|
|
11
|
+
import { SeriesMarkNameEnum, SeriesTypeEnum } from '../interface/type';
|
|
12
|
+
import { SeriesData } from '../base/series-data';
|
|
13
|
+
import { DataView } from '@visactor/vdataset';
|
|
14
|
+
export declare const DefaultBandWidth = 6;
|
|
15
|
+
export declare class BarSeries<T extends IBarSeriesSpec = IBarSeriesSpec> extends CartesianSeries<T> {
|
|
16
|
+
static readonly type: string;
|
|
17
|
+
type: SeriesTypeEnum;
|
|
18
|
+
protected _barMarkName: SeriesMarkNameEnum;
|
|
19
|
+
protected _barMarkType: MarkTypeEnum;
|
|
20
|
+
static readonly mark: SeriesMarkMap;
|
|
21
|
+
protected _theme: Maybe<IBarSeriesTheme>;
|
|
22
|
+
protected _supportStack: boolean;
|
|
23
|
+
protected _bandPosition: number;
|
|
24
|
+
protected _barMark: IRectMark;
|
|
25
|
+
protected _barBackgroundMark: IRectMark;
|
|
26
|
+
protected _barBackgroundViewData: SeriesData;
|
|
27
|
+
initMark(): void;
|
|
28
|
+
protected _initBarBackgroundMark(progressive?: IMarkProgressiveConfig): void;
|
|
29
|
+
initMarkStyle(): void;
|
|
30
|
+
initLabelMarkStyle(textMark: ITextMark): void;
|
|
31
|
+
protected initTooltip(): void;
|
|
32
|
+
protected _statisticViewData(): void;
|
|
33
|
+
init(option: IModelInitOption): void;
|
|
34
|
+
private _shouldDoPreCalculate;
|
|
35
|
+
private _calculateStackRectPosition;
|
|
36
|
+
private _calculateRectPosition;
|
|
37
|
+
initBandRectMarkStyle(): void;
|
|
38
|
+
protected _initBarBackgroundMarkStyle(): void;
|
|
39
|
+
initLinearRectMarkStyle(): void;
|
|
40
|
+
initAnimation(): void;
|
|
41
|
+
protected _getBarWidth(axisHelper: IAxisHelper): number;
|
|
42
|
+
protected _getPosition(direction: DirectionType, datum: Datum): number;
|
|
43
|
+
onLayoutEnd(ctx: any): void;
|
|
44
|
+
compile(): void;
|
|
45
|
+
getDefaultShapeType(): string;
|
|
46
|
+
getActiveMarks(): IMark[];
|
|
47
|
+
compileData(): void;
|
|
48
|
+
fillData(): void;
|
|
49
|
+
viewDataUpdate(d: DataView): void;
|
|
50
|
+
release(): void;
|
|
51
|
+
}
|
|
52
|
+
export declare const registerBarSeries: () => void;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { ICartesianSeriesSpec, ICartesianSeriesTheme } from '../cartesian/interface';
|
|
2
|
+
import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';
|
|
3
|
+
import type { IRect3dMarkSpec, IRectMarkSpec } from '../../typings/visual';
|
|
4
|
+
import type { IAnimationSpec } from '../../animation/spec';
|
|
5
|
+
import type { BarAppearPreset } from './animation';
|
|
6
|
+
import type { ILabelSpec } from '../../component/label';
|
|
7
|
+
import type { IDataSamping, IMarkProgressiveConfig } from '../../mark/interface';
|
|
8
|
+
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
9
|
+
import type { Functional } from '@visactor/vrender-components';
|
|
10
|
+
type BarMarks = 'bar';
|
|
11
|
+
export interface IBarSeriesSpec extends ICartesianSeriesSpec, IAnimationSpec<BarMarks, BarAppearPreset>, IMarkProgressiveConfig, IDataSamping {
|
|
12
|
+
type: 'bar';
|
|
13
|
+
xField: string | string[];
|
|
14
|
+
yField: string | string[];
|
|
15
|
+
[SeriesMarkNameEnum.bar]?: IMarkSpec<IRectMarkSpec>;
|
|
16
|
+
[SeriesMarkNameEnum.barBackground]?: IMarkSpec<IRectMarkSpec>;
|
|
17
|
+
[SeriesMarkNameEnum.label]?: Omit<ILabelSpec, 'position'> & {
|
|
18
|
+
position?: Functional<'outside' | 'top' | 'bottom' | 'left' | 'right' | 'inside' | 'inside-top' | 'inside-bottom' | 'inside-right' | 'inside-left' | 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'>;
|
|
19
|
+
};
|
|
20
|
+
barWidth?: number | string;
|
|
21
|
+
barMinWidth?: number | string;
|
|
22
|
+
barMaxWidth?: number | string;
|
|
23
|
+
barGapInGroup?: number | string | (number | string)[];
|
|
24
|
+
barMinHeight?: number;
|
|
25
|
+
}
|
|
26
|
+
export interface IBarSeriesTheme extends ICartesianSeriesTheme {
|
|
27
|
+
[SeriesMarkNameEnum.bar]?: Partial<IMarkTheme<IRectMarkSpec>>;
|
|
28
|
+
[SeriesMarkNameEnum.barBackground]?: IMarkSpec<IRectMarkSpec>;
|
|
29
|
+
barWidth?: number;
|
|
30
|
+
barMinWidth?: number;
|
|
31
|
+
barMaxWidth?: number;
|
|
32
|
+
}
|
|
33
|
+
export type IBar3dSeriesSpec = {
|
|
34
|
+
type: 'bar3d';
|
|
35
|
+
} & Omit<IBarSeriesSpec, 'type'> & ICartesianSeriesSpec & IAnimationSpec<BarMarks, BarAppearPreset>;
|
|
36
|
+
export interface IBar3dSeriesTheme extends ICartesianSeriesTheme {
|
|
37
|
+
[SeriesMarkNameEnum.bar3d]?: Partial<IMarkTheme<IRect3dMarkSpec>>;
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { DataView } from '@visactor/vdataset';
|
|
2
|
+
import type { DataSet, ITransformOptions } from '@visactor/vdataset';
|
|
3
|
+
import type { IRegion } from '../../region/interface';
|
|
4
|
+
import type { IMark } from '../../mark/interface';
|
|
5
|
+
import type { CoordinateType, IInvalidType, IPoint, DataKeyType, Datum, Maybe, ISeriesSpec, IGroup } from '../../typings';
|
|
6
|
+
import { BaseModel } from '../../model/base-model';
|
|
7
|
+
import type { ISeriesOption, ISeries, ISeriesMarkInitOption, ISeriesStackData, ISeriesTooltipHelper, SeriesMarkMap, ISeriesMarkInfo } from '../interface';
|
|
8
|
+
import type { IModelEvaluateOption, IModelRenderOption } from '../../model/interface';
|
|
9
|
+
import type { AddVChartPropertyContext } from '../../data/transforms/add-property';
|
|
10
|
+
import type { ITrigger } from '../../interaction/interface';
|
|
11
|
+
import type { LayoutItem } from '../../model/layout-item';
|
|
12
|
+
import type { StatisticOperations } from '../../data/transforms/dimension-statistics';
|
|
13
|
+
import { SeriesData } from './series-data';
|
|
14
|
+
import type { IGroupMark } from '../../mark/group';
|
|
15
|
+
import type { ISeriesMarkAttributeContext } from '../../compile/mark';
|
|
16
|
+
export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseModel<T> implements ISeries {
|
|
17
|
+
readonly type: string;
|
|
18
|
+
layoutType: LayoutItem['layoutType'];
|
|
19
|
+
readonly modelType: string;
|
|
20
|
+
readonly name: string | undefined;
|
|
21
|
+
static readonly mark: SeriesMarkMap;
|
|
22
|
+
protected _trigger: ITrigger;
|
|
23
|
+
getTrigger(): ITrigger;
|
|
24
|
+
protected _option: ISeriesOption;
|
|
25
|
+
readonly coordinate: CoordinateType;
|
|
26
|
+
protected _region: IRegion;
|
|
27
|
+
getRegion(): IRegion;
|
|
28
|
+
protected _rootMark: IGroupMark;
|
|
29
|
+
getRootMark(): IGroupMark;
|
|
30
|
+
protected _seriesMark: Maybe<IMark>;
|
|
31
|
+
protected _layoutLevel: number;
|
|
32
|
+
protected _rawData: DataView;
|
|
33
|
+
getRawData(): DataView;
|
|
34
|
+
protected _rawDataStatistics?: DataView;
|
|
35
|
+
protected _rawStatisticsCache: Record<string, {
|
|
36
|
+
values?: any[];
|
|
37
|
+
min?: number;
|
|
38
|
+
max?: number;
|
|
39
|
+
}>;
|
|
40
|
+
protected _viewDataMap: Map<number, DataView>;
|
|
41
|
+
protected _viewDataFilter: DataView;
|
|
42
|
+
getViewDataFilter(): DataView;
|
|
43
|
+
protected _data: SeriesData;
|
|
44
|
+
getViewData(): DataView;
|
|
45
|
+
getViewDataProductId(): string;
|
|
46
|
+
protected _viewDataStatistics: DataView;
|
|
47
|
+
getViewDataStatistics(): DataView;
|
|
48
|
+
protected _viewStackData: DataView;
|
|
49
|
+
getViewStackData(): DataView;
|
|
50
|
+
protected _seriesField?: string;
|
|
51
|
+
getSeriesField(): string;
|
|
52
|
+
setSeriesField(field: string): void;
|
|
53
|
+
protected _groups?: IGroup;
|
|
54
|
+
getGroups(): IGroup;
|
|
55
|
+
protected _stack: boolean;
|
|
56
|
+
protected _supportStack: boolean;
|
|
57
|
+
getStack(): boolean;
|
|
58
|
+
getStackValue(): import("../../typings").StringOrNumber;
|
|
59
|
+
protected _percent: boolean;
|
|
60
|
+
getPercent(): boolean;
|
|
61
|
+
protected _stackOffsetSilhouette: boolean;
|
|
62
|
+
getStackOffsetSilhouette(): boolean;
|
|
63
|
+
protected _dataSet: DataSet;
|
|
64
|
+
protected _tooltipHelper: ISeriesTooltipHelper | undefined;
|
|
65
|
+
get tooltipHelper(): ISeriesTooltipHelper;
|
|
66
|
+
protected _invalidType: IInvalidType;
|
|
67
|
+
getInvalidType(): IInvalidType;
|
|
68
|
+
setInvalidType(t: IInvalidType): void;
|
|
69
|
+
protected _markAttributeContext: ISeriesMarkAttributeContext;
|
|
70
|
+
constructor(spec: T, options: ISeriesOption);
|
|
71
|
+
created(): void;
|
|
72
|
+
protected _buildMarkAttributeContext(): void;
|
|
73
|
+
setAttrFromSpec(): void;
|
|
74
|
+
protected initData(): void;
|
|
75
|
+
protected initGroups(): void;
|
|
76
|
+
protected initStatisticalData(): void;
|
|
77
|
+
getRawDataStatisticsByField(field: string, isNumeric?: boolean): {
|
|
78
|
+
values?: any[];
|
|
79
|
+
min?: number;
|
|
80
|
+
max?: number;
|
|
81
|
+
};
|
|
82
|
+
protected _statisticViewData(): void;
|
|
83
|
+
protected createStatisticalData(dataName: string, rawData: DataView, staticFields?: (dataId: string) => {
|
|
84
|
+
key: string;
|
|
85
|
+
operations: StatisticOperations;
|
|
86
|
+
}[]): DataView;
|
|
87
|
+
private createdStackData;
|
|
88
|
+
protected _noAnimationDataKey(datum: Datum, index: number): unknown | undefined;
|
|
89
|
+
protected generateDefaultDataKey(dataKey: DataKeyType): (datum: Datum, index: number, context: AddVChartPropertyContext) => unknown;
|
|
90
|
+
protected _addDataIndexAndKey(): void;
|
|
91
|
+
updateRawData(d: any): void;
|
|
92
|
+
rawDataUpdate(d: DataView): void;
|
|
93
|
+
viewDataFilterOver(d: DataView): void;
|
|
94
|
+
viewDataUpdate(d: DataView): void;
|
|
95
|
+
viewDataStatisticsUpdate(d: DataView): void;
|
|
96
|
+
getDatumPositionValue(datum: Datum, field: string): any;
|
|
97
|
+
getDatumPositionValues(datum: Datum, fields: string | string[]): any[];
|
|
98
|
+
abstract getStatisticFields(): {
|
|
99
|
+
key: string;
|
|
100
|
+
operations: StatisticOperations;
|
|
101
|
+
}[];
|
|
102
|
+
abstract getGroupFields(): string[];
|
|
103
|
+
abstract dataToPosition(data: Datum): IPoint;
|
|
104
|
+
abstract dataToPositionX(data: Datum): number;
|
|
105
|
+
abstract dataToPositionY(data: Datum): number;
|
|
106
|
+
abstract valueToPosition(value1: any, value2?: any): IPoint;
|
|
107
|
+
abstract initMark(): void;
|
|
108
|
+
abstract initMarkStyle(): void;
|
|
109
|
+
abstract getStackGroupFields(): string[];
|
|
110
|
+
abstract getStackValueField(): string | undefined;
|
|
111
|
+
setValueFieldToStack(): void;
|
|
112
|
+
setValueFieldToPercent(): void;
|
|
113
|
+
setValueFieldToStackOffsetSilhouette(): void;
|
|
114
|
+
abstract getActiveMarks(): IMark[];
|
|
115
|
+
initRootMark(): void;
|
|
116
|
+
protected _initExtensionMark(): void;
|
|
117
|
+
private _createExtensionMark;
|
|
118
|
+
protected _updateExtensionMarkSpec(lastSpec?: any): void;
|
|
119
|
+
getStackData(): ISeriesStackData;
|
|
120
|
+
initTrigger(): void;
|
|
121
|
+
initAnimation(): void;
|
|
122
|
+
initMarkState(): void;
|
|
123
|
+
initSeriesStyleState(): void;
|
|
124
|
+
afterInitMark(): void;
|
|
125
|
+
getMarksWithoutRoot(): IMark[];
|
|
126
|
+
getMarksInType(type: string | string[]): IMark[];
|
|
127
|
+
getMarkInName(name: string): IMark | undefined;
|
|
128
|
+
getMarkInId(markId: number): IMark | undefined;
|
|
129
|
+
protected initEvent(): void;
|
|
130
|
+
protected _releaseEvent(): void;
|
|
131
|
+
protected initTooltip(): void;
|
|
132
|
+
_compareSpec(ignoreCheckKeys?: {
|
|
133
|
+
[key: string]: true;
|
|
134
|
+
}): {
|
|
135
|
+
change: boolean;
|
|
136
|
+
reMake: boolean;
|
|
137
|
+
reRender: boolean;
|
|
138
|
+
reSize: boolean;
|
|
139
|
+
reCompile: boolean;
|
|
140
|
+
};
|
|
141
|
+
_updateSpecData(): void;
|
|
142
|
+
reInit(theme?: any, lastSpec?: any): void;
|
|
143
|
+
onEvaluateEnd(ctx: IModelEvaluateOption): void;
|
|
144
|
+
onRender(ctx: IModelRenderOption): void;
|
|
145
|
+
release(): void;
|
|
146
|
+
onLayoutEnd(ctx: any): void;
|
|
147
|
+
getSeriesKeys(): string[];
|
|
148
|
+
getSeriesStyle(datum: Datum): (attribute: string) => unknown;
|
|
149
|
+
protected _getSeriesInfo(field: string, keys: string[]): {
|
|
150
|
+
key: string;
|
|
151
|
+
style: (attribute: string) => unknown;
|
|
152
|
+
shapeType: string;
|
|
153
|
+
}[];
|
|
154
|
+
getSeriesInfoInField(field: string): {
|
|
155
|
+
key: string;
|
|
156
|
+
style: (attribute: string) => unknown;
|
|
157
|
+
shapeType: string;
|
|
158
|
+
}[];
|
|
159
|
+
getSeriesInfoList(): {
|
|
160
|
+
key: string;
|
|
161
|
+
style: (attribute: string) => unknown;
|
|
162
|
+
shapeType: string;
|
|
163
|
+
}[];
|
|
164
|
+
protected _getDefaultColorScale(): any;
|
|
165
|
+
protected _getDataScheme(): import("../..").ColorSchemeItem[] | import("../..").ProgressiveDataScheme<import("../..").ColorSchemeItem>;
|
|
166
|
+
getDefaultColorDomain(): any[];
|
|
167
|
+
getColorAttribute(): {
|
|
168
|
+
scale: any;
|
|
169
|
+
field: string;
|
|
170
|
+
};
|
|
171
|
+
getDimensionField(): string[];
|
|
172
|
+
getMeasureField(): string[];
|
|
173
|
+
protected onMarkPositionUpdate(): void;
|
|
174
|
+
protected onMarkTreePositionUpdate(marks: IMark[]): void;
|
|
175
|
+
protected _getTheme(): any;
|
|
176
|
+
protected _createMark<M extends IMark>(markInfo: ISeriesMarkInfo, option?: ISeriesMarkInitOption): NonNullable<M>;
|
|
177
|
+
protected _getDataIdKey(): string | ((datum: Datum) => string);
|
|
178
|
+
protected _getSeriesDataKey(datum: Datum): string;
|
|
179
|
+
addViewDataFilter(option: ITransformOptions): void;
|
|
180
|
+
reFilterViewData(): void;
|
|
181
|
+
reTransformViewData(): void;
|
|
182
|
+
fillData(): void;
|
|
183
|
+
compile(): void;
|
|
184
|
+
getDefaultShapeType(): string;
|
|
185
|
+
getFieldAlias(field: string): any;
|
|
186
|
+
getMarkInfoList(): import("../../model/interface").IModelMarkInfo[];
|
|
187
|
+
protected _getInvalidConnectType(): "none" | "zero" | "connect";
|
|
188
|
+
protected _getInvalidDefined: (datum: Datum) => boolean;
|
|
189
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DataSet, DataView } from '@visactor/vdataset';
|
|
2
|
+
import type { IGroup } from '../../typings';
|
|
3
|
+
export declare class Group implements IGroup {
|
|
4
|
+
protected _fields: string[];
|
|
5
|
+
get fields(): string[];
|
|
6
|
+
protected _groupData?: DataView;
|
|
7
|
+
get groupData(): DataView;
|
|
8
|
+
constructor(fields: string[]);
|
|
9
|
+
initData(viewData: DataView, dataSet: DataSet): void;
|
|
10
|
+
groupDataUpdate(): void;
|
|
11
|
+
getGroupValueInField(field: string): unknown[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { TooltipHandlerParams } from '../../component/tooltip/interface';
|
|
2
|
+
import type { ITooltipPattern, ShapeType, TooltipActiveType } from '../../typings';
|
|
3
|
+
import type { ISeries, ISeriesTooltipHelper } from '../interface';
|
|
4
|
+
import { BaseTooltipHelper } from '../../model/tooltip-helper';
|
|
5
|
+
import type { IDimensionInfo } from '../../event/events/dimension/interface';
|
|
6
|
+
import type { Datum } from '@visactor/vgrammar-core';
|
|
7
|
+
interface ISeriesCacheInfo {
|
|
8
|
+
seriesFields: string[];
|
|
9
|
+
dimensionFields: string[];
|
|
10
|
+
measureFields: string[];
|
|
11
|
+
type: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class BaseSeriesTooltipHelper extends BaseTooltipHelper implements ISeriesTooltipHelper {
|
|
14
|
+
series: ISeries;
|
|
15
|
+
protected _seriesCacheInfo: ISeriesCacheInfo;
|
|
16
|
+
constructor(series: ISeries);
|
|
17
|
+
updateTooltipSpec(): void;
|
|
18
|
+
protected _getSeriesCacheInfo: () => ISeriesCacheInfo;
|
|
19
|
+
protected _getDimensionData: (datum: any) => any;
|
|
20
|
+
protected _getMeasureData: (datum: any) => any;
|
|
21
|
+
protected _getSeriesStyle: (datum: any, styleKey: string | string[], defaultValue?: any) => any;
|
|
22
|
+
contentKeyCallback: (datum: Datum, params?: TooltipHandlerParams) => string | undefined;
|
|
23
|
+
contentValueCallback: (datum: Datum, params?: TooltipHandlerParams) => string | undefined;
|
|
24
|
+
contentShapeTypeCallback: (datum: Datum, params?: TooltipHandlerParams) => ShapeType | undefined;
|
|
25
|
+
contentShapeColorCallback: (datum: Datum, params?: TooltipHandlerParams) => string | undefined;
|
|
26
|
+
titleValueCallback: (datum: Datum, params?: TooltipHandlerParams) => string | undefined;
|
|
27
|
+
getDefaultTooltipPattern(activeType: TooltipActiveType, dimensionInfo?: IDimensionInfo[]): ITooltipPattern | null;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { IModelEvaluateOption, IModelInitOption } from '../../model/interface';
|
|
2
|
+
import type { BoxPlotShaftShape, IOutlierMarkSpec, Maybe } from '../../typings';
|
|
3
|
+
import { CartesianSeries } from '../cartesian/cartesian';
|
|
4
|
+
import type { SeriesMarkMap } from '../interface';
|
|
5
|
+
import { SeriesTypeEnum } from '../interface/type';
|
|
6
|
+
import type { IBoxPlotSeriesSpec, IBoxPlotSeriesTheme } from './interface';
|
|
7
|
+
import { SeriesData } from '../base/series-data';
|
|
8
|
+
import type { IMark } from '../../mark/interface';
|
|
9
|
+
export declare const DEFAULT_FILL_COLOR = "#FFF";
|
|
10
|
+
export declare const DEFAULT_STROKE_COLOR = "#000";
|
|
11
|
+
export declare class BoxPlotSeries<T extends IBoxPlotSeriesSpec = IBoxPlotSeriesSpec> extends CartesianSeries<T> {
|
|
12
|
+
static readonly type: string;
|
|
13
|
+
type: SeriesTypeEnum;
|
|
14
|
+
static readonly mark: SeriesMarkMap;
|
|
15
|
+
protected _theme: Maybe<IBoxPlotSeriesTheme>;
|
|
16
|
+
protected _minField: string;
|
|
17
|
+
getMinField(): string;
|
|
18
|
+
protected _maxField: string;
|
|
19
|
+
getMaxField(): string;
|
|
20
|
+
protected _q1Field: string;
|
|
21
|
+
getQ1Field(): string;
|
|
22
|
+
protected _medianField: string;
|
|
23
|
+
getMedianField(): string;
|
|
24
|
+
protected _q3Field: string;
|
|
25
|
+
getQ3Field(): string;
|
|
26
|
+
protected _outliersField: string;
|
|
27
|
+
getOutliersField(): string;
|
|
28
|
+
protected _lineWidth: number;
|
|
29
|
+
protected _boxWidth: number;
|
|
30
|
+
protected _shaftShape: BoxPlotShaftShape;
|
|
31
|
+
getShaftShape(): BoxPlotShaftShape;
|
|
32
|
+
protected _shaftWidth: number;
|
|
33
|
+
protected _boxFillColor: string;
|
|
34
|
+
getBoxFillColor(): string;
|
|
35
|
+
protected _strokeColor: string;
|
|
36
|
+
getStrokeColor(): string;
|
|
37
|
+
protected _shaftFillOpacity: number;
|
|
38
|
+
protected _outliersStyle: IOutlierMarkSpec;
|
|
39
|
+
getOutliersStyle(): IOutlierMarkSpec;
|
|
40
|
+
protected _outlierDataView: SeriesData;
|
|
41
|
+
private _autoBoxWidth;
|
|
42
|
+
setAttrFromSpec(): void;
|
|
43
|
+
private _boxPlotMark?;
|
|
44
|
+
private _outlierMark?;
|
|
45
|
+
initMark(): void;
|
|
46
|
+
initMarkStyle(): void;
|
|
47
|
+
initBoxPlotMarkStyle(): void;
|
|
48
|
+
initData(): void;
|
|
49
|
+
init(option: IModelInitOption): void;
|
|
50
|
+
private _getMarkWidth;
|
|
51
|
+
onLayoutEnd(ctx: any): void;
|
|
52
|
+
private _initAnimationSpec;
|
|
53
|
+
initAnimation(): void;
|
|
54
|
+
protected initTooltip(): void;
|
|
55
|
+
getStatisticFields(): {
|
|
56
|
+
key: string;
|
|
57
|
+
operations: import("../../data/transforms/dimension-statistics").StatisticOperations;
|
|
58
|
+
}[];
|
|
59
|
+
onEvaluateEnd(ctx: IModelEvaluateOption): void;
|
|
60
|
+
getDefaultShapeType(): string;
|
|
61
|
+
getActiveMarks(): IMark[];
|
|
62
|
+
}
|
|
63
|
+
export declare const registerBoxplotSeries: () => void;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { IMarkSpec, IMarkTheme } from '../..';
|
|
2
|
+
import type { IAnimationSpec } from '../../animation/spec';
|
|
3
|
+
import type { IMarkProgressiveConfig } from '../../mark/interface';
|
|
4
|
+
import type { DirectionType, IBoxPlotMarkSpec, IOutlierMarkSpec } from '../../typings';
|
|
5
|
+
import type { ICartesianSeriesSpec, ICartesianSeriesTheme } from '../cartesian/interface';
|
|
6
|
+
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
7
|
+
export interface IBoxPlotSeriesSpec extends Omit<ICartesianSeriesSpec, 'xField' | 'yField' | 'direction'>, IAnimationSpec<string, string>, IMarkProgressiveConfig {
|
|
8
|
+
type: 'boxPlot';
|
|
9
|
+
direction?: DirectionType;
|
|
10
|
+
xField?: string | string[];
|
|
11
|
+
yField?: string | string[];
|
|
12
|
+
minField?: string;
|
|
13
|
+
maxField?: string;
|
|
14
|
+
q1Field?: string;
|
|
15
|
+
medianField?: string;
|
|
16
|
+
q3Field?: string;
|
|
17
|
+
[SeriesMarkNameEnum.boxPlot]?: IMarkSpec<IBoxPlotMarkSpec>;
|
|
18
|
+
outliersField?: string;
|
|
19
|
+
outliersStyle?: IOutlierMarkSpec;
|
|
20
|
+
}
|
|
21
|
+
export interface IBoxPlotSeriesTheme extends ICartesianSeriesTheme {
|
|
22
|
+
[SeriesMarkNameEnum.boxPlot]?: Partial<IMarkTheme<IBoxPlotMarkSpec>>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ISeriesTooltipHelper } from '../interface';
|
|
2
|
+
import { BaseSeriesTooltipHelper } from '../base/tooltip-helper';
|
|
3
|
+
import type { Datum, ITooltipPattern, TooltipActiveType } from '../../typings';
|
|
4
|
+
import { BOX_PLOT_TOOLTIP_KEYS } from '../../constant/box-plot';
|
|
5
|
+
export declare class BoxPlotSeriesTooltipHelper extends BaseSeriesTooltipHelper implements ISeriesTooltipHelper {
|
|
6
|
+
getDefaultTooltipPattern(activeType: TooltipActiveType): ITooltipPattern | null;
|
|
7
|
+
getContentKey: (contentType: BOX_PLOT_TOOLTIP_KEYS) => (datum: any) => string;
|
|
8
|
+
getContentValue: (contentType: BOX_PLOT_TOOLTIP_KEYS) => (datum: any) => any;
|
|
9
|
+
contentShapeColorCallback: (datum: Datum) => any;
|
|
10
|
+
getOutlierFillColor: (datum: Datum) => any;
|
|
11
|
+
isOutlierMark: (datum: Datum) => boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { DataView } from '@visactor/vdataset';
|
|
2
|
+
import type { ICartesianSeries } from '../interface';
|
|
3
|
+
import { BaseSeries } from '../base/base-series';
|
|
4
|
+
import type { IPoint } from '../../typings/coordinate';
|
|
5
|
+
import type { IBaseScale } from '@visactor/vscale';
|
|
6
|
+
import type { IAxisHelper } from '../../component/axis/cartesian/interface';
|
|
7
|
+
import type { DirectionType } from '../../typings/space';
|
|
8
|
+
import type { Datum, StringOrNumber } from '../../typings';
|
|
9
|
+
import type { StatisticOperations } from '../../data/transforms/dimension-statistics';
|
|
10
|
+
import type { ICartesianSeriesSpec } from './interface';
|
|
11
|
+
import type { IAxisLocationCfg } from '../../component/axis';
|
|
12
|
+
export declare abstract class CartesianSeries<T extends ICartesianSeriesSpec = ICartesianSeriesSpec> extends BaseSeries<T> implements ICartesianSeries {
|
|
13
|
+
readonly coordinate: 'cartesian';
|
|
14
|
+
protected _bandPosition: number;
|
|
15
|
+
protected _scaleConfig: IAxisLocationCfg;
|
|
16
|
+
protected _buildScaleConfig(): void;
|
|
17
|
+
protected _fieldX: string[];
|
|
18
|
+
get fieldX(): string[];
|
|
19
|
+
setFieldX(f: string | string[]): void;
|
|
20
|
+
protected _fieldY: string[];
|
|
21
|
+
get fieldY(): string[];
|
|
22
|
+
setFieldY(f: string | string[]): void;
|
|
23
|
+
protected _fieldZ?: string[];
|
|
24
|
+
get fieldZ(): string[] | undefined;
|
|
25
|
+
setFieldZ(f?: string | string[]): void;
|
|
26
|
+
protected _fieldX2: string;
|
|
27
|
+
get fieldX2(): string;
|
|
28
|
+
setFieldX2(f: string): void;
|
|
29
|
+
protected _fieldY2: string;
|
|
30
|
+
get fieldY2(): string;
|
|
31
|
+
setFieldY2(f: string): void;
|
|
32
|
+
protected _specXField: string[];
|
|
33
|
+
protected _specYField: string[];
|
|
34
|
+
protected _direction: DirectionType;
|
|
35
|
+
get direction(): "vertical" | "horizontal";
|
|
36
|
+
protected _scaleX: IBaseScale;
|
|
37
|
+
get scaleX(): IBaseScale;
|
|
38
|
+
setScaleX(s: IBaseScale): void;
|
|
39
|
+
protected _scaleY: IBaseScale;
|
|
40
|
+
get scaleY(): IBaseScale;
|
|
41
|
+
setScaleY(s: IBaseScale): void;
|
|
42
|
+
protected _scaleZ?: IBaseScale;
|
|
43
|
+
get scaleZ(): IBaseScale;
|
|
44
|
+
setScaleZ(s: IBaseScale): void;
|
|
45
|
+
_xAxisHelper: IAxisHelper;
|
|
46
|
+
getXAxisHelper(): IAxisHelper;
|
|
47
|
+
setXAxisHelper(h: IAxisHelper): void;
|
|
48
|
+
_yAxisHelper: IAxisHelper;
|
|
49
|
+
getYAxisHelper(): IAxisHelper;
|
|
50
|
+
setYAxisHelper(h: IAxisHelper): void;
|
|
51
|
+
_zAxisHelper?: IAxisHelper;
|
|
52
|
+
getZAxisHelper(): IAxisHelper;
|
|
53
|
+
setZAxisHelper(h: IAxisHelper): void;
|
|
54
|
+
protected _sortDataByAxis: boolean;
|
|
55
|
+
get sortDataByAxis(): boolean;
|
|
56
|
+
getStatisticFields(): {
|
|
57
|
+
key: string;
|
|
58
|
+
operations: StatisticOperations;
|
|
59
|
+
}[];
|
|
60
|
+
getGroupFields(): string[];
|
|
61
|
+
getStackGroupFields(): string[];
|
|
62
|
+
getStackValueField(): string;
|
|
63
|
+
setValueFieldToStack(): void;
|
|
64
|
+
setValueFieldToPercent(): void;
|
|
65
|
+
setValueFieldToStackOffsetSilhouette(): void;
|
|
66
|
+
onXAxisHelperUpdate(): void;
|
|
67
|
+
onYAxisHelperUpdate(): void;
|
|
68
|
+
onZAxisHelperUpdate(): void;
|
|
69
|
+
setAttrFromSpec(): void;
|
|
70
|
+
dataToPosition(datum: Datum): IPoint | null;
|
|
71
|
+
protected _buildMarkAttributeContext(): void;
|
|
72
|
+
valueToPosition(xValue: StringOrNumber | StringOrNumber[], yValue: StringOrNumber | StringOrNumber[]): {
|
|
73
|
+
x: number;
|
|
74
|
+
y: number;
|
|
75
|
+
};
|
|
76
|
+
protected _axisPosition(helper: IAxisHelper, value: StringOrNumber | StringOrNumber[], datum?: any): number;
|
|
77
|
+
valueToPositionX(value: StringOrNumber | StringOrNumber[], datum?: any): number;
|
|
78
|
+
valueToPositionY(value: StringOrNumber | StringOrNumber[], datum?: any): number;
|
|
79
|
+
dataToPositionX(datum: Datum): number;
|
|
80
|
+
dataToPositionY(datum: Datum): number;
|
|
81
|
+
dataToPositionZ(datum: Datum): number;
|
|
82
|
+
dataToPositionX1(datum: Datum): number;
|
|
83
|
+
dataToPositionY1(datum: Datum): number;
|
|
84
|
+
positionToData(p: IPoint): IPoint | null;
|
|
85
|
+
positionToDataX(xPos: number): any | null;
|
|
86
|
+
positionToDataY(yPos: number): any | null;
|
|
87
|
+
getRegionRectLeft(): number;
|
|
88
|
+
getRegionRectRight(): number;
|
|
89
|
+
afterInitMark(): void;
|
|
90
|
+
getDimensionField(): string[];
|
|
91
|
+
getMeasureField(): string[];
|
|
92
|
+
viewDataUpdate(d: DataView): void;
|
|
93
|
+
_sortDataInAxisDomain(): void;
|
|
94
|
+
protected _getInvalidDefined: (datum: Datum) => boolean;
|
|
95
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ISeriesSpec } from '../../typings/spec/common';
|
|
2
|
+
import type { DirectionType } from '../../typings';
|
|
3
|
+
import type { ILabelSpec } from '../../component/label';
|
|
4
|
+
export interface ICartesianSeriesSpec extends ISeriesSpec {
|
|
5
|
+
direction?: DirectionType;
|
|
6
|
+
xField?: string | string[];
|
|
7
|
+
x2Field?: string;
|
|
8
|
+
yField?: string | string[];
|
|
9
|
+
y2Field?: string;
|
|
10
|
+
zField?: string | string[];
|
|
11
|
+
sortDataByAxis?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface ICartesianSeriesTheme {
|
|
14
|
+
label?: Partial<ILabelSpec>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
|
+
export type CirclePackingMark = 'leaf' | 'nonLeaf' | 'label' | 'nonLeafLabel';
|
|
3
|
+
export type CirclePackingAppearPreset = 'growIn' | 'fadeIn';
|
|
4
|
+
export declare const circlePackingPresetAnimation: (preset: CirclePackingAppearPreset) => IAnimationTypeConfig;
|
|
5
|
+
export declare const registerCirclePackingAnimation: () => void;
|