@visactor/vchart-types 0.16.17-alpha.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 +110 -0
- package/types/compile/mark/index.d.ts +3 -0
- package/types/compile/mark/interface.d.ts +154 -0
- package/types/compile/mark/mark-data.d.ts +9 -0
- package/types/compile/mark/mark-state-manager.d.ts +26 -0
- package/types/compile/mark/util.d.ts +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 +115 -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 +23 -0
- package/types/component/tooltip/handler/dom/model/style-constants.d.ts +8 -0
- package/types/component/tooltip/handler/dom/model/text-model.d.ts +5 -0
- package/types/component/tooltip/handler/dom/model/title-model.d.ts +15 -0
- package/types/component/tooltip/handler/dom/model/tooltip-model.d.ts +21 -0
- package/types/component/tooltip/handler/dom/util.d.ts +6 -0
- package/types/component/tooltip/handler/index.d.ts +2 -0
- package/types/component/tooltip/handler/interface/index.d.ts +1 -0
- package/types/component/tooltip/handler/interface/style.d.ts +8 -0
- package/types/component/tooltip/handler/utils/attribute.d.ts +9 -0
- package/types/component/tooltip/handler/utils/common.d.ts +18 -0
- package/types/component/tooltip/handler/utils/compose.d.ts +5 -0
- package/types/component/tooltip/handler/utils/get-spec.d.ts +5 -0
- package/types/component/tooltip/handler/utils/index.d.ts +6 -0
- package/types/component/tooltip/handler/utils/pattern.d.ts +4 -0
- package/types/component/tooltip/handler/utils/position.d.ts +7 -0
- package/types/component/tooltip/index.d.ts +2 -0
- package/types/component/tooltip/interface/common.d.ts +24 -0
- package/types/component/tooltip/interface/event.d.ts +8 -0
- package/types/component/tooltip/interface/index.d.ts +3 -0
- package/types/component/tooltip/interface/spec.d.ts +29 -0
- package/types/component/tooltip/interface/theme.d.ts +49 -0
- package/types/component/tooltip/processor/base.d.ts +18 -0
- package/types/component/tooltip/processor/dimension-tooltip.d.ts +10 -0
- package/types/component/tooltip/processor/index.d.ts +5 -0
- package/types/component/tooltip/processor/interface.d.ts +16 -0
- package/types/component/tooltip/processor/mark-tooltip.d.ts +10 -0
- package/types/component/tooltip/processor/util.d.ts +4 -0
- package/types/component/tooltip/tooltip.d.ts +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 +150 -0
- package/types/data/initialize.d.ts +21 -0
- package/types/data/parser/array.d.ts +2 -0
- package/types/data/parser/scale.d.ts +2 -0
- package/types/data/register.d.ts +3 -0
- package/types/data/transforms/add-property.d.ts +12 -0
- package/types/data/transforms/aggregation.d.ts +33 -0
- package/types/data/transforms/box-plot.d.ts +5 -0
- package/types/data/transforms/circle-packing.d.ts +7 -0
- package/types/data/transforms/copy-data-view.d.ts +5 -0
- package/types/data/transforms/correlation-center.d.ts +4 -0
- package/types/data/transforms/correlation.d.ts +17 -0
- package/types/data/transforms/data-key.d.ts +20 -0
- package/types/data/transforms/dimension-data.d.ts +10 -0
- package/types/data/transforms/dimension-statistics.d.ts +24 -0
- package/types/data/transforms/drill.d.ts +14 -0
- package/types/data/transforms/flatten.d.ts +9 -0
- package/types/data/transforms/funnel.d.ts +51 -0
- package/types/data/transforms/hierarchy-dimension-statistics.d.ts +3 -0
- package/types/data/transforms/invalid-travel.d.ts +8 -0
- package/types/data/transforms/legend-data/continuous/continuous.d.ts +4 -0
- package/types/data/transforms/legend-data/continuous/index.d.ts +2 -0
- package/types/data/transforms/legend-data/continuous/interface.d.ts +13 -0
- package/types/data/transforms/legend-data/discrete/discrete.d.ts +4 -0
- package/types/data/transforms/legend-data/discrete/index.d.ts +2 -0
- package/types/data/transforms/legend-data/discrete/interface.d.ts +15 -0
- package/types/data/transforms/link-dot-info.d.ts +13 -0
- package/types/data/transforms/lookup.d.ts +12 -0
- package/types/data/transforms/map.d.ts +7 -0
- package/types/data/transforms/obj-flat.d.ts +2 -0
- package/types/data/transforms/pie.d.ts +17 -0
- package/types/data/transforms/regression.d.ts +6 -0
- package/types/data/transforms/sankey-links.d.ts +2 -0
- package/types/data/transforms/sankey-nodes.d.ts +2 -0
- package/types/data/transforms/sankey.d.ts +19 -0
- package/types/data/transforms/stack-split.d.ts +6 -0
- package/types/data/transforms/sunburst.d.ts +7 -0
- package/types/data/transforms/treemap.d.ts +11 -0
- package/types/data/transforms/waterfall.d.ts +25 -0
- package/types/env/env.d.ts +7 -0
- package/types/env/index.d.ts +1 -0
- package/types/event/bubble.d.ts +15 -0
- package/types/event/event-dispatcher.d.ts +27 -0
- package/types/event/event.d.ts +18 -0
- package/types/event/events/dimension/base.d.ts +20 -0
- package/types/event/events/dimension/dimension-click.d.ts +7 -0
- package/types/event/events/dimension/dimension-hover.d.ts +9 -0
- package/types/event/events/dimension/index.d.ts +3 -0
- package/types/event/events/dimension/interface.d.ts +22 -0
- package/types/event/events/dimension/util/cartesian.d.ts +8 -0
- package/types/event/events/dimension/util/common.d.ts +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 +67 -0
- package/types/series/sankey/tooltip-helper.d.ts +7 -0
- package/types/series/scatter/animation.d.ts +8 -0
- package/types/series/scatter/constant.d.ts +2 -0
- package/types/series/scatter/interface.d.ts +24 -0
- package/types/series/scatter/scatter.d.ts +37 -0
- package/types/series/sunburst/animation/enter.d.ts +3 -0
- package/types/series/sunburst/animation/exit.d.ts +3 -0
- package/types/series/sunburst/animation/index.d.ts +6 -0
- package/types/series/sunburst/animation/interface.d.ts +12 -0
- package/types/series/sunburst/animation/preset.d.ts +3 -0
- package/types/series/sunburst/animation/utils.d.ts +3 -0
- package/types/series/sunburst/constant.d.ts +2 -0
- package/types/series/sunburst/interface.d.ts +41 -0
- package/types/series/sunburst/sunburst.d.ts +60 -0
- package/types/series/sunburst/tooltip-helper.d.ts +5 -0
- package/types/series/treemap/animation.d.ts +5 -0
- package/types/series/treemap/constant.d.ts +2 -0
- package/types/series/treemap/interface.d.ts +41 -0
- package/types/series/treemap/tooltip-helper.d.ts +5 -0
- package/types/series/treemap/treemap.d.ts +58 -0
- package/types/series/util/label-mark.d.ts +4 -0
- package/types/series/util/spec.d.ts +2 -0
- package/types/series/util/stack.d.ts +9 -0
- package/types/series/util/utils.d.ts +5 -0
- package/types/series/waterfall/animation.d.ts +5 -0
- package/types/series/waterfall/constant.d.ts +2 -0
- package/types/series/waterfall/interface.d.ts +60 -0
- package/types/series/waterfall/waterfall.d.ts +40 -0
- package/types/series/word-cloud/animation.d.ts +14 -0
- package/types/series/word-cloud/base.d.ts +62 -0
- package/types/series/word-cloud/config.d.ts +16 -0
- package/types/series/word-cloud/constant.d.ts +2 -0
- package/types/series/word-cloud/interface.d.ts +120 -0
- package/types/series/word-cloud/word-cloud-3d.d.ts +13 -0
- package/types/series/word-cloud/word-cloud.d.ts +9 -0
- package/types/theme/builtin/common/component/axis/band-axis.d.ts +2 -0
- package/types/theme/builtin/common/component/axis/cartesian-axis.d.ts +3 -0
- package/types/theme/builtin/common/component/axis/common-axis.d.ts +2 -0
- package/types/theme/builtin/common/component/axis/linear-axis.d.ts +2 -0
- package/types/theme/builtin/common/component/axis/polar-axis.d.ts +3 -0
- package/types/theme/builtin/common/component/brush.d.ts +2 -0
- package/types/theme/builtin/common/component/crosshair.d.ts +2 -0
- package/types/theme/builtin/common/component/data-zoom.d.ts +2 -0
- package/types/theme/builtin/common/component/index.d.ts +2 -0
- package/types/theme/builtin/common/component/indicator.d.ts +2 -0
- package/types/theme/builtin/common/component/legend/color-legend.d.ts +2 -0
- package/types/theme/builtin/common/component/legend/continuous.d.ts +2 -0
- package/types/theme/builtin/common/component/legend/discrete-legend.d.ts +2 -0
- package/types/theme/builtin/common/component/legend/size-legend.d.ts +2 -0
- package/types/theme/builtin/common/component/map-label.d.ts +2 -0
- package/types/theme/builtin/common/component/mark-area.d.ts +2 -0
- package/types/theme/builtin/common/component/mark-line.d.ts +2 -0
- package/types/theme/builtin/common/component/mark-point.d.ts +2 -0
- package/types/theme/builtin/common/component/player.d.ts +2 -0
- package/types/theme/builtin/common/component/poptip.d.ts +2 -0
- package/types/theme/builtin/common/component/scroll-bar.d.ts +2 -0
- package/types/theme/builtin/common/component/title.d.ts +2 -0
- package/types/theme/builtin/common/component/tooltip.d.ts +2 -0
- package/types/theme/builtin/common/component/total-label.d.ts +2 -0
- package/types/theme/builtin/common/constants.d.ts +2 -0
- package/types/theme/builtin/common/legacy/index.d.ts +1 -0
- package/types/theme/builtin/common/legacy/legend/color-legend.d.ts +2 -0
- package/types/theme/builtin/common/legacy/legend/continuous.d.ts +2 -0
- package/types/theme/builtin/common/legacy/legend/index.d.ts +2 -0
- package/types/theme/builtin/common/legacy/legend/size-legend.d.ts +2 -0
- package/types/theme/builtin/common/mark.d.ts +3 -0
- package/types/theme/builtin/common/series/area.d.ts +2 -0
- package/types/theme/builtin/common/series/bar.d.ts +2 -0
- package/types/theme/builtin/common/series/bar3d.d.ts +2 -0
- package/types/theme/builtin/common/series/box-plot.d.ts +2 -0
- package/types/theme/builtin/common/series/circle-packing.d.ts +2 -0
- package/types/theme/builtin/common/series/circular-progress.d.ts +2 -0
- package/types/theme/builtin/common/series/correlation.d.ts +2 -0
- package/types/theme/builtin/common/series/dot.d.ts +2 -0
- package/types/theme/builtin/common/series/funnel.d.ts +2 -0
- package/types/theme/builtin/common/series/funnel3d.d.ts +2 -0
- package/types/theme/builtin/common/series/gauge-pointer.d.ts +2 -0
- package/types/theme/builtin/common/series/gauge.d.ts +2 -0
- package/types/theme/builtin/common/series/heatmap.d.ts +2 -0
- package/types/theme/builtin/common/series/index.d.ts +2 -0
- package/types/theme/builtin/common/series/line.d.ts +2 -0
- package/types/theme/builtin/common/series/linear-progress.d.ts +2 -0
- package/types/theme/builtin/common/series/link.d.ts +2 -0
- package/types/theme/builtin/common/series/map.d.ts +2 -0
- package/types/theme/builtin/common/series/pie.d.ts +2 -0
- package/types/theme/builtin/common/series/pie3d.d.ts +2 -0
- package/types/theme/builtin/common/series/radar.d.ts +2 -0
- package/types/theme/builtin/common/series/rangeColumn.d.ts +2 -0
- package/types/theme/builtin/common/series/rose.d.ts +2 -0
- package/types/theme/builtin/common/series/sankey.d.ts +2 -0
- package/types/theme/builtin/common/series/scatter.d.ts +2 -0
- package/types/theme/builtin/common/series/sunburst.d.ts +2 -0
- package/types/theme/builtin/common/series/treemap.d.ts +2 -0
- package/types/theme/builtin/common/series/waterfall.d.ts +2 -0
- package/types/theme/builtin/common/series/word-cloud.d.ts +2 -0
- package/types/theme/builtin/common/series/word-cloud3d.d.ts +2 -0
- package/types/theme/builtin/dark/color-scheme.d.ts +2 -0
- package/types/theme/builtin/dark/index.d.ts +2 -0
- package/types/theme/builtin/index.d.ts +15 -0
- package/types/theme/builtin/light/color-scheme.d.ts +2 -0
- package/types/theme/builtin/light/index.d.ts +2 -0
- package/types/theme/color-scheme/builtin/default.d.ts +2 -0
- package/types/theme/color-scheme/builtin/index.d.ts +2 -0
- package/types/theme/color-scheme/builtin/interface.d.ts +21 -0
- package/types/theme/color-scheme/index.d.ts +3 -0
- package/types/theme/color-scheme/interface.d.ts +30 -0
- package/types/theme/color-scheme/legacy.d.ts +5 -0
- package/types/theme/color-scheme/util.d.ts +10 -0
- package/types/theme/index.d.ts +4 -0
- package/types/theme/interface.d.ts +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,11 @@
|
|
|
1
|
+
import { BaseChart } from '../base-chart';
|
|
2
|
+
import type { ISankeyChartSpec } from './interface';
|
|
3
|
+
export declare class SankeyChart extends BaseChart {
|
|
4
|
+
static readonly type: string;
|
|
5
|
+
static readonly view: string;
|
|
6
|
+
readonly type: string;
|
|
7
|
+
readonly seriesType: string;
|
|
8
|
+
protected getDefaultSeriesSpec(spec: ISankeyChartSpec): any;
|
|
9
|
+
transformSpec(spec: any): void;
|
|
10
|
+
}
|
|
11
|
+
export declare const registerSankeyChart: () => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IScatterSeriesSpec } from '../../series/scatter/interface';
|
|
2
|
+
import type { IChartExtendsSeriesSpec } from '../../typings/spec';
|
|
3
|
+
import type { ICartesianChartSpec } from '../cartesian/interface';
|
|
4
|
+
export interface IScatterChartSpec extends ICartesianChartSpec, IChartExtendsSeriesSpec<IScatterSeriesSpec> {
|
|
5
|
+
type: 'scatter';
|
|
6
|
+
series?: IScatterSeriesSpec[];
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CartesianChart } from '../cartesian/cartesian';
|
|
2
|
+
import type { IScatterChartSpec } from './interface';
|
|
3
|
+
export declare class ScatterChart extends CartesianChart {
|
|
4
|
+
static readonly type: string;
|
|
5
|
+
static readonly view: string;
|
|
6
|
+
readonly type: string;
|
|
7
|
+
readonly seriesType: string;
|
|
8
|
+
protected _canStack: boolean;
|
|
9
|
+
protected _getDefaultSeriesSpec(spec: IScatterChartSpec): any;
|
|
10
|
+
}
|
|
11
|
+
export declare const registerScatterChart: () => void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { IChartSpec, ISeriesSpec } from '../../typings/spec/common';
|
|
2
|
+
import type { ICartesianAxisSpec } from '../../component/axis/cartesian/interface';
|
|
3
|
+
import type { IDataZoomSpec, IScrollBarSpec } from '../../component/data-zoom';
|
|
4
|
+
import type { ICartesianCrosshairSpec } from '../../component/crosshair/interface';
|
|
5
|
+
import type { ILayoutSpec } from '../../layout/interface';
|
|
6
|
+
import type { IRegionSpec } from '../../region/interface';
|
|
7
|
+
import type { IPadding } from '../../typings';
|
|
8
|
+
export interface ISequenceChartSpec extends IChartSpec {
|
|
9
|
+
type: 'sequence';
|
|
10
|
+
appendPadding?: IPadding;
|
|
11
|
+
axes?: ICartesianAxisSpec[];
|
|
12
|
+
dataZooms?: IDataZoomSpec[];
|
|
13
|
+
scrollBars?: IScrollBarSpec[];
|
|
14
|
+
crosshair?: ICartesianCrosshairSpec | ICartesianCrosshairSpec[];
|
|
15
|
+
layout?: ILayoutSpec;
|
|
16
|
+
region?: IRegionSpec[];
|
|
17
|
+
}
|
|
18
|
+
export interface ISequenceSeriesSpec extends ISeriesSpec {
|
|
19
|
+
height?: number;
|
|
20
|
+
padding?: number;
|
|
21
|
+
dataDot?: any;
|
|
22
|
+
dotSeriesIndex?: number;
|
|
23
|
+
dotSeriesSpec?: ISeriesSpec;
|
|
24
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseChart } from '../base-chart';
|
|
2
|
+
import type { ISequenceChartSpec, ISequenceSeriesSpec } from './interface';
|
|
3
|
+
export declare class SequenceChart extends BaseChart {
|
|
4
|
+
static readonly type: string;
|
|
5
|
+
static readonly view: string;
|
|
6
|
+
readonly type: string;
|
|
7
|
+
transformSpec(spec: ISequenceChartSpec): void;
|
|
8
|
+
createSeries(seriesSpec: ISequenceSeriesSpec[]): void;
|
|
9
|
+
addAttrToComponentSpec(componentSpec: any, attr: string, value: any): any;
|
|
10
|
+
private _getSeriesDataLength;
|
|
11
|
+
}
|
|
12
|
+
export declare const registerSequenceChart: () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IRegion } from '../region/interface';
|
|
2
|
+
import type { IChart } from './interface';
|
|
3
|
+
export declare class Stack {
|
|
4
|
+
protected _chart: IChart;
|
|
5
|
+
constructor(chart: IChart);
|
|
6
|
+
init(): void;
|
|
7
|
+
stackAll(): void;
|
|
8
|
+
stackRegion: ({ model }: {
|
|
9
|
+
model: IRegion;
|
|
10
|
+
}) => void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ISunburstSeriesSpec } from '../../series/sunburst/interface';
|
|
2
|
+
import type { IChartExtendsSeriesSpec, IChartSpec } from '../../typings/spec/common';
|
|
3
|
+
export interface ISunburstChartSpec extends IChartSpec, IChartExtendsSeriesSpec<ISunburstSeriesSpec> {
|
|
4
|
+
type: 'sunburst';
|
|
5
|
+
series?: ISunburstSeriesSpec[];
|
|
6
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ISunburstSeriesSpec } from '../../series/sunburst/interface';
|
|
2
|
+
import { BaseChart } from '../base-chart';
|
|
3
|
+
import type { ISunburstChartSpec } from './interface';
|
|
4
|
+
export declare class SunburstChart extends BaseChart {
|
|
5
|
+
static readonly type: string;
|
|
6
|
+
static readonly view: string;
|
|
7
|
+
readonly type: string;
|
|
8
|
+
readonly seriesType: string;
|
|
9
|
+
protected getDefaultSeriesSpec(spec: ISunburstChartSpec): ISunburstSeriesSpec;
|
|
10
|
+
transformSpec(spec: ISunburstChartSpec): void;
|
|
11
|
+
}
|
|
12
|
+
export declare const registerSunburstChart: () => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ITreemapSeriesSpec } from '../../series/treemap/interface';
|
|
2
|
+
import type { IChartSpec } from '../../typings/spec/common';
|
|
3
|
+
export interface ITreemapChartSpec extends Omit<IChartSpec, 'data' | 'series'>, ITreemapSeriesSpec {
|
|
4
|
+
type: 'treemap';
|
|
5
|
+
series?: ITreemapSeriesSpec[];
|
|
6
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseChart } from '../base-chart';
|
|
2
|
+
import type { ITreemapChartSpec } from './interface';
|
|
3
|
+
export declare class TreemapChart extends BaseChart {
|
|
4
|
+
static readonly type: string;
|
|
5
|
+
static readonly view: string;
|
|
6
|
+
readonly type: string;
|
|
7
|
+
readonly seriesType: string;
|
|
8
|
+
protected getDefaultSeriesSpec(spec: ITreemapChartSpec): any;
|
|
9
|
+
transformSpec(spec: any): void;
|
|
10
|
+
}
|
|
11
|
+
export declare const registerTreemapChart: () => void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ICartesianChartSpec } from './cartesian/interface';
|
|
2
|
+
import type { IChartOption } from './interface/common';
|
|
3
|
+
import type { IUpdateSpecResult } from '../model/interface';
|
|
4
|
+
export declare function setDefaultCrosshairForCartesianChart(spec: ICartesianChartSpec): void;
|
|
5
|
+
export declare function calculateChartSize(spec: {
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
}, option: Pick<IChartOption, 'canvas' | 'container' | 'mode' | 'modeParams'>): {
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
};
|
|
12
|
+
export declare function mergeUpdateResult(resultA: IUpdateSpecResult, resultB: IUpdateSpecResult): IUpdateSpecResult;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IWaterfallSeriesSpec } from '../../series/waterfall/interface';
|
|
2
|
+
import type { IChartExtendsSeriesSpec } from '../../typings/spec';
|
|
3
|
+
import type { ICartesianChartSpec } from '../cartesian/interface';
|
|
4
|
+
export interface IWaterfallChartSpec extends ICartesianChartSpec, IChartExtendsSeriesSpec<IWaterfallSeriesSpec> {
|
|
5
|
+
type: 'waterfall';
|
|
6
|
+
series?: IWaterfallSeriesSpec[];
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BarChart } from '../bar';
|
|
2
|
+
import type { IWaterfallChartSpec } from './interface';
|
|
3
|
+
export declare class WaterfallChart extends BarChart {
|
|
4
|
+
static readonly type: string;
|
|
5
|
+
static readonly view: string;
|
|
6
|
+
readonly type: string;
|
|
7
|
+
readonly seriesType: string;
|
|
8
|
+
transformSpec(spec: IWaterfallChartSpec): void;
|
|
9
|
+
protected _getDefaultSeriesSpec(spec: IWaterfallChartSpec): any;
|
|
10
|
+
}
|
|
11
|
+
export declare const registerWaterfallChart: () => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IWordCloud3dSeriesSpec, IWordCloudSeriesSpec } from '../../series/word-cloud/interface';
|
|
2
|
+
import type { IChartExtendsSeriesSpec, IChartSpec } from '../../typings/spec/common';
|
|
3
|
+
export interface IWordCloudChartSpec extends IChartSpec, IChartExtendsSeriesSpec<IWordCloudSeriesSpec> {
|
|
4
|
+
type: 'wordCloud';
|
|
5
|
+
series?: IWordCloudSeriesSpec[];
|
|
6
|
+
}
|
|
7
|
+
export interface IWordCloud3dChartSpec extends IChartSpec, IChartExtendsSeriesSpec<IWordCloud3dSeriesSpec> {
|
|
8
|
+
type: 'wordCloud3d';
|
|
9
|
+
series?: IWordCloud3dSeriesSpec[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IWordCloud3dChartSpec } from './interface';
|
|
2
|
+
import { BaseWordCloudChart } from './base';
|
|
3
|
+
export declare class WordCloud3dChart extends BaseWordCloudChart {
|
|
4
|
+
static readonly type: string;
|
|
5
|
+
static readonly view: string;
|
|
6
|
+
readonly type: string;
|
|
7
|
+
readonly seriesType: string;
|
|
8
|
+
protected _getDefaultSeriesSpec(spec: IWordCloud3dChartSpec): any;
|
|
9
|
+
}
|
|
10
|
+
export declare const registerWordCloud3dChart: () => void;
|
|
11
|
+
export declare const registerWordCloudShape3dChart: () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IWordCloudChartSpec } from './interface';
|
|
2
|
+
import { BaseWordCloudChart } from './base';
|
|
3
|
+
export declare class WordCloudChart extends BaseWordCloudChart {
|
|
4
|
+
static readonly type: string;
|
|
5
|
+
static readonly view: string;
|
|
6
|
+
readonly type: string;
|
|
7
|
+
readonly seriesType: string;
|
|
8
|
+
protected _getDefaultSeriesSpec(spec: IWordCloudChartSpec): any;
|
|
9
|
+
}
|
|
10
|
+
export declare const registerWordCloudChart: () => void;
|
|
11
|
+
export declare const registerWordCloudShapeChart: () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Compiler } from './compiler';
|
|
2
|
+
import type { ICompilableInitOption, ICompilable } from './interface';
|
|
3
|
+
export declare abstract class CompilableBase implements ICompilable {
|
|
4
|
+
protected _option: ICompilableInitOption;
|
|
5
|
+
getOption(): ICompilableInitOption;
|
|
6
|
+
getCompiler: () => Compiler;
|
|
7
|
+
constructor(option: ICompilableInitOption);
|
|
8
|
+
getVGrammarView(): import("@visactor/vgrammar-core").IView;
|
|
9
|
+
abstract compile(): void;
|
|
10
|
+
release(): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { IView } from '@visactor/vgrammar-core';
|
|
2
|
+
import type { CompilerListenerParameters, CompilerModel, IGrammarItem, IRenderContainer, IRenderOption } from './interface';
|
|
3
|
+
import type { IBoundsLike } from '@visactor/vutils';
|
|
4
|
+
import type { EventSourceType } from '../event/interface';
|
|
5
|
+
import type { IChart } from '../chart/interface';
|
|
6
|
+
import type { VChart } from '../core/vchart';
|
|
7
|
+
import type { IColor, Stage } from '@visactor/vrender-core';
|
|
8
|
+
import type { IMorphConfig } from '../animation/spec';
|
|
9
|
+
type EventListener = {
|
|
10
|
+
type: string;
|
|
11
|
+
callback: (...args: any[]) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare class Compiler {
|
|
14
|
+
protected _view: IView;
|
|
15
|
+
getVGrammarView(): IView;
|
|
16
|
+
protected _viewListeners: Map<(...args: any[]) => any, EventListener>;
|
|
17
|
+
protected _windowListeners: Map<(...args: any[]) => any, EventListener>;
|
|
18
|
+
protected _canvasListeners: Map<(...args: any[]) => any, EventListener>;
|
|
19
|
+
isInited: boolean;
|
|
20
|
+
isReleased: boolean;
|
|
21
|
+
protected _width: number;
|
|
22
|
+
protected _height: number;
|
|
23
|
+
protected _container: IRenderContainer;
|
|
24
|
+
protected _option: IRenderOption;
|
|
25
|
+
protected _model: CompilerModel;
|
|
26
|
+
getModel(): CompilerModel;
|
|
27
|
+
private _compileChart;
|
|
28
|
+
constructor(container: IRenderContainer, option: IRenderOption);
|
|
29
|
+
getRenderer(): import("@visactor/vgrammar-core").IRenderer;
|
|
30
|
+
getCanvas(): HTMLCanvasElement | undefined;
|
|
31
|
+
getStage(): Stage | undefined;
|
|
32
|
+
initView(): void;
|
|
33
|
+
private _setCanvasStyle;
|
|
34
|
+
compile(ctx: {
|
|
35
|
+
chart: IChart;
|
|
36
|
+
vChart: VChart;
|
|
37
|
+
}, option: any): void;
|
|
38
|
+
clear(ctx: {
|
|
39
|
+
chart: IChart;
|
|
40
|
+
vChart: VChart;
|
|
41
|
+
}, removeGraphicItems?: boolean): void;
|
|
42
|
+
renderAsync(morphConfig?: IMorphConfig): Promise<any>;
|
|
43
|
+
renderSync(morphConfig?: IMorphConfig): void;
|
|
44
|
+
updateViewBox(viewBox: IBoundsLike, reRender?: boolean): void;
|
|
45
|
+
resize(width: number, height: number, reRender?: boolean): this | Promise<any>;
|
|
46
|
+
setBackground(color: IColor): void;
|
|
47
|
+
setSize(width: number, height: number): void;
|
|
48
|
+
setViewBox(viewBox: IBoundsLike, reRender?: boolean): void;
|
|
49
|
+
addEventListener(source: EventSourceType, type: string, callback: (params: CompilerListenerParameters) => void): void;
|
|
50
|
+
removeEventListener(source: EventSourceType, type: string, callback: (params: CompilerListenerParameters) => void): void;
|
|
51
|
+
protected releaseEvent(): void;
|
|
52
|
+
release(): void;
|
|
53
|
+
releaseGrammar(removeGraphicItems?: boolean): void;
|
|
54
|
+
protected _releaseModel(): void;
|
|
55
|
+
addGrammarItem(grammarItem: IGrammarItem): void;
|
|
56
|
+
removeGrammarItem(grammarItem: IGrammarItem, reserveVGrammarModel?: boolean): void;
|
|
57
|
+
updateDepend(items?: IGrammarItem[]): boolean;
|
|
58
|
+
private _getGlobalThis;
|
|
59
|
+
}
|
|
60
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { DataView } from '@visactor/vdataset';
|
|
2
|
+
import type { IData as IVGrammarData } from '@visactor/vgrammar-core';
|
|
3
|
+
import { GrammarItem } from '../grammar-item';
|
|
4
|
+
import type { Maybe } from '../../typings';
|
|
5
|
+
import type { ICompilableData } from './interface';
|
|
6
|
+
import type { GrammarItemInitOption } from '../interface';
|
|
7
|
+
import { GrammarType } from '../interface/compilable-item';
|
|
8
|
+
export declare class CompilableData extends GrammarItem implements ICompilableData {
|
|
9
|
+
readonly grammarType = GrammarType.data;
|
|
10
|
+
protected _product: Maybe<IVGrammarData>;
|
|
11
|
+
getProduct: () => Maybe<IVGrammarData>;
|
|
12
|
+
protected _data: Maybe<DataView>;
|
|
13
|
+
getDataView(): DataView;
|
|
14
|
+
setDataView(d?: DataView): void;
|
|
15
|
+
getLatestData(): any;
|
|
16
|
+
constructor(option: GrammarItemInitOption, dataView?: DataView);
|
|
17
|
+
release(): void;
|
|
18
|
+
updateData(noRender?: boolean): Promise<any>;
|
|
19
|
+
protected _compileProduct(): void;
|
|
20
|
+
protected _initProduct(data: any[]): void;
|
|
21
|
+
generateProductId(): string;
|
|
22
|
+
protected _lookupGrammar(id: string): IVGrammarData;
|
|
23
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DataView } from '@visactor/vdataset';
|
|
2
|
+
import type { IGrammarItem } from '../interface';
|
|
3
|
+
export interface ICompilableData extends IGrammarItem {
|
|
4
|
+
getDataView: () => DataView;
|
|
5
|
+
setDataView: (d?: DataView) => void;
|
|
6
|
+
getLatestData: () => any[];
|
|
7
|
+
updateData: (noRender?: boolean) => Promise<any>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { IGrammarBase } from '@visactor/vgrammar-core';
|
|
2
|
+
import type { Maybe } from '../typings';
|
|
3
|
+
import { CompilableBase } from './compilable-base';
|
|
4
|
+
import type { GrammarItemCompileOption, GrammarType, IGrammarItem, GrammarItemInitOption } from './interface';
|
|
5
|
+
export declare abstract class GrammarItem extends CompilableBase implements IGrammarItem {
|
|
6
|
+
grammarType: GrammarType;
|
|
7
|
+
protected _option: GrammarItemInitOption;
|
|
8
|
+
readonly id: number;
|
|
9
|
+
protected _product: Maybe<IGrammarBase>;
|
|
10
|
+
getProduct(): IGrammarBase;
|
|
11
|
+
protected abstract _lookupGrammar(id: string): IGrammarBase;
|
|
12
|
+
protected _compiledProductId: string;
|
|
13
|
+
abstract generateProductId(): string;
|
|
14
|
+
getProductId(): string;
|
|
15
|
+
protected _depend: IGrammarItem[];
|
|
16
|
+
getDepend(): IGrammarItem[];
|
|
17
|
+
setDepend(...depend: IGrammarItem[]): void;
|
|
18
|
+
compile(option?: GrammarItemCompileOption): void;
|
|
19
|
+
protected abstract _compileProduct(option?: GrammarItemCompileOption): void;
|
|
20
|
+
protected _afterCompile(option?: GrammarItemCompileOption): void;
|
|
21
|
+
updateDepend(): boolean;
|
|
22
|
+
release(): void;
|
|
23
|
+
removeProduct(reserveVGrammarModel?: boolean): void;
|
|
24
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { IGroupMark, IGrammarBase, IView } from '@visactor/vgrammar-core';
|
|
2
|
+
import type { Compiler } from '../compiler';
|
|
3
|
+
import type { Maybe, IPerformanceHook } from '../../typings';
|
|
4
|
+
export interface ICompilable {
|
|
5
|
+
getCompiler: () => Compiler;
|
|
6
|
+
getVGrammarView: () => IView;
|
|
7
|
+
compile: () => void;
|
|
8
|
+
compileMarks?: (group?: string | IGroupMark) => void;
|
|
9
|
+
compileData?: () => void;
|
|
10
|
+
compileSignal?: () => void;
|
|
11
|
+
clear?: () => void;
|
|
12
|
+
afterCompile?: () => void;
|
|
13
|
+
release: () => void;
|
|
14
|
+
}
|
|
15
|
+
export interface ICompilableInitOption {
|
|
16
|
+
getCompiler: () => Compiler;
|
|
17
|
+
performanceHook?: IPerformanceHook;
|
|
18
|
+
}
|
|
19
|
+
export declare enum GrammarType {
|
|
20
|
+
data = "data",
|
|
21
|
+
signal = "signal",
|
|
22
|
+
mark = "mark"
|
|
23
|
+
}
|
|
24
|
+
export interface IGrammarItem extends ICompilable {
|
|
25
|
+
id: number;
|
|
26
|
+
grammarType: GrammarType;
|
|
27
|
+
getProduct: () => Maybe<IGrammarBase>;
|
|
28
|
+
generateProductId: () => string;
|
|
29
|
+
getProductId: () => string;
|
|
30
|
+
removeProduct: (reserveVGrammarModel?: boolean) => void;
|
|
31
|
+
getDepend: () => IGrammarItem[];
|
|
32
|
+
setDepend: (...depend: IGrammarItem[]) => void;
|
|
33
|
+
updateDepend: () => boolean;
|
|
34
|
+
}
|
|
35
|
+
export type GrammarItemInitOption = ICompilableInitOption;
|
|
36
|
+
export type GrammarItemCompileOption = Record<string, any>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { IColor, IStageParams, IStage, ILayer } from '@visactor/vrender-core';
|
|
2
|
+
import type { EventSourceType, EventType } from '../../event/interface';
|
|
3
|
+
import type { RenderMode } from '../../typings/spec/common';
|
|
4
|
+
import type { IBoundsLike } from '@visactor/vutils';
|
|
5
|
+
import type { GrammarType, IGrammarItem } from './compilable-item';
|
|
6
|
+
import type { StringOrNumber } from '../../typings';
|
|
7
|
+
export interface IRenderContainer {
|
|
8
|
+
dom?: HTMLElement | 'none';
|
|
9
|
+
canvas?: HTMLCanvasElement | string;
|
|
10
|
+
}
|
|
11
|
+
export interface IRenderOption {
|
|
12
|
+
mode?: RenderMode;
|
|
13
|
+
modeParams?: {
|
|
14
|
+
tooltipCanvasId?: StringOrNumber;
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
} | unknown;
|
|
17
|
+
dpr?: number;
|
|
18
|
+
interactive?: boolean;
|
|
19
|
+
viewBox?: IBoundsLike;
|
|
20
|
+
canvasControled?: boolean;
|
|
21
|
+
stage?: IStage;
|
|
22
|
+
layer?: ILayer;
|
|
23
|
+
beforeRender?: IStageParams['beforeRender'];
|
|
24
|
+
afterRender?: IStageParams['afterRender'];
|
|
25
|
+
background?: IColor;
|
|
26
|
+
logLevel?: number;
|
|
27
|
+
onError?: (...args: any[]) => void;
|
|
28
|
+
disableDirtyBounds?: boolean;
|
|
29
|
+
enableView3dTransform?: boolean;
|
|
30
|
+
pluginList?: string[];
|
|
31
|
+
}
|
|
32
|
+
export type CompilerListenerParameters = {
|
|
33
|
+
type: EventType;
|
|
34
|
+
event: Event;
|
|
35
|
+
source: EventSourceType;
|
|
36
|
+
item: any | null;
|
|
37
|
+
datum: any | null;
|
|
38
|
+
markId: number | null;
|
|
39
|
+
modelId: number | null;
|
|
40
|
+
markUserId: StringOrNumber | null;
|
|
41
|
+
modelUserId: StringOrNumber | null;
|
|
42
|
+
};
|
|
43
|
+
export type CompilerModel = Record<GrammarType, IProductMap<IGrammarItem>>;
|
|
44
|
+
export interface IProductMap<T extends IGrammarItem> {
|
|
45
|
+
[productId: string]: IGrammarItemMap<T>;
|
|
46
|
+
}
|
|
47
|
+
export interface IGrammarItemMap<T extends IGrammarItem> {
|
|
48
|
+
[id: number]: T;
|
|
49
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import type { IGroupMark, IMark, MarkAnimationSpec, MarkFunctionCallback, Nil, TransformSpec } from '@visactor/vgrammar-core';
|
|
2
|
+
import type { DataView } from '@visactor/vdataset';
|
|
3
|
+
import { GrammarItem } from '../grammar-item';
|
|
4
|
+
import type { Maybe, StringOrNumber } from '../../typings';
|
|
5
|
+
import type { IMarkProgressiveConfig, IMarkStateStyle, MarkType } from '../../mark/interface';
|
|
6
|
+
import type { IModel } from '../../model/interface';
|
|
7
|
+
import { MarkStateManager } from './mark-state-manager';
|
|
8
|
+
import type { ICompilableMark, IMarkDataInitOption, ICompilableMarkOption, StateValueType, IMarkCompileOption, IAttributeOpt } from './interface';
|
|
9
|
+
import { MarkData } from './mark-data';
|
|
10
|
+
import { GrammarType } from '../interface/compilable-item';
|
|
11
|
+
import type { IEvent } from '../../event/interface';
|
|
12
|
+
import type { ILabelSpec } from '../../component/label';
|
|
13
|
+
export declare abstract class CompilableMark extends GrammarItem implements ICompilableMark {
|
|
14
|
+
readonly grammarType = GrammarType.mark;
|
|
15
|
+
readonly type: MarkType;
|
|
16
|
+
readonly name: string;
|
|
17
|
+
readonly key: ICompilableMark['key'];
|
|
18
|
+
protected _support3d?: boolean;
|
|
19
|
+
getSupport3d(): boolean;
|
|
20
|
+
setSupport3d(support3d: boolean): void;
|
|
21
|
+
protected _facet?: string;
|
|
22
|
+
getFacet(): string;
|
|
23
|
+
setFacet(facet: string): void;
|
|
24
|
+
protected _interactive: boolean;
|
|
25
|
+
getInteractive(): boolean;
|
|
26
|
+
setInteractive(interactive: boolean): void;
|
|
27
|
+
protected _zIndex: number;
|
|
28
|
+
getZIndex(): number;
|
|
29
|
+
setZIndex(zIndex: number): void;
|
|
30
|
+
protected _visible: boolean;
|
|
31
|
+
getVisible(): boolean;
|
|
32
|
+
setVisible(visible: boolean): void;
|
|
33
|
+
protected _userId: StringOrNumber;
|
|
34
|
+
getUserId(): StringOrNumber;
|
|
35
|
+
setUserId(userId: StringOrNumber): void;
|
|
36
|
+
readonly model: IModel;
|
|
37
|
+
protected _data: Maybe<MarkData>;
|
|
38
|
+
getDataView(): DataView | undefined;
|
|
39
|
+
setDataView(d?: DataView, productId?: string): void;
|
|
40
|
+
getData(): MarkData;
|
|
41
|
+
setData(d?: MarkData): void;
|
|
42
|
+
stateStyle: IMarkStateStyle<any>;
|
|
43
|
+
state: MarkStateManager;
|
|
44
|
+
protected _unCompileChannel: {
|
|
45
|
+
[key in string]: boolean;
|
|
46
|
+
};
|
|
47
|
+
hasState(state: string): boolean;
|
|
48
|
+
getState(state: string): unknown;
|
|
49
|
+
protected _event: IEvent;
|
|
50
|
+
protected _animationConfig: Partial<MarkAnimationSpec>;
|
|
51
|
+
getAnimationConfig(): Partial<MarkAnimationSpec>;
|
|
52
|
+
setAnimationConfig(config: Partial<MarkAnimationSpec>): void;
|
|
53
|
+
private _skipBeforeLayouted;
|
|
54
|
+
setSkipBeforeLayouted(skip: boolean): void;
|
|
55
|
+
getSkipBeforeLayouted(): boolean;
|
|
56
|
+
protected _morph: boolean;
|
|
57
|
+
getMorph(): boolean;
|
|
58
|
+
setMorph(morph: boolean): void;
|
|
59
|
+
protected _morphKey?: string;
|
|
60
|
+
getMorphKey(): string;
|
|
61
|
+
setMorphKey(morphKey: string): void;
|
|
62
|
+
protected _morphElementKey?: string;
|
|
63
|
+
getMorphElementKey(): string;
|
|
64
|
+
setMorphElementKey(key: string): void;
|
|
65
|
+
protected _groupKey?: string;
|
|
66
|
+
getGroupKey(): string;
|
|
67
|
+
setGroupKey(groupKey: string): void;
|
|
68
|
+
protected _label?: ILabelSpec[];
|
|
69
|
+
getLabelSpec(): ILabelSpec[];
|
|
70
|
+
setLabelSpec(label: ILabelSpec | ILabelSpec[]): void;
|
|
71
|
+
addLabelSpec(label: ILabelSpec): void;
|
|
72
|
+
protected _progressiveConfig: IMarkProgressiveConfig;
|
|
73
|
+
getProgressiveConfig(): IMarkProgressiveConfig;
|
|
74
|
+
setProgressiveConfig(config: IMarkProgressiveConfig): void;
|
|
75
|
+
protected _option: ICompilableMarkOption;
|
|
76
|
+
constructor(option: ICompilableMarkOption, name: string, model: IModel);
|
|
77
|
+
protected _product: Maybe<IMark>;
|
|
78
|
+
getProduct: () => Maybe<IMark>;
|
|
79
|
+
protected _transform: TransformSpec[] | Nil;
|
|
80
|
+
setTransform(transform: TransformSpec[] | Nil): void;
|
|
81
|
+
protected initMarkData(option: IMarkDataInitOption): void;
|
|
82
|
+
protected stateKeyToSignalName(key: string): string;
|
|
83
|
+
getAttribute(key: any, datum: any, state: StateValueType, opt?: IAttributeOpt): void;
|
|
84
|
+
protected _compileProduct(option?: IMarkCompileOption): void;
|
|
85
|
+
protected _initProduct(group?: string | IGroupMark): void;
|
|
86
|
+
generateProductId(): string;
|
|
87
|
+
compileData(): void;
|
|
88
|
+
updateStaticEncode(): void;
|
|
89
|
+
protected _separateStyle(): {
|
|
90
|
+
enterStyles: Record<string, any>;
|
|
91
|
+
updateStyles: Record<string, any>;
|
|
92
|
+
};
|
|
93
|
+
compileEncode(): void;
|
|
94
|
+
compileState(): void;
|
|
95
|
+
compileAnimation(): void;
|
|
96
|
+
compileContext(): void;
|
|
97
|
+
compileSignal(): void;
|
|
98
|
+
protected compileCommonAttributeCallback(key: string, state: string): MarkFunctionCallback<any>;
|
|
99
|
+
protected compileTransform(): void;
|
|
100
|
+
protected _lookupGrammar(id: string): IMark;
|
|
101
|
+
updateState(newState: Record<string, unknown>, noRender?: boolean): Promise<any>;
|
|
102
|
+
updateLayoutState(noRender?: boolean, recursion?: boolean): Promise<void>;
|
|
103
|
+
updateMarkState(key: string): void;
|
|
104
|
+
getMarks(): ICompilableMark[];
|
|
105
|
+
runAnimationByState(state?: string): import("@visactor/vgrammar-core").IAnimateArranger;
|
|
106
|
+
stopAnimationByState(state?: string): import("@visactor/vgrammar-core").IAnimate;
|
|
107
|
+
pauseAnimationByState(state?: string): import("@visactor/vgrammar-core").IAnimate;
|
|
108
|
+
resumeAnimationByState(state?: string): import("@visactor/vgrammar-core").IAnimate;
|
|
109
|
+
release(): void;
|
|
110
|
+
}
|