@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,25 @@
|
|
|
1
|
+
import type { Maybe } from '@visactor/vutils';
|
|
2
|
+
import type { IToolTipLineActual } from '../../../../../typings';
|
|
3
|
+
import type { ITooltipModelOption } from './interface';
|
|
4
|
+
export declare class BaseTooltipModel {
|
|
5
|
+
static type: string;
|
|
6
|
+
static isInstance(obj: any): obj is BaseTooltipModel;
|
|
7
|
+
readonly type: string;
|
|
8
|
+
readonly parent: BaseTooltipModel | HTMLElement;
|
|
9
|
+
readonly childIndex: number;
|
|
10
|
+
protected _option: ITooltipModelOption;
|
|
11
|
+
setOption(option: ITooltipModelOption): void;
|
|
12
|
+
protected _renderContentCache: IToolTipLineActual[] | null;
|
|
13
|
+
children: Record<number, BaseTooltipModel>;
|
|
14
|
+
product: Maybe<HTMLElement>;
|
|
15
|
+
getParentEl(): HTMLElement;
|
|
16
|
+
constructor(parent: BaseTooltipModel | HTMLElement, option: ITooltipModelOption, childIndex?: number);
|
|
17
|
+
init(classList?: string[], id?: string): void;
|
|
18
|
+
initAll(): void;
|
|
19
|
+
setStyle(style?: Partial<CSSStyleDeclaration>): void;
|
|
20
|
+
setContent(content?: any): void;
|
|
21
|
+
setVisibility(visibility: boolean): void;
|
|
22
|
+
getVisibility(): boolean;
|
|
23
|
+
release(): void;
|
|
24
|
+
protected createElement(tag: keyof HTMLElementTagNameMap, classList?: string[], style?: Partial<CSSStyleDeclaration>, id?: string): HTMLElement;
|
|
25
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseTooltipModel } from './base-tooltip-model';
|
|
2
|
+
import type { ITooltipModelOption } from './interface';
|
|
3
|
+
import type { IShapeSvgOption } from './shape-model';
|
|
4
|
+
import type { IToolTipLineActual } from '../../../../../typings';
|
|
5
|
+
export type ContentColumnType = 'shape-box' | 'key-box' | 'value-box';
|
|
6
|
+
export declare class ContentColumnModel extends BaseTooltipModel {
|
|
7
|
+
readonly className: ContentColumnType;
|
|
8
|
+
constructor(parent: BaseTooltipModel | HTMLElement, option: ITooltipModelOption, className: ContentColumnType, childIndex?: number);
|
|
9
|
+
init(): void;
|
|
10
|
+
setStyle(): void;
|
|
11
|
+
setContent(): void;
|
|
12
|
+
protected _getContentColumnStyle(): import("../interface").TooltipColumnStyle<import("../interface").ILabelStyle> | {
|
|
13
|
+
display?: string;
|
|
14
|
+
marginLeft?: string;
|
|
15
|
+
marginRight?: string;
|
|
16
|
+
marginTop?: string;
|
|
17
|
+
marginBottom?: string;
|
|
18
|
+
width?: string;
|
|
19
|
+
common?: import("../interface").IShapeStyle;
|
|
20
|
+
items?: import("../interface").IShapeStyle[];
|
|
21
|
+
};
|
|
22
|
+
protected _getShapeSvgOption(line: IToolTipLineActual, index: number): IShapeSvgOption;
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseTooltipModel } from './base-tooltip-model';
|
|
2
|
+
import { ContentColumnModel } from './content-column-model';
|
|
3
|
+
import type { Maybe } from '@visactor/vutils';
|
|
4
|
+
export declare class ContentModel extends BaseTooltipModel {
|
|
5
|
+
shapeBox: Maybe<ContentColumnModel>;
|
|
6
|
+
keyBox: Maybe<ContentColumnModel>;
|
|
7
|
+
valueBox: Maybe<ContentColumnModel>;
|
|
8
|
+
init(): void;
|
|
9
|
+
private _initShapeBox;
|
|
10
|
+
private _initKeyBox;
|
|
11
|
+
private _initValueBox;
|
|
12
|
+
setStyle(style?: Partial<CSSStyleDeclaration>): void;
|
|
13
|
+
setContent(): void;
|
|
14
|
+
release(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TooltipAttributes } from '@visactor/vrender-components';
|
|
2
|
+
import type { IToolTipActual, Maybe } from '../../../../../typings';
|
|
3
|
+
import type { IDomTooltipStyle } from '../interface';
|
|
4
|
+
export interface ITooltipModelOption {
|
|
5
|
+
valueToHtml: (value: any) => string;
|
|
6
|
+
getTooltipStyle: () => IDomTooltipStyle;
|
|
7
|
+
getTooltipActual: () => Maybe<IToolTipActual>;
|
|
8
|
+
getTooltipAttributes: () => Maybe<TooltipAttributes>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { IGradientColor } from '@visactor/vrender-core';
|
|
2
|
+
import type { ShapeType } from '../../../../../typings';
|
|
3
|
+
import { BaseTooltipModel } from './base-tooltip-model';
|
|
4
|
+
export interface IShapeSvgOption {
|
|
5
|
+
hasShape?: boolean;
|
|
6
|
+
symbolType?: ShapeType | string;
|
|
7
|
+
size?: string;
|
|
8
|
+
fill?: string | IGradientColor;
|
|
9
|
+
stroke?: string;
|
|
10
|
+
lineWidth?: number;
|
|
11
|
+
hollow?: boolean;
|
|
12
|
+
marginTop?: string;
|
|
13
|
+
index?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare class ShapeModel extends BaseTooltipModel {
|
|
16
|
+
svg: SVGElement;
|
|
17
|
+
private _svgHtmlCache;
|
|
18
|
+
init(classList?: string[], id?: string, tag?: keyof HTMLElementTagNameMap): void;
|
|
19
|
+
setStyle(style?: Partial<CSSStyleDeclaration>, option?: IShapeSvgOption): void;
|
|
20
|
+
setContent(option: IShapeSvgOption): void;
|
|
21
|
+
setSvg(option?: IShapeSvgOption): void;
|
|
22
|
+
release(): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const defaultH2Style: Partial<CSSStyleDeclaration>;
|
|
2
|
+
export declare const defaultContainerStyle: Partial<CSSStyleDeclaration>;
|
|
3
|
+
export declare const defaultContentContainerStyle: Partial<CSSStyleDeclaration>;
|
|
4
|
+
export declare const defaultContentColumnStyle: Partial<CSSStyleDeclaration>;
|
|
5
|
+
export declare const defaultKeyStyle: Partial<CSSStyleDeclaration>;
|
|
6
|
+
export declare const defaultAdaptiveKeyStyle: Partial<CSSStyleDeclaration>;
|
|
7
|
+
export declare const defaultValueStyle: Partial<CSSStyleDeclaration>;
|
|
8
|
+
export declare const defaultShapeStyle: Partial<CSSStyleDeclaration>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Maybe } from '@visactor/vutils';
|
|
2
|
+
import { BaseTooltipModel } from './base-tooltip-model';
|
|
3
|
+
import { ShapeModel } from './shape-model';
|
|
4
|
+
import { TextModel } from './text-model';
|
|
5
|
+
export declare class TitleModel extends BaseTooltipModel {
|
|
6
|
+
shape: Maybe<ShapeModel>;
|
|
7
|
+
textSpan: Maybe<TextModel>;
|
|
8
|
+
init(): void;
|
|
9
|
+
private _initShape;
|
|
10
|
+
private _releaseShape;
|
|
11
|
+
private _initTextSpan;
|
|
12
|
+
setStyle(style?: Partial<CSSStyleDeclaration>): void;
|
|
13
|
+
setContent(): void;
|
|
14
|
+
release(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseTooltipModel } from './base-tooltip-model';
|
|
2
|
+
import { ContentModel } from './content-model';
|
|
3
|
+
import type { ITooltipModelOption } from './interface';
|
|
4
|
+
import { TitleModel } from './title-model';
|
|
5
|
+
export declare class TooltipModel extends BaseTooltipModel {
|
|
6
|
+
title: TitleModel | null;
|
|
7
|
+
content: ContentModel | null;
|
|
8
|
+
private _classList;
|
|
9
|
+
private _id;
|
|
10
|
+
constructor(parent: BaseTooltipModel | HTMLElement, option: ITooltipModelOption, classList: string[], id: string);
|
|
11
|
+
setVisibility(visibility: boolean): void;
|
|
12
|
+
init(): void;
|
|
13
|
+
private _initPanel;
|
|
14
|
+
private _initTitle;
|
|
15
|
+
private _releaseTitle;
|
|
16
|
+
private _initContent;
|
|
17
|
+
private _releaseContent;
|
|
18
|
+
setStyle(): void;
|
|
19
|
+
setContent(): void;
|
|
20
|
+
release(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Maybe } from '@visactor/vutils';
|
|
2
|
+
import type { IDomTooltipStyle } from './interface';
|
|
3
|
+
import type { TooltipAttributes } from '@visactor/vrender-components';
|
|
4
|
+
export declare const getPixelPropertyStr: (num?: number | number[], defaultStr?: string) => string;
|
|
5
|
+
export declare const pixelPropertyStrToNumber: (str: string) => number | number[];
|
|
6
|
+
export declare function getDomStyles(attributes?: Maybe<TooltipAttributes>): IDomTooltipStyle;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './style';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ITextAttribute, IFillStyle, RichTextWordBreak } from '@visactor/vrender-core';
|
|
2
|
+
export interface ITooltipTextStyle extends Partial<ITextAttribute & IFillStyle> {
|
|
3
|
+
spacing?: number;
|
|
4
|
+
multiLine?: boolean;
|
|
5
|
+
maxWidth?: number;
|
|
6
|
+
wordBreak?: RichTextWordBreak;
|
|
7
|
+
autoWidth?: boolean;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TooltipAttributes, TooltipPanelAttrs } from '@visactor/vrender-components';
|
|
2
|
+
import type { IToolTipActual } from '../../../../typings';
|
|
3
|
+
import type { ITooltipTextStyle } from '../interface';
|
|
4
|
+
import type { ITooltipSpec } from '../../interface/spec';
|
|
5
|
+
import type { ITooltipTextTheme, ITooltipTheme } from '../../interface/theme';
|
|
6
|
+
import type { IChartLevelTheme } from '../../../../core/interface';
|
|
7
|
+
export declare function getTextAttributes(style?: ITooltipTextTheme, globalTheme?: IChartLevelTheme, defaultAttributes?: Partial<ITooltipTextStyle>): ITooltipTextStyle;
|
|
8
|
+
export declare const getPanelAttributes: (style: ITooltipTheme['panel']) => TooltipPanelAttrs;
|
|
9
|
+
export declare const getTooltipAttributes: (actualTooltip: IToolTipActual, spec: ITooltipSpec, globalTheme: IChartLevelTheme) => TooltipAttributes;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Datum } from '@visactor/vgrammar-core';
|
|
2
|
+
import type { MaybeArray, TooltipContentProperty, TooltipData, TooltipPatternProperty } from '../../../../typings';
|
|
3
|
+
import type { TooltipHandlerParams } from '../../interface';
|
|
4
|
+
import type { ITooltipTextStyle } from '../interface/style';
|
|
5
|
+
export declare function escapeHTML(value: any): string;
|
|
6
|
+
export declare const getTooltipContentValue: <T>(field?: TooltipContentProperty<T>, datum?: any, params?: TooltipHandlerParams) => T;
|
|
7
|
+
export declare const getTooltipPatternValue: <T>(field?: MaybeArray<TooltipPatternProperty<T>>, data?: TooltipData, params?: TooltipHandlerParams) => MaybeArray<TooltipPatternProperty<T>> extends TooltipPatternProperty<T>[] ? MaybeArray<T> : T;
|
|
8
|
+
export declare function getFirstDatumFromTooltipData(data: TooltipData): Datum;
|
|
9
|
+
export declare function pickFirstValidValue<T>(isValid: (element?: T) => any, ...elements: T[]): T | undefined;
|
|
10
|
+
export declare function convertToColorString(color: any, defaultColor?: string): string;
|
|
11
|
+
export declare const getScale: (element: HTMLElement, boundingClientRect?: DOMRect) => number;
|
|
12
|
+
interface ITooltipTextInfo {
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
text: MaybeArray<number> | MaybeArray<string>;
|
|
16
|
+
}
|
|
17
|
+
export declare const measureTooltipText: (text: string, style: ITooltipTextStyle) => ITooltipTextInfo;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { TooltipActualTitleContent } from '../../tooltip';
|
|
2
|
+
import type { IToolTipLinePattern, ITooltipPattern, TooltipData, IToolTipLineActual } from '../../../../typings/tooltip';
|
|
3
|
+
import type { TooltipHandlerParams } from '../../interface';
|
|
4
|
+
export declare const getShowContent: (pattern: ITooltipPattern, data: TooltipData, params: TooltipHandlerParams) => TooltipActualTitleContent | null;
|
|
5
|
+
export declare const getOneLineData: (datum: any, config: IToolTipLinePattern, params: TooltipHandlerParams) => IToolTipLineActual;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ITooltipSpec } from '../../interface';
|
|
2
|
+
import type { TooltipActiveType } from '../../../../typings';
|
|
3
|
+
import type { ISeries } from '../../../../series/interface';
|
|
4
|
+
import type { IDimensionInfo } from '../../../../event/events/dimension/interface';
|
|
5
|
+
export declare const getTooltipSpecForShow: (activeType: TooltipActiveType, globalSpec: ITooltipSpec, series?: ISeries, dimensionInfo?: IDimensionInfo[]) => ITooltipSpec;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IDimensionInfo } from '../../../../event/events/dimension/interface';
|
|
2
|
+
import type { ISeries } from '../../../../series/interface';
|
|
3
|
+
import type { ITooltipPattern, TooltipActiveType } from '../../../../typings';
|
|
4
|
+
export declare const makeDefaultPattern: (series: ISeries, activeType: TooltipActiveType, dimensionInfo?: IDimensionInfo[]) => ITooltipPattern | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TooltipFixedPosition } from '../../../../typings/tooltip/position';
|
|
2
|
+
export declare const getActualTooltipPositionValue: (position: number | ((event: MouseEvent) => number), event: MouseEvent) => number;
|
|
3
|
+
export type TooltipHorizontalPositionType = 'left' | 'right' | 'middle';
|
|
4
|
+
export type TooltipVerticalPositionType = 'top' | 'bottom' | 'middle';
|
|
5
|
+
export declare const positionType: Record<TooltipFixedPosition, [TooltipHorizontalPositionType, TooltipVerticalPositionType]>;
|
|
6
|
+
export declare const getHorizontalPositionType: (position: TooltipFixedPosition, defaultCase?: TooltipHorizontalPositionType) => TooltipHorizontalPositionType;
|
|
7
|
+
export declare const getVerticalPositionType: (position: TooltipFixedPosition, defaultCase?: TooltipVerticalPositionType) => TooltipVerticalPositionType;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { DimensionEventParams } from '../../../event/events/dimension/interface';
|
|
2
|
+
import type { BaseEventParams } from '../../../event/interface';
|
|
3
|
+
import type { DimensionTooltipInfo, MarkTooltipInfo } from '../processor/interface';
|
|
4
|
+
import type { Datum, IShowTooltipOption } from '../../../typings';
|
|
5
|
+
import type { IComponent } from '../../interface';
|
|
6
|
+
export type TooltipHandlerParams = (BaseEventParams | DimensionEventParams) & {
|
|
7
|
+
changePositionOnly?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export interface ITooltipActiveTypeAsKeys<T, K> {
|
|
10
|
+
mark: T;
|
|
11
|
+
dimension: K;
|
|
12
|
+
}
|
|
13
|
+
export type TotalMouseEventData = {
|
|
14
|
+
tooltipInfo: Partial<ITooltipActiveTypeAsKeys<MarkTooltipInfo, DimensionTooltipInfo>>;
|
|
15
|
+
ignore: Partial<ITooltipActiveTypeAsKeys<boolean, boolean>>;
|
|
16
|
+
};
|
|
17
|
+
export declare enum TooltipResult {
|
|
18
|
+
success = 0,
|
|
19
|
+
failed = 1
|
|
20
|
+
}
|
|
21
|
+
export interface ITooltip extends IComponent {
|
|
22
|
+
getVisible: () => boolean;
|
|
23
|
+
showTooltip: (datum: Datum, options: IShowTooltipOption) => void;
|
|
24
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TooltipActiveType, TooltipData } from '../../../typings';
|
|
2
|
+
import type { IComponent } from '../../interface/common';
|
|
3
|
+
import type { TooltipHandlerParams } from './common';
|
|
4
|
+
export type TooltipEventParams = TooltipHandlerParams & {
|
|
5
|
+
activeType?: TooltipActiveType;
|
|
6
|
+
tooltipData?: TooltipData;
|
|
7
|
+
tooltip: IComponent;
|
|
8
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { IToolTipActual, ITooltipPattern, Maybe, TooltipActiveType, TooltipData } from '../../../typings';
|
|
2
|
+
import type { ITooltipActiveTypeAsKeys, TooltipHandlerParams, TooltipResult } from './common';
|
|
3
|
+
import type { ITooltipTheme } from './theme';
|
|
4
|
+
export interface ITooltipSpec extends Partial<ITooltipActiveTypeAsKeys<ITooltipPattern, ITooltipPattern>> {
|
|
5
|
+
visible?: boolean;
|
|
6
|
+
activeType?: TooltipActiveType | TooltipActiveType[];
|
|
7
|
+
trigger?: 'hover' | 'click' | 'none';
|
|
8
|
+
triggerOff?: 'hover' | 'click' | 'none';
|
|
9
|
+
style?: Omit<ITooltipTheme, 'offset'>;
|
|
10
|
+
handler?: Partial<ITooltipHandlerSpec>;
|
|
11
|
+
renderMode?: 'html' | 'canvas';
|
|
12
|
+
confine?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
parentElement?: Maybe<string | HTMLElement | HTMLCanvasElement>;
|
|
15
|
+
enterable?: boolean;
|
|
16
|
+
transitionDuration?: number;
|
|
17
|
+
throttleInterval?: number;
|
|
18
|
+
updateElement?: (tooltipElement: HTMLElement, actualTooltip: IToolTipActual, params: TooltipHandlerParams) => void;
|
|
19
|
+
offset?: {
|
|
20
|
+
x?: number;
|
|
21
|
+
y?: number;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export interface ITooltipHandlerSpec {
|
|
25
|
+
showTooltip: (activeType: TooltipActiveType, tooltipData: TooltipData, params: TooltipHandlerParams) => Maybe<TooltipResult>;
|
|
26
|
+
hideTooltip: (params: TooltipHandlerParams) => Maybe<TooltipResult>;
|
|
27
|
+
release: () => void;
|
|
28
|
+
isTooltipShown?: () => boolean;
|
|
29
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { RichTextWordBreak } from '@visactor/vrender-core';
|
|
2
|
+
import type { StringOrNumber, TextAlign, TextBaseLine } from '../../../typings';
|
|
3
|
+
import type { IColorKey } from '../../../theme/color-scheme/interface';
|
|
4
|
+
import type { Padding } from '@visactor/vrender-components/es/core/type';
|
|
5
|
+
export interface ITooltipTextTheme {
|
|
6
|
+
fontFamily?: string;
|
|
7
|
+
fontSize?: number;
|
|
8
|
+
fill?: string | IColorKey;
|
|
9
|
+
fontColor?: string | IColorKey;
|
|
10
|
+
fontWeight?: StringOrNumber;
|
|
11
|
+
textAlign?: TextAlign;
|
|
12
|
+
textBaseline?: TextBaseLine;
|
|
13
|
+
lineHeight?: number | string;
|
|
14
|
+
spacing?: number;
|
|
15
|
+
multiLine?: boolean;
|
|
16
|
+
maxWidth?: number;
|
|
17
|
+
wordBreak?: RichTextWordBreak;
|
|
18
|
+
autoWidth?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface ITooltipTheme {
|
|
21
|
+
panel?: {
|
|
22
|
+
padding?: Padding;
|
|
23
|
+
backgroundColor?: string | IColorKey;
|
|
24
|
+
border?: {
|
|
25
|
+
color?: string | IColorKey;
|
|
26
|
+
width?: number;
|
|
27
|
+
radius?: number;
|
|
28
|
+
};
|
|
29
|
+
shadow?: {
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
blur: number;
|
|
33
|
+
spread: number;
|
|
34
|
+
color: string | IColorKey;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
shape?: {
|
|
38
|
+
size?: number;
|
|
39
|
+
spacing?: number;
|
|
40
|
+
};
|
|
41
|
+
titleLabel?: ITooltipTextTheme;
|
|
42
|
+
keyLabel?: Omit<ITooltipTextTheme, 'autoWidth'>;
|
|
43
|
+
valueLabel?: ITooltipTextTheme;
|
|
44
|
+
spaceRow?: number;
|
|
45
|
+
offset?: {
|
|
46
|
+
x?: number;
|
|
47
|
+
y?: number;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { BaseEventParams } from '../../../event/interface';
|
|
2
|
+
import type { TooltipActiveType, TooltipData } from '../../../typings';
|
|
3
|
+
import type { TooltipHandlerParams } from '../interface';
|
|
4
|
+
import { TooltipResult } from '../interface/common';
|
|
5
|
+
import type { Tooltip } from '../tooltip';
|
|
6
|
+
import type { MouseEventData, TooltipInfo } from './interface';
|
|
7
|
+
import type { IDimensionInfo } from '../../../event/events/dimension';
|
|
8
|
+
export declare abstract class BaseTooltipProcessor {
|
|
9
|
+
readonly component: Tooltip;
|
|
10
|
+
activeType: TooltipActiveType;
|
|
11
|
+
constructor(component: Tooltip);
|
|
12
|
+
abstract showTooltip(info: TooltipInfo, params: BaseEventParams, changePositionOnly: boolean): TooltipResult;
|
|
13
|
+
abstract shouldHandleTooltip(params: BaseEventParams, mouseEventData: Partial<MouseEventData>): boolean;
|
|
14
|
+
abstract getMouseEventData(params: BaseEventParams): MouseEventData;
|
|
15
|
+
protected _showTooltipByHandler: (data: TooltipData | undefined, params: TooltipHandlerParams) => TooltipResult;
|
|
16
|
+
protected _preprocessDimensionInfo(dimensionInfo?: IDimensionInfo[]): IDimensionInfo[] | undefined;
|
|
17
|
+
protected _getDimensionInfo(params: BaseEventParams): IDimensionInfo[];
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BaseEventParams } from '../../../event/interface';
|
|
2
|
+
import type { TooltipActiveType } from '../../../typings';
|
|
3
|
+
import type { DimensionTooltipInfo, MouseEventData } from './interface';
|
|
4
|
+
import { BaseTooltipProcessor } from './base';
|
|
5
|
+
export declare class DimensionTooltipProcessor extends BaseTooltipProcessor {
|
|
6
|
+
activeType: TooltipActiveType;
|
|
7
|
+
showTooltip(info: DimensionTooltipInfo, params: BaseEventParams, changePositionOnly: boolean): import("../interface").TooltipResult;
|
|
8
|
+
shouldHandleTooltip(params: BaseEventParams, mouseEventData: Partial<MouseEventData>): boolean;
|
|
9
|
+
getMouseEventData(params: BaseEventParams): MouseEventData;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Datum } from '@visactor/vgrammar-core';
|
|
2
|
+
import type { IMark } from '../../../mark/interface';
|
|
3
|
+
import type { ISeries } from '../../../series/interface';
|
|
4
|
+
import type { IDimensionInfo } from '../../../event/events/dimension/interface';
|
|
5
|
+
export type DimensionTooltipInfo = IDimensionInfo[];
|
|
6
|
+
export type MarkTooltipInfo = {
|
|
7
|
+
datum: Datum;
|
|
8
|
+
mark: IMark;
|
|
9
|
+
series: ISeries;
|
|
10
|
+
dimensionInfo: DimensionTooltipInfo;
|
|
11
|
+
};
|
|
12
|
+
export type TooltipInfo = DimensionTooltipInfo | MarkTooltipInfo;
|
|
13
|
+
export type MouseEventData = {
|
|
14
|
+
tooltipInfo: TooltipInfo;
|
|
15
|
+
ignore: boolean;
|
|
16
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BaseEventParams } from '../../../event/interface';
|
|
2
|
+
import type { TooltipActiveType } from '../../../typings';
|
|
3
|
+
import type { MarkTooltipInfo, MouseEventData } from './interface';
|
|
4
|
+
import { BaseTooltipProcessor } from './base';
|
|
5
|
+
export declare class MarkTooltipProcessor extends BaseTooltipProcessor {
|
|
6
|
+
activeType: TooltipActiveType;
|
|
7
|
+
showTooltip(info: MarkTooltipInfo, params: BaseEventParams, changePositionOnly: boolean): import("../interface").TooltipResult;
|
|
8
|
+
shouldHandleTooltip(params: BaseEventParams, mouseEventData: Partial<MouseEventData>): boolean;
|
|
9
|
+
getMouseEventData(params: BaseEventParams): MouseEventData;
|
|
10
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Maybe } from '@visactor/vutils';
|
|
2
|
+
import type { DimensionTooltipInfo, MarkTooltipInfo, TooltipInfo } from './interface';
|
|
3
|
+
export declare const isMarkInfo: (info: Maybe<TooltipInfo>) => info is MarkTooltipInfo;
|
|
4
|
+
export declare const isDimensionInfo: (info: Maybe<TooltipInfo>) => info is DimensionTooltipInfo;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { IComponentOption } from '../interface';
|
|
2
|
+
import { ComponentTypeEnum } from '../interface/type';
|
|
3
|
+
import type { IModelLayoutOption, IModelRenderOption } from '../../model/interface';
|
|
4
|
+
import type { IRegion } from '../../region/interface';
|
|
5
|
+
import { BaseComponent } from '../base/base-component';
|
|
6
|
+
import type { BaseEventParams, EventCallback, EventQuery, EventType } from '../../event/interface';
|
|
7
|
+
import type { ITooltipHandler, IToolTipLineActual, TooltipActiveType } from '../../typings/tooltip';
|
|
8
|
+
import type { Datum, IShowTooltipOption } from '../../typings';
|
|
9
|
+
import type { ITooltip, ITooltipActiveTypeAsKeys, ITooltipSpec, ITooltipTheme, TooltipHandlerParams, TotalMouseEventData } from './interface';
|
|
10
|
+
import { TooltipResult } from './interface/common';
|
|
11
|
+
import { DimensionTooltipProcessor } from './processor/dimension-tooltip';
|
|
12
|
+
import { MarkTooltipProcessor } from './processor/mark-tooltip';
|
|
13
|
+
import type { IGraphic } from '@visactor/vrender-core';
|
|
14
|
+
export type TooltipActualTitleContent = {
|
|
15
|
+
title?: IToolTipLineActual;
|
|
16
|
+
content?: IToolTipLineActual[];
|
|
17
|
+
};
|
|
18
|
+
export declare class Tooltip extends BaseComponent<any> implements ITooltip {
|
|
19
|
+
protected layoutZIndex: number;
|
|
20
|
+
static type: ComponentTypeEnum;
|
|
21
|
+
type: ComponentTypeEnum;
|
|
22
|
+
name: string;
|
|
23
|
+
layoutType: 'none';
|
|
24
|
+
protected _spec: ITooltipSpec;
|
|
25
|
+
static createComponent(spec: any, options: IComponentOption): Tooltip | Tooltip[];
|
|
26
|
+
tooltipHandler?: ITooltipHandler;
|
|
27
|
+
private _alwaysShow;
|
|
28
|
+
private _cacheInfo;
|
|
29
|
+
private _eventList;
|
|
30
|
+
protected _theme: ITooltipTheme;
|
|
31
|
+
protected _processor: ITooltipActiveTypeAsKeys<MarkTooltipProcessor, DimensionTooltipProcessor>;
|
|
32
|
+
protected _isTooltipShown: boolean;
|
|
33
|
+
isTooltipShown(): boolean;
|
|
34
|
+
changeRegions(regions: IRegion[]): void;
|
|
35
|
+
getVRenderComponents(): IGraphic[];
|
|
36
|
+
protected _registerEvent(): void;
|
|
37
|
+
protected _releaseEvent(): void;
|
|
38
|
+
onLayout(ctx: IModelLayoutOption): void;
|
|
39
|
+
onLayoutEnd(ctx: IModelLayoutOption): void;
|
|
40
|
+
onRender(ctx: IModelRenderOption): void;
|
|
41
|
+
created(): void;
|
|
42
|
+
release(): void;
|
|
43
|
+
beforeRelease(): void;
|
|
44
|
+
protected _initHandler(): void;
|
|
45
|
+
protected _initProcessor(): void;
|
|
46
|
+
protected _initEvent(): void;
|
|
47
|
+
protected _mountEvent: (eType: EventType, query: EventQuery, callback: EventCallback<any>) => void;
|
|
48
|
+
protected _getMouseOutHandler: (needPointerDetection?: boolean) => (params: BaseEventParams) => void;
|
|
49
|
+
protected _handleChartMouseOut: (params: BaseEventParams) => void;
|
|
50
|
+
protected _handleMouseMove: (params: BaseEventParams) => void;
|
|
51
|
+
protected _showTooltipByMouseEvent: (activeType: TooltipActiveType, mouseEventData: TotalMouseEventData, params: BaseEventParams, useCache?: boolean) => boolean;
|
|
52
|
+
protected _getMouseEventData: (params: BaseEventParams) => TotalMouseEventData;
|
|
53
|
+
protected _hideTooltipByHandler: (params: TooltipHandlerParams) => TooltipResult;
|
|
54
|
+
protected _initTheme(theme?: any): void;
|
|
55
|
+
protected _shouldMergeThemeToSpec(): boolean;
|
|
56
|
+
reInit(theme?: any): void;
|
|
57
|
+
setAttrFromSpec(): void;
|
|
58
|
+
showTooltip(datum: Datum, options: IShowTooltipOption): false | "none" | TooltipActiveType;
|
|
59
|
+
hideTooltip(): boolean;
|
|
60
|
+
private _isSameAsCacheInfo;
|
|
61
|
+
private _isPointerInChart;
|
|
62
|
+
private _isPointerOnTooltip;
|
|
63
|
+
getVisible(): boolean;
|
|
64
|
+
}
|
|
65
|
+
export declare const registerTooltip: () => void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { TooltipActiveType } from '../../../typings';
|
|
2
|
+
import type { ITooltipSpec } from '../interface';
|
|
3
|
+
import type { BaseEventParams } from '../../../event/interface';
|
|
4
|
+
export declare const getTooltipActualActiveType: (spec?: ITooltipSpec) => TooltipActiveType[];
|
|
5
|
+
export declare function isEmptyPos(params: BaseEventParams): boolean;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { Datum, IShowTooltipOption, ITooltipHandler, TooltipActiveType } from '../../../typings';
|
|
2
|
+
import type { IComponentOption } from '../../interface';
|
|
3
|
+
export declare function showTooltip(datum: Datum, options: IShowTooltipOption, tooltipHandler: ITooltipHandler, componentOptions: IComponentOption): TooltipActiveType | 'none';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IModelOption } from '../model/interface';
|
|
2
|
+
import type { ComponentTypeEnum } from './interface';
|
|
3
|
+
import type { IComponentTheme } from './interface/theme';
|
|
4
|
+
export declare function getComponentThemeFromOption(type: keyof IComponentTheme | ComponentTypeEnum, option: Partial<IModelOption>): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export { HOOK_EVENT as VGRAMMAR_HOOK_EVENT } from '@visactor/vgrammar-core';
|
|
2
|
+
export declare const BASE_EVENTS: string[];
|
|
3
|
+
export declare enum ChartEvent {
|
|
4
|
+
initialized = "initialized",
|
|
5
|
+
rendered = "rendered",
|
|
6
|
+
renderFinished = "renderFinished",
|
|
7
|
+
animationFinished = "animationFinished",
|
|
8
|
+
regionSeriesDataFilterOver = "regionSeriesDataFilterOver",
|
|
9
|
+
afterInitData = "afterInitData",
|
|
10
|
+
afterInitEvent = "afterInitEvent",
|
|
11
|
+
afterInitMark = "afterInitMark",
|
|
12
|
+
rawDataUpdate = "rawDataUpdate",
|
|
13
|
+
viewDataFilterOver = "viewDataFilterOver",
|
|
14
|
+
viewDataUpdate = "viewDataUpdate",
|
|
15
|
+
viewDataStatisticsUpdate = "viewDataStatisticsUpdate",
|
|
16
|
+
markDeltaYUpdate = "markDeltaYUpdate",
|
|
17
|
+
viewDataLabelUpdate = "viewDataLabelUpdate",
|
|
18
|
+
scaleDomainUpdate = "scaleDomainUpdate",
|
|
19
|
+
scaleUpdate = "scaleUpdate",
|
|
20
|
+
dataZoomChange = "dataZoomChange",
|
|
21
|
+
drill = "drill",
|
|
22
|
+
layoutStart = "layoutStart",
|
|
23
|
+
layoutEnd = "layoutEnd",
|
|
24
|
+
layoutRectUpdate = "layoutRectUpdate",
|
|
25
|
+
playerPlay = "playerPlay",
|
|
26
|
+
playerPause = "playerPause",
|
|
27
|
+
playerEnd = "playerEnd",
|
|
28
|
+
playerChange = "playerChange",
|
|
29
|
+
playerForward = "playerForward",
|
|
30
|
+
playerBackward = "playerBackward",
|
|
31
|
+
scrollBarChange = "scrollBarChange",
|
|
32
|
+
brushStart = "brushStart",
|
|
33
|
+
brushChange = "brushChange",
|
|
34
|
+
brushEnd = "brushEnd",
|
|
35
|
+
legendSelectedDataChange = "legendSelectedDataChange",
|
|
36
|
+
legendFilter = "legendFilter",
|
|
37
|
+
legendItemClick = "legendItemClick",
|
|
38
|
+
legendItemHover = "legendItemHover",
|
|
39
|
+
legendItemUnHover = "legendItemUnHover",
|
|
40
|
+
tooltipShow = "tooltipShow",
|
|
41
|
+
tooltipHide = "tooltipHide",
|
|
42
|
+
tooltipRelease = "tooltipRelease",
|
|
43
|
+
afterResize = "afterResize",
|
|
44
|
+
afterRender = "afterRender",
|
|
45
|
+
afterLayout = "afterLayout"
|
|
46
|
+
}
|
|
47
|
+
export declare enum Event_Source_Type {
|
|
48
|
+
chart = "chart",
|
|
49
|
+
window = "window",
|
|
50
|
+
canvas = "canvas"
|
|
51
|
+
}
|
|
52
|
+
export declare enum Event_Bubble_Level {
|
|
53
|
+
vchart = "vchart",
|
|
54
|
+
chart = "chart",
|
|
55
|
+
model = "model",
|
|
56
|
+
mark = "mark"
|
|
57
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const FUNNEL_TRANSFORM_RATIO: string;
|
|
2
|
+
export declare const FUNNEL_REACH_RATIO: string;
|
|
3
|
+
export declare const FUNNEL_HEIGHT_RATIO: string;
|
|
4
|
+
export declare const FUNNEL_VALUE_RATIO: string;
|
|
5
|
+
export declare const FUNNEL_LAST_VALUE_RATIO: string;
|
|
6
|
+
export declare const FUNNEL_NEXT_VALUE_RATIO: string;
|
|
7
|
+
export declare const FUNNEL_LAST_VALUE: string;
|
|
8
|
+
export declare const FUNNEL_CURRENT_VALUE: string;
|
|
9
|
+
export declare const FUNNEL_NEXT_VALUE: string;
|
|
10
|
+
export declare const FUNNEL_TRANSFORM_LEVEL: string;
|
|
11
|
+
export declare const FUNNEL_LABEL_LINE_LENGTH = 20;
|
|
12
|
+
export declare const FUNNEL_LABEL_SPACE_WIDTH = 5;
|
|
13
|
+
export declare const FUNNEL_MAX_SIZE = "80%";
|
|
14
|
+
export declare const FUNNEL_MIN_SIZE = 0;
|