@visactor/vchart-types 0.16.17-alpha.2
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 +5 -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 +147 -0
- package/types/component/axis/cartesian/axis.d.ts +105 -0
- package/types/component/axis/cartesian/band-axis.d.ts +33 -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 +50 -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 +37 -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 +41 -0
- package/types/component/axis/mixin/linear-axis-mixin.d.ts +56 -0
- package/types/component/axis/polar/axis.d.ts +84 -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 +53 -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 +77 -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 +76 -0
- package/types/component/crosshair/cartesian.d.ts +69 -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 +80 -0
- package/types/component/crosshair/util.d.ts +10 -0
- package/types/component/custom-mark/custom-mark.d.ts +33 -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 +120 -0
- package/types/component/data-zoom/data-zoom/data-zoom.d.ts +66 -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 +31 -0
- package/types/component/data-zoom/util.d.ts +19 -0
- package/types/component/geo/geo-coordinate.d.ts +63 -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 +40 -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 +38 -0
- package/types/component/label/index.d.ts +2 -0
- package/types/component/label/interface.d.ts +37 -0
- package/types/component/label/label.d.ts +45 -0
- package/types/component/label/totalLabel.d.ts +26 -0
- package/types/component/label/util.d.ts +58 -0
- package/types/component/legend/base-legend.d.ts +60 -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 +30 -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 +29 -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 +52 -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 +68 -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 +18 -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 +18 -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 +18 -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 +53 -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 +46 -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 +65 -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 +3 -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/expression-function.d.ts +12 -0
- package/types/core/factory.d.ts +51 -0
- package/types/core/index.d.ts +12 -0
- package/types/core/instance-manager.d.ts +10 -0
- package/types/core/interface.d.ts +96 -0
- package/types/core/util.d.ts +3 -0
- package/types/core/vchart.d.ts +158 -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 +7 -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 +81 -0
- package/types/layout/base-layout.d.ts +33 -0
- package/types/layout/grid-layout/grid-layout.d.ts +50 -0
- package/types/layout/index.d.ts +6 -0
- package/types/layout/interface.d.ts +113 -0
- package/types/layout/layout-item.d.ts +71 -0
- package/types/layout/layout3d/index.d.ts +29 -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 +88 -0
- package/types/model/interface.d.ts +126 -0
- package/types/model/layout-item.d.ts +59 -0
- package/types/model/layout-model.d.ts +41 -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 +60 -0
- package/types/region/region.d.ts +80 -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 +195 -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 +60 -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 +178 -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 +61 -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 +56 -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 +15 -0
- package/types/typings/interpolate.d.ts +5 -0
- package/types/typings/layout.d.ts +23 -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 +266 -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 +5 -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,53 @@
|
|
|
1
|
+
import type { IComponent } from '../../../interface';
|
|
2
|
+
import type { IAggrType, IMarkerPositionsSpec, IDataPointSpec, IMarkerSpec, IMarkerAxisSpec, IDataPos, IDataPosCallback, IMarkerLabelSpec } from '../../interface';
|
|
3
|
+
import type { IRegressType } from '../../mark-area/interface';
|
|
4
|
+
import type { IMarkLineTheme } from './theme';
|
|
5
|
+
import type { ILineMarkSpec } from '../../../../typings';
|
|
6
|
+
import type { IPointLike } from '@visactor/vutils';
|
|
7
|
+
export type IMarkLine = IComponent;
|
|
8
|
+
export type IMarkLineSpec = (IMarkerSpec & (IMarkLineXSpec | IMarkLineYSpec | IMarkLineCoordinateSpec | IMarkLinePositionsSpec) & IMarkLineTheme) | IStepMarkLineSpec;
|
|
9
|
+
export interface IMarkLineXSpec extends IMarkerAxisSpec {
|
|
10
|
+
x: IDataPos | IDataPosCallback;
|
|
11
|
+
}
|
|
12
|
+
export interface IMarkLineYSpec extends IMarkerAxisSpec {
|
|
13
|
+
y: IDataPos | IDataPosCallback;
|
|
14
|
+
}
|
|
15
|
+
export interface IMarkLineAngleSpec extends IMarkerAxisSpec {
|
|
16
|
+
angle: IDataPos | IDataPosCallback;
|
|
17
|
+
}
|
|
18
|
+
export interface IMarkLineRadiusSpec extends IMarkerAxisSpec {
|
|
19
|
+
radius: IDataPos | IDataPosCallback;
|
|
20
|
+
}
|
|
21
|
+
export type IMarkLineCoordinateSpec = {
|
|
22
|
+
coordinates: IDataPointSpec[];
|
|
23
|
+
process?: {
|
|
24
|
+
x: IAggrType;
|
|
25
|
+
} | {
|
|
26
|
+
y: IAggrType;
|
|
27
|
+
} | {
|
|
28
|
+
xy: IRegressType;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export type IMarkLinePositionsSpec = IMarkerPositionsSpec;
|
|
32
|
+
export type IStepMarkLineSpec = IMarkerSpec & {
|
|
33
|
+
type: 'type-step';
|
|
34
|
+
connectDirection: 'top' | 'bottom' | 'left' | 'right';
|
|
35
|
+
expandDistance?: number;
|
|
36
|
+
label?: IMarkerLabelSpec;
|
|
37
|
+
line?: {
|
|
38
|
+
multiSegment?: boolean;
|
|
39
|
+
mainSegmentIndex?: number;
|
|
40
|
+
style?: ILineMarkSpec | ILineMarkSpec[];
|
|
41
|
+
};
|
|
42
|
+
} & Omit<IMarkLineTheme, 'label' | 'line'> & ({
|
|
43
|
+
coordinates: [IDataPointSpec, IDataPointSpec];
|
|
44
|
+
process?: {
|
|
45
|
+
x: IAggrType;
|
|
46
|
+
} | {
|
|
47
|
+
y: IAggrType;
|
|
48
|
+
} | {
|
|
49
|
+
xy: IRegressType;
|
|
50
|
+
};
|
|
51
|
+
} | {
|
|
52
|
+
positions: [IPointLike, IPointLike];
|
|
53
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IMarkLineLabelPosition } from '@visactor/vrender-components';
|
|
2
|
+
import type { ILineMarkSpec } from '../../../../typings';
|
|
3
|
+
import type { IMarkerLabelSpec, IMarkerSymbol } from '../../interface';
|
|
4
|
+
export interface IMarkLineTheme {
|
|
5
|
+
line?: {
|
|
6
|
+
style?: ILineMarkSpec;
|
|
7
|
+
};
|
|
8
|
+
label?: {
|
|
9
|
+
position?: IMarkLineLabelPosition;
|
|
10
|
+
} & IMarkerLabelSpec;
|
|
11
|
+
startSymbol?: IMarkerSymbol;
|
|
12
|
+
endSymbol?: IMarkerSymbol;
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IMarkLine, IMarkLineSpec, IMarkLineTheme } from './interface';
|
|
2
|
+
import type { IComponentOption } from '../../interface';
|
|
3
|
+
import { ComponentTypeEnum } from '../../interface/type';
|
|
4
|
+
import { MarkLine as MarkLineComponent } from '@visactor/vrender-components';
|
|
5
|
+
import { BaseMarker } from '../base-marker';
|
|
6
|
+
export declare class MarkLine extends BaseMarker<IMarkLineSpec & IMarkLineTheme> implements IMarkLine {
|
|
7
|
+
static type: ComponentTypeEnum;
|
|
8
|
+
type: ComponentTypeEnum;
|
|
9
|
+
name: string;
|
|
10
|
+
layoutZIndex: number;
|
|
11
|
+
protected _theme: IMarkLineTheme;
|
|
12
|
+
protected _markerComponent: MarkLineComponent;
|
|
13
|
+
static createComponent(spec: any, options: IComponentOption): MarkLine | MarkLine[];
|
|
14
|
+
protected _createMarkerComponent(): void;
|
|
15
|
+
protected _markerLayout(): void;
|
|
16
|
+
protected _initDataView(): void;
|
|
17
|
+
}
|
|
18
|
+
export declare const registerMarkLine: () => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IPointLike } from '@visactor/vutils';
|
|
2
|
+
export declare function getInsertPoints(start: IPointLike, end: IPointLike, direction: 'top' | 'bottom' | 'left' | 'right', offset?: number): IPointLike[];
|
|
3
|
+
export declare function getTextOffset(start: IPointLike, end: IPointLike, direction: 'top' | 'bottom' | 'left' | 'right', offset?: number): {
|
|
4
|
+
dx: number;
|
|
5
|
+
dy: number;
|
|
6
|
+
} | {
|
|
7
|
+
dx?: undefined;
|
|
8
|
+
dy?: undefined;
|
|
9
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IPointLike } from '@visactor/vutils';
|
|
2
|
+
import type { IComponent } from '../../../interface';
|
|
3
|
+
import type { IDataPointSpec, IMarkerSpec } from '../../interface';
|
|
4
|
+
import type { IMarkPointTheme } from './theme';
|
|
5
|
+
export type IMarkPoint = IComponent;
|
|
6
|
+
export type IMarkPointSpec = IMarkerSpec & (IMarkPointCoordinateSpec | IMarkPointPositionsSpec) & IMarkPointTheme;
|
|
7
|
+
export type IMarkPointCoordinateSpec = {
|
|
8
|
+
coordinates: IDataPointSpec;
|
|
9
|
+
relativeRelativeSeriesIndex?: number;
|
|
10
|
+
relativeRelativeSeriesId?: string;
|
|
11
|
+
};
|
|
12
|
+
export type IMarkPointPositionsSpec = {
|
|
13
|
+
position: IPointLike;
|
|
14
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { IImageGraphicAttribute, IRichTextGraphicAttribute } from '@visactor/vrender-core';
|
|
2
|
+
import type { IMarkPointItemPosition } from '@visactor/vrender-components';
|
|
3
|
+
import type { ILineMarkSpec, ISymbolMarkSpec } from '../../../../typings';
|
|
4
|
+
import type { IMarkerLabelSpec, IMarkerRef, IMarkerSymbol } from '../../interface';
|
|
5
|
+
export interface IItemContent extends IMarkerRef {
|
|
6
|
+
type?: 'symbol' | 'text' | 'image' | 'richText';
|
|
7
|
+
position?: IMarkPointItemPosition;
|
|
8
|
+
offsetX?: number;
|
|
9
|
+
offsetY?: number;
|
|
10
|
+
symbol?: {
|
|
11
|
+
style?: ISymbolMarkSpec;
|
|
12
|
+
};
|
|
13
|
+
image?: {
|
|
14
|
+
style?: IImageGraphicAttribute;
|
|
15
|
+
};
|
|
16
|
+
text?: IMarkerLabelSpec;
|
|
17
|
+
richText?: {
|
|
18
|
+
style?: IRichTextGraphicAttribute;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export type IItemLine = {
|
|
22
|
+
type?: 'type-s' | 'type-do' | 'type-po' | 'type-op';
|
|
23
|
+
visible?: boolean;
|
|
24
|
+
decorativeLine?: {
|
|
25
|
+
visible?: boolean;
|
|
26
|
+
length?: number;
|
|
27
|
+
};
|
|
28
|
+
startSymbol?: IMarkerSymbol;
|
|
29
|
+
endSymbol?: IMarkerSymbol;
|
|
30
|
+
line?: {
|
|
31
|
+
style?: Omit<ILineMarkSpec, 'visible'>;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export interface IMarkPointTheme {
|
|
35
|
+
itemLine?: IItemLine;
|
|
36
|
+
itemContent?: IItemContent;
|
|
37
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IMarkPoint, IMarkPointSpec, IMarkPointTheme } from './interface';
|
|
2
|
+
import type { IComponentOption } from '../../interface';
|
|
3
|
+
import { ComponentTypeEnum } from '../../interface/type';
|
|
4
|
+
import { MarkPoint as MarkPointComponent } from '@visactor/vrender-components';
|
|
5
|
+
import { BaseMarker } from '../base-marker';
|
|
6
|
+
export declare class MarkPoint extends BaseMarker<IMarkPointSpec & IMarkPointTheme> implements IMarkPoint {
|
|
7
|
+
static type: ComponentTypeEnum;
|
|
8
|
+
type: ComponentTypeEnum;
|
|
9
|
+
name: string;
|
|
10
|
+
layoutZIndex: number;
|
|
11
|
+
protected _theme: IMarkPointTheme;
|
|
12
|
+
protected _markerComponent: MarkPointComponent;
|
|
13
|
+
static createComponent(spec: any, options: IComponentOption): MarkPoint | MarkPoint[];
|
|
14
|
+
protected _createMarkerComponent(): void;
|
|
15
|
+
protected _markerLayout(): void;
|
|
16
|
+
protected _initDataView(): void;
|
|
17
|
+
}
|
|
18
|
+
export declare const registerMarkPoint: () => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ICartesianSeries } from '../../series/interface';
|
|
2
|
+
import type { DataView } from '@visactor/vdataset';
|
|
3
|
+
import type { IPointLike } from '@visactor/vutils';
|
|
4
|
+
export declare function xLayout(data: DataView, startRelativeSeries: ICartesianSeries, endRelativeSeries: ICartesianSeries, relativeSeries: ICartesianSeries, autoRange: boolean): [IPointLike, IPointLike][];
|
|
5
|
+
export declare function yLayout(data: DataView, startRelativeSeries: ICartesianSeries, endRelativeSeries: ICartesianSeries, relativeSeries: ICartesianSeries, autoRange: boolean): [IPointLike, IPointLike][];
|
|
6
|
+
export declare function coordinateLayout(data: DataView, relativeSeries: ICartesianSeries, autoRange: boolean): IPointLike[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IChartSpec } from '../../../typings/spec';
|
|
2
|
+
import type { IPlayerTheme } from './theme';
|
|
3
|
+
export interface IPlayerField {
|
|
4
|
+
playerField?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IPlayer extends IPlayerTheme {
|
|
7
|
+
type?: PlayerType;
|
|
8
|
+
auto?: boolean;
|
|
9
|
+
loop?: boolean;
|
|
10
|
+
interval?: number;
|
|
11
|
+
totalDuration?: number;
|
|
12
|
+
direction?: DirectionType;
|
|
13
|
+
alternate?: boolean;
|
|
14
|
+
specs?: Partial<Omit<IChartSpec, 'player'>>[];
|
|
15
|
+
}
|
|
16
|
+
export type IPlayerSpec = IPlayer;
|
|
17
|
+
export type PlayerType = 'continuous' | 'discrete';
|
|
18
|
+
export type DirectionType = 'default' | 'reverse';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { ControllerLayout, OrientType } from '@visactor/vrender-components';
|
|
2
|
+
import type { ISymbolMarkSpec, IRectMarkSpec } from '../../../typings';
|
|
3
|
+
import type { BaseGraphicAttributes } from '@visactor/vrender-components/es/core/type';
|
|
4
|
+
import type { ILayoutItemSpec } from '../../../layout/interface';
|
|
5
|
+
export interface IPlayerTheme extends ILayoutItemSpec {
|
|
6
|
+
visible?: boolean;
|
|
7
|
+
dx?: number;
|
|
8
|
+
dy?: number;
|
|
9
|
+
width?: number;
|
|
10
|
+
height?: number;
|
|
11
|
+
position?: 'start' | 'middle' | 'end';
|
|
12
|
+
orient?: OrientType;
|
|
13
|
+
slider?: IPlayerSlider;
|
|
14
|
+
controller?: IPlayerController;
|
|
15
|
+
}
|
|
16
|
+
export type PlayerAlignType = 'start' | 'middle' | 'end';
|
|
17
|
+
export interface IPlayerSlider {
|
|
18
|
+
visible?: boolean;
|
|
19
|
+
space?: number;
|
|
20
|
+
dx?: number;
|
|
21
|
+
dy?: number;
|
|
22
|
+
railStyle?: IRectMarkSpec;
|
|
23
|
+
trackStyle?: IRectMarkSpec;
|
|
24
|
+
handlerStyle?: ISymbolMarkSpec;
|
|
25
|
+
}
|
|
26
|
+
export interface IPlayerController {
|
|
27
|
+
visible?: boolean;
|
|
28
|
+
start?: Partial<ControllerLayout & BaseGraphicAttributes<ISymbolMarkSpec>>;
|
|
29
|
+
pause?: Partial<ControllerLayout & BaseGraphicAttributes<ISymbolMarkSpec>>;
|
|
30
|
+
backward?: Partial<ControllerLayout & BaseGraphicAttributes<ISymbolMarkSpec>>;
|
|
31
|
+
forward?: Partial<ControllerLayout & BaseGraphicAttributes<ISymbolMarkSpec>>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { IGraphic } from '@visactor/vrender-core';
|
|
2
|
+
import type { IModelRenderOption } from '../../model/interface';
|
|
3
|
+
import type { IRegion } from '../../region/interface';
|
|
4
|
+
import type { IComponentOption } from '../interface';
|
|
5
|
+
import type { IPlayer } from './interface';
|
|
6
|
+
import type { IComponent } from '../interface';
|
|
7
|
+
import type { IPoint, IOrientType, ILayoutRect } from '../../typings';
|
|
8
|
+
import { type IChartSpec } from '../..';
|
|
9
|
+
import { ComponentTypeEnum } from '../interface/type';
|
|
10
|
+
import { BaseComponent } from '../base/base-component';
|
|
11
|
+
export declare class Player extends BaseComponent<IPlayer> implements IComponent {
|
|
12
|
+
layoutZIndex: number;
|
|
13
|
+
layoutLevel: number;
|
|
14
|
+
specKey: string;
|
|
15
|
+
static type: ComponentTypeEnum;
|
|
16
|
+
type: ComponentTypeEnum;
|
|
17
|
+
protected _orient: IOrientType;
|
|
18
|
+
private _specs;
|
|
19
|
+
private _playerComponent;
|
|
20
|
+
private _cacheAttrs;
|
|
21
|
+
private _direction;
|
|
22
|
+
private _alternate;
|
|
23
|
+
private _dx;
|
|
24
|
+
private _dy;
|
|
25
|
+
private _width;
|
|
26
|
+
private _height;
|
|
27
|
+
private _position;
|
|
28
|
+
get orient(): IOrientType;
|
|
29
|
+
set layoutOrient(v: IOrientType);
|
|
30
|
+
static createComponent: (spec: IChartSpec, options: IComponentOption) => Player;
|
|
31
|
+
setAttrFromSpec(): void;
|
|
32
|
+
afterSetLayoutStartPoint(pos: IPoint): void;
|
|
33
|
+
getBoundsInRect(rect: ILayoutRect, fullSpace: ILayoutRect): {
|
|
34
|
+
x1: number;
|
|
35
|
+
y1: number;
|
|
36
|
+
x2: number;
|
|
37
|
+
y2: number;
|
|
38
|
+
};
|
|
39
|
+
changeRegions(regions: IRegion[]): void;
|
|
40
|
+
onRender(ctx: IModelRenderOption): void;
|
|
41
|
+
getVRenderComponents(): IGraphic[];
|
|
42
|
+
private _getPlayerAttrs;
|
|
43
|
+
private _createOrUpdatePlayerComponent;
|
|
44
|
+
private _computeLayoutRect;
|
|
45
|
+
private _computeWidth;
|
|
46
|
+
private _computeHeight;
|
|
47
|
+
private _computeDx;
|
|
48
|
+
private _computeDy;
|
|
49
|
+
private _maxSize;
|
|
50
|
+
private _sliderExceededSize;
|
|
51
|
+
private _initEvent;
|
|
52
|
+
}
|
|
53
|
+
export declare const registerPlayer: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './transform';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ContinuousPlayerAttributes, DiscretePlayerAttributes, Datum } from '@visactor/vrender-components';
|
|
2
|
+
import type { IPlayer } from '../interface';
|
|
3
|
+
export declare const transformContinuousSpecToAttrs: (spec: IPlayer, data: Datum[]) => ContinuousPlayerAttributes;
|
|
4
|
+
export declare const transformDiscreteSpecToAttrs: (spec: IPlayer, data: Datum[]) => DiscretePlayerAttributes;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const registerPoptip: () => void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { PopTipAttributes } from '@visactor/vrender-components';
|
|
2
|
+
import type { IColorKey } from '../../theme/color-scheme/interface';
|
|
3
|
+
export interface IPoptipTheme extends Omit<PopTipAttributes, 'titleStyle' | 'contentStyle' | 'panel'> {
|
|
4
|
+
titleStyle?: Partial<Omit<PopTipAttributes['titleStyle'], 'fill'>> & {
|
|
5
|
+
fill?: PopTipAttributes['titleStyle']['fill'] | IColorKey;
|
|
6
|
+
};
|
|
7
|
+
contentStyle?: Partial<Omit<PopTipAttributes['contentStyle'], 'fill'>> & {
|
|
8
|
+
fill?: PopTipAttributes['contentStyle']['fill'] | IColorKey;
|
|
9
|
+
};
|
|
10
|
+
panel?: Partial<Omit<PopTipAttributes['panel'], 'fill' | 'stroke' | 'shadowColor'>> & {
|
|
11
|
+
fill?: PopTipAttributes['panel']['fill'] | IColorKey;
|
|
12
|
+
stroke?: PopTipAttributes['panel']['stroke'] | IColorKey;
|
|
13
|
+
shadowColor?: PopTipAttributes['panel']['shadowColor'] | IColorKey;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { IComponent } from '../../interface';
|
|
2
|
+
import type { ITextGraphicAttribute, IRichTextCharacter, RichTextWordBreak } from '@visactor/vrender-core';
|
|
3
|
+
import type { IOrientType, IPadding, StringOrNumber } from '../../../typings';
|
|
4
|
+
import type { IComponentSpec } from '../../base/interface';
|
|
5
|
+
export interface ITitleSpec extends Omit<IComponentSpec, 'orient'> {
|
|
6
|
+
visible?: boolean;
|
|
7
|
+
orient?: IOrientType;
|
|
8
|
+
text: Text | Text[];
|
|
9
|
+
subtext?: Text | Text[];
|
|
10
|
+
x?: number;
|
|
11
|
+
y?: number;
|
|
12
|
+
width?: number;
|
|
13
|
+
height?: number;
|
|
14
|
+
minWidth?: number;
|
|
15
|
+
maxWidth?: number;
|
|
16
|
+
minHeight?: number;
|
|
17
|
+
maxHeight?: number;
|
|
18
|
+
innerPadding?: IPadding | number | number[];
|
|
19
|
+
align?: string;
|
|
20
|
+
verticalAlign?: string;
|
|
21
|
+
textStyle?: {
|
|
22
|
+
width?: number;
|
|
23
|
+
height?: number;
|
|
24
|
+
align?: string;
|
|
25
|
+
verticalAlign?: string;
|
|
26
|
+
wordBreak?: RichTextWordBreak;
|
|
27
|
+
maxLineWidth?: number;
|
|
28
|
+
heightLimit?: number;
|
|
29
|
+
lineClamp?: number;
|
|
30
|
+
character?: IRichTextCharacter[];
|
|
31
|
+
} & Partial<ITextGraphicAttribute>;
|
|
32
|
+
subtextStyle?: {
|
|
33
|
+
width?: number;
|
|
34
|
+
height?: number;
|
|
35
|
+
align?: string;
|
|
36
|
+
verticalAlign?: string;
|
|
37
|
+
wordBreak?: RichTextWordBreak;
|
|
38
|
+
maxLineWidth?: number;
|
|
39
|
+
heightLimit?: number;
|
|
40
|
+
lineClamp?: number;
|
|
41
|
+
character?: IRichTextCharacter[];
|
|
42
|
+
} & Partial<ITextGraphicAttribute>;
|
|
43
|
+
}
|
|
44
|
+
export type Text = StringOrNumber;
|
|
45
|
+
export type ITitle = IComponent;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ILayoutItemSpec } from '../../../layout/interface';
|
|
2
|
+
import type { IColorKey } from '../../../theme/color-scheme/interface';
|
|
3
|
+
import type { StringOrNumber } from '../../../typings';
|
|
4
|
+
import type { TextAlign, TextBaseLine } from '../../../typings/visual';
|
|
5
|
+
export interface ITitleTextTheme {
|
|
6
|
+
width?: number;
|
|
7
|
+
height?: number;
|
|
8
|
+
fontFamily?: string;
|
|
9
|
+
fontSize?: number;
|
|
10
|
+
fill?: string | IColorKey;
|
|
11
|
+
fontWeight?: StringOrNumber;
|
|
12
|
+
textAlign?: TextAlign;
|
|
13
|
+
textBaseline?: TextBaseLine;
|
|
14
|
+
lineHeight?: number;
|
|
15
|
+
}
|
|
16
|
+
export interface ITitleTheme extends ILayoutItemSpec {
|
|
17
|
+
textStyle?: ITitleTextTheme;
|
|
18
|
+
subtextStyle?: ITitleTextTheme;
|
|
19
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { BaseComponent } from '../base/base-component';
|
|
2
|
+
import { ComponentTypeEnum } from '../interface/type';
|
|
3
|
+
import type { IComponentOption } from '../interface';
|
|
4
|
+
import type { ITitle, ITitleSpec, ITitleTheme } from './interface';
|
|
5
|
+
import type { IRegion } from '../../region/interface';
|
|
6
|
+
import type { IGraphic } from '@visactor/vrender-core';
|
|
7
|
+
import type { IPoint, IOrientType, ILayoutType, ILayoutRect } from '../../typings';
|
|
8
|
+
export declare class Title extends BaseComponent<ITitleSpec> implements ITitle {
|
|
9
|
+
static type: ComponentTypeEnum;
|
|
10
|
+
type: ComponentTypeEnum;
|
|
11
|
+
layoutType: ILayoutType;
|
|
12
|
+
layoutZIndex: number;
|
|
13
|
+
layoutLevel: number;
|
|
14
|
+
protected _theme: ITitleTheme;
|
|
15
|
+
protected _orient: IOrientType;
|
|
16
|
+
private _titleComponent;
|
|
17
|
+
private _cacheAttrs;
|
|
18
|
+
get orient(): IOrientType;
|
|
19
|
+
constructor(spec: ITitleSpec, options: IComponentOption);
|
|
20
|
+
initLayout(): void;
|
|
21
|
+
static createComponent(spec: any, options: IComponentOption): Title | Title[];
|
|
22
|
+
onRender(ctx: any): void;
|
|
23
|
+
_compareSpec(): {
|
|
24
|
+
change: boolean;
|
|
25
|
+
reMake: boolean;
|
|
26
|
+
reRender: boolean;
|
|
27
|
+
reSize: boolean;
|
|
28
|
+
reCompile: boolean;
|
|
29
|
+
};
|
|
30
|
+
changeRegions(regions: IRegion[]): void;
|
|
31
|
+
update(ctx: IComponentOption): void;
|
|
32
|
+
resize(ctx: IComponentOption): void;
|
|
33
|
+
afterSetLayoutStartPoint(pos: IPoint): void;
|
|
34
|
+
getBoundsInRect(rect: ILayoutRect): {
|
|
35
|
+
x1: number;
|
|
36
|
+
y1: number;
|
|
37
|
+
x2: number;
|
|
38
|
+
y2: number;
|
|
39
|
+
};
|
|
40
|
+
private _getTitleLayoutRect;
|
|
41
|
+
private _getTitleAttrs;
|
|
42
|
+
private _createOrUpdateTitleComponent;
|
|
43
|
+
getVRenderComponents(): IGraphic[];
|
|
44
|
+
clear(): void;
|
|
45
|
+
}
|
|
46
|
+
export declare const registerTitle: () => void;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { Options } from './constants';
|
|
2
|
+
import type { Maybe } from '../../../typings';
|
|
3
|
+
import type { TooltipData, IToolTipActual, TooltipActiveType, ITooltipHandler, ITooltipPattern, ITooltipPositionActual } from '../../../typings/tooltip';
|
|
4
|
+
import type { Tooltip } from '../tooltip';
|
|
5
|
+
import type { ITooltipSpec, TooltipHandlerParams } from '../interface';
|
|
6
|
+
import { TooltipResult } from '../interface/common';
|
|
7
|
+
import type { IGroup } from '@visactor/vrender-core';
|
|
8
|
+
import type { Compiler } from '../../../compile/compiler';
|
|
9
|
+
import type { IContainerSize, TooltipAttributes } from '@visactor/vrender-components';
|
|
10
|
+
import type { IChartOption } from '../../../chart/interface';
|
|
11
|
+
type ChangeTooltipFunc = (visible: boolean, params: TooltipHandlerParams, changePositionOnly?: boolean, activeType?: TooltipActiveType, data?: TooltipData) => TooltipResult;
|
|
12
|
+
type ChangeTooltipPositionFunc = (changePositionOnly: boolean, data: TooltipData, params: TooltipHandlerParams) => TooltipResult;
|
|
13
|
+
export declare abstract class BaseTooltipHandler implements ITooltipHandler {
|
|
14
|
+
readonly type: string;
|
|
15
|
+
protected _visible: boolean;
|
|
16
|
+
protected _option: Options;
|
|
17
|
+
protected _chartOption: IChartOption;
|
|
18
|
+
protected _id: string;
|
|
19
|
+
get id(): string;
|
|
20
|
+
protected _env: "desktop-browser" | "mobile-browser" | "node" | "worker" | "miniApp" | "wx" | "desktop-miniApp" | "lynx";
|
|
21
|
+
get env(): "desktop-browser" | "mobile-browser" | "node" | "worker" | "miniApp" | "wx" | "desktop-miniApp" | "lynx";
|
|
22
|
+
protected _component: Tooltip;
|
|
23
|
+
protected _attributes?: TooltipAttributes | null;
|
|
24
|
+
protected _chartContainer: Maybe<HTMLElement>;
|
|
25
|
+
protected _compiler: Compiler;
|
|
26
|
+
protected _cacheViewSpec: ITooltipSpec | undefined;
|
|
27
|
+
protected _cacheActualTooltip: IToolTipActual | undefined;
|
|
28
|
+
protected _container: Maybe<IGroup | HTMLElement>;
|
|
29
|
+
protected _isReleased: boolean;
|
|
30
|
+
constructor(tooltipId: string, component: Tooltip);
|
|
31
|
+
showTooltip: (activeType: TooltipActiveType, data: TooltipData, params: TooltipHandlerParams) => TooltipResult;
|
|
32
|
+
protected changeTooltip: ChangeTooltipFunc;
|
|
33
|
+
protected _changeTooltip: ChangeTooltipFunc;
|
|
34
|
+
protected changeTooltipPosition: ChangeTooltipPositionFunc;
|
|
35
|
+
protected _changeTooltipPosition: ChangeTooltipPositionFunc;
|
|
36
|
+
hideTooltip(params: TooltipHandlerParams): TooltipResult;
|
|
37
|
+
release(): void;
|
|
38
|
+
protected abstract _updateTooltip(visible: boolean, params: TooltipHandlerParams, domData?: IToolTipActual): void;
|
|
39
|
+
protected abstract _removeTooltip(): void;
|
|
40
|
+
protected _throttle(callback: any): (...args: unknown[]) => unknown;
|
|
41
|
+
protected _getDefaultOption(): Options;
|
|
42
|
+
protected _getActualTooltipContent: (pattern: ITooltipPattern, data: TooltipData, params: TooltipHandlerParams) => IToolTipActual;
|
|
43
|
+
protected _getActualTooltipPosition: (actualTooltip: IToolTipActual, params: TooltipHandlerParams, tooltipBoxSize: IContainerSize | undefined) => ITooltipPositionActual;
|
|
44
|
+
protected _getTooltipBoxSize(actualTooltip: IToolTipActual, changePositionOnly: boolean): IContainerSize | undefined;
|
|
45
|
+
protected _getParentElement(spec: ITooltipSpec): HTMLElement;
|
|
46
|
+
getTooltipContainer(): HTMLElement | IGroup;
|
|
47
|
+
protected _initFromSpec(): void;
|
|
48
|
+
reInit(): void;
|
|
49
|
+
}
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IToolTipActual } from '../../../../typings/tooltip';
|
|
2
|
+
import type { TooltipHandlerParams } from '../../interface';
|
|
3
|
+
import { BaseTooltipHandler } from '../base';
|
|
4
|
+
import { Tooltip as TooltipComponent } from '@visactor/vrender-components';
|
|
5
|
+
import type { Tooltip } from '../../tooltip';
|
|
6
|
+
export declare class CanvasTooltipHandler extends BaseTooltipHandler {
|
|
7
|
+
type: string;
|
|
8
|
+
private _layer;
|
|
9
|
+
protected _el?: HTMLCanvasElement;
|
|
10
|
+
protected _tooltipCanvasId?: string;
|
|
11
|
+
protected _tooltipComponent: TooltipComponent;
|
|
12
|
+
constructor(tooltipId: string, component: Tooltip);
|
|
13
|
+
private _initTooltipComponent;
|
|
14
|
+
private _getLayer;
|
|
15
|
+
protected _removeTooltip(): void;
|
|
16
|
+
protected _updateTooltip(visible: boolean, params: TooltipHandlerParams, actualTooltip: IToolTipActual): void;
|
|
17
|
+
isTooltipShown(): boolean;
|
|
18
|
+
release(): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './canvas-tooltip-handler';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IToolTipLineActual } from '../../../typings';
|
|
2
|
+
import { escapeHTML } from './utils/common';
|
|
3
|
+
export declare const TOOLTIP_EL_CLASS_NAME = "vchart-tooltip-element";
|
|
4
|
+
export declare const TOOLTIP_CONTAINER_EL_CLASS_NAME = "vchart-tooltip-container";
|
|
5
|
+
export declare const TOOLTIP_MAX_LINE_COUNT = 20;
|
|
6
|
+
export declare const TOOLTIP_EMPTY_STRING = "";
|
|
7
|
+
export declare const TOOLTIP_OTHERS_LINE: IToolTipLineActual;
|
|
8
|
+
export declare const DEFAULT_OPTIONS: {
|
|
9
|
+
offsetX: number;
|
|
10
|
+
offsetY: number;
|
|
11
|
+
sanitize: typeof escapeHTML;
|
|
12
|
+
};
|
|
13
|
+
export type Options = typeof DEFAULT_OPTIONS;
|
|
14
|
+
export declare class TooltipHandlerType {
|
|
15
|
+
static dom: string;
|
|
16
|
+
static canvas: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { IToolTipActual } from '../../../../typings/tooltip';
|
|
2
|
+
import type { ITooltipSpec, TooltipHandlerParams } from '../../interface';
|
|
3
|
+
import { BaseTooltipHandler } from '../base';
|
|
4
|
+
import type { IDomTooltipStyle } from './interface';
|
|
5
|
+
import { TooltipModel } from './model/tooltip-model';
|
|
6
|
+
import type { Tooltip } from '../../tooltip';
|
|
7
|
+
import type { Maybe } from '@visactor/vutils';
|
|
8
|
+
export declare class DomTooltipHandler extends BaseTooltipHandler {
|
|
9
|
+
type: string;
|
|
10
|
+
protected _tooltipContainer: HTMLElement;
|
|
11
|
+
protected _domStyle: IDomTooltipStyle;
|
|
12
|
+
protected _tooltipActual?: IToolTipActual;
|
|
13
|
+
protected _container: Maybe<HTMLDivElement>;
|
|
14
|
+
protected model: TooltipModel;
|
|
15
|
+
getVisibility(): boolean;
|
|
16
|
+
setVisibility(_value: boolean): void;
|
|
17
|
+
constructor(tooltipId: string, component: Tooltip);
|
|
18
|
+
initEl(): void;
|
|
19
|
+
protected _removeTooltip(): void;
|
|
20
|
+
protected _updateTooltip(visible: boolean, params: TooltipHandlerParams, actualTooltip: IToolTipActual): void;
|
|
21
|
+
protected _initStyle(): void;
|
|
22
|
+
protected _getParentElement(spec: ITooltipSpec): HTMLElement;
|
|
23
|
+
isTooltipShown(): boolean;
|
|
24
|
+
reInit(): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dom-tooltip-handler';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { FontWeight, TextAlign } from '../../../../typings/visual';
|
|
2
|
+
export interface IDomTooltipStyle {
|
|
3
|
+
panel: IPadding & IBorder & {
|
|
4
|
+
width?: string;
|
|
5
|
+
height?: string;
|
|
6
|
+
minHeight?: string;
|
|
7
|
+
backgroundColor?: string;
|
|
8
|
+
boxShadow?: string;
|
|
9
|
+
pointerEvents?: 'auto' | 'none';
|
|
10
|
+
transitionDuration?: string;
|
|
11
|
+
transitionProperty?: string;
|
|
12
|
+
transitionTimingFunction?: string;
|
|
13
|
+
};
|
|
14
|
+
title: ILabelStyle;
|
|
15
|
+
content: IMargin;
|
|
16
|
+
shapeColumn: TooltipColumnStyle<IShapeStyle>;
|
|
17
|
+
keyColumn: TooltipColumnStyle<ILabelStyle>;
|
|
18
|
+
valueColumn: TooltipColumnStyle<ILabelStyle>;
|
|
19
|
+
}
|
|
20
|
+
export type TooltipColumnStyle<T> = IMargin & {
|
|
21
|
+
width?: string;
|
|
22
|
+
common?: T;
|
|
23
|
+
items?: T[];
|
|
24
|
+
};
|
|
25
|
+
export interface ILabelStyle extends IMargin {
|
|
26
|
+
fontFamily?: string;
|
|
27
|
+
fontSize?: string;
|
|
28
|
+
color?: string;
|
|
29
|
+
textAlign?: TextAlign;
|
|
30
|
+
lineHeight?: string;
|
|
31
|
+
fontWeight?: FontWeight;
|
|
32
|
+
whiteSpace?: string;
|
|
33
|
+
wordBreak?: string;
|
|
34
|
+
maxWidth?: string;
|
|
35
|
+
width?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface IShapeStyle extends IMargin {
|
|
38
|
+
width?: string;
|
|
39
|
+
height?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface IMargin {
|
|
42
|
+
marginLeft?: string;
|
|
43
|
+
marginRight?: string;
|
|
44
|
+
marginTop?: string;
|
|
45
|
+
marginBottom?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface IPadding {
|
|
48
|
+
paddingTop?: string;
|
|
49
|
+
paddingRight?: string;
|
|
50
|
+
paddingBottom?: string;
|
|
51
|
+
paddingLeft?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface IBorder {
|
|
54
|
+
borderColor?: string;
|
|
55
|
+
borderWidth?: string;
|
|
56
|
+
borderRadius?: string;
|
|
57
|
+
}
|