@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,84 @@
|
|
|
1
|
+
import type { IBaseScale } from '@visactor/vscale';
|
|
2
|
+
import type { IPolarAxis, IPolarAxisCommonSpec, IPolarAxisCommonTheme } from './interface';
|
|
3
|
+
import type { IComponentOption } from '../../interface';
|
|
4
|
+
import { ComponentTypeEnum } from '../../interface/type';
|
|
5
|
+
import type { IPolarSeries } from '../../../series/interface';
|
|
6
|
+
import type { IPoint, IPolarOrientType, IPolarPoint, StringOrNumber, ILayoutType } from '../../../typings';
|
|
7
|
+
import type { IEffect } from '../../../model/interface';
|
|
8
|
+
import { AxisComponent } from '../base-axis';
|
|
9
|
+
import type { ITick } from '../interface';
|
|
10
|
+
export declare abstract class PolarAxis<T extends IPolarAxisCommonSpec = IPolarAxisCommonSpec> extends AxisComponent<T> implements IPolarAxis {
|
|
11
|
+
static type: ComponentTypeEnum;
|
|
12
|
+
type: ComponentTypeEnum;
|
|
13
|
+
name: string;
|
|
14
|
+
protected readonly _defaultBandPosition = 0;
|
|
15
|
+
protected readonly _defaultBandInnerPadding = 0;
|
|
16
|
+
protected readonly _defaultBandOuterPadding = 0;
|
|
17
|
+
layoutType: ILayoutType;
|
|
18
|
+
layoutZIndex: number;
|
|
19
|
+
protected _tick: ITick | undefined;
|
|
20
|
+
protected _center: IPoint | null;
|
|
21
|
+
get center(): IPoint;
|
|
22
|
+
protected _startAngle: number;
|
|
23
|
+
get startAngle(): number;
|
|
24
|
+
protected _endAngle: number;
|
|
25
|
+
get endAngle(): number;
|
|
26
|
+
protected _theme: IPolarAxisCommonTheme;
|
|
27
|
+
protected _orient: IPolarOrientType;
|
|
28
|
+
getOrient(): IPolarOrientType;
|
|
29
|
+
protected _groupScales: IBaseScale[];
|
|
30
|
+
getGroupScales(): IBaseScale[];
|
|
31
|
+
protected _refAngleAxis: IPolarAxis;
|
|
32
|
+
setRefAngleAxis(axes: IPolarAxis): this;
|
|
33
|
+
private _axisStyle;
|
|
34
|
+
private _gridStyle;
|
|
35
|
+
static createAxis(spec: any, options: IComponentOption): IPolarAxis;
|
|
36
|
+
static createComponent(spec: any, options: IComponentOption): IPolarAxis | IPolarAxis[];
|
|
37
|
+
effect: IEffect;
|
|
38
|
+
setAttrFromSpec(): void;
|
|
39
|
+
_transformLayoutPosition: (pos: Partial<IPoint>) => Partial<IPoint>;
|
|
40
|
+
onLayoutEnd(ctx: any): void;
|
|
41
|
+
onRender(ctx: any): void;
|
|
42
|
+
changeRegions(): void;
|
|
43
|
+
protected _initData(): void;
|
|
44
|
+
afterCompile(): void;
|
|
45
|
+
protected updateScaleRange(): boolean;
|
|
46
|
+
protected collectData(depth: number): {
|
|
47
|
+
min: number;
|
|
48
|
+
max: number;
|
|
49
|
+
values: any[];
|
|
50
|
+
}[];
|
|
51
|
+
protected abstract computeDomain(data: {
|
|
52
|
+
min: number;
|
|
53
|
+
max: number;
|
|
54
|
+
values: any[];
|
|
55
|
+
}[]): StringOrNumber[];
|
|
56
|
+
protected updateSeriesScale(): void;
|
|
57
|
+
protected getSeriesStatisticsField(s: IPolarSeries): string[];
|
|
58
|
+
protected initGroupScales(): void;
|
|
59
|
+
protected axisHelper(): {
|
|
60
|
+
isContinuous: boolean;
|
|
61
|
+
dataToPosition: (values: any[]) => number;
|
|
62
|
+
coordToPoint: (point: IPolarPoint) => IPoint;
|
|
63
|
+
pointToCoord: (point: IPoint) => IPolarPoint;
|
|
64
|
+
center: () => IPoint;
|
|
65
|
+
getScale: (depth: number) => IBaseScale;
|
|
66
|
+
getAxisId: () => number;
|
|
67
|
+
};
|
|
68
|
+
positionToData(position: IPoint): number;
|
|
69
|
+
coordToPoint(point: IPolarPoint): IPoint;
|
|
70
|
+
pointToCoord(point: IPoint): IPolarPoint;
|
|
71
|
+
getCenter(): IPoint;
|
|
72
|
+
getOuterRadius(): number;
|
|
73
|
+
getInnerRadius(): number;
|
|
74
|
+
tickValues(): number[];
|
|
75
|
+
updateLayoutAttribute(): void;
|
|
76
|
+
private _layoutAngleAxis;
|
|
77
|
+
private _layoutRadiusAxis;
|
|
78
|
+
private computeLayoutOuterRadius;
|
|
79
|
+
private computeLayoutInnerRadius;
|
|
80
|
+
private getRefLayoutRect;
|
|
81
|
+
private getRefSeriesRadius;
|
|
82
|
+
private _update;
|
|
83
|
+
invert(value: number): number;
|
|
84
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { BandScale } from '@visactor/vscale';
|
|
2
|
+
import { ComponentTypeEnum } from '../../interface/type';
|
|
3
|
+
import { PolarAxis } from './axis';
|
|
4
|
+
import { BandAxisMixin } from '../mixin/band-axis-mixin';
|
|
5
|
+
import type { StringOrNumber } from '../../../typings';
|
|
6
|
+
import type { IPolarBandAxisSpec } from './interface';
|
|
7
|
+
export interface PolarBandAxis<T extends IPolarBandAxisSpec = IPolarBandAxisSpec> extends Pick<BandAxisMixin, 'valueToPosition' | 'updateGroupScaleRange' | 'getPosition' | 'calcScales' | 'computeBandDomain'>, PolarAxis<T> {
|
|
8
|
+
}
|
|
9
|
+
export declare class PolarBandAxis<T extends IPolarBandAxisSpec = IPolarBandAxisSpec> extends PolarAxis<T> {
|
|
10
|
+
static type: ComponentTypeEnum;
|
|
11
|
+
type: ComponentTypeEnum;
|
|
12
|
+
protected _scale: BandScale;
|
|
13
|
+
protected _scales: BandScale[];
|
|
14
|
+
protected computeDomain(data: {
|
|
15
|
+
min: number;
|
|
16
|
+
max: number;
|
|
17
|
+
values: any[];
|
|
18
|
+
}[]): StringOrNumber[];
|
|
19
|
+
protected updateScaleRange(): boolean;
|
|
20
|
+
protected axisHelper(): {
|
|
21
|
+
getBandwidth: (depth: number) => number;
|
|
22
|
+
isContinuous: boolean;
|
|
23
|
+
dataToPosition: (values: any[]) => number;
|
|
24
|
+
coordToPoint: (point: import("../../../typings").IPolarPoint) => import("../../../typings").IPoint;
|
|
25
|
+
pointToCoord: (point: import("../../../typings").IPoint) => import("../../../typings").IPolarPoint;
|
|
26
|
+
center: () => import("../../../typings").IPoint;
|
|
27
|
+
getScale: (depth: number) => import("@visactor/vscale").IBaseScale;
|
|
28
|
+
getAxisId: () => number;
|
|
29
|
+
};
|
|
30
|
+
protected initScales(): void;
|
|
31
|
+
transformScaleDomain(): void;
|
|
32
|
+
}
|
|
33
|
+
export declare const registerPolarBandAxis: () => void;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { IBaseScale } from '@visactor/vscale';
|
|
2
|
+
import type { IComponent } from '../../../interface';
|
|
3
|
+
import type { IPoint, IPolarOrientType, IPolarPoint } from '../../../../typings';
|
|
4
|
+
import type { IGrid } from '../../interface';
|
|
5
|
+
import type { ICompilableData } from '../../../../compile/data';
|
|
6
|
+
export type IPolarGrid = IGrid & {
|
|
7
|
+
smooth?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export interface IPolarAxisHelper {
|
|
10
|
+
isContinuous: boolean;
|
|
11
|
+
dataToPosition: (values: any, cfg?: any) => number;
|
|
12
|
+
coordToPoint: (point: IPolarPoint) => IPoint;
|
|
13
|
+
pointToCoord: (point: IPoint) => IPolarPoint;
|
|
14
|
+
center: () => IPoint;
|
|
15
|
+
getScale: (depth?: number) => IBaseScale;
|
|
16
|
+
getBandwidth?: (depth?: number) => number;
|
|
17
|
+
getAxisId: () => number;
|
|
18
|
+
}
|
|
19
|
+
export interface IPolarAxis extends IComponent {
|
|
20
|
+
startAngle: number;
|
|
21
|
+
endAngle: number;
|
|
22
|
+
getOrient: () => IPolarOrientType;
|
|
23
|
+
getScale: () => IBaseScale;
|
|
24
|
+
setRefAngleAxis: (axes: IPolarAxis) => this;
|
|
25
|
+
tickValues: () => number[];
|
|
26
|
+
getCenter: () => IPoint;
|
|
27
|
+
getOuterRadius: () => number;
|
|
28
|
+
getInnerRadius: () => number;
|
|
29
|
+
dataToPosition: (values: any[]) => number;
|
|
30
|
+
positionToData: (position: IPoint) => any;
|
|
31
|
+
getTickData: () => ICompilableData;
|
|
32
|
+
coordToPoint: (point: IPolarPoint) => IPoint;
|
|
33
|
+
pointToCoord: (point: IPoint) => IPolarPoint;
|
|
34
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { IPoint, IPolarOrientType } from '../../../../typings';
|
|
2
|
+
import type { IBandAxisSpec, IDomainLine, ILinearAxisSpec, ITitle, ILabel, ICommonAxisSpec } from '../../interface';
|
|
3
|
+
import type { IPolarGrid } from './common';
|
|
4
|
+
export type IPolarAxisSpec = IPolarLinearAxisSpec | IPolarBandAxisSpec;
|
|
5
|
+
export type IPolarAxisCommonSpec = Omit<ICommonAxisSpec, 'center'> & {
|
|
6
|
+
inside?: boolean;
|
|
7
|
+
orient: IPolarOrientType;
|
|
8
|
+
grid?: IPolarGrid;
|
|
9
|
+
radius?: number;
|
|
10
|
+
subGrid?: IPolarGrid;
|
|
11
|
+
domainLine?: IDomainLine;
|
|
12
|
+
label?: ILabel;
|
|
13
|
+
title?: ITitle;
|
|
14
|
+
innerRadius?: number;
|
|
15
|
+
outerRadius?: number;
|
|
16
|
+
center?: IPoint;
|
|
17
|
+
startAngle?: number;
|
|
18
|
+
endAngle?: number;
|
|
19
|
+
};
|
|
20
|
+
export type IPolarLinearAxisSpec = IPolarAxisCommonSpec & ILinearAxisSpec;
|
|
21
|
+
export type IPolarBandAxisSpec = IPolarAxisCommonSpec & IBandAxisSpec;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IDomainLine, ITick, ITitle, ILabel } from '../../interface';
|
|
2
|
+
import type { IPolarGrid } from './common';
|
|
3
|
+
export interface IPolarAxisCommonTheme {
|
|
4
|
+
grid?: IPolarGrid;
|
|
5
|
+
subGrid?: IPolarGrid;
|
|
6
|
+
domainLine?: IDomainLine;
|
|
7
|
+
label?: ILabel;
|
|
8
|
+
title?: ITitle;
|
|
9
|
+
tick?: ITick;
|
|
10
|
+
subTick?: ITick;
|
|
11
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { LinearScale } from '@visactor/vscale';
|
|
2
|
+
import { ComponentTypeEnum } from '../../interface/type';
|
|
3
|
+
import { PolarAxis } from './axis';
|
|
4
|
+
import type { IPolarLinearAxisSpec } from './interface/spec';
|
|
5
|
+
import { LinearAxisMixin } from '../mixin/linear-axis-mixin';
|
|
6
|
+
export interface PolarLinearAxis<T extends IPolarLinearAxisSpec = IPolarLinearAxisSpec> extends Pick<LinearAxisMixin, 'setExtraAttrFromSpec' | 'transformScaleDomain' | 'valueToPosition' | 'computeLinearDomain' | 'setScaleNice'>, PolarAxis<T> {
|
|
7
|
+
}
|
|
8
|
+
export declare class PolarLinearAxis<T extends IPolarLinearAxisSpec = IPolarLinearAxisSpec> extends PolarAxis<T> {
|
|
9
|
+
static type: ComponentTypeEnum;
|
|
10
|
+
type: ComponentTypeEnum;
|
|
11
|
+
protected _zero: boolean;
|
|
12
|
+
protected _nice: boolean;
|
|
13
|
+
protected _scale: LinearScale;
|
|
14
|
+
protected _groupScales: LinearScale[];
|
|
15
|
+
setAttrFromSpec(): void;
|
|
16
|
+
protected initScales(): void;
|
|
17
|
+
protected computeDomain(data: {
|
|
18
|
+
min: number;
|
|
19
|
+
max: number;
|
|
20
|
+
values: any[];
|
|
21
|
+
}[]): number[];
|
|
22
|
+
}
|
|
23
|
+
export declare const registerPolarLinearAxis: () => void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { IOrientType, IPolarOrientType } from '../../typings';
|
|
2
|
+
import type { AxisType, ICommonAxisSpec, ILinearAxisSpec } from './interface';
|
|
3
|
+
import type { IModelOption } from '../../model/interface';
|
|
4
|
+
export declare const DEFAULT_TITLE_STYLE: {
|
|
5
|
+
left: {
|
|
6
|
+
textAlign: string;
|
|
7
|
+
textBaseline: string;
|
|
8
|
+
};
|
|
9
|
+
right: {
|
|
10
|
+
textAlign: string;
|
|
11
|
+
textBaseline: string;
|
|
12
|
+
};
|
|
13
|
+
radius: {};
|
|
14
|
+
angle: {};
|
|
15
|
+
};
|
|
16
|
+
export declare function transformAxisLineStyle(lineCfg: any): any;
|
|
17
|
+
export declare function getAxisLabelOffset(axisSpec: ICommonAxisSpec): number;
|
|
18
|
+
export declare function getLinearAxisSpecDomain(axisSpec: ILinearAxisSpec, defaultDomain?: {
|
|
19
|
+
min?: number;
|
|
20
|
+
max?: number;
|
|
21
|
+
}): {
|
|
22
|
+
min: number;
|
|
23
|
+
max: number;
|
|
24
|
+
};
|
|
25
|
+
export declare function isValidCartesianAxis(spec: any): boolean;
|
|
26
|
+
export declare function isValidPolarAxis(spec: any): boolean;
|
|
27
|
+
export declare const getCartesianAxisTheme: (orient: IOrientType, type: AxisType, option: Partial<IModelOption>) => any;
|
|
28
|
+
export declare const getPolarAxisTheme: (orient: IPolarOrientType, type: AxisType, option: Partial<IModelOption>) => any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { IGraphic, IGroup } from '@visactor/vrender-core';
|
|
2
|
+
import type { IRegion } from '../../region/interface';
|
|
3
|
+
import type { IComponent, IComponentOption } from '../interface';
|
|
4
|
+
import type { BaseEventParams } from '../../event/interface';
|
|
5
|
+
import type { IComponentPluginService, IComponentPlugin } from '../../plugin/components/interface';
|
|
6
|
+
import type { IBoundsLike } from '@visactor/vutils';
|
|
7
|
+
import type { IGroupMark } from '@visactor/vgrammar-core';
|
|
8
|
+
import type { IAnimate } from '../../animation/interface';
|
|
9
|
+
import type { Datum, ILayoutRect } from '../../typings';
|
|
10
|
+
import type { IComponentSpec } from './interface';
|
|
11
|
+
import { LayoutModel } from '../../model/layout-model';
|
|
12
|
+
export declare abstract class BaseComponent<T extends IComponentSpec = IComponentSpec> extends LayoutModel<T> implements IComponent {
|
|
13
|
+
name: string;
|
|
14
|
+
readonly modelType: string;
|
|
15
|
+
pluginService?: IComponentPluginService;
|
|
16
|
+
protected _option: IComponentOption;
|
|
17
|
+
protected _regions: IRegion[];
|
|
18
|
+
getRegions(): IRegion[];
|
|
19
|
+
protected _container: IGroup;
|
|
20
|
+
created(): void;
|
|
21
|
+
animate?: IAnimate;
|
|
22
|
+
constructor(spec: T, options: IComponentOption);
|
|
23
|
+
initLayout(): void;
|
|
24
|
+
abstract changeRegions(regions: IRegion[]): void;
|
|
25
|
+
abstract getVRenderComponents(): IGraphic[];
|
|
26
|
+
protected callPlugin(cb: (plugin: IComponentPlugin) => void): void;
|
|
27
|
+
protected eventPos(markEventParams: BaseEventParams): {
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
};
|
|
31
|
+
protected _getTheme(): any;
|
|
32
|
+
protected _mergeThemeToSpec(): void;
|
|
33
|
+
protected getContainer(): IGroup;
|
|
34
|
+
_compareSpec(): {
|
|
35
|
+
change: boolean;
|
|
36
|
+
reMake: boolean;
|
|
37
|
+
reRender: boolean;
|
|
38
|
+
reSize: boolean;
|
|
39
|
+
reCompile: boolean;
|
|
40
|
+
};
|
|
41
|
+
release(): void;
|
|
42
|
+
clear(): void;
|
|
43
|
+
compile(): void;
|
|
44
|
+
compileMarks(group?: string | IGroupMark): void;
|
|
45
|
+
protected _delegateEvent: (component: IGraphic, event: any, type: string, item?: any, datum?: Datum) => void;
|
|
46
|
+
getGraphicBounds: () => {
|
|
47
|
+
x1: number;
|
|
48
|
+
y1: number;
|
|
49
|
+
x2: number;
|
|
50
|
+
y2: number;
|
|
51
|
+
};
|
|
52
|
+
getBoundsInRect(rect: ILayoutRect, fullRect: ILayoutRect): IBoundsLike;
|
|
53
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './base-component';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IModelSpec } from '../../model/interface';
|
|
2
|
+
import type { StringOrNumber } from '../../typings';
|
|
3
|
+
export interface IComponentSpec extends IModelSpec {
|
|
4
|
+
regionIndex?: number | number[];
|
|
5
|
+
regionId?: StringOrNumber | StringOrNumber[];
|
|
6
|
+
seriesIndex?: number | number[];
|
|
7
|
+
seriesId?: StringOrNumber | StringOrNumber[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { BaseComponent } from '../base/base-component';
|
|
2
|
+
import type { IComponentOption } from '../interface';
|
|
3
|
+
import { ComponentTypeEnum } from '../interface/type';
|
|
4
|
+
import { Brush as BrushComponent } from '@visactor/vrender-components';
|
|
5
|
+
import type { IModelRenderOption } from '../../model/interface';
|
|
6
|
+
import type { IRegion } from '../../region/interface';
|
|
7
|
+
import type { IGraphic } from '@visactor/vrender-core';
|
|
8
|
+
import type { ISeries } from '../../series/interface';
|
|
9
|
+
import type { IElement } from '@visactor/vgrammar-core';
|
|
10
|
+
import type { BrushInteractiveRangeAttr, IBrush, IBrushSpec } from './interface';
|
|
11
|
+
export declare class Brush extends BaseComponent<IBrushSpec> implements IBrush {
|
|
12
|
+
layoutType: 'none';
|
|
13
|
+
static type: ComponentTypeEnum;
|
|
14
|
+
type: ComponentTypeEnum;
|
|
15
|
+
name: string;
|
|
16
|
+
layoutZIndex: number;
|
|
17
|
+
protected _brushComponents: BrushComponent[];
|
|
18
|
+
protected _relativeRegions: IRegion[];
|
|
19
|
+
protected _linkedSeries: ISeries[];
|
|
20
|
+
private _itemMap;
|
|
21
|
+
private _linkedItemMap;
|
|
22
|
+
protected _inBrushElementsMap: {
|
|
23
|
+
[brushName: string]: {
|
|
24
|
+
[elementKey: string]: IElement;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
protected _outOfBrushElementsMap: {
|
|
28
|
+
[elementKey: string]: IElement;
|
|
29
|
+
};
|
|
30
|
+
protected _linkedInBrushElementsMap: {
|
|
31
|
+
[brushName: string]: {
|
|
32
|
+
[elementKey: string]: IElement;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
protected _linkedOutOfBrushElementsMap: {
|
|
36
|
+
[elementKey: string]: IElement;
|
|
37
|
+
};
|
|
38
|
+
private _needInitOutState;
|
|
39
|
+
private _cacheInteractiveRangeAttrs;
|
|
40
|
+
private _needEnablePickable;
|
|
41
|
+
init(): void;
|
|
42
|
+
static createComponent(spec: any, options: IComponentOption): Brush[];
|
|
43
|
+
created(): void;
|
|
44
|
+
protected _extendDataInBrush(elementsMap: {
|
|
45
|
+
[brushName: string]: {
|
|
46
|
+
[elementKey: string]: IElement;
|
|
47
|
+
};
|
|
48
|
+
}): any[];
|
|
49
|
+
protected _extendDatumOutOfBrush(elementsMap: {
|
|
50
|
+
[elementKey: string]: IElement;
|
|
51
|
+
}): any[];
|
|
52
|
+
protected _getBrushInteractiveAttr(region: IRegion): BrushInteractiveRangeAttr;
|
|
53
|
+
protected _updateBrushComponent(region: IRegion, componentIndex: number): void;
|
|
54
|
+
protected _createBrushComponent(region: IRegion, componentIndex: number): void;
|
|
55
|
+
private _transformBrushedMarkAttr;
|
|
56
|
+
private _reconfigItem;
|
|
57
|
+
private _reconfigLinkedItem;
|
|
58
|
+
private _isBrushContainItem;
|
|
59
|
+
protected _bindRegions(): void;
|
|
60
|
+
protected _bindLinkedSeries(): void;
|
|
61
|
+
private _initNeedOperatedItem;
|
|
62
|
+
protected _initMarkBrushState(componentIndex: number, stateName: string): void;
|
|
63
|
+
protected initEvent(): void;
|
|
64
|
+
onRender(ctx: IModelRenderOption): void;
|
|
65
|
+
changeRegions(regions: IRegion[]): void;
|
|
66
|
+
getVRenderComponents(): IGraphic[];
|
|
67
|
+
_compareSpec(): {
|
|
68
|
+
change: boolean;
|
|
69
|
+
reMake: boolean;
|
|
70
|
+
reRender: boolean;
|
|
71
|
+
reSize: boolean;
|
|
72
|
+
reCompile: boolean;
|
|
73
|
+
};
|
|
74
|
+
onLayoutEnd(ctx: any): void;
|
|
75
|
+
clear(): void;
|
|
76
|
+
}
|
|
77
|
+
export declare const registerBrush: () => void;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { SymbolType } from '@visactor/vrender-core';
|
|
2
|
+
import type { IPolygonMarkSpec } from '../../typings';
|
|
3
|
+
import type { IComponent } from '../interface';
|
|
4
|
+
import type { IDelayType } from '../../typings/event';
|
|
5
|
+
export type IBrush = IComponent;
|
|
6
|
+
interface IBrushDataBindSpec {
|
|
7
|
+
regionIndex?: number | number[];
|
|
8
|
+
regionId?: string | string[];
|
|
9
|
+
seriesIndex?: number | number[];
|
|
10
|
+
seriesId?: string | string[];
|
|
11
|
+
brushLinkSeriesIndex?: number | number[];
|
|
12
|
+
brushLinkSeriesId?: string | string[];
|
|
13
|
+
}
|
|
14
|
+
export interface IBrushTheme {
|
|
15
|
+
style?: Partial<IPolygonMarkSpec>;
|
|
16
|
+
inBrush?: selectedItemStyle;
|
|
17
|
+
outOfBrush?: selectedItemStyle;
|
|
18
|
+
brushMode?: IBrushMode;
|
|
19
|
+
brushType?: IBrushType;
|
|
20
|
+
brushMoved?: boolean;
|
|
21
|
+
removeOnClick?: boolean;
|
|
22
|
+
delayType?: IDelayType;
|
|
23
|
+
delayTime?: number;
|
|
24
|
+
sizeThreshold?: number;
|
|
25
|
+
}
|
|
26
|
+
export interface IBrushSpec extends IBrushTheme, IBrushDataBindSpec {
|
|
27
|
+
id?: string;
|
|
28
|
+
visible?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export type IBrushType = 'x' | 'y' | 'rect' | 'polygon';
|
|
31
|
+
export type IBrushMode = 'single' | 'multiple';
|
|
32
|
+
export type selectedItemStyle = {
|
|
33
|
+
symbol?: SymbolType;
|
|
34
|
+
symbolSize?: number;
|
|
35
|
+
color?: string;
|
|
36
|
+
colorAlpha?: number;
|
|
37
|
+
} & Partial<IPolygonMarkSpec>;
|
|
38
|
+
export type BrushInteractiveRangeAttr = {
|
|
39
|
+
interactiveRange: {
|
|
40
|
+
minY: number;
|
|
41
|
+
maxY: number;
|
|
42
|
+
minX: number;
|
|
43
|
+
maxX: number;
|
|
44
|
+
};
|
|
45
|
+
xRange: [number, number];
|
|
46
|
+
yRange: [number, number];
|
|
47
|
+
};
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { RenderMode } from '../../../typings/spec';
|
|
2
|
+
import { DeskTopTrigger } from './desktop';
|
|
3
|
+
import { MobileTrigger } from './mobile';
|
|
4
|
+
export declare function getDefaultTriggerEventByMode(mode: RenderMode): {
|
|
5
|
+
start: string;
|
|
6
|
+
move: string;
|
|
7
|
+
end: string;
|
|
8
|
+
zoom: string;
|
|
9
|
+
zoomEnd: string;
|
|
10
|
+
scroll: string;
|
|
11
|
+
trigger: typeof DeskTopTrigger;
|
|
12
|
+
scrollEnd?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
start: string;
|
|
15
|
+
move: string;
|
|
16
|
+
end: string;
|
|
17
|
+
zoom: string;
|
|
18
|
+
zoomEnd: string;
|
|
19
|
+
scroll: string;
|
|
20
|
+
scrollEnd: string;
|
|
21
|
+
trigger: typeof MobileTrigger;
|
|
22
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IZoomTrigger } from './interface';
|
|
2
|
+
export declare class DeskTopTrigger implements IZoomTrigger {
|
|
3
|
+
pointerId: number;
|
|
4
|
+
parserScrollEvent(e: any): any;
|
|
5
|
+
parserZoomEvent(e: any): any;
|
|
6
|
+
clearZoom(): void;
|
|
7
|
+
clearScroll(): void;
|
|
8
|
+
clearDrag(): void;
|
|
9
|
+
parserDragEvent(): boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IZoomTrigger } from './interface';
|
|
2
|
+
export declare class MobileTrigger implements IZoomTrigger {
|
|
3
|
+
private _lastScale;
|
|
4
|
+
pointerId: number;
|
|
5
|
+
clearZoom(): void;
|
|
6
|
+
parserDragEvent(event: any): boolean;
|
|
7
|
+
parserZoomEvent(event: any): any;
|
|
8
|
+
parserScrollEvent(event: any): any;
|
|
9
|
+
clearScroll(): void;
|
|
10
|
+
clearDrag(): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { Dict, IBoundsLike } from '@visactor/vutils';
|
|
2
|
+
import type { IModelLayoutOption, IModelRenderOption } from '../../model/interface';
|
|
3
|
+
import type { IRegion } from '../../region/interface';
|
|
4
|
+
import { BaseComponent } from '../base/base-component';
|
|
5
|
+
import type { IPadding, Maybe, StringOrNumber } from '../../typings';
|
|
6
|
+
import type { IComponentOption } from '../interface';
|
|
7
|
+
import type { ICrossHair, CrossHairTrigger, ICartesianCrosshairSpec, IPolarCrosshairSpec, ICrosshairTheme, ICrosshairCategoryFieldSpec } from './interface';
|
|
8
|
+
import type { IAxis } from '../axis/interface';
|
|
9
|
+
type IBound = {
|
|
10
|
+
x1: number;
|
|
11
|
+
y1: number;
|
|
12
|
+
x2: number;
|
|
13
|
+
y2: number;
|
|
14
|
+
};
|
|
15
|
+
type IAxisInfo<T> = Map<number, IBound & {
|
|
16
|
+
axis: T;
|
|
17
|
+
}>;
|
|
18
|
+
export interface IHair {
|
|
19
|
+
visible: boolean;
|
|
20
|
+
type: 'rect' | 'line';
|
|
21
|
+
style?: Dict<any>;
|
|
22
|
+
label?: {
|
|
23
|
+
visible: boolean;
|
|
24
|
+
formatMethod?: (text: StringOrNumber | string[], position: string) => string | string[];
|
|
25
|
+
textStyle?: Dict<any>;
|
|
26
|
+
minWidth?: number;
|
|
27
|
+
maxWidth?: number;
|
|
28
|
+
padding?: IPadding | number | number[];
|
|
29
|
+
panel?: Dict<any>;
|
|
30
|
+
zIndex?: number;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export declare abstract class BaseCrossHair<T extends ICartesianCrosshairSpec | IPolarCrosshairSpec> extends BaseComponent<T> implements ICrossHair {
|
|
34
|
+
layoutType: 'none';
|
|
35
|
+
gridZIndex: number;
|
|
36
|
+
labelZIndex: number;
|
|
37
|
+
trigger: CrossHairTrigger;
|
|
38
|
+
enable: boolean;
|
|
39
|
+
showDefault: boolean;
|
|
40
|
+
triggerOff: CrossHairTrigger | 'none';
|
|
41
|
+
protected _theme: Maybe<ICrosshairTheme>;
|
|
42
|
+
get enableRemain(): boolean;
|
|
43
|
+
protected _crosshairConfig: ICartesianCrosshairSpec | IPolarCrosshairSpec;
|
|
44
|
+
private _limitBounds;
|
|
45
|
+
constructor(spec: T, options: IComponentOption);
|
|
46
|
+
protected abstract _showDefaultCrosshair(): void;
|
|
47
|
+
protected abstract _layoutCrosshair(x: number, y: number): void;
|
|
48
|
+
protected abstract _parseFieldInfo(): void;
|
|
49
|
+
abstract hide(): void;
|
|
50
|
+
protected _getLimitBounds(): IBoundsLike;
|
|
51
|
+
setAttrFromSpec(): void;
|
|
52
|
+
created(): void;
|
|
53
|
+
_compareSpec(): {
|
|
54
|
+
change: boolean;
|
|
55
|
+
reMake: boolean;
|
|
56
|
+
reRender: boolean;
|
|
57
|
+
reSize: boolean;
|
|
58
|
+
reCompile: boolean;
|
|
59
|
+
};
|
|
60
|
+
protected _initEvent(): void;
|
|
61
|
+
private _registerEvent;
|
|
62
|
+
private _eventOff;
|
|
63
|
+
updateLayoutAttribute(): void;
|
|
64
|
+
private _handleEvent;
|
|
65
|
+
private _getTriggerEvent;
|
|
66
|
+
protected _getAxisInfoByField<T = IAxis>(field: 'x' | 'y' | 'category' | 'value'): IAxisInfo<T>;
|
|
67
|
+
changeRegions(regions: IRegion[]): void;
|
|
68
|
+
onLayoutEnd(ctx: IModelLayoutOption): void;
|
|
69
|
+
onRender(ctx: IModelRenderOption): void;
|
|
70
|
+
protected _releaseEvent(): void;
|
|
71
|
+
protected _firstSeries<T>(): T | null;
|
|
72
|
+
protected _parseCrosshairSpec(): void;
|
|
73
|
+
protected _parseField(field: ICrosshairCategoryFieldSpec, fieldName: string): any;
|
|
74
|
+
protected _filterAxisByPoint<T>(axisMap: IAxisInfo<T>, relativeX: number, relativeY: number): IAxisInfo<T>;
|
|
75
|
+
}
|
|
76
|
+
export {};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { IComponentOption } from '../interface';
|
|
2
|
+
import { ComponentTypeEnum } from '../interface/type';
|
|
3
|
+
import type { ICartesianCrosshairSpec } from './interface';
|
|
4
|
+
import type { IHair } from './base';
|
|
5
|
+
import { BaseCrossHair } from './base';
|
|
6
|
+
import type { IGraphic } from '@visactor/vrender-core';
|
|
7
|
+
import type { IAxis } from '../axis/interface';
|
|
8
|
+
import type { StringOrNumber } from '../../typings';
|
|
9
|
+
export declare class CartesianCrossHair<T extends ICartesianCrosshairSpec = ICartesianCrosshairSpec> extends BaseCrossHair<T> {
|
|
10
|
+
static specKey: string;
|
|
11
|
+
specKey: string;
|
|
12
|
+
static type: ComponentTypeEnum;
|
|
13
|
+
type: ComponentTypeEnum;
|
|
14
|
+
name: string;
|
|
15
|
+
currValueX: Map<number, {
|
|
16
|
+
v: StringOrNumber;
|
|
17
|
+
axis: IAxis;
|
|
18
|
+
}>;
|
|
19
|
+
currValueY: Map<number, {
|
|
20
|
+
v: StringOrNumber;
|
|
21
|
+
axis: IAxis;
|
|
22
|
+
}>;
|
|
23
|
+
xHair: IHair | undefined;
|
|
24
|
+
yHair: IHair | undefined;
|
|
25
|
+
private _cacheXCrossHairInfo;
|
|
26
|
+
private _cacheYCrossHairInfo;
|
|
27
|
+
private _xCrosshair;
|
|
28
|
+
private _xTopLabel;
|
|
29
|
+
private _xBottomLabel;
|
|
30
|
+
private _yCrosshair;
|
|
31
|
+
private _yLeftLabel;
|
|
32
|
+
private _yRightLabel;
|
|
33
|
+
static createComponent(spec: any, options: IComponentOption): CartesianCrossHair<any> | CartesianCrossHair<ICartesianCrosshairSpec>[];
|
|
34
|
+
constructor(spec: T, options: IComponentOption);
|
|
35
|
+
protected _showDefaultCrosshair(): void;
|
|
36
|
+
private defaultCrosshair;
|
|
37
|
+
findAllAxisContains(relativeX: number, relativeY: number): {
|
|
38
|
+
xAxisMap: Map<number, {
|
|
39
|
+
x1: number;
|
|
40
|
+
y1: number;
|
|
41
|
+
x2: number;
|
|
42
|
+
y2: number;
|
|
43
|
+
} & {
|
|
44
|
+
axis: IAxis;
|
|
45
|
+
}>;
|
|
46
|
+
yAxisMap: Map<number, {
|
|
47
|
+
x1: number;
|
|
48
|
+
y1: number;
|
|
49
|
+
x2: number;
|
|
50
|
+
y2: number;
|
|
51
|
+
} & {
|
|
52
|
+
axis: IAxis;
|
|
53
|
+
}>;
|
|
54
|
+
};
|
|
55
|
+
private getValueAt;
|
|
56
|
+
clearAxisValue(): void;
|
|
57
|
+
setAxisValue(v: StringOrNumber, axis: IAxis): void;
|
|
58
|
+
private getAllAxisValues;
|
|
59
|
+
protected _layoutCrosshair(relativeX: number, relativeY: number): void;
|
|
60
|
+
hide(): void;
|
|
61
|
+
private layoutByValue;
|
|
62
|
+
private _layoutVertical;
|
|
63
|
+
private _layoutHorizontal;
|
|
64
|
+
protected _parseFieldInfo(): void;
|
|
65
|
+
private _updateCrosshair;
|
|
66
|
+
private _updateCrosshairLabel;
|
|
67
|
+
getVRenderComponents(): IGraphic[];
|
|
68
|
+
}
|
|
69
|
+
export declare const registerCartesianCrossHair: () => void;
|