@visactor/vchart-types 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +7 -0
- package/.rush/temp/shrinkwrap-deps.json +4 -0
- package/README.md +30 -0
- package/package.json +29 -0
- package/tsconfig.eslint.json +9 -0
- package/tsconfig.json +3 -0
- package/tsconfig.test.json +5 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/types/animation/animate-manager.d.ts +12 -0
- package/types/animation/config.d.ts +56 -0
- package/types/animation/interface.d.ts +29 -0
- package/types/animation/spec.d.ts +24 -0
- package/types/animation/utils.d.ts +17 -0
- package/types/chart/area/area.d.ts +12 -0
- package/types/chart/area/index.d.ts +2 -0
- package/types/chart/area/interface.d.ts +7 -0
- package/types/chart/bar/bar-3d.d.ts +9 -0
- package/types/chart/bar/bar.d.ts +11 -0
- package/types/chart/bar/index.d.ts +3 -0
- package/types/chart/bar/interface.d.ts +11 -0
- package/types/chart/base-chart.d.ts +154 -0
- package/types/chart/box-plot/box-plot.d.ts +11 -0
- package/types/chart/box-plot/index.d.ts +2 -0
- package/types/chart/box-plot/interface.d.ts +7 -0
- package/types/chart/cartesian/cartesian.d.ts +8 -0
- package/types/chart/cartesian/index.d.ts +2 -0
- package/types/chart/cartesian/interface.d.ts +15 -0
- package/types/chart/chart-meta/data.d.ts +15 -0
- package/types/chart/circle-packing/circle-packing.d.ts +12 -0
- package/types/chart/circle-packing/index.d.ts +2 -0
- package/types/chart/circle-packing/interface.d.ts +6 -0
- package/types/chart/common/common.d.ts +10 -0
- package/types/chart/common/index.d.ts +2 -0
- package/types/chart/common/interface.d.ts +41 -0
- package/types/chart/correlation/correlation.d.ts +11 -0
- package/types/chart/correlation/index.d.ts +2 -0
- package/types/chart/correlation/interface.d.ts +6 -0
- package/types/chart/funnel/base.d.ts +9 -0
- package/types/chart/funnel/funnel-3d.d.ts +8 -0
- package/types/chart/funnel/funnel.d.ts +8 -0
- package/types/chart/funnel/index.d.ts +3 -0
- package/types/chart/funnel/interface.d.ts +9 -0
- package/types/chart/gauge/gauge.d.ts +12 -0
- package/types/chart/gauge/index.d.ts +2 -0
- package/types/chart/gauge/interface.d.ts +10 -0
- package/types/chart/heatmap/heatmap.d.ts +9 -0
- package/types/chart/heatmap/index.d.ts +2 -0
- package/types/chart/heatmap/interface.d.ts +7 -0
- package/types/chart/histogram/base.d.ts +6 -0
- package/types/chart/histogram/histogram-3d.d.ts +8 -0
- package/types/chart/histogram/histogram.d.ts +9 -0
- package/types/chart/histogram/index.d.ts +3 -0
- package/types/chart/histogram/interface.d.ts +9 -0
- package/types/chart/index.d.ts +60 -0
- package/types/chart/interface/chart.d.ts +87 -0
- package/types/chart/interface/common.d.ts +32 -0
- package/types/chart/interface/index.d.ts +3 -0
- package/types/chart/interface/type.d.ts +35 -0
- package/types/chart/line/index.d.ts +2 -0
- package/types/chart/line/interface.d.ts +7 -0
- package/types/chart/line/line.d.ts +12 -0
- package/types/chart/map/index.d.ts +2 -0
- package/types/chart/map/interface.d.ts +6 -0
- package/types/chart/map/map.d.ts +13 -0
- package/types/chart/pie/base.d.ts +5 -0
- package/types/chart/pie/index.d.ts +3 -0
- package/types/chart/pie/interface.d.ts +11 -0
- package/types/chart/pie/pie-3d.d.ts +9 -0
- package/types/chart/pie/pie.d.ts +8 -0
- package/types/chart/polar/index.d.ts +4 -0
- package/types/chart/polar/interface.d.ts +7 -0
- package/types/chart/polar/polar.d.ts +9 -0
- package/types/chart/polar/progress-like.d.ts +7 -0
- package/types/chart/polar/rose-like.d.ts +7 -0
- package/types/chart/progress/circular/circular.d.ts +11 -0
- package/types/chart/progress/circular/index.d.ts +2 -0
- package/types/chart/progress/circular/interface.d.ts +7 -0
- package/types/chart/progress/interface.d.ts +8 -0
- package/types/chart/progress/linear/index.d.ts +2 -0
- package/types/chart/progress/linear/interface.d.ts +9 -0
- package/types/chart/progress/linear/linear.d.ts +13 -0
- package/types/chart/radar/index.d.ts +2 -0
- package/types/chart/radar/interface.d.ts +7 -0
- package/types/chart/radar/radar.d.ts +10 -0
- package/types/chart/range-area/index.d.ts +2 -0
- package/types/chart/range-area/interface.d.ts +7 -0
- package/types/chart/range-area/range-area.d.ts +10 -0
- package/types/chart/range-column/index.d.ts +3 -0
- package/types/chart/range-column/interface.d.ts +11 -0
- package/types/chart/range-column/range-column-3d.d.ts +9 -0
- package/types/chart/range-column/range-column.d.ts +10 -0
- package/types/chart/rose/index.d.ts +2 -0
- package/types/chart/rose/interface.d.ts +7 -0
- package/types/chart/rose/rose.d.ts +10 -0
- package/types/chart/sankey/index.d.ts +2 -0
- package/types/chart/sankey/interface.d.ts +6 -0
- package/types/chart/sankey/sankey.d.ts +11 -0
- package/types/chart/scatter/index.d.ts +2 -0
- package/types/chart/scatter/interface.d.ts +7 -0
- package/types/chart/scatter/scatter.d.ts +11 -0
- package/types/chart/sequence/index.d.ts +2 -0
- package/types/chart/sequence/interface.d.ts +24 -0
- package/types/chart/sequence/sequence.d.ts +12 -0
- package/types/chart/stack.d.ts +11 -0
- package/types/chart/sunburst/index.d.ts +2 -0
- package/types/chart/sunburst/interface.d.ts +6 -0
- package/types/chart/sunburst/sunburst.d.ts +12 -0
- package/types/chart/treemap/index.d.ts +2 -0
- package/types/chart/treemap/interface.d.ts +6 -0
- package/types/chart/treemap/treemap.d.ts +11 -0
- package/types/chart/util.d.ts +12 -0
- package/types/chart/waterfall/index.d.ts +2 -0
- package/types/chart/waterfall/interface.d.ts +7 -0
- package/types/chart/waterfall/waterfall.d.ts +11 -0
- package/types/chart/word-cloud/base.d.ts +6 -0
- package/types/chart/word-cloud/index.d.ts +3 -0
- package/types/chart/word-cloud/interface.d.ts +10 -0
- package/types/chart/word-cloud/word-cloud-3d.d.ts +11 -0
- package/types/chart/word-cloud/word-cloud.d.ts +11 -0
- package/types/compile/compilable-base.d.ts +11 -0
- package/types/compile/compiler.d.ts +60 -0
- package/types/compile/data/compilable-data.d.ts +23 -0
- package/types/compile/data/index.d.ts +2 -0
- package/types/compile/data/interface.d.ts +8 -0
- package/types/compile/grammar-item.d.ts +24 -0
- package/types/compile/interface/compilable-item.d.ts +36 -0
- package/types/compile/interface/compiler.d.ts +49 -0
- package/types/compile/interface/index.d.ts +2 -0
- package/types/compile/mark/compilable-mark.d.ts +111 -0
- package/types/compile/mark/index.d.ts +3 -0
- package/types/compile/mark/interface.d.ts +154 -0
- package/types/compile/mark/mark-data.d.ts +9 -0
- package/types/compile/mark/mark-state-manager.d.ts +26 -0
- package/types/compile/mark/util.d.ts +7 -0
- package/types/compile/signal/compilable-signal.d.ts +21 -0
- package/types/compile/signal/index.d.ts +4 -0
- package/types/compile/signal/interface.d.ts +12 -0
- package/types/compile/signal/signal-manager.d.ts +11 -0
- package/types/compile/signal/state-manager.d.ts +12 -0
- package/types/compile/util.d.ts +2 -0
- package/types/component/axis/base-axis.d.ts +149 -0
- package/types/component/axis/cartesian/axis.d.ts +112 -0
- package/types/component/axis/cartesian/band-axis.d.ts +40 -0
- package/types/component/axis/cartesian/config.d.ts +3 -0
- package/types/component/axis/cartesian/index.d.ts +7 -0
- package/types/component/axis/cartesian/interface/common.d.ts +56 -0
- package/types/component/axis/cartesian/interface/index.d.ts +3 -0
- package/types/component/axis/cartesian/interface/spec.d.ts +45 -0
- package/types/component/axis/cartesian/interface/theme.d.ts +22 -0
- package/types/component/axis/cartesian/linear-axis.d.ts +28 -0
- package/types/component/axis/cartesian/log-axis.d.ts +17 -0
- package/types/component/axis/cartesian/symlog-axis.d.ts +17 -0
- package/types/component/axis/cartesian/time-axis.d.ts +22 -0
- package/types/component/axis/cartesian/util/common.d.ts +13 -0
- package/types/component/axis/cartesian/util/index.d.ts +2 -0
- package/types/component/axis/cartesian/util/time.d.ts +80 -0
- package/types/component/axis/index.d.ts +3 -0
- package/types/component/axis/interface/common.d.ts +38 -0
- package/types/component/axis/interface/index.d.ts +3 -0
- package/types/component/axis/interface/spec.d.ts +91 -0
- package/types/component/axis/interface/theme.d.ts +15 -0
- package/types/component/axis/interface.d.ts +137 -0
- package/types/component/axis/mixin/band-axis-mixin.d.ts +42 -0
- package/types/component/axis/mixin/linear-axis-mixin.d.ts +57 -0
- package/types/component/axis/polar/axis.d.ts +85 -0
- package/types/component/axis/polar/band-axis.d.ts +33 -0
- package/types/component/axis/polar/config.d.ts +3 -0
- package/types/component/axis/polar/index.d.ts +4 -0
- package/types/component/axis/polar/interface/common.d.ts +34 -0
- package/types/component/axis/polar/interface/index.d.ts +4 -0
- package/types/component/axis/polar/interface/spec.d.ts +21 -0
- package/types/component/axis/polar/interface/theme.d.ts +11 -0
- package/types/component/axis/polar/linear-axis.d.ts +23 -0
- package/types/component/axis/util.d.ts +28 -0
- package/types/component/base/base-component.d.ts +45 -0
- package/types/component/base/index.d.ts +1 -0
- package/types/component/base/interface.d.ts +8 -0
- package/types/component/base/util.d.ts +3 -0
- package/types/component/brush/brush.d.ts +79 -0
- package/types/component/brush/index.d.ts +2 -0
- package/types/component/brush/interface.d.ts +48 -0
- package/types/component/common/trigger/config.d.ts +22 -0
- package/types/component/common/trigger/desktop.d.ts +10 -0
- package/types/component/common/trigger/interface.d.ts +8 -0
- package/types/component/common/trigger/mobile.d.ts +11 -0
- package/types/component/crosshair/base.d.ts +77 -0
- package/types/component/crosshair/cartesian.d.ts +67 -0
- package/types/component/crosshair/config.d.ts +12 -0
- package/types/component/crosshair/index.d.ts +3 -0
- package/types/component/crosshair/interface/index.d.ts +2 -0
- package/types/component/crosshair/interface/spec.d.ts +71 -0
- package/types/component/crosshair/interface/theme.d.ts +9 -0
- package/types/component/crosshair/polar.d.ts +78 -0
- package/types/component/crosshair/util.d.ts +10 -0
- package/types/component/custom-mark/custom-mark.d.ts +34 -0
- package/types/component/custom-mark/index.d.ts +1 -0
- package/types/component/data-zoom/constant.d.ts +4 -0
- package/types/component/data-zoom/data-filter-base-component.d.ts +122 -0
- package/types/component/data-zoom/data-zoom/data-zoom.d.ts +65 -0
- package/types/component/data-zoom/data-zoom/index.d.ts +2 -0
- package/types/component/data-zoom/data-zoom/interface.d.ts +59 -0
- package/types/component/data-zoom/index.d.ts +2 -0
- package/types/component/data-zoom/interface.d.ts +59 -0
- package/types/component/data-zoom/scroll-bar/index.d.ts +2 -0
- package/types/component/data-zoom/scroll-bar/interface.d.ts +23 -0
- package/types/component/data-zoom/scroll-bar/scroll-bar.d.ts +29 -0
- package/types/component/data-zoom/util.d.ts +19 -0
- package/types/component/geo/geo-coordinate.d.ts +62 -0
- package/types/component/geo/index.d.ts +2 -0
- package/types/component/geo/interface.d.ts +27 -0
- package/types/component/geo/projection.d.ts +17 -0
- package/types/component/index.d.ts +46 -0
- package/types/component/indicator/index.d.ts +2 -0
- package/types/component/indicator/indicator.d.ts +42 -0
- package/types/component/indicator/interface.d.ts +32 -0
- package/types/component/indicator/util.d.ts +13 -0
- package/types/component/interface/common.d.ts +36 -0
- package/types/component/interface/index.d.ts +4 -0
- package/types/component/interface/theme.d.ts +42 -0
- package/types/component/interface/tooltip-helper.d.ts +5 -0
- package/types/component/interface/type.d.ts +35 -0
- package/types/component/label/base-label.d.ts +40 -0
- package/types/component/label/index.d.ts +2 -0
- package/types/component/label/interface.d.ts +32 -0
- package/types/component/label/label.d.ts +47 -0
- package/types/component/label/totalLabel.d.ts +28 -0
- package/types/component/label/util.d.ts +57 -0
- package/types/component/legend/base-legend.d.ts +63 -0
- package/types/component/legend/continuous/index.d.ts +2 -0
- package/types/component/legend/continuous/interface.d.ts +58 -0
- package/types/component/legend/continuous/legend.d.ts +27 -0
- package/types/component/legend/continuous/util.d.ts +8 -0
- package/types/component/legend/discrete/index.d.ts +2 -0
- package/types/component/legend/discrete/interface.d.ts +61 -0
- package/types/component/legend/discrete/legend.d.ts +26 -0
- package/types/component/legend/discrete/util.d.ts +3 -0
- package/types/component/legend/index.d.ts +3 -0
- package/types/component/legend/interface.d.ts +39 -0
- package/types/component/legend/util.d.ts +26 -0
- package/types/component/map-label/component.d.ts +54 -0
- package/types/component/map-label/index.d.ts +2 -0
- package/types/component/map-label/interface.d.ts +40 -0
- package/types/component/map-label/layout.d.ts +23 -0
- package/types/component/marker/base-marker.d.ts +66 -0
- package/types/component/marker/interface.d.ts +65 -0
- package/types/component/marker/mark-area/index.d.ts +2 -0
- package/types/component/marker/mark-area/interface/index.d.ts +2 -0
- package/types/component/marker/mark-area/interface/spec.d.ts +26 -0
- package/types/component/marker/mark-area/interface/theme.d.ts +11 -0
- package/types/component/marker/mark-area/mark-area.d.ts +20 -0
- package/types/component/marker/mark-line/index.d.ts +2 -0
- package/types/component/marker/mark-line/interface/index.d.ts +2 -0
- package/types/component/marker/mark-line/interface/spec.d.ts +53 -0
- package/types/component/marker/mark-line/interface/theme.d.ts +13 -0
- package/types/component/marker/mark-line/mark-line.d.ts +20 -0
- package/types/component/marker/mark-line/util.d.ts +9 -0
- package/types/component/marker/mark-point/index.d.ts +2 -0
- package/types/component/marker/mark-point/interface/index.d.ts +2 -0
- package/types/component/marker/mark-point/interface/spec.d.ts +14 -0
- package/types/component/marker/mark-point/interface/theme.d.ts +37 -0
- package/types/component/marker/mark-point/mark-point.d.ts +20 -0
- package/types/component/marker/utils.d.ts +6 -0
- package/types/component/player/index.d.ts +2 -0
- package/types/component/player/interface/index.d.ts +2 -0
- package/types/component/player/interface/spec.d.ts +18 -0
- package/types/component/player/interface/theme.d.ts +32 -0
- package/types/component/player/player.d.ts +54 -0
- package/types/component/player/utils/index.d.ts +1 -0
- package/types/component/player/utils/orient.d.ts +3 -0
- package/types/component/player/utils/transform.d.ts +4 -0
- package/types/component/poptip/index.d.ts +1 -0
- package/types/component/poptip/interface.d.ts +15 -0
- package/types/component/title/index.d.ts +2 -0
- package/types/component/title/interface/index.d.ts +2 -0
- package/types/component/title/interface/spec.d.ts +45 -0
- package/types/component/title/interface/theme.d.ts +19 -0
- package/types/component/title/title.d.ts +49 -0
- package/types/component/title/utils.d.ts +2 -0
- package/types/component/tooltip/handler/base.d.ts +50 -0
- package/types/component/tooltip/handler/canvas/canvas-tooltip-handler.d.ts +19 -0
- package/types/component/tooltip/handler/canvas/index.d.ts +1 -0
- package/types/component/tooltip/handler/constants.d.ts +17 -0
- package/types/component/tooltip/handler/dom/dom-tooltip-handler.d.ts +25 -0
- package/types/component/tooltip/handler/dom/index.d.ts +1 -0
- package/types/component/tooltip/handler/dom/interface.d.ts +57 -0
- package/types/component/tooltip/handler/dom/model/base-tooltip-model.d.ts +25 -0
- package/types/component/tooltip/handler/dom/model/content-column-model.d.ts +23 -0
- package/types/component/tooltip/handler/dom/model/content-model.d.ts +15 -0
- package/types/component/tooltip/handler/dom/model/interface.d.ts +9 -0
- package/types/component/tooltip/handler/dom/model/shape-model.d.ts +22 -0
- package/types/component/tooltip/handler/dom/model/style-constants.d.ts +8 -0
- package/types/component/tooltip/handler/dom/model/text-model.d.ts +5 -0
- package/types/component/tooltip/handler/dom/model/title-model.d.ts +15 -0
- package/types/component/tooltip/handler/dom/model/tooltip-model.d.ts +21 -0
- package/types/component/tooltip/handler/dom/util.d.ts +6 -0
- package/types/component/tooltip/handler/index.d.ts +2 -0
- package/types/component/tooltip/handler/interface/index.d.ts +1 -0
- package/types/component/tooltip/handler/interface/style.d.ts +8 -0
- package/types/component/tooltip/handler/utils/attribute.d.ts +9 -0
- package/types/component/tooltip/handler/utils/common.d.ts +18 -0
- package/types/component/tooltip/handler/utils/compose.d.ts +5 -0
- package/types/component/tooltip/handler/utils/get-spec.d.ts +5 -0
- package/types/component/tooltip/handler/utils/index.d.ts +6 -0
- package/types/component/tooltip/handler/utils/pattern.d.ts +4 -0
- package/types/component/tooltip/handler/utils/position.d.ts +7 -0
- package/types/component/tooltip/index.d.ts +2 -0
- package/types/component/tooltip/interface/common.d.ts +24 -0
- package/types/component/tooltip/interface/event.d.ts +8 -0
- package/types/component/tooltip/interface/index.d.ts +3 -0
- package/types/component/tooltip/interface/spec.d.ts +29 -0
- package/types/component/tooltip/interface/theme.d.ts +49 -0
- package/types/component/tooltip/processor/base.d.ts +18 -0
- package/types/component/tooltip/processor/dimension-tooltip.d.ts +10 -0
- package/types/component/tooltip/processor/index.d.ts +5 -0
- package/types/component/tooltip/processor/interface.d.ts +16 -0
- package/types/component/tooltip/processor/mark-tooltip.d.ts +10 -0
- package/types/component/tooltip/processor/util.d.ts +4 -0
- package/types/component/tooltip/tooltip.d.ts +64 -0
- package/types/component/tooltip/utils/common.d.ts +5 -0
- package/types/component/tooltip/utils/index.d.ts +2 -0
- package/types/component/tooltip/utils/show-tooltip.d.ts +3 -0
- package/types/component/util.d.ts +4 -0
- package/types/constant/base.d.ts +3 -0
- package/types/constant/box-plot.d.ts +10 -0
- package/types/constant/correlation.d.ts +3 -0
- package/types/constant/event.d.ts +57 -0
- package/types/constant/funnel.d.ts +14 -0
- package/types/constant/hierarchy.d.ts +3 -0
- package/types/constant/index.d.ts +110 -0
- package/types/constant/label.d.ts +6 -0
- package/types/constant/layout.d.ts +2 -0
- package/types/constant/marker.d.ts +4 -0
- package/types/constant/polar.d.ts +23 -0
- package/types/constant/scatter.d.ts +7 -0
- package/types/constant/scroll-bar.d.ts +1 -0
- package/types/constant/sunburst.d.ts +1 -0
- package/types/constant/waterfall.d.ts +1 -0
- package/types/constant/word-cloud.d.ts +7 -0
- package/types/core/factory.d.ts +48 -0
- package/types/core/index.d.ts +12 -0
- package/types/core/instance-manager.d.ts +10 -0
- package/types/core/interface.d.ts +92 -0
- package/types/core/util.d.ts +3 -0
- package/types/core/vchart.d.ts +149 -0
- package/types/data/initialize.d.ts +21 -0
- package/types/data/parser/array.d.ts +2 -0
- package/types/data/parser/scale.d.ts +2 -0
- package/types/data/register.d.ts +3 -0
- package/types/data/transforms/add-property.d.ts +12 -0
- package/types/data/transforms/aggregation.d.ts +33 -0
- package/types/data/transforms/box-plot.d.ts +5 -0
- package/types/data/transforms/circle-packing.d.ts +7 -0
- package/types/data/transforms/copy-data-view.d.ts +5 -0
- package/types/data/transforms/correlation-center.d.ts +4 -0
- package/types/data/transforms/correlation.d.ts +17 -0
- package/types/data/transforms/data-key.d.ts +20 -0
- package/types/data/transforms/dimension-data.d.ts +10 -0
- package/types/data/transforms/dimension-statistics.d.ts +24 -0
- package/types/data/transforms/drill.d.ts +14 -0
- package/types/data/transforms/flatten.d.ts +9 -0
- package/types/data/transforms/funnel.d.ts +51 -0
- package/types/data/transforms/hierarchy-dimension-statistics.d.ts +3 -0
- package/types/data/transforms/invalid-travel.d.ts +8 -0
- package/types/data/transforms/legend-data/continuous/continuous.d.ts +4 -0
- package/types/data/transforms/legend-data/continuous/index.d.ts +2 -0
- package/types/data/transforms/legend-data/continuous/interface.d.ts +13 -0
- package/types/data/transforms/legend-data/discrete/discrete.d.ts +4 -0
- package/types/data/transforms/legend-data/discrete/index.d.ts +2 -0
- package/types/data/transforms/legend-data/discrete/interface.d.ts +15 -0
- package/types/data/transforms/link-dot-info.d.ts +13 -0
- package/types/data/transforms/lookup.d.ts +12 -0
- package/types/data/transforms/map.d.ts +7 -0
- package/types/data/transforms/obj-flat.d.ts +2 -0
- package/types/data/transforms/pie.d.ts +17 -0
- package/types/data/transforms/regression.d.ts +6 -0
- package/types/data/transforms/sankey-links.d.ts +2 -0
- package/types/data/transforms/sankey-nodes.d.ts +2 -0
- package/types/data/transforms/sankey.d.ts +22 -0
- package/types/data/transforms/stack-split.d.ts +6 -0
- package/types/data/transforms/sunburst.d.ts +7 -0
- package/types/data/transforms/treemap.d.ts +11 -0
- package/types/data/transforms/waterfall.d.ts +25 -0
- package/types/env/env.d.ts +7 -0
- package/types/env/index.d.ts +1 -0
- package/types/event/bubble.d.ts +15 -0
- package/types/event/event-dispatcher.d.ts +27 -0
- package/types/event/event.d.ts +18 -0
- package/types/event/events/dimension/base.d.ts +19 -0
- package/types/event/events/dimension/dimension-click.d.ts +7 -0
- package/types/event/events/dimension/dimension-hover.d.ts +9 -0
- package/types/event/events/dimension/index.d.ts +3 -0
- package/types/event/events/dimension/interface.d.ts +22 -0
- package/types/event/events/dimension/util/cartesian.d.ts +8 -0
- package/types/event/events/dimension/util/common.d.ts +8 -0
- package/types/event/events/dimension/util/index.d.ts +3 -0
- package/types/event/events/dimension/util/polar.d.ts +4 -0
- package/types/event/events/index.d.ts +5 -0
- package/types/event/interface.d.ts +160 -0
- package/types/index-lark.d.ts +4 -0
- package/types/index-wx.d.ts +4 -0
- package/types/index.d.ts +9 -0
- package/types/interaction/config.d.ts +22 -0
- package/types/interaction/dimension-trigger.d.ts +32 -0
- package/types/interaction/drill/drillable.d.ts +28 -0
- package/types/interaction/drill/index.d.ts +1 -0
- package/types/interaction/interaction.d.ts +20 -0
- package/types/interaction/interface.d.ts +49 -0
- package/types/interaction/trigger.d.ts +38 -0
- package/types/interaction/zoom/index.d.ts +1 -0
- package/types/interaction/zoom/zoomable.d.ts +80 -0
- package/types/layout/base-layout.d.ts +35 -0
- package/types/layout/grid-layout/grid-layout.d.ts +51 -0
- package/types/layout/index.d.ts +6 -0
- package/types/layout/interface.d.ts +45 -0
- package/types/layout/layout3d/index.d.ts +31 -0
- package/types/layout/util.d.ts +6 -0
- package/types/mark/arc-3d.d.ts +9 -0
- package/types/mark/arc.d.ts +20 -0
- package/types/mark/area.d.ts +11 -0
- package/types/mark/base/base-line.d.ts +8 -0
- package/types/mark/base/base-mark.d.ts +38 -0
- package/types/mark/base/index.d.ts +2 -0
- package/types/mark/box-plot.d.ts +12 -0
- package/types/mark/cell.d.ts +10 -0
- package/types/mark/component.d.ts +14 -0
- package/types/mark/group.d.ts +31 -0
- package/types/mark/image.d.ts +10 -0
- package/types/mark/index.d.ts +22 -0
- package/types/mark/interface/common.d.ts +77 -0
- package/types/mark/interface/index.d.ts +2 -0
- package/types/mark/interface/type.d.ts +24 -0
- package/types/mark/label.d.ts +27 -0
- package/types/mark/line.d.ts +11 -0
- package/types/mark/link-path.d.ts +12 -0
- package/types/mark/mark-set/index.d.ts +22 -0
- package/types/mark/path.d.ts +10 -0
- package/types/mark/polygon/base-polygon.d.ts +6 -0
- package/types/mark/polygon/polygon.d.ts +10 -0
- package/types/mark/polygon/pyramid-3d.d.ts +9 -0
- package/types/mark/progress-arc.d.ts +13 -0
- package/types/mark/rect-3d.d.ts +10 -0
- package/types/mark/rect.d.ts +10 -0
- package/types/mark/ripple.d.ts +12 -0
- package/types/mark/rule.d.ts +10 -0
- package/types/mark/symbol.d.ts +12 -0
- package/types/mark/text.d.ts +10 -0
- package/types/mark/utils/common.d.ts +3 -0
- package/types/mark/utils/index.d.ts +1 -0
- package/types/model/base-model.d.ts +84 -0
- package/types/model/interface.d.ts +188 -0
- package/types/model/layout-item.d.ts +59 -0
- package/types/model/tooltip-helper.d.ts +25 -0
- package/types/plugin/chart/interface.d.ts +6 -0
- package/types/plugin/components/axis-sync-plugin/axis-sync.d.ts +11 -0
- package/types/plugin/components/axis-sync-plugin/index.d.ts +1 -0
- package/types/plugin/components/axis-sync-plugin/tick-align-transform.d.ts +7 -0
- package/types/plugin/components/axis-sync-plugin/zero-align-transform.d.ts +15 -0
- package/types/plugin/components/basic-plugin.d.ts +9 -0
- package/types/plugin/components/index.d.ts +5 -0
- package/types/plugin/components/interface.d.ts +33 -0
- package/types/plugin/components/plugin-service.d.ts +15 -0
- package/types/plugin/interface.d.ts +4 -0
- package/types/plugin/series/interface.d.ts +9 -0
- package/types/region/interface.d.ts +59 -0
- package/types/region/region.d.ts +75 -0
- package/types/scale/color-ordinal-scale.d.ts +8 -0
- package/types/scale/global-scale.d.ts +37 -0
- package/types/scale/interface.d.ts +18 -0
- package/types/series/area/animation.d.ts +8 -0
- package/types/series/area/area.d.ts +32 -0
- package/types/series/area/constant.d.ts +2 -0
- package/types/series/area/interface.d.ts +22 -0
- package/types/series/area/tooltip-helpter.d.ts +5 -0
- package/types/series/bar/animation.d.ts +14 -0
- package/types/series/bar/bar-3d.d.ts +14 -0
- package/types/series/bar/bar.d.ts +52 -0
- package/types/series/bar/constant.d.ts +3 -0
- package/types/series/bar/interface.d.ts +39 -0
- package/types/series/base/base-series.d.ts +189 -0
- package/types/series/base/constant.d.ts +2 -0
- package/types/series/base/group.d.ts +12 -0
- package/types/series/base/series-data.d.ts +5 -0
- package/types/series/base/tooltip-helper.d.ts +29 -0
- package/types/series/box-plot/box-plot.d.ts +63 -0
- package/types/series/box-plot/constant.d.ts +2 -0
- package/types/series/box-plot/interface.d.ts +23 -0
- package/types/series/box-plot/tooltip-helper.d.ts +12 -0
- package/types/series/cartesian/cartesian.d.ts +95 -0
- package/types/series/cartesian/index.d.ts +2 -0
- package/types/series/cartesian/interface.d.ts +15 -0
- package/types/series/circle-packing/animation.d.ts +5 -0
- package/types/series/circle-packing/circle-packing.d.ts +45 -0
- package/types/series/circle-packing/constant.d.ts +2 -0
- package/types/series/circle-packing/interface.d.ts +21 -0
- package/types/series/circle-packing/tooltip-helper.d.ts +5 -0
- package/types/series/correlation/animation.d.ts +8 -0
- package/types/series/correlation/constant.d.ts +2 -0
- package/types/series/correlation/correlation.d.ts +55 -0
- package/types/series/correlation/interface.d.ts +37 -0
- package/types/series/dot/config.d.ts +4 -0
- package/types/series/dot/constant.d.ts +2 -0
- package/types/series/dot/dot.d.ts +73 -0
- package/types/series/dot/interface.d.ts +40 -0
- package/types/series/dot/tooltip-helper.d.ts +7 -0
- package/types/series/funnel/constant.d.ts +3 -0
- package/types/series/funnel/funnel-3d.d.ts +22 -0
- package/types/series/funnel/funnel.d.ts +95 -0
- package/types/series/funnel/interface.d.ts +61 -0
- package/types/series/funnel/tooltip-helper.d.ts +9 -0
- package/types/series/gauge/constant.d.ts +3 -0
- package/types/series/gauge/gauge-pointer.d.ts +37 -0
- package/types/series/gauge/gauge.d.ts +33 -0
- package/types/series/gauge/index.d.ts +3 -0
- package/types/series/gauge/interface.d.ts +48 -0
- package/types/series/geo/geo.d.ts +55 -0
- package/types/series/geo/interface.d.ts +4 -0
- package/types/series/heatmap/animation.d.ts +4 -0
- package/types/series/heatmap/constant.d.ts +2 -0
- package/types/series/heatmap/heatmap.d.ts +39 -0
- package/types/series/heatmap/interface.d.ts +23 -0
- package/types/series/heatmap/tooltip-helper.d.ts +6 -0
- package/types/series/index.d.ts +70 -0
- package/types/series/interface/common.d.ts +73 -0
- package/types/series/interface/index.d.ts +5 -0
- package/types/series/interface/series.d.ts +177 -0
- package/types/series/interface/theme.d.ts +104 -0
- package/types/series/interface/tooltip-helper.d.ts +13 -0
- package/types/series/interface/type.d.ts +91 -0
- package/types/series/line/animation.d.ts +7 -0
- package/types/series/line/constant.d.ts +2 -0
- package/types/series/line/interface.d.ts +21 -0
- package/types/series/line/line.d.ts +26 -0
- package/types/series/link/constant.d.ts +2 -0
- package/types/series/link/interface.d.ts +25 -0
- package/types/series/link/link.d.ts +53 -0
- package/types/series/link/tooltip-helper.d.ts +6 -0
- package/types/series/map/constant.d.ts +2 -0
- package/types/series/map/geo-source.d.ts +20 -0
- package/types/series/map/interface.d.ts +31 -0
- package/types/series/map/map.d.ts +48 -0
- package/types/series/map/tooltip-helper.d.ts +5 -0
- package/types/series/mixin/constant.d.ts +2 -0
- package/types/series/mixin/line-mixin.d.ts +60 -0
- package/types/series/pie/animation/animation.d.ts +25 -0
- package/types/series/pie/animation/centerOffset.d.ts +6 -0
- package/types/series/pie/constant.d.ts +3 -0
- package/types/series/pie/interface.d.ts +67 -0
- package/types/series/pie/pie-3d.d.ts +16 -0
- package/types/series/pie/pie.d.ts +83 -0
- package/types/series/polar/animation.d.ts +41 -0
- package/types/series/polar/interface.d.ts +22 -0
- package/types/series/polar/polar.d.ts +59 -0
- package/types/series/polar/progress-like/animation.d.ts +7 -0
- package/types/series/polar/progress-like/constant.d.ts +2 -0
- package/types/series/polar/progress-like/index.d.ts +3 -0
- package/types/series/polar/progress-like/interface.d.ts +21 -0
- package/types/series/polar/progress-like/progress-like.d.ts +34 -0
- package/types/series/polar/rose-like/index.d.ts +2 -0
- package/types/series/polar/rose-like/interface.d.ts +3 -0
- package/types/series/polar/rose-like/rose-like.d.ts +13 -0
- package/types/series/progress/circular/circular.d.ts +28 -0
- package/types/series/progress/circular/constant.d.ts +2 -0
- package/types/series/progress/circular/index.d.ts +1 -0
- package/types/series/progress/circular/interface.d.ts +20 -0
- package/types/series/progress/interface.d.ts +7 -0
- package/types/series/progress/linear/animation.d.ts +10 -0
- package/types/series/progress/linear/constant.d.ts +2 -0
- package/types/series/progress/linear/index.d.ts +1 -0
- package/types/series/progress/linear/interface.d.ts +26 -0
- package/types/series/progress/linear/linear.d.ts +27 -0
- package/types/series/progress/linear/tooltip-helper.d.ts +7 -0
- package/types/series/radar/animation.d.ts +73 -0
- package/types/series/radar/constant.d.ts +2 -0
- package/types/series/radar/interface.d.ts +22 -0
- package/types/series/radar/radar.d.ts +29 -0
- package/types/series/range-area/constant.d.ts +2 -0
- package/types/series/range-area/interface.d.ts +7 -0
- package/types/series/range-area/range-area.d.ts +15 -0
- package/types/series/range-area/tooltip-helper.d.ts +7 -0
- package/types/series/range-column/animation.d.ts +10 -0
- package/types/series/range-column/constant.d.ts +3 -0
- package/types/series/range-column/interface.d.ts +56 -0
- package/types/series/range-column/range-column-3d.d.ts +15 -0
- package/types/series/range-column/range-column.d.ts +26 -0
- package/types/series/range-column/tooltip-helper.d.ts +6 -0
- package/types/series/rose/animation.d.ts +13 -0
- package/types/series/rose/constant.d.ts +2 -0
- package/types/series/rose/interface.d.ts +19 -0
- package/types/series/rose/rose.d.ts +28 -0
- package/types/series/sankey/animation.d.ts +13 -0
- package/types/series/sankey/constant.d.ts +2 -0
- package/types/series/sankey/interface.d.ts +108 -0
- package/types/series/sankey/sankey.d.ts +61 -0
- package/types/series/sankey/tooltip-helper.d.ts +7 -0
- package/types/series/scatter/animation.d.ts +8 -0
- package/types/series/scatter/constant.d.ts +2 -0
- package/types/series/scatter/interface.d.ts +24 -0
- package/types/series/scatter/scatter.d.ts +37 -0
- package/types/series/sunburst/animation/enter.d.ts +3 -0
- package/types/series/sunburst/animation/exit.d.ts +3 -0
- package/types/series/sunburst/animation/index.d.ts +6 -0
- package/types/series/sunburst/animation/interface.d.ts +12 -0
- package/types/series/sunburst/animation/preset.d.ts +3 -0
- package/types/series/sunburst/animation/utils.d.ts +3 -0
- package/types/series/sunburst/constant.d.ts +2 -0
- package/types/series/sunburst/interface.d.ts +41 -0
- package/types/series/sunburst/sunburst.d.ts +60 -0
- package/types/series/sunburst/tooltip-helper.d.ts +5 -0
- package/types/series/treemap/animation.d.ts +5 -0
- package/types/series/treemap/constant.d.ts +2 -0
- package/types/series/treemap/interface.d.ts +41 -0
- package/types/series/treemap/tooltip-helper.d.ts +5 -0
- package/types/series/treemap/treemap.d.ts +58 -0
- package/types/series/util/label-mark.d.ts +4 -0
- package/types/series/util/spec.d.ts +2 -0
- package/types/series/util/stack.d.ts +9 -0
- package/types/series/util/utils.d.ts +5 -0
- package/types/series/waterfall/animation.d.ts +5 -0
- package/types/series/waterfall/constant.d.ts +2 -0
- package/types/series/waterfall/interface.d.ts +60 -0
- package/types/series/waterfall/waterfall.d.ts +40 -0
- package/types/series/word-cloud/animation.d.ts +14 -0
- package/types/series/word-cloud/base.d.ts +62 -0
- package/types/series/word-cloud/config.d.ts +16 -0
- package/types/series/word-cloud/constant.d.ts +2 -0
- package/types/series/word-cloud/interface.d.ts +120 -0
- package/types/series/word-cloud/word-cloud-3d.d.ts +13 -0
- package/types/series/word-cloud/word-cloud.d.ts +9 -0
- package/types/theme/builtin/common/component/axis/band-axis.d.ts +2 -0
- package/types/theme/builtin/common/component/axis/cartesian-axis.d.ts +3 -0
- package/types/theme/builtin/common/component/axis/common-axis.d.ts +2 -0
- package/types/theme/builtin/common/component/axis/linear-axis.d.ts +2 -0
- package/types/theme/builtin/common/component/axis/polar-axis.d.ts +3 -0
- package/types/theme/builtin/common/component/brush.d.ts +2 -0
- package/types/theme/builtin/common/component/crosshair.d.ts +2 -0
- package/types/theme/builtin/common/component/data-zoom.d.ts +2 -0
- package/types/theme/builtin/common/component/index.d.ts +2 -0
- package/types/theme/builtin/common/component/indicator.d.ts +2 -0
- package/types/theme/builtin/common/component/legend/color-legend.d.ts +2 -0
- package/types/theme/builtin/common/component/legend/continuous.d.ts +2 -0
- package/types/theme/builtin/common/component/legend/discrete-legend.d.ts +2 -0
- package/types/theme/builtin/common/component/legend/size-legend.d.ts +2 -0
- package/types/theme/builtin/common/component/map-label.d.ts +2 -0
- package/types/theme/builtin/common/component/mark-area.d.ts +2 -0
- package/types/theme/builtin/common/component/mark-line.d.ts +2 -0
- package/types/theme/builtin/common/component/mark-point.d.ts +2 -0
- package/types/theme/builtin/common/component/player.d.ts +2 -0
- package/types/theme/builtin/common/component/poptip.d.ts +2 -0
- package/types/theme/builtin/common/component/scroll-bar.d.ts +2 -0
- package/types/theme/builtin/common/component/title.d.ts +2 -0
- package/types/theme/builtin/common/component/tooltip.d.ts +2 -0
- package/types/theme/builtin/common/component/total-label.d.ts +2 -0
- package/types/theme/builtin/common/constants.d.ts +2 -0
- package/types/theme/builtin/common/legacy/index.d.ts +1 -0
- package/types/theme/builtin/common/legacy/legend/color-legend.d.ts +2 -0
- package/types/theme/builtin/common/legacy/legend/continuous.d.ts +2 -0
- package/types/theme/builtin/common/legacy/legend/index.d.ts +2 -0
- package/types/theme/builtin/common/legacy/legend/size-legend.d.ts +2 -0
- package/types/theme/builtin/common/mark.d.ts +3 -0
- package/types/theme/builtin/common/series/area.d.ts +2 -0
- package/types/theme/builtin/common/series/bar.d.ts +2 -0
- package/types/theme/builtin/common/series/bar3d.d.ts +2 -0
- package/types/theme/builtin/common/series/box-plot.d.ts +2 -0
- package/types/theme/builtin/common/series/circle-packing.d.ts +2 -0
- package/types/theme/builtin/common/series/circular-progress.d.ts +2 -0
- package/types/theme/builtin/common/series/correlation.d.ts +2 -0
- package/types/theme/builtin/common/series/dot.d.ts +2 -0
- package/types/theme/builtin/common/series/funnel.d.ts +2 -0
- package/types/theme/builtin/common/series/funnel3d.d.ts +2 -0
- package/types/theme/builtin/common/series/gauge-pointer.d.ts +2 -0
- package/types/theme/builtin/common/series/gauge.d.ts +2 -0
- package/types/theme/builtin/common/series/heatmap.d.ts +2 -0
- package/types/theme/builtin/common/series/index.d.ts +2 -0
- package/types/theme/builtin/common/series/line.d.ts +2 -0
- package/types/theme/builtin/common/series/linear-progress.d.ts +2 -0
- package/types/theme/builtin/common/series/link.d.ts +2 -0
- package/types/theme/builtin/common/series/map.d.ts +2 -0
- package/types/theme/builtin/common/series/pie.d.ts +2 -0
- package/types/theme/builtin/common/series/pie3d.d.ts +2 -0
- package/types/theme/builtin/common/series/radar.d.ts +2 -0
- package/types/theme/builtin/common/series/rangeColumn.d.ts +2 -0
- package/types/theme/builtin/common/series/rose.d.ts +2 -0
- package/types/theme/builtin/common/series/sankey.d.ts +2 -0
- package/types/theme/builtin/common/series/scatter.d.ts +2 -0
- package/types/theme/builtin/common/series/sunburst.d.ts +2 -0
- package/types/theme/builtin/common/series/treemap.d.ts +2 -0
- package/types/theme/builtin/common/series/waterfall.d.ts +2 -0
- package/types/theme/builtin/common/series/word-cloud.d.ts +2 -0
- package/types/theme/builtin/common/series/word-cloud3d.d.ts +2 -0
- package/types/theme/builtin/dark/color-scheme.d.ts +2 -0
- package/types/theme/builtin/dark/index.d.ts +2 -0
- package/types/theme/builtin/index.d.ts +15 -0
- package/types/theme/builtin/light/color-scheme.d.ts +2 -0
- package/types/theme/builtin/light/index.d.ts +2 -0
- package/types/theme/color-scheme/builtin/default.d.ts +2 -0
- package/types/theme/color-scheme/builtin/index.d.ts +2 -0
- package/types/theme/color-scheme/builtin/interface.d.ts +23 -0
- package/types/theme/color-scheme/index.d.ts +3 -0
- package/types/theme/color-scheme/interface.d.ts +30 -0
- package/types/theme/color-scheme/util.d.ts +10 -0
- package/types/theme/index.d.ts +4 -0
- package/types/theme/interface.d.ts +57 -0
- package/types/theme/theme-manager.d.ts +13 -0
- package/types/theme/util.d.ts +5 -0
- package/types/typings/common.d.ts +7 -0
- package/types/typings/coordinate.d.ts +9 -0
- package/types/typings/cursor.d.ts +1 -0
- package/types/typings/data.d.ts +2 -0
- package/types/typings/event.d.ts +1 -0
- package/types/typings/geo.d.ts +3 -0
- package/types/typings/group.d.ts +8 -0
- package/types/typings/index.d.ts +14 -0
- package/types/typings/interpolate.d.ts +5 -0
- package/types/typings/line-stroke.d.ts +3 -0
- package/types/typings/params.d.ts +17 -0
- package/types/typings/scale.d.ts +33 -0
- package/types/typings/shape.d.ts +27 -0
- package/types/typings/space.d.ts +19 -0
- package/types/typings/spec/chart.d.ts +61 -0
- package/types/typings/spec/common.d.ts +267 -0
- package/types/typings/spec/index.d.ts +4 -0
- package/types/typings/tooltip/common.d.ts +8 -0
- package/types/typings/tooltip/handler.d.ts +8 -0
- package/types/typings/tooltip/index.d.ts +6 -0
- package/types/typings/tooltip/label.d.ts +10 -0
- package/types/typings/tooltip/line.d.ts +18 -0
- package/types/typings/tooltip/position.d.ts +31 -0
- package/types/typings/tooltip/shape.d.ts +23 -0
- package/types/typings/tooltip/tooltip.d.ts +26 -0
- package/types/typings/visual.d.ts +285 -0
- package/types/util/array.d.ts +3 -0
- package/types/util/color.d.ts +3 -0
- package/types/util/data.d.ts +38 -0
- package/types/util/debug.d.ts +9 -0
- package/types/util/env.d.ts +7 -0
- package/types/util/hierarchy.d.ts +3 -0
- package/types/util/id.d.ts +2 -0
- package/types/util/image.d.ts +4 -0
- package/types/util/index.d.ts +22 -0
- package/types/util/math.d.ts +27 -0
- package/types/util/model.d.ts +4 -0
- package/types/util/object.d.ts +3 -0
- package/types/util/scale.d.ts +20 -0
- package/types/util/space.d.ts +14 -0
- package/types/util/spec/background.d.ts +4 -0
- package/types/util/spec/clone-deep.d.ts +1 -0
- package/types/util/spec/common.d.ts +5 -0
- package/types/util/spec/index.d.ts +7 -0
- package/types/util/spec/merge-spec.d.ts +5 -0
- package/types/util/spec/merge-theme.d.ts +6 -0
- package/types/util/spec/preprocess.d.ts +3 -0
- package/types/util/spec/transform.d.ts +3 -0
- package/types/util/style.d.ts +4 -0
- package/types/util/text.d.ts +5 -0
- package/types/util/type.d.ts +7 -0
- package/types/vchart-all.d.ts +2 -0
- package/types/vchart-simple.d.ts +3 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { IOrientType, IRectMarkSpec, StringOrNumber } from '../../../../typings';
|
|
2
|
+
import type { IBandAxisSpec, ILinearAxisSpec, IGrid, ICommonAxisSpec } from '../../interface';
|
|
3
|
+
import type { ICartesianDomainLine, ICartesianLabel, ITimeLayerType, ICartesianTitle, ICartesianAxisUnit } from './common';
|
|
4
|
+
import type { AxisItemStateStyle } from '@visactor/vrender-components';
|
|
5
|
+
export type ICartesianAxisSpec = ICartesianLinearAxisSpec | ICartesianBandAxisSpec | ICartesianTimeAxisSpec | ICartesianLogAxisSpec | ICartesianSymlogAxisSpec;
|
|
6
|
+
export type ICartesianAxisCommonSpec = ICommonAxisSpec & {
|
|
7
|
+
orient: IOrientType;
|
|
8
|
+
grid?: IGrid;
|
|
9
|
+
subGrid?: IGrid;
|
|
10
|
+
domainLine?: ICartesianDomainLine;
|
|
11
|
+
label?: ICartesianLabel;
|
|
12
|
+
title?: ICartesianTitle;
|
|
13
|
+
autoIndent?: boolean;
|
|
14
|
+
background?: {
|
|
15
|
+
visible: boolean;
|
|
16
|
+
style?: Partial<IRectMarkSpec>;
|
|
17
|
+
state?: AxisItemStateStyle<Partial<IRectMarkSpec>>;
|
|
18
|
+
};
|
|
19
|
+
mode?: '2d' | '3d';
|
|
20
|
+
depth?: number;
|
|
21
|
+
unit?: ICartesianAxisUnit;
|
|
22
|
+
};
|
|
23
|
+
export interface ILinearAxisSync {
|
|
24
|
+
axisId: StringOrNumber;
|
|
25
|
+
zeroAlign?: boolean;
|
|
26
|
+
tickAlign?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export type ICartesianLinearAxisSpec = ICartesianAxisCommonSpec & ILinearAxisSpec & {
|
|
29
|
+
sync?: ILinearAxisSync;
|
|
30
|
+
};
|
|
31
|
+
export type ICartesianBandAxisSpec = ICartesianAxisCommonSpec & IBandAxisSpec & {
|
|
32
|
+
bandSize?: number;
|
|
33
|
+
maxBandSize?: number;
|
|
34
|
+
minBandSize?: number;
|
|
35
|
+
autoRegionSize?: boolean;
|
|
36
|
+
};
|
|
37
|
+
export type ICartesianTimeAxisSpec = Omit<ICartesianAxisCommonSpec, 'inverse'> & {
|
|
38
|
+
layers?: ITimeLayerType[];
|
|
39
|
+
};
|
|
40
|
+
export type ICartesianLogAxisSpec = ICartesianLinearAxisSpec & {
|
|
41
|
+
base?: number;
|
|
42
|
+
};
|
|
43
|
+
export type ICartesianSymlogAxisSpec = ICartesianLinearAxisSpec & {
|
|
44
|
+
constant?: number;
|
|
45
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ILayoutPaddingSpec, ILayoutNumber } from '../../../../model/interface';
|
|
2
|
+
import type { ITick, IGrid } from '../../interface';
|
|
3
|
+
import type { ICartesianAxisUnit, ICartesianDomainLine, ICartesianLabel, ICartesianTitle } from './common';
|
|
4
|
+
import type { ICartesianAxisCommonSpec } from './spec';
|
|
5
|
+
export interface ICartesianAxisCommonTheme {
|
|
6
|
+
grid?: IGrid;
|
|
7
|
+
subGrid?: IGrid;
|
|
8
|
+
domainLine?: ICartesianDomainLine;
|
|
9
|
+
label?: ICartesianLabel;
|
|
10
|
+
title?: ICartesianTitle;
|
|
11
|
+
tick?: ITick;
|
|
12
|
+
subTick?: ITick;
|
|
13
|
+
background?: ICartesianAxisCommonSpec['background'];
|
|
14
|
+
padding?: ILayoutPaddingSpec;
|
|
15
|
+
width?: ILayoutNumber;
|
|
16
|
+
maxWidth?: ILayoutNumber;
|
|
17
|
+
minWidth?: ILayoutNumber;
|
|
18
|
+
height?: ILayoutNumber;
|
|
19
|
+
maxHeight?: ILayoutNumber;
|
|
20
|
+
minHeight?: ILayoutNumber;
|
|
21
|
+
unit?: ICartesianAxisUnit;
|
|
22
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { LogScale } from '@visactor/vscale';
|
|
2
|
+
import { LinearScale } from '@visactor/vscale';
|
|
3
|
+
import { CartesianAxis } from './axis';
|
|
4
|
+
import type { IAxisHelper, ICartesianLinearAxisSpec } from './interface';
|
|
5
|
+
import { ComponentTypeEnum } from '../../interface/type';
|
|
6
|
+
import { LinearAxisMixin } from '../mixin/linear-axis-mixin';
|
|
7
|
+
export interface CartesianLinearAxis<T extends ICartesianLinearAxisSpec = ICartesianLinearAxisSpec> extends Pick<LinearAxisMixin, 'setExtraAttrFromSpec' | 'computeLinearDomain' | 'valueToPosition' | 'setScaleNice' | '_domain' | 'transformScaleDomain' | 'setExtendDomain'>, CartesianAxis<T> {
|
|
8
|
+
}
|
|
9
|
+
export declare class CartesianLinearAxis<T extends ICartesianLinearAxisSpec = ICartesianLinearAxisSpec> extends CartesianAxis<T> {
|
|
10
|
+
static type: ComponentTypeEnum;
|
|
11
|
+
type: ComponentTypeEnum;
|
|
12
|
+
protected _zero: boolean;
|
|
13
|
+
protected _nice: boolean;
|
|
14
|
+
protected _extend: {
|
|
15
|
+
[key: string]: number;
|
|
16
|
+
};
|
|
17
|
+
protected _scale: LinearScale | LogScale;
|
|
18
|
+
protected _scales: LinearScale[] | LogScale[];
|
|
19
|
+
setAttrFromSpec(): void;
|
|
20
|
+
protected initScales(): void;
|
|
21
|
+
protected computeDomain(data: {
|
|
22
|
+
min: number;
|
|
23
|
+
max: number;
|
|
24
|
+
values: any[];
|
|
25
|
+
}[]): number[];
|
|
26
|
+
protected axisHelper(): IAxisHelper;
|
|
27
|
+
}
|
|
28
|
+
export declare const registerCartesianLinearAxis: () => void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CartesianLinearAxis } from './linear-axis';
|
|
2
|
+
import { ComponentTypeEnum } from '../../interface/type';
|
|
3
|
+
import { LinearAxisMixin } from '../mixin/linear-axis-mixin';
|
|
4
|
+
import { LogScale } from '@visactor/vscale';
|
|
5
|
+
import type { ICartesianLogAxisSpec } from './interface';
|
|
6
|
+
export interface CartesianLogAxis<T extends ICartesianLogAxisSpec = ICartesianLogAxisSpec> extends Pick<LinearAxisMixin, 'valueToPosition'>, CartesianLinearAxis<T> {
|
|
7
|
+
}
|
|
8
|
+
export declare class CartesianLogAxis<T extends ICartesianLogAxisSpec = ICartesianLogAxisSpec> extends CartesianLinearAxis<T> {
|
|
9
|
+
static type: ComponentTypeEnum;
|
|
10
|
+
type: ComponentTypeEnum;
|
|
11
|
+
protected _zero: boolean;
|
|
12
|
+
protected _scale: LogScale;
|
|
13
|
+
protected _scales: LogScale[];
|
|
14
|
+
protected initScales(): void;
|
|
15
|
+
transformScaleDomain(): void;
|
|
16
|
+
}
|
|
17
|
+
export declare const registerCartesianLogAxis: () => void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CartesianLinearAxis } from './linear-axis';
|
|
2
|
+
import { ComponentTypeEnum } from '../../interface/type';
|
|
3
|
+
import { LinearAxisMixin } from '../mixin/linear-axis-mixin';
|
|
4
|
+
import { SymlogScale } from '@visactor/vscale';
|
|
5
|
+
import type { ICartesianSymlogAxisSpec } from './interface';
|
|
6
|
+
export interface CartesianSymlogAxis<T extends ICartesianSymlogAxisSpec = ICartesianSymlogAxisSpec> extends Pick<LinearAxisMixin, 'valueToPosition'>, CartesianLinearAxis<T> {
|
|
7
|
+
}
|
|
8
|
+
export declare class CartesianSymlogAxis<T extends ICartesianSymlogAxisSpec = ICartesianSymlogAxisSpec> extends CartesianLinearAxis<T> {
|
|
9
|
+
static type: ComponentTypeEnum;
|
|
10
|
+
type: ComponentTypeEnum;
|
|
11
|
+
protected _zero: boolean;
|
|
12
|
+
protected _scale: SymlogScale;
|
|
13
|
+
protected _scales: SymlogScale[];
|
|
14
|
+
protected initScales(): void;
|
|
15
|
+
transformScaleDomain(): void;
|
|
16
|
+
}
|
|
17
|
+
export declare const registerCartesianSymlogAxis: () => void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { IEffect } from '../../../model/interface';
|
|
2
|
+
import { CartesianLinearAxis } from './linear-axis';
|
|
3
|
+
import { ComponentTypeEnum } from '../../interface/type';
|
|
4
|
+
import { CompilableData } from '../../../compile/data/compilable-data';
|
|
5
|
+
import type { LinearAxisMixin } from '../mixin/linear-axis-mixin';
|
|
6
|
+
import type { ICartesianTimeAxisSpec } from './interface';
|
|
7
|
+
export interface CartesianTimeAxis<T extends ICartesianTimeAxisSpec = ICartesianTimeAxisSpec> extends Pick<LinearAxisMixin, 'valueToPosition'>, CartesianLinearAxis<T> {
|
|
8
|
+
}
|
|
9
|
+
export declare class CartesianTimeAxis<T extends ICartesianTimeAxisSpec = ICartesianTimeAxisSpec> extends CartesianLinearAxis<T> {
|
|
10
|
+
static type: ComponentTypeEnum;
|
|
11
|
+
type: ComponentTypeEnum;
|
|
12
|
+
protected _layerTickData: CompilableData;
|
|
13
|
+
protected _zero: boolean;
|
|
14
|
+
effect: IEffect;
|
|
15
|
+
setAttrFromSpec(): void;
|
|
16
|
+
protected _initData(): void;
|
|
17
|
+
protected computeData(): void;
|
|
18
|
+
protected getLabelFormatMethod(): any;
|
|
19
|
+
protected getLabelItems(length: number): any[];
|
|
20
|
+
transformScaleDomain(): void;
|
|
21
|
+
}
|
|
22
|
+
export declare const registerCartesianTimeAxis: () => void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IOrientType } from '../../../../typings';
|
|
2
|
+
import { Direction } from '../../../../typings/space';
|
|
3
|
+
import type { ICartesianAxisCommonSpec } from '../interface';
|
|
4
|
+
export declare function isXAxis(orient: IOrientType): boolean;
|
|
5
|
+
export declare function isYAxis(orient: IOrientType): boolean;
|
|
6
|
+
export declare function isZAxis(orient: IOrientType): boolean;
|
|
7
|
+
export declare function autoAxisType(orient: IOrientType, isHorizontal: boolean): "linear" | "band";
|
|
8
|
+
export declare function getOrient(spec: ICartesianAxisCommonSpec, whiteList?: string[]): IOrientType;
|
|
9
|
+
export declare function getDirectionByOrient(orient: IOrientType): Direction;
|
|
10
|
+
export declare function isOrientInSameDirection(orient1: IOrientType, orient2: IOrientType): boolean;
|
|
11
|
+
export declare function transformInverse(spec: ICartesianAxisCommonSpec, isHorizontal: boolean): boolean;
|
|
12
|
+
export declare function scaleWholeRangeSize(count: number, bandwidth: number, paddingInner: number, paddingOuter: number): number;
|
|
13
|
+
export declare function bandSpace(count: number, paddingInner: number, paddingOuter: number): number;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { StringOrNumber } from '../../../../typings';
|
|
2
|
+
export declare class TimeUtil {
|
|
3
|
+
private locale_shortWeekdays;
|
|
4
|
+
private locale_periods;
|
|
5
|
+
private locale_weekdays;
|
|
6
|
+
private locale_shortMonths;
|
|
7
|
+
private numberRe;
|
|
8
|
+
private pads;
|
|
9
|
+
private requoteRe;
|
|
10
|
+
private periodRe;
|
|
11
|
+
private periodLookup;
|
|
12
|
+
private weekdayRe;
|
|
13
|
+
private weekdayLookup;
|
|
14
|
+
private shortWeekdayRe;
|
|
15
|
+
private shortWeekdayLookup;
|
|
16
|
+
private monthRe;
|
|
17
|
+
private monthLookup;
|
|
18
|
+
private shortMonthRe;
|
|
19
|
+
private shortMonthLookup;
|
|
20
|
+
private static instance;
|
|
21
|
+
static getInstance(): TimeUtil;
|
|
22
|
+
private requoteF;
|
|
23
|
+
private constructor();
|
|
24
|
+
private requote;
|
|
25
|
+
private localDate;
|
|
26
|
+
private utcDate;
|
|
27
|
+
private newDate;
|
|
28
|
+
private formatRe;
|
|
29
|
+
private formatLookup;
|
|
30
|
+
private locale_months;
|
|
31
|
+
private formatShortWeekday;
|
|
32
|
+
private formatWeekday;
|
|
33
|
+
private formatShortMonth;
|
|
34
|
+
private formatMonth;
|
|
35
|
+
private pad;
|
|
36
|
+
private formatDayOfMonth;
|
|
37
|
+
private formatHour24;
|
|
38
|
+
private formatHour12;
|
|
39
|
+
private formatMilliseconds;
|
|
40
|
+
private formatMonthNumber;
|
|
41
|
+
private formatMinutes;
|
|
42
|
+
private formatPeriod;
|
|
43
|
+
private formatSeconds;
|
|
44
|
+
private formatFullYear;
|
|
45
|
+
private formatUTCShortWeekday;
|
|
46
|
+
private formatUTCWeekday;
|
|
47
|
+
private formatUTCShortMonth;
|
|
48
|
+
private formatUTCMonth;
|
|
49
|
+
private formatUTCDayOfMonth;
|
|
50
|
+
private formatUTCHour24;
|
|
51
|
+
private formatUTCHour12;
|
|
52
|
+
private formatUTCMilliseconds;
|
|
53
|
+
private formatUTCMonthNumber;
|
|
54
|
+
private formatUTCMinutes;
|
|
55
|
+
private formatUTCPeriod;
|
|
56
|
+
private formatUTCSeconds;
|
|
57
|
+
private formatUTCFullYear;
|
|
58
|
+
private formats;
|
|
59
|
+
private utcFormats;
|
|
60
|
+
private parseShortWeekday;
|
|
61
|
+
private parseWeekday;
|
|
62
|
+
private parseShortMonth;
|
|
63
|
+
private parseMonth;
|
|
64
|
+
private parseDayOfMonth;
|
|
65
|
+
private parseHour24;
|
|
66
|
+
private parseMilliseconds;
|
|
67
|
+
private parseMonthNumber;
|
|
68
|
+
private parseMinutes;
|
|
69
|
+
private parsePeriod;
|
|
70
|
+
private parseSeconds;
|
|
71
|
+
private parseFullYear;
|
|
72
|
+
private parses;
|
|
73
|
+
private parseSpecifier;
|
|
74
|
+
private newParse;
|
|
75
|
+
private newFormat;
|
|
76
|
+
private getFullTimeStamp;
|
|
77
|
+
timeFormat: (specifier: string, timeText: StringOrNumber) => string;
|
|
78
|
+
timeUTCFormat: (specifier: string, timeText: StringOrNumber) => string;
|
|
79
|
+
timeParse: (specifier: string, timeText: string | string) => Date;
|
|
80
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { IBaseScale } from '@visactor/vscale';
|
|
2
|
+
import type { Datum, IPolarOrientType, StringOrNumber } from '../../../typings';
|
|
3
|
+
import type { IComponent } from '../../interface/common';
|
|
4
|
+
import type { ICartesianAxisSpec } from '../cartesian/interface';
|
|
5
|
+
import type { ITextGraphicAttribute } from '@visactor/vrender-core';
|
|
6
|
+
export interface StatisticsDomain {
|
|
7
|
+
domain: any[];
|
|
8
|
+
index: {
|
|
9
|
+
[key in StringOrNumber]: number;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export interface IAxis extends IComponent {
|
|
13
|
+
valueToPosition: (value: any) => number;
|
|
14
|
+
getScale: () => IBaseScale;
|
|
15
|
+
getScales: () => IBaseScale[];
|
|
16
|
+
getOrient: () => ICartesianAxisSpec['orient'] | IPolarOrientType;
|
|
17
|
+
visible: boolean;
|
|
18
|
+
getStatisticsDomain: () => StatisticsDomain;
|
|
19
|
+
}
|
|
20
|
+
export interface IAxisItem<T> {
|
|
21
|
+
visible?: boolean;
|
|
22
|
+
style?: Omit<T, 'visible'>;
|
|
23
|
+
}
|
|
24
|
+
export interface IAxisItemTheme<T> {
|
|
25
|
+
visible?: boolean;
|
|
26
|
+
style?: Omit<T, 'visible'>;
|
|
27
|
+
}
|
|
28
|
+
export type AxisAnimationPreset = 'groupFadeIn' | 'fadeIn' | 'grow';
|
|
29
|
+
export type ITickCallbackOption = {
|
|
30
|
+
axisLength?: number;
|
|
31
|
+
labelStyle?: ITextGraphicAttribute;
|
|
32
|
+
};
|
|
33
|
+
export type StyleCallback<T> = (value: any, index: number, datum: Datum, data: Datum[]) => T;
|
|
34
|
+
export type AxisType = 'linear' | 'ordinal' | 'band' | 'point' | 'time' | 'log' | 'symlog';
|
|
35
|
+
export interface IAxisLocationCfg {
|
|
36
|
+
bandPosition?: number;
|
|
37
|
+
datum?: Datum;
|
|
38
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { AxisItem, AxisItemStateStyle } from '@visactor/vrender-components';
|
|
2
|
+
import type { IAnimationSpec } from '../../../animation/spec';
|
|
3
|
+
import type { Datum, IPadding, IRectMarkSpec, IRuleMarkSpec, ISymbolMarkSpec, ITextMarkSpec, StringOrNumber } from '../../../typings';
|
|
4
|
+
import type { IComponentSpec } from '../../base/interface';
|
|
5
|
+
import type { AxisType, IAxisItem, ITickCallbackOption, StyleCallback } from './common';
|
|
6
|
+
export interface ICommonAxisSpec extends Omit<IComponentSpec, 'orient' | 'center'>, IAnimationSpec<string, string> {
|
|
7
|
+
type?: AxisType;
|
|
8
|
+
visible?: boolean;
|
|
9
|
+
inverse?: boolean;
|
|
10
|
+
tick?: ITick;
|
|
11
|
+
subTick?: ISubTick;
|
|
12
|
+
animation?: boolean;
|
|
13
|
+
select?: boolean;
|
|
14
|
+
hover?: boolean;
|
|
15
|
+
sampling?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface ILinearAxisSpec {
|
|
18
|
+
min?: number;
|
|
19
|
+
max?: number;
|
|
20
|
+
range?: {
|
|
21
|
+
min?: number;
|
|
22
|
+
max?: number;
|
|
23
|
+
};
|
|
24
|
+
nice?: boolean;
|
|
25
|
+
niceType?: 'tickCountFirst' | 'accurateFirst';
|
|
26
|
+
zero?: boolean;
|
|
27
|
+
expand?: {
|
|
28
|
+
min?: number;
|
|
29
|
+
max?: number;
|
|
30
|
+
};
|
|
31
|
+
tooltipFilterRange?: number | [number, number];
|
|
32
|
+
}
|
|
33
|
+
export interface IBandAxisSpec {
|
|
34
|
+
bandPadding?: number | number[];
|
|
35
|
+
paddingInner?: number | number[];
|
|
36
|
+
paddingOuter?: number | number[];
|
|
37
|
+
domain?: StringOrNumber[];
|
|
38
|
+
bandPosition?: number;
|
|
39
|
+
}
|
|
40
|
+
export interface IGrid extends IAxisItem<IRuleMarkSpec> {
|
|
41
|
+
alternateColor?: string | string[];
|
|
42
|
+
alignWithLabel?: boolean;
|
|
43
|
+
style?: IRuleMarkSpec | StyleCallback<IRuleMarkSpec | undefined>;
|
|
44
|
+
zIndex?: number;
|
|
45
|
+
}
|
|
46
|
+
export interface ITick extends IAxisItem<IRuleMarkSpec> {
|
|
47
|
+
tickSize?: number;
|
|
48
|
+
inside?: boolean;
|
|
49
|
+
alignWithLabel?: boolean;
|
|
50
|
+
tickStep?: number;
|
|
51
|
+
tickCount?: number | ((option: ITickCallbackOption) => number);
|
|
52
|
+
forceTickCount?: number;
|
|
53
|
+
tickMode?: 'average' | 'd3';
|
|
54
|
+
noDecimals?: boolean;
|
|
55
|
+
style?: IRuleMarkSpec | StyleCallback<IRuleMarkSpec | undefined>;
|
|
56
|
+
state?: AxisItemStateStyle<IRuleMarkSpec>;
|
|
57
|
+
dataFilter?: (data: AxisItem[]) => AxisItem[];
|
|
58
|
+
}
|
|
59
|
+
export interface ISubTick extends IAxisItem<IRuleMarkSpec> {
|
|
60
|
+
tickCount?: number;
|
|
61
|
+
inside?: boolean;
|
|
62
|
+
tickSize?: number;
|
|
63
|
+
state?: AxisItemStateStyle<IRuleMarkSpec>;
|
|
64
|
+
}
|
|
65
|
+
export interface ILabel extends IAxisItem<ITextMarkSpec> {
|
|
66
|
+
formatMethod?: (text: string | string[], datum?: Datum) => string | string[];
|
|
67
|
+
space?: number;
|
|
68
|
+
inside?: boolean;
|
|
69
|
+
minGap?: number;
|
|
70
|
+
style?: ITextMarkSpec | StyleCallback<ITextMarkSpec | undefined>;
|
|
71
|
+
state?: AxisItemStateStyle<ITextMarkSpec>;
|
|
72
|
+
dataFilter?: (data: AxisItem[], layer: number) => AxisItem[];
|
|
73
|
+
}
|
|
74
|
+
export interface IDomainLine extends IAxisItem<IRuleMarkSpec> {
|
|
75
|
+
state?: AxisItemStateStyle<IRuleMarkSpec>;
|
|
76
|
+
}
|
|
77
|
+
export interface ITitle extends IAxisItem<ITextMarkSpec> {
|
|
78
|
+
position?: 'start' | 'middle' | 'end';
|
|
79
|
+
space?: number;
|
|
80
|
+
padding?: IPadding | number | number[];
|
|
81
|
+
background?: IAxisItem<IRectMarkSpec> & {
|
|
82
|
+
state?: AxisItemStateStyle<Partial<IRectMarkSpec>>;
|
|
83
|
+
};
|
|
84
|
+
shape?: IAxisItem<ISymbolMarkSpec> & {
|
|
85
|
+
space?: number;
|
|
86
|
+
state?: AxisItemStateStyle<Partial<ISymbolMarkSpec>>;
|
|
87
|
+
};
|
|
88
|
+
text?: string | string[];
|
|
89
|
+
angle?: number;
|
|
90
|
+
state?: AxisItemStateStyle<Partial<ITextMarkSpec>>;
|
|
91
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { IDomainLine, IGrid, ILabel, ISubTick, ITick, ITitle } from './spec';
|
|
2
|
+
export interface IAxisCommonTheme {
|
|
3
|
+
grid?: IGrid;
|
|
4
|
+
subGrid?: IGrid;
|
|
5
|
+
domainLine?: IDomainLine;
|
|
6
|
+
label?: ILabel;
|
|
7
|
+
title?: ITitle;
|
|
8
|
+
tick?: ITick;
|
|
9
|
+
subTick?: ISubTick;
|
|
10
|
+
}
|
|
11
|
+
export interface IBandAxisTheme extends IAxisCommonTheme {
|
|
12
|
+
bandPadding?: number | number[];
|
|
13
|
+
paddingInner?: number | number[];
|
|
14
|
+
paddingOuter?: number | number[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import type { Datum, IPadding, IPolarOrientType, IRectMarkSpec, IRuleMarkSpec, ISymbolMarkSpec, ITextMarkSpec, StringOrNumber } from '../../typings';
|
|
2
|
+
import type { ICartesianAxisSpec } from './cartesian/interface';
|
|
3
|
+
import type { IComponent } from '../interface';
|
|
4
|
+
import type { IBaseScale } from '@visactor/vscale';
|
|
5
|
+
import type { IAnimationSpec } from '../../animation/spec';
|
|
6
|
+
import type { AxisItem, AxisItemStateStyle } from '@visactor/vrender-components';
|
|
7
|
+
import type { IComponentSpec } from '../base/interface';
|
|
8
|
+
import type { ITextGraphicAttribute } from '@visactor/vrender-core';
|
|
9
|
+
export interface StatisticsDomain {
|
|
10
|
+
domain: any[];
|
|
11
|
+
index: {
|
|
12
|
+
[key in StringOrNumber]: number;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface IAxis extends IComponent {
|
|
16
|
+
valueToPosition: (value: any) => number;
|
|
17
|
+
getScale: () => IBaseScale;
|
|
18
|
+
getScales: () => IBaseScale[];
|
|
19
|
+
getOrient: () => ICartesianAxisSpec['orient'] | IPolarOrientType;
|
|
20
|
+
visible: boolean;
|
|
21
|
+
getStatisticsDomain: () => StatisticsDomain;
|
|
22
|
+
}
|
|
23
|
+
export interface IAxisItem<T> {
|
|
24
|
+
visible?: boolean;
|
|
25
|
+
style?: Omit<T, 'visible'>;
|
|
26
|
+
}
|
|
27
|
+
export interface IAxisItemTheme<T> {
|
|
28
|
+
visible?: boolean;
|
|
29
|
+
style?: Omit<T, 'visible'>;
|
|
30
|
+
}
|
|
31
|
+
export type AxisAnimationPreset = 'groupFadeIn' | 'fadeIn' | 'grow';
|
|
32
|
+
export interface ICommonAxisSpec extends Omit<IComponentSpec, 'orient' | 'center'>, IAnimationSpec<string, string> {
|
|
33
|
+
type?: AxisType;
|
|
34
|
+
visible?: boolean;
|
|
35
|
+
inverse?: boolean;
|
|
36
|
+
tick?: ITick;
|
|
37
|
+
subTick?: ISubTick;
|
|
38
|
+
animation?: boolean;
|
|
39
|
+
select?: boolean;
|
|
40
|
+
hover?: boolean;
|
|
41
|
+
sampling?: boolean;
|
|
42
|
+
}
|
|
43
|
+
export interface ILinearAxisSpec {
|
|
44
|
+
min?: number;
|
|
45
|
+
max?: number;
|
|
46
|
+
range?: {
|
|
47
|
+
min?: number;
|
|
48
|
+
max?: number;
|
|
49
|
+
};
|
|
50
|
+
nice?: boolean;
|
|
51
|
+
niceType?: 'tickCountFirst' | 'accurateFirst';
|
|
52
|
+
zero?: boolean;
|
|
53
|
+
expand?: {
|
|
54
|
+
min?: number;
|
|
55
|
+
max?: number;
|
|
56
|
+
};
|
|
57
|
+
tooltipFilterRange?: number | [number, number];
|
|
58
|
+
}
|
|
59
|
+
export interface IBandAxisSpec {
|
|
60
|
+
bandPadding?: number | number[];
|
|
61
|
+
paddingInner?: number | number[];
|
|
62
|
+
paddingOuter?: number | number[];
|
|
63
|
+
domain?: StringOrNumber[];
|
|
64
|
+
bandPosition?: number;
|
|
65
|
+
}
|
|
66
|
+
export interface IGrid extends IAxisItem<IRuleMarkSpec> {
|
|
67
|
+
alternateColor?: string | string[];
|
|
68
|
+
alignWithLabel?: boolean;
|
|
69
|
+
style?: IRuleMarkSpec | StyleCallback<IRuleMarkSpec | undefined>;
|
|
70
|
+
zIndex?: number;
|
|
71
|
+
}
|
|
72
|
+
export type ITickCallbackOption = {
|
|
73
|
+
axisLength?: number;
|
|
74
|
+
labelStyle?: ITextGraphicAttribute;
|
|
75
|
+
};
|
|
76
|
+
export interface ITick extends IAxisItem<IRuleMarkSpec> {
|
|
77
|
+
tickSize?: number;
|
|
78
|
+
inside?: boolean;
|
|
79
|
+
alignWithLabel?: boolean;
|
|
80
|
+
tickStep?: number;
|
|
81
|
+
tickCount?: number | ((option: ITickCallbackOption) => number);
|
|
82
|
+
forceTickCount?: number;
|
|
83
|
+
tickMode?: 'average' | 'd3';
|
|
84
|
+
noDecimals?: boolean;
|
|
85
|
+
style?: IRuleMarkSpec | StyleCallback<IRuleMarkSpec | undefined>;
|
|
86
|
+
state?: AxisItemStateStyle<IRuleMarkSpec>;
|
|
87
|
+
dataFilter?: (data: AxisItem[]) => AxisItem[];
|
|
88
|
+
}
|
|
89
|
+
export interface ISubTick extends IAxisItem<IRuleMarkSpec> {
|
|
90
|
+
tickCount?: number;
|
|
91
|
+
inside?: boolean;
|
|
92
|
+
tickSize?: number;
|
|
93
|
+
state?: AxisItemStateStyle<IRuleMarkSpec>;
|
|
94
|
+
}
|
|
95
|
+
export interface ILabel extends IAxisItem<ITextMarkSpec> {
|
|
96
|
+
formatMethod?: (text: string | string[], datum?: Datum) => string | string[];
|
|
97
|
+
space?: number;
|
|
98
|
+
inside?: boolean;
|
|
99
|
+
minGap?: number;
|
|
100
|
+
style?: ITextMarkSpec | StyleCallback<ITextMarkSpec | undefined>;
|
|
101
|
+
state?: AxisItemStateStyle<ITextMarkSpec>;
|
|
102
|
+
dataFilter?: (data: AxisItem[], layer: number) => AxisItem[];
|
|
103
|
+
}
|
|
104
|
+
export interface IDomainLine extends IAxisItem<IRuleMarkSpec> {
|
|
105
|
+
state?: AxisItemStateStyle<IRuleMarkSpec>;
|
|
106
|
+
}
|
|
107
|
+
export interface ITitle extends IAxisItem<ITextMarkSpec> {
|
|
108
|
+
position?: 'start' | 'middle' | 'end';
|
|
109
|
+
space?: number;
|
|
110
|
+
padding?: IPadding | number | number[];
|
|
111
|
+
background?: IAxisItem<IRectMarkSpec> & {
|
|
112
|
+
state?: AxisItemStateStyle<Partial<IRectMarkSpec>>;
|
|
113
|
+
};
|
|
114
|
+
shape?: IAxisItem<ISymbolMarkSpec> & {
|
|
115
|
+
space?: number;
|
|
116
|
+
state?: AxisItemStateStyle<Partial<ISymbolMarkSpec>>;
|
|
117
|
+
};
|
|
118
|
+
text?: string | string[];
|
|
119
|
+
angle?: number;
|
|
120
|
+
state?: AxisItemStateStyle<Partial<ITextMarkSpec>>;
|
|
121
|
+
}
|
|
122
|
+
export type StyleCallback<T> = (value: any, index: number, datum: Datum, data: Datum[]) => T;
|
|
123
|
+
export type AxisType = 'linear' | 'ordinal' | 'band' | 'point' | 'time' | 'log' | 'symlog';
|
|
124
|
+
export interface IAxisCommonTheme {
|
|
125
|
+
grid?: IGrid;
|
|
126
|
+
subGrid?: IGrid;
|
|
127
|
+
domainLine?: IDomainLine;
|
|
128
|
+
label?: ILabel;
|
|
129
|
+
title?: ITitle;
|
|
130
|
+
tick?: ITick;
|
|
131
|
+
subTick?: ISubTick;
|
|
132
|
+
}
|
|
133
|
+
export interface IBandAxisTheme extends IAxisCommonTheme {
|
|
134
|
+
bandPadding?: number | number[];
|
|
135
|
+
paddingInner?: number | number[];
|
|
136
|
+
paddingOuter?: number | number[];
|
|
137
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { BandScale } from '@visactor/vscale';
|
|
2
|
+
import type { StringOrNumber } from '../../../typings';
|
|
3
|
+
import type { IEvent } from '../../../event/interface';
|
|
4
|
+
import type { IAxisLocationCfg } from '../interface';
|
|
5
|
+
export interface BandAxisMixin {
|
|
6
|
+
_scale: BandScale;
|
|
7
|
+
_scales: BandScale[];
|
|
8
|
+
_spec: any;
|
|
9
|
+
_defaultBandPosition: number;
|
|
10
|
+
_defaultBandInnerPadding: number;
|
|
11
|
+
_defaultBandOuterPadding: number;
|
|
12
|
+
event: IEvent;
|
|
13
|
+
isSeriesDataEnable: () => boolean;
|
|
14
|
+
computeStatisticsDomain: () => void;
|
|
15
|
+
collectData: (depth: number) => {
|
|
16
|
+
min: number;
|
|
17
|
+
max: number;
|
|
18
|
+
values: any[];
|
|
19
|
+
}[];
|
|
20
|
+
computeDomain: (data: {
|
|
21
|
+
min: number;
|
|
22
|
+
max: number;
|
|
23
|
+
values: any[];
|
|
24
|
+
}[]) => StringOrNumber[];
|
|
25
|
+
transformScaleDomain: () => void;
|
|
26
|
+
}
|
|
27
|
+
export declare class BandAxisMixin {
|
|
28
|
+
dataToPosition(values: any[], cfg?: IAxisLocationCfg): number;
|
|
29
|
+
valueToPosition(value: any): number;
|
|
30
|
+
updateGroupScaleRange(): void;
|
|
31
|
+
getPosition(values: any[]): {
|
|
32
|
+
position: number;
|
|
33
|
+
bandScale: BandScale;
|
|
34
|
+
};
|
|
35
|
+
calcScales(DEFAULT_BAND_INNER_PADDING: number, DEFAULT_BAND_OUTER_PADDING: number): void;
|
|
36
|
+
computeBandDomain(data: {
|
|
37
|
+
min: number;
|
|
38
|
+
max: number;
|
|
39
|
+
values: any[];
|
|
40
|
+
}[]): StringOrNumber[];
|
|
41
|
+
protected updateScaleDomain(): void;
|
|
42
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { LinearScale } from '@visactor/vscale';
|
|
2
|
+
import type { IAxisLocationCfg, ITick } from '../interface';
|
|
3
|
+
import type { IEvent } from '../../../event/interface';
|
|
4
|
+
export declare const e10: number;
|
|
5
|
+
export declare const e5: number;
|
|
6
|
+
export declare const e2: number;
|
|
7
|
+
export interface LinearAxisMixin {
|
|
8
|
+
_scale: LinearScale;
|
|
9
|
+
_scales: LinearScale[];
|
|
10
|
+
_spec: any;
|
|
11
|
+
_nice: boolean;
|
|
12
|
+
_zero: boolean;
|
|
13
|
+
_domain: {
|
|
14
|
+
min?: number;
|
|
15
|
+
max?: number;
|
|
16
|
+
};
|
|
17
|
+
_expand?: {
|
|
18
|
+
max?: number;
|
|
19
|
+
min?: number;
|
|
20
|
+
};
|
|
21
|
+
_tick: ITick | undefined;
|
|
22
|
+
isSeriesDataEnable: any;
|
|
23
|
+
computeStatisticsDomain: any;
|
|
24
|
+
computeDomain: any;
|
|
25
|
+
collectData: any;
|
|
26
|
+
event: IEvent;
|
|
27
|
+
}
|
|
28
|
+
export declare class LinearAxisMixin {
|
|
29
|
+
protected _extend: {
|
|
30
|
+
[key: string]: number;
|
|
31
|
+
};
|
|
32
|
+
setExtraAttrFromSpec(): void;
|
|
33
|
+
transformScaleDomain(): void;
|
|
34
|
+
setLinearScaleNice(): void;
|
|
35
|
+
setLogScaleNice(): void;
|
|
36
|
+
setScaleNice(): void;
|
|
37
|
+
dataToPosition(values: any[], cfg?: IAxisLocationCfg): number;
|
|
38
|
+
valueToPosition(value: any): number;
|
|
39
|
+
computeLinearDomain(data: {
|
|
40
|
+
min: number;
|
|
41
|
+
max: number;
|
|
42
|
+
values: any[];
|
|
43
|
+
}[]): number[];
|
|
44
|
+
protected expandDomain(domain: number[]): void;
|
|
45
|
+
protected niceDomain(domain: number[]): number[];
|
|
46
|
+
protected includeZero(domain: number[]): void;
|
|
47
|
+
setExtendDomain(key: string, value: number | undefined): void;
|
|
48
|
+
protected extendDomain(domain: number[]): void;
|
|
49
|
+
getDomainSpec(): {
|
|
50
|
+
min?: number;
|
|
51
|
+
max?: number;
|
|
52
|
+
};
|
|
53
|
+
protected setDomainMinMax(domain: number[]): void;
|
|
54
|
+
setZero(zero: boolean): void;
|
|
55
|
+
protected updateScaleDomain(): void;
|
|
56
|
+
protected updateScaleDomainByModel(domain?: number[]): void;
|
|
57
|
+
}
|