@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,188 @@
|
|
|
1
|
+
import type { IBoundsLike } from '@visactor/vutils';
|
|
2
|
+
import type { DataSet } from '@visactor/vdataset';
|
|
3
|
+
import type { IEvent, IEventDispatcher } from '../event/interface';
|
|
4
|
+
import type { IMark, IMarkRaw, IMarkStyle, MarkTypeEnum } from '../mark/interface';
|
|
5
|
+
import type { RenderMode } from '../typings/spec/common';
|
|
6
|
+
import type { VChart } from '../vchart-all';
|
|
7
|
+
import type { IData } from '@visactor/vgrammar-core';
|
|
8
|
+
import type { IOrientType, IPoint, IGroupMarkSpec, ConvertToMarkStyleSpec, CoordinateType, ICommonSpec, IRect, StringOrNumber } from '../typings';
|
|
9
|
+
import type { ITheme } from '../theme';
|
|
10
|
+
import type { StateValueType } from '../typings/spec';
|
|
11
|
+
import type { ICompilable, ICompilableInitOption } from '../compile/interface';
|
|
12
|
+
import type { ICompilableData } from '../compile/data';
|
|
13
|
+
import type { IGlobalScale } from '../scale/interface';
|
|
14
|
+
import type { IChart } from '../chart/interface';
|
|
15
|
+
import type { IChartLevelTheme } from '../core/interface';
|
|
16
|
+
import type { IThemeColorScheme } from '../theme/color-scheme/interface';
|
|
17
|
+
export type ILayoutNumber = number | IPercent | ((layoutRect: ILayoutRect) => number) | IPercentOffset;
|
|
18
|
+
export interface ILayoutPoint {
|
|
19
|
+
x: number;
|
|
20
|
+
y: number;
|
|
21
|
+
}
|
|
22
|
+
export interface ILayoutRectLevel {
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
}
|
|
26
|
+
export interface ILayoutRect {
|
|
27
|
+
width: number;
|
|
28
|
+
height: number;
|
|
29
|
+
}
|
|
30
|
+
export type IPercent = `${number}%`;
|
|
31
|
+
export type IPercentOffset = {
|
|
32
|
+
percent?: number;
|
|
33
|
+
offset?: number;
|
|
34
|
+
};
|
|
35
|
+
export type ILayoutPercent = IPercent | number;
|
|
36
|
+
type ILayoutType = 'region-relative' | 'region' | 'normal' | 'absolute' | 'normal-inline';
|
|
37
|
+
export type ILayoutOrientPadding = {
|
|
38
|
+
left?: ILayoutNumber;
|
|
39
|
+
right?: ILayoutNumber;
|
|
40
|
+
top?: ILayoutNumber;
|
|
41
|
+
bottom?: ILayoutNumber;
|
|
42
|
+
};
|
|
43
|
+
export type ILayoutPaddingSpec = ILayoutOrientPadding | ILayoutNumber | ILayoutNumber[];
|
|
44
|
+
export interface ILayoutItem {
|
|
45
|
+
directionStr?: 'l2r' | 'r2l' | 't2b' | 'b2t';
|
|
46
|
+
layoutClip: boolean;
|
|
47
|
+
layoutType: ILayoutType;
|
|
48
|
+
layoutBindRegionID: number | number[];
|
|
49
|
+
layoutOrient: IOrientType;
|
|
50
|
+
layoutPaddingLeft: number;
|
|
51
|
+
layoutPaddingTop: number;
|
|
52
|
+
layoutPaddingRight: number;
|
|
53
|
+
layoutPaddingBottom: number;
|
|
54
|
+
layoutOffsetX: number;
|
|
55
|
+
layoutOffsetY: number;
|
|
56
|
+
layoutLevel: number;
|
|
57
|
+
layoutZIndex: number;
|
|
58
|
+
chartLayoutRect: ILayoutRect;
|
|
59
|
+
getVisible: () => boolean;
|
|
60
|
+
getSpec?: () => any;
|
|
61
|
+
getAutoIndent: () => boolean;
|
|
62
|
+
getLayoutStartPoint: () => ILayoutPoint;
|
|
63
|
+
getLayoutRect: () => ILayoutRect;
|
|
64
|
+
getLastComputeOutBounds: () => IBoundsLike;
|
|
65
|
+
getGraphicBounds: () => IBoundsLike;
|
|
66
|
+
setLayoutRect: (rect: Partial<ILayoutRect>, levelMap?: Partial<ILayoutRectLevel>) => void;
|
|
67
|
+
computeBoundsInRect: (rect: ILayoutRect) => ILayoutRect;
|
|
68
|
+
setLayoutStartPosition: (pos: Partial<IPoint>) => void;
|
|
69
|
+
absoluteLayoutInRect: (rect: IRect) => void;
|
|
70
|
+
updateLayoutAttribute: () => void;
|
|
71
|
+
}
|
|
72
|
+
export interface ILayoutItemSpec {
|
|
73
|
+
layoutType?: ILayoutType;
|
|
74
|
+
layoutLevel?: number;
|
|
75
|
+
orient?: IOrientType;
|
|
76
|
+
padding?: ILayoutPaddingSpec;
|
|
77
|
+
noOuterPadding?: boolean;
|
|
78
|
+
width?: ILayoutNumber;
|
|
79
|
+
maxWidth?: ILayoutNumber;
|
|
80
|
+
minWidth?: ILayoutNumber;
|
|
81
|
+
height?: ILayoutNumber;
|
|
82
|
+
maxHeight?: ILayoutNumber;
|
|
83
|
+
minHeight?: ILayoutNumber;
|
|
84
|
+
offsetX?: ILayoutNumber;
|
|
85
|
+
offsetY?: ILayoutNumber;
|
|
86
|
+
zIndex?: number;
|
|
87
|
+
clip?: boolean;
|
|
88
|
+
left?: ILayoutNumber;
|
|
89
|
+
right?: ILayoutNumber;
|
|
90
|
+
top?: ILayoutNumber;
|
|
91
|
+
bottom?: ILayoutNumber;
|
|
92
|
+
center?: boolean;
|
|
93
|
+
}
|
|
94
|
+
export interface IModelInitOption {
|
|
95
|
+
}
|
|
96
|
+
export interface IModelLayoutOption {
|
|
97
|
+
}
|
|
98
|
+
export interface IModelEvaluateOption {
|
|
99
|
+
}
|
|
100
|
+
export interface IModelRenderOption {
|
|
101
|
+
}
|
|
102
|
+
export interface IEffect {
|
|
103
|
+
[key: string]: (e?: any) => any;
|
|
104
|
+
}
|
|
105
|
+
export interface IMarkTreeGroup extends Partial<IMarkStyle<IGroupMarkSpec>> {
|
|
106
|
+
type: 'group';
|
|
107
|
+
name: string;
|
|
108
|
+
marks: (IMarkTreeGroup | IMark)[];
|
|
109
|
+
}
|
|
110
|
+
export type IMarkTree = IMarkTreeGroup | IMark | (IMarkTreeGroup | IMark)[];
|
|
111
|
+
export interface IUpdateSpecResult {
|
|
112
|
+
change: boolean;
|
|
113
|
+
reMake: boolean;
|
|
114
|
+
reRender?: boolean;
|
|
115
|
+
reSize?: boolean;
|
|
116
|
+
reCompile?: boolean;
|
|
117
|
+
}
|
|
118
|
+
export interface IModelProduct {
|
|
119
|
+
srData: IData;
|
|
120
|
+
}
|
|
121
|
+
export interface IModel extends ICompilable, ILayoutItem {
|
|
122
|
+
readonly modelType: string;
|
|
123
|
+
readonly type: string;
|
|
124
|
+
readonly specKey: string;
|
|
125
|
+
readonly id: number;
|
|
126
|
+
readonly userId?: StringOrNumber;
|
|
127
|
+
readonly event: IEvent;
|
|
128
|
+
readonly effect: IEffect;
|
|
129
|
+
coordinate?: CoordinateType;
|
|
130
|
+
getOption: () => IModelOption;
|
|
131
|
+
getMarks: () => IMark[];
|
|
132
|
+
getMarkNameMap: () => Record<string, IMark>;
|
|
133
|
+
getMarkInfoList: () => IModelMarkInfo[];
|
|
134
|
+
getData: () => ICompilableData;
|
|
135
|
+
getChart: () => IChart;
|
|
136
|
+
created: () => void;
|
|
137
|
+
init: (option: IModelInitOption) => void;
|
|
138
|
+
reInit: (theme?: any, lastSpec?: any) => void;
|
|
139
|
+
beforeRelease: () => void;
|
|
140
|
+
onLayoutStart: (layoutRect: IRect, viewRect: ILayoutRect, ctx: IModelLayoutOption) => void;
|
|
141
|
+
onLayoutEnd: (ctx: IModelLayoutOption) => void;
|
|
142
|
+
onEvaluateEnd: (ctx: IModelEvaluateOption) => void;
|
|
143
|
+
onRender: (ctx: IModelRenderOption) => void;
|
|
144
|
+
onDataUpdate: () => void;
|
|
145
|
+
updateSpec: (spec: any, totalSpec?: any) => IUpdateSpecResult;
|
|
146
|
+
getSpec?: () => any;
|
|
147
|
+
getSpecIndex: () => number;
|
|
148
|
+
setCurrentTheme: (noRender?: boolean) => void;
|
|
149
|
+
getColorScheme: () => IThemeColorScheme | undefined;
|
|
150
|
+
setMarkStyle: <T extends ICommonSpec>(mark?: IMarkRaw<T>, style?: Partial<IMarkStyle<T> | ConvertToMarkStyleSpec<T>>, state?: StateValueType, level?: number) => void;
|
|
151
|
+
initMarkStyleWithSpec: (mark?: IMark, spec?: any, key?: string) => void;
|
|
152
|
+
}
|
|
153
|
+
export interface IModelOption extends ICompilableInitOption {
|
|
154
|
+
eventDispatcher: IEventDispatcher;
|
|
155
|
+
dataSet: DataSet;
|
|
156
|
+
map: Map<StringOrNumber, IModel | IMark>;
|
|
157
|
+
mode: RenderMode;
|
|
158
|
+
globalInstance: VChart;
|
|
159
|
+
specIndex?: number;
|
|
160
|
+
specKey?: string;
|
|
161
|
+
getThemeConfig?: () => {
|
|
162
|
+
globalTheme?: string;
|
|
163
|
+
optionTheme?: string | ITheme;
|
|
164
|
+
specTheme?: string | ITheme;
|
|
165
|
+
chartLevelTheme: IChartLevelTheme;
|
|
166
|
+
};
|
|
167
|
+
getChartLayoutRect: () => IRect;
|
|
168
|
+
getChartViewRect: () => ILayoutRect;
|
|
169
|
+
getChart: () => IChart;
|
|
170
|
+
globalScale: IGlobalScale;
|
|
171
|
+
animation: boolean;
|
|
172
|
+
onError: (...args: any[]) => void;
|
|
173
|
+
}
|
|
174
|
+
export interface IModelConstructor {
|
|
175
|
+
new (ctx: IModelOption): IModel;
|
|
176
|
+
}
|
|
177
|
+
export type ILayoutModelState = {
|
|
178
|
+
layoutUpdateRank: number;
|
|
179
|
+
[key: string]: unknown;
|
|
180
|
+
};
|
|
181
|
+
export type IModelSpec = ILayoutItemSpec & {
|
|
182
|
+
id?: StringOrNumber;
|
|
183
|
+
};
|
|
184
|
+
export interface IModelMarkInfo {
|
|
185
|
+
type: MarkTypeEnum | string | (MarkTypeEnum | string)[];
|
|
186
|
+
name: string;
|
|
187
|
+
}
|
|
188
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { IRect, IPoint } from '../typings';
|
|
2
|
+
import type { IBoundsLike } from '@visactor/vutils';
|
|
3
|
+
import type { ILayoutItem, ILayoutItemSpec, ILayoutPoint, ILayoutRect, ILayoutRectLevel } from './interface';
|
|
4
|
+
import { CompilableBase } from '../compile/compilable-base';
|
|
5
|
+
export declare class LayoutItem<T extends ILayoutItemSpec = ILayoutItemSpec> extends CompilableBase implements ILayoutItem {
|
|
6
|
+
protected _spec: T;
|
|
7
|
+
getSpec(): T;
|
|
8
|
+
layoutClip: boolean;
|
|
9
|
+
protected _autoIndent: boolean;
|
|
10
|
+
getAutoIndent(): boolean;
|
|
11
|
+
private _layoutStartPoint;
|
|
12
|
+
getLayoutStartPoint(): ILayoutPoint;
|
|
13
|
+
private _layoutRect;
|
|
14
|
+
protected _minWidth: number | null;
|
|
15
|
+
protected _maxWidth: number | null;
|
|
16
|
+
protected _minHeight: number | null;
|
|
17
|
+
protected _maxHeight: number | null;
|
|
18
|
+
protected _layoutRectLevelMap: ILayoutRectLevel;
|
|
19
|
+
protected _lastComputeRect: ILayoutRect;
|
|
20
|
+
protected _lastComputeOutBounds: IBoundsLike;
|
|
21
|
+
getLastComputeOutBounds(): IBoundsLike;
|
|
22
|
+
protected _forceLayoutTag: boolean;
|
|
23
|
+
getLayoutRect: () => ILayoutRect;
|
|
24
|
+
layoutType: ILayoutItem['layoutType'];
|
|
25
|
+
layoutBindRegionID: ILayoutItem['layoutBindRegionID'];
|
|
26
|
+
_layoutOrient: ILayoutItem['layoutOrient'];
|
|
27
|
+
get layoutOrient(): ILayoutItem['layoutOrient'];
|
|
28
|
+
set layoutOrient(v: ILayoutItem['layoutOrient']);
|
|
29
|
+
layoutPaddingLeft: ILayoutItem['layoutPaddingLeft'];
|
|
30
|
+
layoutPaddingTop: ILayoutItem['layoutPaddingTop'];
|
|
31
|
+
layoutPaddingRight: ILayoutItem['layoutPaddingRight'];
|
|
32
|
+
layoutPaddingBottom: ILayoutItem['layoutPaddingBottom'];
|
|
33
|
+
layoutOffsetX: ILayoutItem['layoutOffsetX'];
|
|
34
|
+
layoutOffsetY: ILayoutItem['layoutOffsetY'];
|
|
35
|
+
layoutLevel: ILayoutItem['layoutLevel'];
|
|
36
|
+
layoutZIndex: ILayoutItem['layoutZIndex'];
|
|
37
|
+
chartLayoutRect: ILayoutRect;
|
|
38
|
+
getVisible(): boolean;
|
|
39
|
+
private _setLayoutAttributeFromSpec;
|
|
40
|
+
setAttrFromSpec(spec: ILayoutItemSpec, chartViewRect: ILayoutRect): void;
|
|
41
|
+
onLayoutStart(layoutRect: IRect, viewRect: ILayoutRect, _ctx: any): void;
|
|
42
|
+
private _getAbsoluteSpecValue;
|
|
43
|
+
absoluteLayoutInRect(layoutRect: IRect): void;
|
|
44
|
+
setLayoutStartPosition({ x, y }: Partial<IPoint>): void;
|
|
45
|
+
setLayoutRect({ width, height }: Partial<ILayoutRect>, levelMap?: Partial<ILayoutRectLevel>): void;
|
|
46
|
+
mergeLayoutRect({ width, height }: ILayoutRect): ILayoutRect;
|
|
47
|
+
getOrientPosAttribute(): "x" | "y";
|
|
48
|
+
getOrientSizeAttribute(): "width" | "height";
|
|
49
|
+
protected changeBoundsBySetting(bounds: IBoundsLike): IBoundsLike;
|
|
50
|
+
protected _setRectInSpec(rect: ILayoutRect): {
|
|
51
|
+
width: number;
|
|
52
|
+
height: number;
|
|
53
|
+
};
|
|
54
|
+
computeBoundsInRect(rect: ILayoutRect): ILayoutRect;
|
|
55
|
+
protected _boundsInRect(rect: ILayoutRect, fullSpace: ILayoutRect): IBoundsLike;
|
|
56
|
+
updateLayoutAttribute(): void;
|
|
57
|
+
compile(): void;
|
|
58
|
+
getGraphicBounds(): IBoundsLike;
|
|
59
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ITooltipActiveTypeAsKeys, ITooltipSpec } from '../component/tooltip/interface';
|
|
2
|
+
import type { TooltipActiveType } from '../typings';
|
|
3
|
+
import type { IModel } from './interface';
|
|
4
|
+
import type { IMark } from '../mark/interface';
|
|
5
|
+
export type TooltipTrigger = IModel | IMark;
|
|
6
|
+
export interface ITooltipHelper {
|
|
7
|
+
spec: ITooltipSpec | undefined;
|
|
8
|
+
activeType: TooltipActiveType[];
|
|
9
|
+
activeTriggerSet: ITooltipActiveTypeAsKeys<Set<TooltipTrigger>, Set<TooltipTrigger>>;
|
|
10
|
+
ignoreTriggerSet: ITooltipActiveTypeAsKeys<Set<TooltipTrigger>, Set<TooltipTrigger>>;
|
|
11
|
+
updateTooltipSpec: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare abstract class BaseTooltipHelper implements ITooltipHelper {
|
|
14
|
+
spec: ITooltipSpec | undefined;
|
|
15
|
+
activeType: TooltipActiveType[];
|
|
16
|
+
activeTriggerSet: {
|
|
17
|
+
mark: Set<TooltipTrigger>;
|
|
18
|
+
dimension: Set<TooltipTrigger>;
|
|
19
|
+
};
|
|
20
|
+
ignoreTriggerSet: {
|
|
21
|
+
mark: Set<TooltipTrigger>;
|
|
22
|
+
dimension: Set<TooltipTrigger>;
|
|
23
|
+
};
|
|
24
|
+
abstract updateTooltipSpec(): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BasicComponentPlugin } from '../basic-plugin';
|
|
2
|
+
import type { IComponentPlugin, IComponentPluginService } from '../interface';
|
|
3
|
+
import type { CartesianAxis, ILinearAxisSync } from '../../../component/axis/cartesian';
|
|
4
|
+
export declare class AxisSyncPlugin extends BasicComponentPlugin implements IComponentPlugin {
|
|
5
|
+
Name: string;
|
|
6
|
+
constructor();
|
|
7
|
+
protected _checkEnableSync(axis: CartesianAxis): ILinearAxisSync | false;
|
|
8
|
+
private _getTargetAxis;
|
|
9
|
+
onInit(service: IComponentPluginService, axis: CartesianAxis): void;
|
|
10
|
+
onDidCompile(service: IComponentPluginService, axis: CartesianAxis): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './axis-sync';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Datum } from '../../../typings';
|
|
2
|
+
import type { CartesianAxis } from '../../../component';
|
|
3
|
+
export interface ITickAlignOpt {
|
|
4
|
+
targetAxis: () => CartesianAxis;
|
|
5
|
+
currentAxis: () => CartesianAxis;
|
|
6
|
+
}
|
|
7
|
+
export declare const tickAlign: (data: Array<Datum>, op: ITickAlignOpt) => Datum[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CartesianAxis } from '../../../component';
|
|
2
|
+
import type { LinearAxisMixin } from '../../../component/axis/mixin/linear-axis-mixin';
|
|
3
|
+
type ScaleInfo = {
|
|
4
|
+
total: number;
|
|
5
|
+
negative: number;
|
|
6
|
+
positive: number;
|
|
7
|
+
includeZero: boolean;
|
|
8
|
+
extendable_min: boolean;
|
|
9
|
+
extendable_max: boolean;
|
|
10
|
+
domain: number[];
|
|
11
|
+
};
|
|
12
|
+
export declare function isValidAlignDomain(domain: number[]): boolean;
|
|
13
|
+
export declare function getScaleInfo(axis: LinearAxisMixin, domain: number[]): ScaleInfo;
|
|
14
|
+
export declare const zeroAlign: (targetAxis: CartesianAxis, currentAxis: CartesianAxis) => void;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IComponentPlugin, IComponentPluginService } from './interface';
|
|
2
|
+
export declare class BasicComponentPlugin implements IComponentPlugin {
|
|
3
|
+
readonly id: number;
|
|
4
|
+
readonly name: string;
|
|
5
|
+
protected service?: IComponentPluginService;
|
|
6
|
+
static Name: string;
|
|
7
|
+
constructor(name?: string);
|
|
8
|
+
onAdd(service: IComponentPluginService): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { IComponent } from '../../component/interface';
|
|
2
|
+
type UniqueId = number;
|
|
3
|
+
type MaybePromise<T> = T | PromiseLike<T>;
|
|
4
|
+
interface IContext {
|
|
5
|
+
skipLayout: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface IComponentPlugin {
|
|
8
|
+
id: UniqueId;
|
|
9
|
+
name: string;
|
|
10
|
+
onAdd: (service: IComponentPluginService) => void;
|
|
11
|
+
init?: () => void;
|
|
12
|
+
dispose?: (service: IComponentPluginService) => void;
|
|
13
|
+
onInit?: (service: IComponentPluginService, ...params: any) => MaybePromise<void>;
|
|
14
|
+
onDidCompile?: (service: IComponentPluginService, ...params: any) => MaybePromise<void>;
|
|
15
|
+
onWillLayout?: (service: IComponentPluginService, ...params: any) => MaybePromise<void>;
|
|
16
|
+
onDidLayout?: (service: IComponentPluginService, ...params: any) => MaybePromise<void>;
|
|
17
|
+
onWillLayoutVertical?: (service: IComponentPluginService, context: IContext, ...params: any) => MaybePromise<void>;
|
|
18
|
+
onWillLayoutHorizontal?: (service: IComponentPluginService, context: IContext, ...params: any) => MaybePromise<void>;
|
|
19
|
+
onDidLayoutVertical?: (service: IComponentPluginService, ...params: any) => MaybePromise<void>;
|
|
20
|
+
onDidLayoutHorizontal?: (service: IComponentPluginService, ...params: any) => MaybePromise<void>;
|
|
21
|
+
}
|
|
22
|
+
export interface IComponentPluginService {
|
|
23
|
+
id: UniqueId;
|
|
24
|
+
component: IComponent;
|
|
25
|
+
load: (plugins: IComponentPlugin[]) => void;
|
|
26
|
+
add: (plugins: IComponentPlugin[]) => IComponentPlugin[] | null;
|
|
27
|
+
activate: (plugins: IComponentPlugin[]) => void;
|
|
28
|
+
get: (id: UniqueId) => IComponentPlugin | undefined;
|
|
29
|
+
getAll: () => IComponentPlugin[];
|
|
30
|
+
dispose: (pluginsId: UniqueId) => void;
|
|
31
|
+
disposeAll: () => void;
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { IComponentPlugin, IComponentPluginService } from './interface';
|
|
2
|
+
import type { IComponent } from '../../component/interface';
|
|
3
|
+
export declare class ComponentPluginService implements IComponentPluginService {
|
|
4
|
+
private plugins;
|
|
5
|
+
readonly id: number;
|
|
6
|
+
component: IComponent;
|
|
7
|
+
constructor(component: IComponent);
|
|
8
|
+
add(plugins: IComponentPlugin[]): IComponentPlugin[] | null;
|
|
9
|
+
load(plugins: IComponentPlugin[]): void;
|
|
10
|
+
activate(plugins: IComponentPlugin[]): void;
|
|
11
|
+
get(id: number): IComponentPlugin | undefined;
|
|
12
|
+
getAll(): IComponentPlugin[];
|
|
13
|
+
dispose(pluginsId: number): void;
|
|
14
|
+
disposeAll(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IChartPlugin, IChartPluginConstructor } from './chart/interface';
|
|
2
|
+
import type { ISeriesPlugin, ISeriesPluginConstructor } from './series/interface';
|
|
3
|
+
export type IPlugin = IChartPlugin | ISeriesPlugin;
|
|
4
|
+
export type IPluginConstructor = IChartPluginConstructor | ISeriesPluginConstructor;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ISeries } from '../../series/interface';
|
|
2
|
+
export interface ISeriesPlugin {
|
|
3
|
+
afterSeriesDataInit?: (series: ISeries) => void;
|
|
4
|
+
afterSeriesMarkInit?: (series: ISeries) => void;
|
|
5
|
+
}
|
|
6
|
+
export interface ISeriesPluginConstructor {
|
|
7
|
+
readonly type: 'seriesPlugin';
|
|
8
|
+
new (): ISeriesPlugin;
|
|
9
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { IMark } from '../mark/interface';
|
|
2
|
+
import type { IModel, IModelOption, ILayoutItem, ILayoutItemSpec } from '../model/interface';
|
|
3
|
+
import type { ISeries, SeriesType } from '../series/interface';
|
|
4
|
+
import type { CoordinateType } from '../typings/coordinate';
|
|
5
|
+
import type { IInteraction } from '../interaction/interface';
|
|
6
|
+
import type { IProjectionSpec } from '../component/geo/interface';
|
|
7
|
+
import type { ConvertToMarkStyleSpec, IRectMarkSpec } from '../typings/visual';
|
|
8
|
+
import type { IAnimate } from '../animation/interface';
|
|
9
|
+
import type { IGroupMark } from '../mark/group';
|
|
10
|
+
import type { StringOrNumber } from '../typings';
|
|
11
|
+
export interface IRegion extends IModel, ILayoutItem {
|
|
12
|
+
animate?: IAnimate;
|
|
13
|
+
interaction: IInteraction;
|
|
14
|
+
getStackInverse: () => boolean;
|
|
15
|
+
getMaxWidth: () => number | undefined;
|
|
16
|
+
setMaxWidth: (value: number) => void;
|
|
17
|
+
getMaxHeight: () => number | undefined;
|
|
18
|
+
setMaxHeight: (value: number) => void;
|
|
19
|
+
addSeries: (series: ISeries) => void;
|
|
20
|
+
removeSeries: (series: ISeries) => void;
|
|
21
|
+
getSeries: (opt?: ISeriesFilter) => ISeries[];
|
|
22
|
+
getSeriesInName: (name: string) => ISeries;
|
|
23
|
+
getSeriesInUserId: (userId: string) => ISeries;
|
|
24
|
+
getSeriesInId: (id: number) => ISeries;
|
|
25
|
+
getSeriesInType: (type: SeriesType) => ISeries[];
|
|
26
|
+
getSeriesInCoordinateType: (type: CoordinateType) => ISeries[];
|
|
27
|
+
getSeriesInDataName: (dataName: string) => ISeries[];
|
|
28
|
+
getMarks: () => IMark[];
|
|
29
|
+
getGroupMark: () => IGroupMark;
|
|
30
|
+
}
|
|
31
|
+
export type ISeriesFilter = {
|
|
32
|
+
name?: string;
|
|
33
|
+
userId?: StringOrNumber | StringOrNumber[];
|
|
34
|
+
specIndex?: number | number[];
|
|
35
|
+
id?: number;
|
|
36
|
+
type?: string;
|
|
37
|
+
coordinateType?: CoordinateType;
|
|
38
|
+
dataName?: string;
|
|
39
|
+
};
|
|
40
|
+
export interface IRegionConstructor {
|
|
41
|
+
new (spec: IRegionSpec, ctx: IModelOption): IRegion;
|
|
42
|
+
}
|
|
43
|
+
export interface IRegionSpec extends ILayoutItemSpec {
|
|
44
|
+
id?: StringOrNumber;
|
|
45
|
+
coordinate?: CoordinateType;
|
|
46
|
+
style?: ConvertToMarkStyleSpec<IRectMarkSpec>;
|
|
47
|
+
stackInverse?: boolean;
|
|
48
|
+
}
|
|
49
|
+
export interface IGeoRegionSpec extends IRegionSpec {
|
|
50
|
+
coordinate?: 'geo';
|
|
51
|
+
roam?: boolean;
|
|
52
|
+
longitudeField?: string;
|
|
53
|
+
latitudeField?: string;
|
|
54
|
+
projection?: Partial<Omit<IProjectionSpec, 'name'>>;
|
|
55
|
+
zoomLimit?: {
|
|
56
|
+
min?: number;
|
|
57
|
+
max?: number;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { IGroupMark as IVGrammarGroupMark } from '@visactor/vgrammar-core';
|
|
2
|
+
import { BaseModel } from '../model/base-model';
|
|
3
|
+
import type { ISeries } from '../series/interface';
|
|
4
|
+
import type { IModelOption, ILayoutItem } from '../model/interface';
|
|
5
|
+
import type { CoordinateType } from '../typings/coordinate';
|
|
6
|
+
import type { IRegion, IRegionSpec } from './interface';
|
|
7
|
+
import type { IGroupMark } from '../mark/group';
|
|
8
|
+
import type { IInteraction, ITrigger } from '../interaction/interface';
|
|
9
|
+
import type { IRectMark } from '../mark/rect';
|
|
10
|
+
import type { IAnimate } from '../animation/interface';
|
|
11
|
+
import type { StringOrNumber } from '../typings';
|
|
12
|
+
export declare class Region<T extends IRegionSpec = IRegionSpec> extends BaseModel<T> implements IRegion {
|
|
13
|
+
static type: string;
|
|
14
|
+
readonly modelType: string;
|
|
15
|
+
type: string;
|
|
16
|
+
protected _series: ISeries[];
|
|
17
|
+
layoutType: ILayoutItem['layoutType'];
|
|
18
|
+
layoutZIndex: number;
|
|
19
|
+
animate?: IAnimate;
|
|
20
|
+
interaction: IInteraction;
|
|
21
|
+
protected _maxRegionWidth?: number;
|
|
22
|
+
getMaxWidth(): number;
|
|
23
|
+
setMaxWidth(value: number): void;
|
|
24
|
+
protected _maxRegionHeight?: number;
|
|
25
|
+
getMaxHeight(): number;
|
|
26
|
+
setMaxHeight(value: number): void;
|
|
27
|
+
protected _groupMark: IGroupMark;
|
|
28
|
+
getGroupMark(): IGroupMark;
|
|
29
|
+
getStackInverse(): boolean;
|
|
30
|
+
protected _backgroundMark?: IRectMark;
|
|
31
|
+
protected _foregroundMark?: IRectMark;
|
|
32
|
+
protected _trigger: ITrigger;
|
|
33
|
+
constructor(spec: T, ctx: IModelOption);
|
|
34
|
+
protected _getClipDefaultValue(): boolean;
|
|
35
|
+
_initTheme(): void;
|
|
36
|
+
created(): void;
|
|
37
|
+
init(option: any): void;
|
|
38
|
+
initMark(): void;
|
|
39
|
+
protected _initBackgroundMarkStyle(): void;
|
|
40
|
+
protected _initForegroundMarkStyle(): void;
|
|
41
|
+
_compareSpec(): {
|
|
42
|
+
change: boolean;
|
|
43
|
+
reMake: boolean;
|
|
44
|
+
reRender: boolean;
|
|
45
|
+
reSize: boolean;
|
|
46
|
+
reCompile: boolean;
|
|
47
|
+
};
|
|
48
|
+
reInit(theme?: any): void;
|
|
49
|
+
addSeries(s: ISeries): void;
|
|
50
|
+
removeSeries(s: ISeries): void;
|
|
51
|
+
getSeries(opt?: {
|
|
52
|
+
name?: string;
|
|
53
|
+
userId?: StringOrNumber | StringOrNumber[];
|
|
54
|
+
specIndex?: number | number[];
|
|
55
|
+
id?: StringOrNumber;
|
|
56
|
+
type?: string;
|
|
57
|
+
coordinateType?: CoordinateType;
|
|
58
|
+
dataName?: string;
|
|
59
|
+
}): ISeries[];
|
|
60
|
+
getSeriesInName(name: string): ISeries;
|
|
61
|
+
getSeriesInUserId(userId: string): ISeries;
|
|
62
|
+
getSeriesInId(id: number): ISeries;
|
|
63
|
+
getSeriesInType(type: string): ISeries[];
|
|
64
|
+
getSeriesInCoordinateType(coordinateType: CoordinateType): ISeries[];
|
|
65
|
+
getSeriesInDataName(dataName: string): ISeries[];
|
|
66
|
+
onRender(ctx: any): void;
|
|
67
|
+
initSeriesDataflow(): void;
|
|
68
|
+
seriesDataFilterOver: () => void;
|
|
69
|
+
release(): void;
|
|
70
|
+
createTrigger(): void;
|
|
71
|
+
initTrigger(): void;
|
|
72
|
+
initInteraction(): void;
|
|
73
|
+
compileMarks(group?: string | IVGrammarGroupMark): void;
|
|
74
|
+
compile(): void;
|
|
75
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OrdinalScale } from '@visactor/vscale';
|
|
2
|
+
import type { ColorSchemeItem, ProgressiveDataScheme } from '../theme/color-scheme/interface';
|
|
3
|
+
export declare class ColorOrdinalScale extends OrdinalScale {
|
|
4
|
+
protected _range: Array<ColorSchemeItem> | ProgressiveDataScheme<ColorSchemeItem>;
|
|
5
|
+
range(value?: Array<ColorSchemeItem> | ProgressiveDataScheme<ColorSchemeItem>): this | any;
|
|
6
|
+
domain(value?: any[]): this | any;
|
|
7
|
+
protected _resetRange(): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { IGlobalScale } from './interface';
|
|
2
|
+
import type { IBaseScale } from '@visactor/vscale';
|
|
3
|
+
import type { IChart } from '../chart/interface';
|
|
4
|
+
import type { IChartSpec } from '../typings/spec';
|
|
5
|
+
import type { IVisualScale, IVisualSpecScale } from '../typings';
|
|
6
|
+
import type { StatisticOperations } from '../data/transforms/dimension-statistics';
|
|
7
|
+
export declare class GlobalScale implements IGlobalScale {
|
|
8
|
+
private _scaleSpecMap;
|
|
9
|
+
private _scaleMap;
|
|
10
|
+
private _modelScaleSpecMap;
|
|
11
|
+
private _markAttributeScaleMap;
|
|
12
|
+
private _spec;
|
|
13
|
+
private readonly _chart;
|
|
14
|
+
constructor(spec: IChartSpec['scales'], chart: IChart);
|
|
15
|
+
private _createFromSpec;
|
|
16
|
+
private _setAttrFromSpec;
|
|
17
|
+
updateSpec(spec: IChartSpec['scales']): {
|
|
18
|
+
change: boolean;
|
|
19
|
+
reMake: boolean;
|
|
20
|
+
reRender: boolean;
|
|
21
|
+
reSize: boolean;
|
|
22
|
+
reCompile: boolean;
|
|
23
|
+
};
|
|
24
|
+
registerModelScale(spec: IVisualSpecScale<unknown, unknown>): void;
|
|
25
|
+
removeModelScale(filter: (spec: IVisualSpecScale<unknown, unknown>) => boolean): void;
|
|
26
|
+
getScale(user_id: string): IBaseScale | null;
|
|
27
|
+
getScaleSpec(user_id: string): IVisualSpecScale<unknown, unknown> | null;
|
|
28
|
+
getStatisticalFields: (dataId: string) => {
|
|
29
|
+
key: string;
|
|
30
|
+
operations: StatisticOperations;
|
|
31
|
+
}[];
|
|
32
|
+
private _getSeriesByRawDataId;
|
|
33
|
+
private _getSeriesBySeriesId;
|
|
34
|
+
updateScaleDomain(defaultDomain: unknown[]): void;
|
|
35
|
+
private _updateMarkScale;
|
|
36
|
+
registerMarkAttributeScale(spec: IVisualScale, seriesId: number): IBaseScale;
|
|
37
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IBaseScale } from '@visactor/vscale';
|
|
2
|
+
import type { StatisticOperations } from '../data/transforms/dimension-statistics';
|
|
3
|
+
import type { IChartSpec, IVisualScale, IVisualSpecScale } from '../typings';
|
|
4
|
+
import type { IUpdateSpecResult } from '../model/interface';
|
|
5
|
+
export interface IGlobalScale {
|
|
6
|
+
color?: any;
|
|
7
|
+
getScale: (user_id: string) => IBaseScale | null;
|
|
8
|
+
getScaleSpec: (user_id: string) => IVisualSpecScale<unknown, unknown> | null;
|
|
9
|
+
getStatisticalFields: (dataId: string) => {
|
|
10
|
+
key: string;
|
|
11
|
+
operations: StatisticOperations;
|
|
12
|
+
}[];
|
|
13
|
+
updateScaleDomain: (string: unknown[]) => void;
|
|
14
|
+
registerMarkAttributeScale: (spec: IVisualScale, seriesId: number) => IBaseScale;
|
|
15
|
+
registerModelScale: (spec: IVisualSpecScale<unknown, unknown>) => void;
|
|
16
|
+
removeModelScale: (filter: (spec: IVisualSpecScale<unknown, unknown>) => boolean) => void;
|
|
17
|
+
updateSpec: (spec: IChartSpec['scales']) => IUpdateSpecResult;
|
|
18
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DirectionType } from '../../typings';
|
|
2
|
+
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
3
|
+
export interface IAreaAnimationParams {
|
|
4
|
+
direction: DirectionType;
|
|
5
|
+
}
|
|
6
|
+
export type AreaAppearPreset = 'clipIn' | 'fadeIn' | 'grow';
|
|
7
|
+
export declare function areaPresetAnimation(params: IAreaAnimationParams, preset: AreaAppearPreset | boolean): IAnimationTypeConfig;
|
|
8
|
+
export declare const registerAreaAnimation: () => void;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { DataView } from '@visactor/vdataset';
|
|
2
|
+
import { LineLikeSeriesMixin } from '../mixin/line-mixin';
|
|
3
|
+
import type { IAreaMark } from '../../mark/area';
|
|
4
|
+
import { CartesianSeries } from '../cartesian/cartesian';
|
|
5
|
+
import type { Maybe, Datum } from '../../typings';
|
|
6
|
+
import type { SeriesMarkMap } from '../interface';
|
|
7
|
+
import { SeriesTypeEnum } from '../interface/type';
|
|
8
|
+
import type { IAreaSeriesSpec, IAreaSeriesTheme } from './interface';
|
|
9
|
+
import type { IMark } from '../../mark/interface';
|
|
10
|
+
export interface AreaSeries<T extends IAreaSeriesSpec = IAreaSeriesSpec> extends Pick<LineLikeSeriesMixin, 'initLineMark' | 'initSymbolMark' | 'initLabelMarkStyle' | 'initLineMarkStyle' | 'initSymbolMarkStyle' | 'encodeDefined' | '_lineMark' | '_symbolMark' | 'addSamplingCompile' | 'addOverlapCompile' | 'reCompileSampling'>, CartesianSeries<T> {
|
|
11
|
+
}
|
|
12
|
+
export declare class AreaSeries<T extends IAreaSeriesSpec = IAreaSeriesSpec> extends CartesianSeries<T> {
|
|
13
|
+
static readonly type: string;
|
|
14
|
+
type: SeriesTypeEnum;
|
|
15
|
+
static readonly mark: SeriesMarkMap;
|
|
16
|
+
protected _theme: Maybe<IAreaSeriesTheme>;
|
|
17
|
+
protected _areaMark: IAreaMark;
|
|
18
|
+
protected _supportStack: boolean;
|
|
19
|
+
protected _sortDataByAxis: boolean;
|
|
20
|
+
setAttrFromSpec(): void;
|
|
21
|
+
initMark(): void;
|
|
22
|
+
initMarkStyle(): void;
|
|
23
|
+
initAnimation(): void;
|
|
24
|
+
protected initTooltip(): void;
|
|
25
|
+
viewDataStatisticsUpdate(d: DataView): void;
|
|
26
|
+
compile(): void;
|
|
27
|
+
getDefaultShapeType(): string;
|
|
28
|
+
getActiveMarks(): IMark[];
|
|
29
|
+
onLayoutEnd(ctx: any): void;
|
|
30
|
+
getSeriesStyle(datum: Datum): (attribute: string) => any;
|
|
31
|
+
}
|
|
32
|
+
export declare const registerAreaSeries: () => void;
|