@visactor/vchart 1.9.0-alpha.0 → 1.9.0-alpha.1
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/build/es5/index.js +1 -1
- package/build/index.js +19534 -17953
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/animation/config.js +1 -1
- package/cjs/animation/config.js.map +1 -1
- package/cjs/animation/utils.d.ts +1 -1
- package/cjs/animation/utils.js +15 -14
- package/cjs/animation/utils.js.map +1 -1
- package/cjs/chart/base/base-chart-transformer.d.ts +1 -0
- package/cjs/chart/base/base-chart-transformer.js +48 -23
- package/cjs/chart/base/base-chart-transformer.js.map +1 -1
- package/cjs/chart/base/base-chart.d.ts +1 -0
- package/cjs/chart/base/base-chart.js +20 -15
- package/cjs/chart/base/base-chart.js.map +1 -1
- package/cjs/chart/base/util.d.ts +7 -0
- package/cjs/chart/base/util.js +26 -0
- package/cjs/chart/base/util.js.map +1 -0
- package/cjs/chart/circle-packing/circle-packing-transformer.js +1 -7
- package/cjs/chart/circle-packing/circle-packing-transformer.js.map +1 -1
- package/cjs/chart/correlation/correlation-transformer.js +1 -7
- package/cjs/chart/correlation/correlation-transformer.js.map +1 -1
- package/cjs/chart/histogram/base/histogram-base-transformer.js +2 -1
- package/cjs/chart/histogram/base/histogram-base-transformer.js.map +1 -1
- package/cjs/chart/index.d.ts +5 -3
- package/cjs/chart/index.js +16 -2
- package/cjs/chart/index.js.map +1 -1
- package/cjs/chart/interface/chart.d.ts +1 -0
- package/cjs/chart/interface/chart.js.map +1 -1
- package/cjs/chart/interface/common.d.ts +2 -4
- package/cjs/chart/interface/common.js.map +1 -1
- package/cjs/chart/interface/type.d.ts +2 -1
- package/cjs/chart/interface/type.js +1 -1
- package/cjs/chart/interface/type.js.map +1 -1
- package/cjs/chart/liquid/index.d.ts +2 -0
- package/cjs/chart/liquid/index.js +21 -0
- package/cjs/chart/liquid/index.js.map +1 -0
- package/cjs/chart/liquid/interface.d.ts +7 -0
- package/cjs/chart/liquid/interface.js.map +1 -0
- package/cjs/chart/liquid/liquid-transformer.d.ts +6 -0
- package/cjs/chart/liquid/liquid-transformer.js +29 -0
- package/cjs/chart/liquid/liquid-transformer.js.map +1 -0
- package/cjs/chart/liquid/liquid.d.ts +13 -0
- package/cjs/chart/liquid/liquid.js +25 -0
- package/cjs/chart/liquid/liquid.js.map +1 -0
- package/cjs/chart/polar/polar-transformer.js +1 -7
- package/cjs/chart/polar/polar-transformer.js.map +1 -1
- package/cjs/chart/range-column/range-column-transformer.js +2 -1
- package/cjs/chart/range-column/range-column-transformer.js.map +1 -1
- package/cjs/chart/sankey/sankey-transformer.js +1 -7
- package/cjs/chart/sankey/sankey-transformer.js.map +1 -1
- package/cjs/chart/sunburst/sunburst-transformer.js +1 -7
- package/cjs/chart/sunburst/sunburst-transformer.js.map +1 -1
- package/cjs/chart/treemap/treemap-transformer.js +1 -7
- package/cjs/chart/treemap/treemap-transformer.js.map +1 -1
- package/cjs/chart/util.d.ts +4 -1
- package/cjs/chart/util.js +5 -5
- package/cjs/chart/util.js.map +1 -1
- package/cjs/chart/word-cloud/base/word-cloud-base-transformer.js +1 -7
- package/cjs/chart/word-cloud/base/word-cloud-base-transformer.js.map +1 -1
- package/cjs/compile/compiler.d.ts +16 -5
- package/cjs/compile/compiler.js +38 -42
- package/cjs/compile/compiler.js.map +1 -1
- package/cjs/compile/data/compilable-data.d.ts +1 -1
- package/cjs/compile/data/compilable-data.js +1 -1
- package/cjs/compile/data/compilable-data.js.map +1 -1
- package/cjs/compile/data/interface.d.ts +1 -1
- package/cjs/compile/data/interface.js.map +1 -1
- package/cjs/compile/grammar-item.js +2 -1
- package/cjs/compile/interface/compiler.d.ts +1 -0
- package/cjs/compile/interface/compiler.js.map +1 -1
- package/cjs/compile/mark/compilable-mark.d.ts +4 -2
- package/cjs/compile/mark/compilable-mark.js +4 -1
- package/cjs/compile/mark/compilable-mark.js.map +1 -1
- package/cjs/compile/mark/interface.d.ts +3 -2
- package/cjs/compile/mark/interface.js.map +1 -1
- package/cjs/compile/mark/mark-state-manager.d.ts +2 -2
- package/cjs/compile/mark/mark-state-manager.js +2 -2
- package/cjs/compile/mark/mark-state-manager.js.map +1 -1
- package/cjs/compile/signal/state-manager.d.ts +1 -1
- package/cjs/compile/signal/state-manager.js +2 -2
- package/cjs/compile/signal/state-manager.js.map +1 -1
- package/cjs/component/axis/base-axis.d.ts +10 -10
- package/cjs/component/axis/base-axis.js +35 -25
- package/cjs/component/axis/base-axis.js.map +1 -1
- package/cjs/component/axis/cartesian/axis.d.ts +5 -4
- package/cjs/component/axis/cartesian/axis.js +21 -13
- package/cjs/component/axis/cartesian/axis.js.map +1 -1
- package/cjs/component/axis/cartesian/band-axis.d.ts +1 -0
- package/cjs/component/axis/cartesian/band-axis.js +2 -1
- package/cjs/component/axis/cartesian/band-axis.js.map +1 -1
- package/cjs/component/axis/cartesian/interface/common.d.ts +3 -5
- package/cjs/component/axis/cartesian/interface/common.js.map +1 -1
- package/cjs/component/axis/cartesian/interface/spec.d.ts +1 -0
- package/cjs/component/axis/cartesian/interface/spec.js.map +1 -1
- package/cjs/component/axis/cartesian/time-axis.js +10 -17
- package/cjs/component/axis/cartesian/time-axis.js.map +1 -1
- package/cjs/component/axis/interface/common.d.ts +10 -0
- package/cjs/component/axis/interface/common.js.map +1 -1
- package/cjs/component/axis/interface/spec.d.ts +4 -7
- package/cjs/component/axis/interface/spec.js.map +1 -1
- package/cjs/component/axis/mixin/band-axis-mixin.d.ts +19 -2
- package/cjs/component/axis/mixin/band-axis-mixin.js +50 -2
- package/cjs/component/axis/mixin/band-axis-mixin.js.map +1 -1
- package/cjs/component/axis/mixin/linear-axis-mixin.d.ts +9 -1
- package/cjs/component/axis/mixin/linear-axis-mixin.js +19 -6
- package/cjs/component/axis/mixin/linear-axis-mixin.js.map +1 -1
- package/cjs/component/axis/polar/axis.d.ts +8 -4
- package/cjs/component/axis/polar/axis.js +52 -60
- package/cjs/component/axis/polar/axis.js.map +1 -1
- package/cjs/component/axis/polar/band-axis.d.ts +1 -0
- package/cjs/component/axis/util.d.ts +6 -0
- package/cjs/component/axis/util.js +13 -3
- package/cjs/component/axis/util.js.map +1 -1
- package/cjs/component/base/base-component.d.ts +0 -5
- package/cjs/component/base/base-component.js +0 -6
- package/cjs/component/base/base-component.js.map +1 -1
- package/cjs/component/base/util.js +4 -4
- package/cjs/component/base/util.js.map +1 -1
- package/cjs/component/brush/brush.d.ts +2 -1
- package/cjs/component/brush/brush.js +17 -11
- package/cjs/component/brush/brush.js.map +1 -1
- package/cjs/component/crosshair/base.d.ts +10 -2
- package/cjs/component/crosshair/base.js +118 -84
- package/cjs/component/crosshair/base.js.map +1 -1
- package/cjs/component/crosshair/cartesian.d.ts +5 -0
- package/cjs/component/crosshair/cartesian.js +96 -83
- package/cjs/component/crosshair/cartesian.js.map +1 -1
- package/cjs/component/crosshair/config.d.ts +1 -2
- package/cjs/component/crosshair/config.js +1 -1
- package/cjs/component/crosshair/config.js.map +1 -1
- package/cjs/component/crosshair/interface/spec.d.ts +2 -1
- package/cjs/component/crosshair/interface/spec.js.map +1 -1
- package/cjs/component/crosshair/polar.js +2 -1
- package/cjs/component/crosshair/polar.js.map +1 -1
- package/cjs/component/custom-mark/custom-mark.js +1 -1
- package/cjs/component/custom-mark/custom-mark.js.map +1 -1
- package/cjs/component/data-zoom/data-filter-base-component.d.ts +1 -1
- package/cjs/component/data-zoom/data-filter-base-component.js +5 -2
- package/cjs/component/data-zoom/data-filter-base-component.js.map +1 -1
- package/cjs/component/data-zoom/data-zoom/data-zoom.js +2 -1
- package/cjs/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
- package/cjs/component/data-zoom/scroll-bar/scroll-bar.js +2 -1
- package/cjs/component/data-zoom/scroll-bar/scroll-bar.js.map +1 -1
- package/cjs/component/geo/geo-coordinate.d.ts +1 -0
- package/cjs/component/geo/geo-coordinate.js +7 -6
- package/cjs/component/geo/geo-coordinate.js.map +1 -1
- package/cjs/component/indicator/indicator.d.ts +2 -0
- package/cjs/component/indicator/indicator.js +21 -12
- package/cjs/component/indicator/indicator.js.map +1 -1
- package/cjs/component/indicator/interface.d.ts +1 -0
- package/cjs/component/indicator/interface.js.map +1 -1
- package/cjs/component/interface/common.d.ts +1 -0
- package/cjs/component/interface/common.js.map +1 -1
- package/cjs/component/interface/theme.d.ts +1 -0
- package/cjs/component/interface/theme.js.map +1 -1
- package/cjs/component/label/base-label.d.ts +0 -3
- package/cjs/component/label/base-label.js +5 -8
- package/cjs/component/label/base-label.js.map +1 -1
- package/cjs/component/label/interface.d.ts +1 -0
- package/cjs/component/label/interface.js.map +1 -1
- package/cjs/component/label/label.js +18 -18
- package/cjs/component/label/label.js.map +1 -1
- package/cjs/component/label/total-label.js +7 -3
- package/cjs/component/label/total-label.js.map +1 -1
- package/cjs/component/label/util.d.ts +6 -0
- package/cjs/component/label/util.js +28 -5
- package/cjs/component/label/util.js.map +1 -1
- package/cjs/component/legend/base-legend.d.ts +1 -1
- package/cjs/component/legend/base-legend.js +1 -1
- package/cjs/component/legend/base-legend.js.map +1 -1
- package/cjs/component/legend/continuous/legend.js +3 -3
- package/cjs/component/legend/continuous/legend.js.map +1 -1
- package/cjs/component/legend/discrete/legend.d.ts +1 -0
- package/cjs/component/legend/discrete/legend.js +7 -4
- package/cjs/component/legend/discrete/legend.js.map +1 -1
- package/cjs/component/legend/util.d.ts +1 -1
- package/cjs/component/map-label/component.js +15 -15
- package/cjs/component/map-label/component.js.map +1 -1
- package/cjs/component/marker/interface.d.ts +3 -4
- package/cjs/component/marker/interface.js.map +1 -1
- package/cjs/component/marker/mark-area/mark-area.js +8 -16
- package/cjs/component/marker/mark-area/mark-area.js.map +1 -1
- package/cjs/component/marker/mark-line/mark-line.js +19 -24
- package/cjs/component/marker/mark-line/mark-line.js.map +1 -1
- package/cjs/component/marker/mark-point/interface/theme.d.ts +1 -0
- package/cjs/component/marker/mark-point/interface/theme.js.map +1 -1
- package/cjs/component/marker/mark-point/mark-point.js +33 -28
- package/cjs/component/marker/mark-point/mark-point.js.map +1 -1
- package/cjs/component/marker/utils.d.ts +2 -1
- package/cjs/component/marker/utils.js +47 -29
- package/cjs/component/marker/utils.js.map +1 -1
- package/cjs/component/player/player.js +3 -1
- package/cjs/component/player/player.js.map +1 -1
- package/cjs/component/title/title.js +2 -1
- package/cjs/component/title/title.js.map +1 -1
- package/cjs/component/tooltip/processor/base.js +13 -9
- package/cjs/component/tooltip/processor/base.js.map +1 -1
- package/cjs/component/tooltip/tooltip.js +11 -7
- package/cjs/component/tooltip/tooltip.js.map +1 -1
- package/cjs/component/tooltip/utils/show-tooltip.js +2 -1
- package/cjs/component/tooltip/utils/show-tooltip.js.map +1 -1
- package/cjs/constant/base.js +1 -2
- package/cjs/constant/scroll-bar.js +2 -1
- package/cjs/core/expression-function.js +1 -2
- package/cjs/core/factory.d.ts +5 -0
- package/cjs/core/factory.js +10 -1
- package/cjs/core/factory.js.map +1 -1
- package/cjs/core/index.d.ts +2 -1
- package/cjs/core/index.js +3 -3
- package/cjs/core/index.js.map +1 -1
- package/cjs/core/interface.d.ts +4 -1
- package/cjs/core/interface.js.map +1 -1
- package/cjs/core/vchart.d.ts +9 -5
- package/cjs/core/vchart.js +64 -84
- package/cjs/core/vchart.js.map +1 -1
- package/cjs/data/transforms/aggregation.js +25 -21
- package/cjs/data/transforms/aggregation.js.map +1 -1
- package/cjs/data/transforms/dimension-statistics.js +1 -1
- package/cjs/data/transforms/dimension-statistics.js.map +1 -1
- package/cjs/event/event-dispatcher.js +5 -5
- package/cjs/event/event-dispatcher.js.map +1 -1
- package/cjs/event/events/dimension/dimension-click.js +1 -1
- package/cjs/event/events/dimension/dimension-click.js.map +1 -1
- package/cjs/event/events/dimension/dimension-hover.js +4 -4
- package/cjs/event/events/dimension/dimension-hover.js.map +1 -1
- package/cjs/event/events/dimension/util/cartesian.d.ts +1 -1
- package/cjs/event/events/dimension/util/cartesian.js +28 -12
- package/cjs/event/events/dimension/util/cartesian.js.map +1 -1
- package/cjs/event/index.js +1 -2
- package/cjs/index-lark.js +2 -2
- package/cjs/index-lark.js.map +1 -1
- package/cjs/index-wx-simple.js +2 -2
- package/cjs/index-wx-simple.js.map +1 -1
- package/cjs/index-wx.js +2 -2
- package/cjs/index-wx.js.map +1 -1
- package/cjs/interaction/config.js +4 -4
- package/cjs/interaction/config.js.map +1 -1
- package/cjs/interaction/drill/drillable.js +1 -1
- package/cjs/interaction/drill/drillable.js.map +1 -1
- package/cjs/interaction/interface.d.ts +24 -2
- package/cjs/interaction/interface.js.map +1 -1
- package/cjs/interaction/zoom/zoomable.d.ts +2 -0
- package/cjs/interaction/zoom/zoomable.js +35 -30
- package/cjs/interaction/zoom/zoomable.js.map +1 -1
- package/cjs/layout/base-layout.d.ts +46 -2
- package/cjs/layout/base-layout.js +192 -34
- package/cjs/layout/base-layout.js.map +1 -1
- package/cjs/layout/interface.d.ts +3 -0
- package/cjs/layout/interface.js.map +1 -1
- package/cjs/layout/layout-item.d.ts +2 -1
- package/cjs/layout/layout-item.js +3 -2
- package/cjs/layout/layout-item.js.map +1 -1
- package/cjs/layout/layout3d/index.d.ts +1 -8
- package/cjs/layout/layout3d/index.js +10 -69
- package/cjs/layout/layout3d/index.js.map +1 -1
- package/cjs/layout/util.js +90 -118
- package/cjs/layout/util.js.map +1 -1
- package/cjs/mark/interface/type.d.ts +1 -0
- package/cjs/mark/interface/type.js +2 -1
- package/cjs/mark/interface/type.js.map +1 -1
- package/cjs/mark/liquid.d.ts +13 -0
- package/cjs/mark/liquid.js +32 -0
- package/cjs/mark/liquid.js.map +1 -0
- package/cjs/mark/mark-set/index.js +1 -1
- package/cjs/mark/mark-set/index.js.map +1 -1
- package/cjs/model/base-model-transformer.d.ts +2 -1
- package/cjs/model/base-model-transformer.js +6 -2
- package/cjs/model/base-model-transformer.js.map +1 -1
- package/cjs/model/base-model.d.ts +1 -2
- package/cjs/model/base-model.js +11 -10
- package/cjs/model/base-model.js.map +1 -1
- package/cjs/model/interface.d.ts +3 -2
- package/cjs/model/interface.js.map +1 -1
- package/cjs/plugin/chart/media-query/interface/common.d.ts +0 -4
- package/cjs/plugin/chart/media-query/interface/common.js.map +1 -1
- package/cjs/plugin/chart/media-query/interface/index.d.ts +1 -1
- package/cjs/plugin/chart/media-query/interface/index.js +1 -1
- package/cjs/plugin/chart/media-query/interface/index.js.map +1 -1
- package/cjs/plugin/chart/media-query/media-query.d.ts +3 -1
- package/cjs/plugin/chart/media-query/media-query.js +14 -11
- package/cjs/plugin/chart/media-query/media-query.js.map +1 -1
- package/cjs/plugin/chart/media-query/util/action.d.ts +2 -2
- package/cjs/plugin/chart/media-query/util/action.js +6 -3
- package/cjs/plugin/chart/media-query/util/action.js.map +1 -1
- package/cjs/plugin/chart/media-query/util/filter.d.ts +3 -3
- package/cjs/plugin/chart/media-query/util/filter.js +11 -14
- package/cjs/plugin/chart/media-query/util/filter.js.map +1 -1
- package/cjs/plugin/chart/register.js +2 -2
- package/cjs/plugin/chart/register.js.map +1 -1
- package/cjs/plugin/components/axis-sync/axis-sync.js.map +1 -0
- package/cjs/plugin/components/axis-sync/index.js.map +1 -0
- package/cjs/plugin/components/axis-sync/tick-align-transform.js.map +1 -0
- package/cjs/plugin/components/{axis-sync-plugin → axis-sync}/zero-align-transform.js +1 -1
- package/cjs/plugin/components/axis-sync/zero-align-transform.js.map +1 -0
- package/cjs/plugin/components/index.d.ts +1 -1
- package/cjs/plugin/components/index.js +2 -2
- package/cjs/plugin/components/index.js.map +1 -1
- package/cjs/plugin/components/register.d.ts +2 -0
- package/cjs/plugin/components/register.js +12 -0
- package/cjs/plugin/components/register.js.map +1 -0
- package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/base.d.ts +10 -9
- package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/base.js +29 -27
- package/cjs/plugin/components/tooltip-handler/base.js.map +1 -0
- package/{esm/component/tooltip/handler → cjs/plugin/components/tooltip-handler}/canvas/canvas-tooltip-handler.d.ts +7 -4
- package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/canvas/canvas-tooltip-handler.js +14 -6
- package/cjs/plugin/components/tooltip-handler/canvas/canvas-tooltip-handler.js.map +1 -0
- package/cjs/plugin/components/tooltip-handler/canvas/index.js.map +1 -0
- package/cjs/plugin/components/tooltip-handler/constants.js.map +1 -0
- package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/dom-tooltip-handler.d.ts +7 -4
- package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/dom-tooltip-handler.js +15 -7
- package/cjs/plugin/components/tooltip-handler/dom/dom-tooltip-handler.js.map +1 -0
- package/cjs/plugin/components/tooltip-handler/dom/index.js.map +1 -0
- package/cjs/plugin/components/tooltip-handler/dom/interface.js.map +1 -0
- package/cjs/plugin/components/tooltip-handler/dom/model/base-tooltip-model.js.map +1 -0
- package/cjs/plugin/components/tooltip-handler/dom/model/content-column-model.js.map +1 -0
- package/cjs/plugin/components/tooltip-handler/dom/model/content-model.js.map +1 -0
- package/cjs/plugin/components/tooltip-handler/dom/model/interface.js +6 -0
- package/cjs/plugin/components/tooltip-handler/dom/model/interface.js.map +1 -0
- package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/shape-model.js +4 -0
- package/cjs/plugin/components/tooltip-handler/dom/model/shape-model.js.map +1 -0
- package/cjs/plugin/components/tooltip-handler/dom/model/style-constants.js.map +1 -0
- package/cjs/plugin/components/tooltip-handler/dom/model/text-model.js.map +1 -0
- package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/title-model.js +7 -3
- package/cjs/plugin/components/tooltip-handler/dom/model/title-model.js.map +1 -0
- package/cjs/plugin/components/tooltip-handler/dom/model/tooltip-model.js.map +1 -0
- package/cjs/plugin/components/tooltip-handler/dom/util.js.map +1 -0
- package/cjs/plugin/components/tooltip-handler/index.js.map +1 -0
- package/cjs/plugin/components/tooltip-handler/interface/common.d.ts +4 -0
- package/cjs/plugin/{chart/media-query/interface/spec.js → components/tooltip-handler/interface/common.js} +1 -1
- package/cjs/plugin/components/tooltip-handler/interface/common.js.map +1 -0
- package/cjs/plugin/components/tooltip-handler/interface/index.d.ts +2 -0
- package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/interface/index.js +1 -1
- package/cjs/plugin/components/tooltip-handler/interface/index.js.map +1 -0
- package/cjs/plugin/components/tooltip-handler/interface/style.js.map +1 -0
- package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/attribute.d.ts +1 -2
- package/cjs/plugin/components/tooltip-handler/utils/attribute.js.map +1 -0
- package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/common.d.ts +1 -1
- package/cjs/plugin/components/tooltip-handler/utils/common.js.map +1 -0
- package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/compose.d.ts +1 -2
- package/cjs/plugin/components/tooltip-handler/utils/compose.js +106 -0
- package/cjs/plugin/components/tooltip-handler/utils/compose.js.map +1 -0
- package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/get-spec.d.ts +1 -1
- package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/get-spec.js +6 -6
- package/cjs/plugin/components/tooltip-handler/utils/get-spec.js.map +1 -0
- package/cjs/plugin/components/tooltip-handler/utils/index.js.map +1 -0
- package/cjs/plugin/components/tooltip-handler/utils/pattern.js.map +1 -0
- package/cjs/plugin/components/tooltip-handler/utils/position.js.map +1 -0
- package/cjs/region/interface.d.ts +0 -3
- package/cjs/region/interface.js.map +1 -1
- package/cjs/region/region.js +1 -1
- package/cjs/region/region.js.map +1 -1
- package/cjs/scale/global-scale.js +1 -1
- package/cjs/scale/global-scale.js.map +1 -1
- package/cjs/series/area/area-transformer.d.ts +2 -0
- package/cjs/series/area/area-transformer.js +18 -1
- package/cjs/series/area/area-transformer.js.map +1 -1
- package/cjs/series/area/area.d.ts +0 -1
- package/cjs/series/area/area.js +14 -27
- package/cjs/series/area/area.js.map +1 -1
- package/cjs/series/bar/bar.d.ts +16 -3
- package/cjs/series/bar/bar.js +168 -78
- package/cjs/series/bar/bar.js.map +1 -1
- package/cjs/series/bar/interface.d.ts +5 -2
- package/cjs/series/bar/interface.js.map +1 -1
- package/cjs/series/base/base-series-transformer.js +1 -2
- package/cjs/series/base/base-series-transformer.js.map +1 -1
- package/cjs/series/base/base-series.d.ts +34 -6
- package/cjs/series/base/base-series.js +103 -39
- package/cjs/series/base/base-series.js.map +1 -1
- package/cjs/series/base/constant.d.ts +4 -0
- package/cjs/series/base/constant.js +4 -3
- package/cjs/series/base/constant.js.map +1 -1
- package/cjs/series/box-plot/box-plot.js +3 -5
- package/cjs/series/box-plot/box-plot.js.map +1 -1
- package/cjs/series/cartesian/cartesian.d.ts +6 -0
- package/cjs/series/cartesian/cartesian.js +33 -23
- package/cjs/series/cartesian/cartesian.js.map +1 -1
- package/cjs/series/circle-packing/circle-packing.js +2 -2
- package/cjs/series/circle-packing/circle-packing.js.map +1 -1
- package/cjs/series/correlation/correlation.js +8 -8
- package/cjs/series/correlation/correlation.js.map +1 -1
- package/cjs/series/dot/dot.js +12 -12
- package/cjs/series/dot/dot.js.map +1 -1
- package/cjs/series/funnel/funnel.js +32 -21
- package/cjs/series/funnel/funnel.js.map +1 -1
- package/cjs/series/gauge/gauge-pointer.d.ts +1 -0
- package/cjs/series/gauge/gauge-pointer.js +4 -1
- package/cjs/series/gauge/gauge-pointer.js.map +1 -1
- package/cjs/series/gauge/gauge.js +5 -5
- package/cjs/series/gauge/gauge.js.map +1 -1
- package/cjs/series/heatmap/heatmap.d.ts +1 -0
- package/cjs/series/heatmap/heatmap.js +9 -4
- package/cjs/series/heatmap/heatmap.js.map +1 -1
- package/cjs/series/interface/common.d.ts +1 -1
- package/cjs/series/interface/common.js.map +1 -1
- package/cjs/series/interface/series.d.ts +2 -3
- package/cjs/series/interface/series.js.map +1 -1
- package/cjs/series/interface/theme.d.ts +2 -0
- package/cjs/series/interface/theme.js +3 -2
- package/cjs/series/interface/theme.js.map +1 -1
- package/cjs/series/interface/type.d.ts +6 -2
- package/cjs/series/interface/type.js +4 -2
- package/cjs/series/interface/type.js.map +1 -1
- package/cjs/series/line/line.js +8 -5
- package/cjs/series/line/line.js.map +1 -1
- package/cjs/series/link/link.d.ts +1 -0
- package/cjs/series/link/link.js +9 -4
- package/cjs/series/link/link.js.map +1 -1
- package/cjs/series/liquid/animation.d.ts +14 -0
- package/cjs/series/liquid/animation.js +63 -0
- package/cjs/series/liquid/animation.js.map +1 -0
- package/cjs/series/liquid/constant.d.ts +2 -0
- package/cjs/series/liquid/constant.js +23 -0
- package/cjs/series/liquid/constant.js.map +1 -0
- package/cjs/series/liquid/interface.d.ts +35 -0
- package/cjs/series/liquid/interface.js +6 -0
- package/cjs/series/liquid/interface.js.map +1 -0
- package/cjs/series/liquid/liquid.d.ts +50 -0
- package/cjs/series/liquid/liquid.js +200 -0
- package/cjs/series/liquid/liquid.js.map +1 -0
- package/cjs/series/liquid/tooltip-helper.d.ts +9 -0
- package/cjs/series/liquid/tooltip-helper.js +37 -0
- package/cjs/series/liquid/tooltip-helper.js.map +1 -0
- package/cjs/series/liquid/util.d.ts +2 -0
- package/cjs/series/liquid/util.js +15 -0
- package/cjs/series/liquid/util.js.map +1 -0
- package/cjs/series/map/map.js +4 -4
- package/cjs/series/map/map.js.map +1 -1
- package/cjs/series/mixin/line-mixin.d.ts +2 -2
- package/cjs/series/mixin/line-mixin.js +41 -24
- package/cjs/series/mixin/line-mixin.js.map +1 -1
- package/cjs/series/pie/pie.d.ts +1 -0
- package/cjs/series/pie/pie.js +11 -7
- package/cjs/series/pie/pie.js.map +1 -1
- package/cjs/series/polar/polar.d.ts +2 -0
- package/cjs/series/polar/polar.js +1 -1
- package/cjs/series/polar/polar.js.map +1 -1
- package/cjs/series/polar/progress-like/progress-like.js +4 -3
- package/cjs/series/polar/progress-like/progress-like.js.map +1 -1
- package/cjs/series/polar/rose-like/rose-like.js +4 -3
- package/cjs/series/polar/rose-like/rose-like.js.map +1 -1
- package/cjs/series/progress/circular/circular.d.ts +1 -0
- package/cjs/series/progress/circular/circular.js +15 -8
- package/cjs/series/progress/circular/circular.js.map +1 -1
- package/cjs/series/progress/linear/linear.d.ts +1 -0
- package/cjs/series/progress/linear/linear.js +56 -52
- package/cjs/series/progress/linear/linear.js.map +1 -1
- package/cjs/series/radar/animation.js +1 -1
- package/cjs/series/radar/animation.js.map +1 -1
- package/cjs/series/radar/radar.js +4 -3
- package/cjs/series/radar/radar.js.map +1 -1
- package/cjs/series/range-area/range-area.js +4 -3
- package/cjs/series/range-area/range-area.js.map +1 -1
- package/cjs/series/range-column/range-column.d.ts +5 -1
- package/cjs/series/range-column/range-column.js +29 -31
- package/cjs/series/range-column/range-column.js.map +1 -1
- package/cjs/series/rose/rose.js +5 -4
- package/cjs/series/rose/rose.js.map +1 -1
- package/cjs/series/sankey/sankey.js +13 -12
- package/cjs/series/sankey/sankey.js.map +1 -1
- package/cjs/series/scatter/scatter.js +10 -10
- package/cjs/series/scatter/scatter.js.map +1 -1
- package/cjs/series/sunburst/sunburst.js +5 -4
- package/cjs/series/sunburst/sunburst.js.map +1 -1
- package/cjs/series/treemap/treemap-transform.d.ts +6 -0
- package/cjs/series/treemap/treemap-transform.js +17 -0
- package/cjs/series/treemap/treemap-transform.js.map +1 -0
- package/cjs/series/treemap/treemap.d.ts +6 -3
- package/cjs/series/treemap/treemap.js +28 -45
- package/cjs/series/treemap/treemap.js.map +1 -1
- package/cjs/series/util/stack.js +1 -1
- package/cjs/series/util/stack.js.map +1 -1
- package/cjs/series/waterfall/waterfall-transformer.js +1 -1
- package/cjs/series/waterfall/waterfall-transformer.js.map +1 -1
- package/cjs/series/waterfall/waterfall.js +3 -2
- package/cjs/series/waterfall/waterfall.js.map +1 -1
- package/cjs/series/word-cloud/base.d.ts +7 -7
- package/cjs/series/word-cloud/base.js +42 -49
- package/cjs/series/word-cloud/base.js.map +1 -1
- package/cjs/series/word-cloud/interface.d.ts +1 -1
- package/cjs/series/word-cloud/interface.js.map +1 -1
- package/cjs/series/word-cloud/word-cloud-3d.js +4 -25
- package/cjs/series/word-cloud/word-cloud-3d.js.map +1 -1
- package/cjs/theme/builtin/common/component/axis/cartesian-axis.d.ts +1 -0
- package/cjs/theme/builtin/common/component/axis/cartesian-axis.js +6 -2
- package/cjs/theme/builtin/common/component/axis/cartesian-axis.js.map +1 -1
- package/cjs/theme/builtin/common/component/index.js +1 -0
- package/cjs/theme/builtin/common/component/index.js.map +1 -1
- package/cjs/theme/builtin/common/mark.js +2 -2
- package/cjs/theme/builtin/common/mark.js.map +1 -1
- package/cjs/theme/builtin/common/series/funnel.js +0 -2
- package/cjs/theme/builtin/common/series/funnel.js.map +1 -1
- package/cjs/theme/builtin/common/series/funnel3d.js +0 -2
- package/cjs/theme/builtin/common/series/funnel3d.js.map +1 -1
- package/cjs/theme/builtin/common/series/index.js +3 -2
- package/cjs/theme/builtin/common/series/index.js.map +1 -1
- package/cjs/theme/builtin/common/series/liquid.d.ts +2 -0
- package/cjs/theme/builtin/common/series/liquid.js +19 -0
- package/cjs/theme/builtin/common/series/liquid.js.map +1 -0
- package/cjs/theme/builtin/common/series/waterfall.js +1 -2
- package/cjs/theme/builtin/common/series/waterfall.js.map +1 -1
- package/cjs/theme/builtin/index.js +3 -1
- package/cjs/theme/builtin/index.js.map +1 -1
- package/cjs/typings/layout.d.ts +2 -1
- package/cjs/typings/layout.js.map +1 -1
- package/cjs/typings/spec/common.d.ts +5 -2
- package/cjs/typings/spec/common.js.map +1 -1
- package/cjs/typings/spec/index.d.ts +1 -0
- package/cjs/typings/spec/index.js +2 -1
- package/cjs/typings/spec/index.js.map +1 -1
- package/{esm/plugin/chart/media-query/interface/spec.d.ts → cjs/typings/spec/media-query.d.ts} +8 -5
- package/cjs/typings/spec/media-query.js +6 -0
- package/cjs/typings/spec/media-query.js.map +1 -0
- package/cjs/typings/tooltip/line.d.ts +4 -0
- package/cjs/typings/tooltip/line.js.map +1 -1
- package/cjs/typings/visual.d.ts +6 -0
- package/cjs/typings/visual.js.map +1 -1
- package/cjs/util/env.js +9 -7
- package/cjs/util/env.js.map +1 -1
- package/cjs/util/model.js.map +1 -1
- package/cjs/vchart-all.js +2 -2
- package/cjs/vchart-all.js.map +1 -1
- package/cjs/vchart-simple.js +2 -2
- package/cjs/vchart-simple.js.map +1 -1
- package/esm/animation/config.js +1 -1
- package/esm/animation/config.js.map +1 -1
- package/esm/animation/utils.d.ts +1 -1
- package/esm/animation/utils.js +15 -14
- package/esm/animation/utils.js.map +1 -1
- package/esm/chart/base/base-chart-transformer.d.ts +1 -0
- package/esm/chart/base/base-chart-transformer.js +49 -21
- package/esm/chart/base/base-chart-transformer.js.map +1 -1
- package/esm/chart/base/base-chart.d.ts +1 -0
- package/esm/chart/base/base-chart.js +20 -15
- package/esm/chart/base/base-chart.js.map +1 -1
- package/esm/chart/base/util.d.ts +7 -0
- package/esm/chart/base/util.js +16 -0
- package/esm/chart/base/util.js.map +1 -0
- package/esm/chart/circle-packing/circle-packing-transformer.js +1 -7
- package/esm/chart/circle-packing/circle-packing-transformer.js.map +1 -1
- package/esm/chart/correlation/correlation-transformer.js +1 -7
- package/esm/chart/correlation/correlation-transformer.js.map +1 -1
- package/esm/chart/histogram/base/histogram-base-transformer.js +2 -1
- package/esm/chart/histogram/base/histogram-base-transformer.js.map +1 -1
- package/esm/chart/index.d.ts +5 -3
- package/esm/chart/index.js +4 -2
- package/esm/chart/index.js.map +1 -1
- package/esm/chart/interface/chart.d.ts +1 -0
- package/esm/chart/interface/chart.js.map +1 -1
- package/esm/chart/interface/common.d.ts +2 -4
- package/esm/chart/interface/common.js.map +1 -1
- package/esm/chart/interface/type.d.ts +2 -1
- package/esm/chart/interface/type.js +1 -1
- package/esm/chart/interface/type.js.map +1 -1
- package/esm/chart/liquid/index.d.ts +2 -0
- package/esm/chart/liquid/index.js +4 -0
- package/esm/chart/liquid/index.js.map +1 -0
- package/esm/chart/liquid/interface.d.ts +7 -0
- package/esm/chart/liquid/interface.js.map +1 -0
- package/esm/chart/liquid/liquid-transformer.d.ts +6 -0
- package/esm/chart/liquid/liquid-transformer.js +23 -0
- package/esm/chart/liquid/liquid-transformer.js.map +1 -0
- package/esm/chart/liquid/liquid.d.ts +13 -0
- package/esm/chart/liquid/liquid.js +26 -0
- package/esm/chart/liquid/liquid.js.map +1 -0
- package/esm/chart/polar/polar-transformer.js +1 -7
- package/esm/chart/polar/polar-transformer.js.map +1 -1
- package/esm/chart/range-column/range-column-transformer.js +2 -1
- package/esm/chart/range-column/range-column-transformer.js.map +1 -1
- package/esm/chart/sankey/sankey-transformer.js +1 -7
- package/esm/chart/sankey/sankey-transformer.js.map +1 -1
- package/esm/chart/sunburst/sunburst-transformer.js +1 -7
- package/esm/chart/sunburst/sunburst-transformer.js.map +1 -1
- package/esm/chart/treemap/treemap-transformer.js +1 -7
- package/esm/chart/treemap/treemap-transformer.js.map +1 -1
- package/esm/chart/util.d.ts +4 -1
- package/esm/chart/util.js +4 -6
- package/esm/chart/util.js.map +1 -1
- package/esm/chart/word-cloud/base/word-cloud-base-transformer.js +1 -7
- package/esm/chart/word-cloud/base/word-cloud-base-transformer.js.map +1 -1
- package/esm/compile/compiler.d.ts +16 -5
- package/esm/compile/compiler.js +39 -41
- package/esm/compile/compiler.js.map +1 -1
- package/esm/compile/data/compilable-data.d.ts +1 -1
- package/esm/compile/data/compilable-data.js +1 -1
- package/esm/compile/data/compilable-data.js.map +1 -1
- package/esm/compile/data/interface.d.ts +1 -1
- package/esm/compile/data/interface.js.map +1 -1
- package/esm/compile/grammar-item.js +2 -1
- package/esm/compile/interface/compiler.d.ts +1 -0
- package/esm/compile/interface/compiler.js.map +1 -1
- package/esm/compile/mark/compilable-mark.d.ts +4 -2
- package/esm/compile/mark/compilable-mark.js +4 -1
- package/esm/compile/mark/compilable-mark.js.map +1 -1
- package/esm/compile/mark/interface.d.ts +3 -2
- package/esm/compile/mark/interface.js.map +1 -1
- package/esm/compile/mark/mark-state-manager.d.ts +2 -2
- package/esm/compile/mark/mark-state-manager.js +2 -2
- package/esm/compile/mark/mark-state-manager.js.map +1 -1
- package/esm/compile/signal/state-manager.d.ts +1 -1
- package/esm/compile/signal/state-manager.js +1 -1
- package/esm/compile/signal/state-manager.js.map +1 -1
- package/esm/component/axis/base-axis.d.ts +10 -10
- package/esm/component/axis/base-axis.js +36 -24
- package/esm/component/axis/base-axis.js.map +1 -1
- package/esm/component/axis/cartesian/axis.d.ts +5 -4
- package/esm/component/axis/cartesian/axis.js +21 -15
- package/esm/component/axis/cartesian/axis.js.map +1 -1
- package/esm/component/axis/cartesian/band-axis.d.ts +1 -0
- package/esm/component/axis/cartesian/band-axis.js +2 -1
- package/esm/component/axis/cartesian/band-axis.js.map +1 -1
- package/esm/component/axis/cartesian/interface/common.d.ts +3 -5
- package/esm/component/axis/cartesian/interface/common.js.map +1 -1
- package/esm/component/axis/cartesian/interface/spec.d.ts +1 -0
- package/esm/component/axis/cartesian/interface/spec.js.map +1 -1
- package/esm/component/axis/cartesian/time-axis.js +9 -18
- package/esm/component/axis/cartesian/time-axis.js.map +1 -1
- package/esm/component/axis/interface/common.d.ts +10 -0
- package/esm/component/axis/interface/common.js.map +1 -1
- package/esm/component/axis/interface/spec.d.ts +4 -7
- package/esm/component/axis/interface/spec.js.map +1 -1
- package/esm/component/axis/mixin/band-axis-mixin.d.ts +19 -2
- package/esm/component/axis/mixin/band-axis-mixin.js +54 -2
- package/esm/component/axis/mixin/band-axis-mixin.js.map +1 -1
- package/esm/component/axis/mixin/linear-axis-mixin.d.ts +9 -1
- package/esm/component/axis/mixin/linear-axis-mixin.js +20 -6
- package/esm/component/axis/mixin/linear-axis-mixin.js.map +1 -1
- package/esm/component/axis/polar/axis.d.ts +8 -4
- package/esm/component/axis/polar/axis.js +50 -58
- package/esm/component/axis/polar/axis.js.map +1 -1
- package/esm/component/axis/polar/band-axis.d.ts +1 -0
- package/esm/component/axis/util.d.ts +6 -0
- package/esm/component/axis/util.js +11 -2
- package/esm/component/axis/util.js.map +1 -1
- package/esm/component/base/base-component.d.ts +0 -5
- package/esm/component/base/base-component.js +0 -6
- package/esm/component/base/base-component.js.map +1 -1
- package/esm/component/base/util.js +4 -4
- package/esm/component/base/util.js.map +1 -1
- package/esm/component/brush/brush.d.ts +2 -1
- package/esm/component/brush/brush.js +17 -11
- package/esm/component/brush/brush.js.map +1 -1
- package/esm/component/crosshair/base.d.ts +10 -2
- package/esm/component/crosshair/base.js +118 -83
- package/esm/component/crosshair/base.js.map +1 -1
- package/esm/component/crosshair/cartesian.d.ts +5 -0
- package/esm/component/crosshair/cartesian.js +94 -83
- package/esm/component/crosshair/cartesian.js.map +1 -1
- package/esm/component/crosshair/config.d.ts +1 -2
- package/esm/component/crosshair/config.js +1 -1
- package/esm/component/crosshair/config.js.map +1 -1
- package/esm/component/crosshair/interface/spec.d.ts +2 -1
- package/esm/component/crosshair/interface/spec.js.map +1 -1
- package/esm/component/crosshair/polar.js +2 -1
- package/esm/component/crosshair/polar.js.map +1 -1
- package/esm/component/custom-mark/custom-mark.js +1 -1
- package/esm/component/custom-mark/custom-mark.js.map +1 -1
- package/esm/component/data-zoom/data-filter-base-component.d.ts +1 -1
- package/esm/component/data-zoom/data-filter-base-component.js +5 -3
- package/esm/component/data-zoom/data-filter-base-component.js.map +1 -1
- package/esm/component/data-zoom/data-zoom/data-zoom.js +2 -1
- package/esm/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
- package/esm/component/data-zoom/scroll-bar/scroll-bar.js +2 -1
- package/esm/component/data-zoom/scroll-bar/scroll-bar.js.map +1 -1
- package/esm/component/geo/geo-coordinate.d.ts +1 -0
- package/esm/component/geo/geo-coordinate.js +7 -6
- package/esm/component/geo/geo-coordinate.js.map +1 -1
- package/esm/component/indicator/indicator.d.ts +2 -0
- package/esm/component/indicator/indicator.js +20 -13
- package/esm/component/indicator/indicator.js.map +1 -1
- package/esm/component/indicator/interface.d.ts +1 -0
- package/esm/component/indicator/interface.js.map +1 -1
- package/esm/component/interface/common.d.ts +1 -0
- package/esm/component/interface/common.js.map +1 -1
- package/esm/component/interface/theme.d.ts +1 -0
- package/esm/component/interface/theme.js.map +1 -1
- package/esm/component/label/base-label.d.ts +0 -3
- package/esm/component/label/base-label.js +5 -8
- package/esm/component/label/base-label.js.map +1 -1
- package/esm/component/label/interface.d.ts +1 -0
- package/esm/component/label/interface.js.map +1 -1
- package/esm/component/label/label.js +18 -18
- package/esm/component/label/label.js.map +1 -1
- package/esm/component/label/total-label.js +7 -3
- package/esm/component/label/total-label.js.map +1 -1
- package/esm/component/label/util.d.ts +6 -0
- package/esm/component/label/util.js +24 -2
- package/esm/component/label/util.js.map +1 -1
- package/esm/component/legend/base-legend.d.ts +1 -1
- package/esm/component/legend/base-legend.js +1 -1
- package/esm/component/legend/base-legend.js.map +1 -1
- package/esm/component/legend/continuous/legend.js +3 -3
- package/esm/component/legend/continuous/legend.js.map +1 -1
- package/esm/component/legend/discrete/legend.d.ts +1 -0
- package/esm/component/legend/discrete/legend.js +7 -4
- package/esm/component/legend/discrete/legend.js.map +1 -1
- package/esm/component/legend/util.d.ts +1 -1
- package/esm/component/map-label/component.js +15 -15
- package/esm/component/map-label/component.js.map +1 -1
- package/esm/component/marker/interface.d.ts +3 -4
- package/esm/component/marker/interface.js.map +1 -1
- package/esm/component/marker/mark-area/mark-area.js +9 -17
- package/esm/component/marker/mark-area/mark-area.js.map +1 -1
- package/esm/component/marker/mark-line/mark-line.js +20 -25
- package/esm/component/marker/mark-line/mark-line.js.map +1 -1
- package/esm/component/marker/mark-point/interface/theme.d.ts +1 -0
- package/esm/component/marker/mark-point/interface/theme.js.map +1 -1
- package/esm/component/marker/mark-point/mark-point.js +34 -29
- package/esm/component/marker/mark-point/mark-point.js.map +1 -1
- package/esm/component/marker/utils.d.ts +2 -1
- package/esm/component/marker/utils.js +44 -27
- package/esm/component/marker/utils.js.map +1 -1
- package/esm/component/player/player.js +3 -1
- package/esm/component/player/player.js.map +1 -1
- package/esm/component/title/title.js +2 -1
- package/esm/component/title/title.js.map +1 -1
- package/esm/component/tooltip/processor/base.js +12 -8
- package/esm/component/tooltip/processor/base.js.map +1 -1
- package/esm/component/tooltip/tooltip.js +13 -11
- package/esm/component/tooltip/tooltip.js.map +1 -1
- package/esm/component/tooltip/utils/show-tooltip.js +2 -1
- package/esm/component/tooltip/utils/show-tooltip.js.map +1 -1
- package/esm/constant/base.js +1 -2
- package/esm/constant/scroll-bar.js +2 -1
- package/esm/core/expression-function.js +1 -2
- package/esm/core/factory.d.ts +5 -0
- package/esm/core/factory.js +10 -1
- package/esm/core/factory.js.map +1 -1
- package/esm/core/index.d.ts +2 -1
- package/esm/core/index.js +3 -1
- package/esm/core/index.js.map +1 -1
- package/esm/core/interface.d.ts +4 -1
- package/esm/core/interface.js.map +1 -1
- package/esm/core/vchart.d.ts +9 -5
- package/esm/core/vchart.js +66 -84
- package/esm/core/vchart.js.map +1 -1
- package/esm/data/transforms/aggregation.js +26 -22
- package/esm/data/transforms/aggregation.js.map +1 -1
- package/esm/data/transforms/dimension-statistics.js +1 -1
- package/esm/data/transforms/dimension-statistics.js.map +1 -1
- package/esm/event/event-dispatcher.js +5 -5
- package/esm/event/event-dispatcher.js.map +1 -1
- package/esm/event/events/dimension/dimension-click.js +1 -1
- package/esm/event/events/dimension/dimension-click.js.map +1 -1
- package/esm/event/events/dimension/dimension-hover.js +4 -4
- package/esm/event/events/dimension/dimension-hover.js.map +1 -1
- package/esm/event/events/dimension/util/cartesian.d.ts +1 -1
- package/esm/event/events/dimension/util/cartesian.js +28 -13
- package/esm/event/events/dimension/util/cartesian.js.map +1 -1
- package/esm/event/index.js +1 -2
- package/esm/index-lark.js +7 -1
- package/esm/index-lark.js.map +1 -1
- package/esm/index-wx-simple.js +5 -1
- package/esm/index-wx-simple.js.map +1 -1
- package/esm/index-wx.js +7 -1
- package/esm/index-wx.js.map +1 -1
- package/esm/interaction/config.js +4 -4
- package/esm/interaction/config.js.map +1 -1
- package/esm/interaction/drill/drillable.js +1 -1
- package/esm/interaction/drill/drillable.js.map +1 -1
- package/esm/interaction/interface.d.ts +24 -2
- package/esm/interaction/interface.js.map +1 -1
- package/esm/interaction/zoom/zoomable.d.ts +2 -0
- package/esm/interaction/zoom/zoomable.js +35 -30
- package/esm/interaction/zoom/zoomable.js.map +1 -1
- package/esm/layout/base-layout.d.ts +46 -2
- package/esm/layout/base-layout.js +190 -34
- package/esm/layout/base-layout.js.map +1 -1
- package/esm/layout/interface.d.ts +3 -0
- package/esm/layout/interface.js.map +1 -1
- package/esm/layout/layout-item.d.ts +2 -1
- package/esm/layout/layout-item.js +3 -2
- package/esm/layout/layout-item.js.map +1 -1
- package/esm/layout/layout3d/index.d.ts +1 -8
- package/esm/layout/layout3d/index.js +10 -69
- package/esm/layout/layout3d/index.js.map +1 -1
- package/esm/layout/util.js +90 -118
- package/esm/layout/util.js.map +1 -1
- package/esm/mark/interface/type.d.ts +1 -0
- package/esm/mark/interface/type.js +2 -1
- package/esm/mark/interface/type.js.map +1 -1
- package/esm/mark/liquid.d.ts +13 -0
- package/esm/mark/liquid.js +32 -0
- package/esm/mark/liquid.js.map +1 -0
- package/esm/mark/mark-set/index.js +1 -1
- package/esm/mark/mark-set/index.js.map +1 -1
- package/esm/model/base-model-transformer.d.ts +2 -1
- package/esm/model/base-model-transformer.js +6 -2
- package/esm/model/base-model-transformer.js.map +1 -1
- package/esm/model/base-model.d.ts +1 -2
- package/esm/model/base-model.js +11 -8
- package/esm/model/base-model.js.map +1 -1
- package/esm/model/interface.d.ts +3 -2
- package/esm/model/interface.js.map +1 -1
- package/esm/plugin/chart/media-query/interface/common.d.ts +0 -4
- package/esm/plugin/chart/media-query/interface/common.js.map +1 -1
- package/esm/plugin/chart/media-query/interface/index.d.ts +1 -1
- package/esm/plugin/chart/media-query/interface/index.js +1 -1
- package/esm/plugin/chart/media-query/interface/index.js.map +1 -1
- package/esm/plugin/chart/media-query/media-query.d.ts +3 -1
- package/esm/plugin/chart/media-query/media-query.js +14 -11
- package/esm/plugin/chart/media-query/media-query.js.map +1 -1
- package/esm/plugin/chart/media-query/util/action.d.ts +2 -2
- package/esm/plugin/chart/media-query/util/action.js +6 -3
- package/esm/plugin/chart/media-query/util/action.js.map +1 -1
- package/esm/plugin/chart/media-query/util/filter.d.ts +3 -3
- package/esm/plugin/chart/media-query/util/filter.js +10 -13
- package/esm/plugin/chart/media-query/util/filter.js.map +1 -1
- package/esm/plugin/chart/register.js +1 -1
- package/esm/plugin/chart/register.js.map +1 -1
- package/esm/plugin/components/axis-sync/axis-sync.js.map +1 -0
- package/esm/plugin/components/axis-sync/index.js.map +1 -0
- package/esm/plugin/components/axis-sync/tick-align-transform.js.map +1 -0
- package/esm/plugin/components/{axis-sync-plugin → axis-sync}/zero-align-transform.js +1 -1
- package/esm/plugin/components/axis-sync/zero-align-transform.js.map +1 -0
- package/esm/plugin/components/index.d.ts +1 -1
- package/esm/plugin/components/index.js +1 -1
- package/esm/plugin/components/index.js.map +1 -1
- package/esm/plugin/components/register.d.ts +2 -0
- package/esm/plugin/components/register.js +6 -0
- package/esm/plugin/components/register.js.map +1 -0
- package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/base.d.ts +10 -9
- package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/base.js +19 -13
- package/esm/plugin/components/tooltip-handler/base.js.map +1 -0
- package/{cjs/component/tooltip/handler → esm/plugin/components/tooltip-handler}/canvas/canvas-tooltip-handler.d.ts +7 -4
- package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/canvas/canvas-tooltip-handler.js +13 -2
- package/esm/plugin/components/tooltip-handler/canvas/canvas-tooltip-handler.js.map +1 -0
- package/esm/plugin/components/tooltip-handler/canvas/index.js.map +1 -0
- package/esm/plugin/components/tooltip-handler/constants.js.map +1 -0
- package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/dom-tooltip-handler.d.ts +7 -4
- package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/dom-tooltip-handler.js +14 -4
- package/esm/plugin/components/tooltip-handler/dom/dom-tooltip-handler.js.map +1 -0
- package/esm/plugin/components/tooltip-handler/dom/index.js.map +1 -0
- package/esm/plugin/components/tooltip-handler/dom/interface.js.map +1 -0
- package/esm/plugin/components/tooltip-handler/dom/model/base-tooltip-model.js.map +1 -0
- package/esm/plugin/components/tooltip-handler/dom/model/content-column-model.js.map +1 -0
- package/esm/plugin/components/tooltip-handler/dom/model/content-model.js.map +1 -0
- package/esm/plugin/components/tooltip-handler/dom/model/interface.js +2 -0
- package/esm/plugin/components/tooltip-handler/dom/model/interface.js.map +1 -0
- package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/shape-model.js +4 -0
- package/esm/plugin/components/tooltip-handler/dom/model/shape-model.js.map +1 -0
- package/esm/plugin/components/tooltip-handler/dom/model/style-constants.js.map +1 -0
- package/esm/plugin/components/tooltip-handler/dom/model/text-model.js.map +1 -0
- package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/title-model.js +7 -3
- package/esm/plugin/components/tooltip-handler/dom/model/title-model.js.map +1 -0
- package/esm/plugin/components/tooltip-handler/dom/model/tooltip-model.js.map +1 -0
- package/esm/plugin/components/tooltip-handler/dom/util.js.map +1 -0
- package/esm/plugin/components/tooltip-handler/index.js.map +1 -0
- package/esm/plugin/components/tooltip-handler/interface/common.d.ts +4 -0
- package/esm/plugin/components/tooltip-handler/interface/common.js +2 -0
- package/esm/plugin/components/tooltip-handler/interface/common.js.map +1 -0
- package/esm/plugin/components/tooltip-handler/interface/index.d.ts +2 -0
- package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/interface/index.js +2 -0
- package/esm/plugin/components/tooltip-handler/interface/index.js.map +1 -0
- package/esm/plugin/components/tooltip-handler/interface/style.js.map +1 -0
- package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/attribute.d.ts +1 -2
- package/esm/plugin/components/tooltip-handler/utils/attribute.js.map +1 -0
- package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/common.d.ts +1 -1
- package/esm/plugin/components/tooltip-handler/utils/common.js.map +1 -0
- package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/compose.d.ts +1 -2
- package/esm/plugin/components/tooltip-handler/utils/compose.js +94 -0
- package/esm/plugin/components/tooltip-handler/utils/compose.js.map +1 -0
- package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/get-spec.d.ts +1 -1
- package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/get-spec.js +2 -2
- package/esm/plugin/components/tooltip-handler/utils/get-spec.js.map +1 -0
- package/esm/plugin/components/tooltip-handler/utils/index.js.map +1 -0
- package/esm/plugin/components/tooltip-handler/utils/pattern.js.map +1 -0
- package/esm/plugin/components/tooltip-handler/utils/position.js.map +1 -0
- package/esm/region/interface.d.ts +0 -3
- package/esm/region/interface.js.map +1 -1
- package/esm/region/region.js +1 -1
- package/esm/region/region.js.map +1 -1
- package/esm/scale/global-scale.js +1 -1
- package/esm/scale/global-scale.js.map +1 -1
- package/esm/series/area/area-transformer.d.ts +2 -0
- package/esm/series/area/area-transformer.js +20 -0
- package/esm/series/area/area-transformer.js.map +1 -1
- package/esm/series/area/area.d.ts +0 -1
- package/esm/series/area/area.js +15 -26
- package/esm/series/area/area.js.map +1 -1
- package/esm/series/bar/bar.d.ts +16 -3
- package/esm/series/bar/bar.js +160 -71
- package/esm/series/bar/bar.js.map +1 -1
- package/esm/series/bar/interface.d.ts +5 -2
- package/esm/series/bar/interface.js.map +1 -1
- package/esm/series/base/base-series-transformer.js +1 -2
- package/esm/series/base/base-series-transformer.js.map +1 -1
- package/esm/series/base/base-series.d.ts +34 -6
- package/esm/series/base/base-series.js +105 -39
- package/esm/series/base/base-series.js.map +1 -1
- package/esm/series/base/constant.d.ts +4 -0
- package/esm/series/base/constant.js +10 -0
- package/esm/series/base/constant.js.map +1 -1
- package/esm/series/box-plot/box-plot.js +3 -4
- package/esm/series/box-plot/box-plot.js.map +1 -1
- package/esm/series/cartesian/cartesian.d.ts +6 -0
- package/esm/series/cartesian/cartesian.js +32 -21
- package/esm/series/cartesian/cartesian.js.map +1 -1
- package/esm/series/circle-packing/circle-packing.js +2 -2
- package/esm/series/circle-packing/circle-packing.js.map +1 -1
- package/esm/series/correlation/correlation.js +8 -6
- package/esm/series/correlation/correlation.js.map +1 -1
- package/esm/series/dot/dot.js +12 -12
- package/esm/series/dot/dot.js.map +1 -1
- package/esm/series/funnel/funnel.js +33 -22
- package/esm/series/funnel/funnel.js.map +1 -1
- package/esm/series/gauge/gauge-pointer.d.ts +1 -0
- package/esm/series/gauge/gauge-pointer.js +4 -1
- package/esm/series/gauge/gauge-pointer.js.map +1 -1
- package/esm/series/gauge/gauge.js +5 -5
- package/esm/series/gauge/gauge.js.map +1 -1
- package/esm/series/heatmap/heatmap.d.ts +1 -0
- package/esm/series/heatmap/heatmap.js +9 -4
- package/esm/series/heatmap/heatmap.js.map +1 -1
- package/esm/series/interface/common.d.ts +1 -1
- package/esm/series/interface/common.js.map +1 -1
- package/esm/series/interface/series.d.ts +2 -3
- package/esm/series/interface/series.js.map +1 -1
- package/esm/series/interface/theme.d.ts +2 -0
- package/esm/series/interface/theme.js +4 -1
- package/esm/series/interface/theme.js.map +1 -1
- package/esm/series/interface/type.d.ts +6 -2
- package/esm/series/interface/type.js +4 -2
- package/esm/series/interface/type.js.map +1 -1
- package/esm/series/line/line.js +8 -3
- package/esm/series/line/line.js.map +1 -1
- package/esm/series/link/link.d.ts +1 -0
- package/esm/series/link/link.js +9 -4
- package/esm/series/link/link.js.map +1 -1
- package/esm/series/liquid/animation.d.ts +14 -0
- package/esm/series/liquid/animation.js +55 -0
- package/esm/series/liquid/animation.js.map +1 -0
- package/esm/series/liquid/constant.d.ts +2 -0
- package/esm/series/liquid/constant.js +21 -0
- package/esm/series/liquid/constant.js.map +1 -0
- package/esm/series/liquid/interface.d.ts +35 -0
- package/esm/series/liquid/interface.js +2 -0
- package/esm/series/liquid/interface.js.map +1 -0
- package/esm/series/liquid/liquid.d.ts +50 -0
- package/esm/series/liquid/liquid.js +218 -0
- package/esm/series/liquid/liquid.js.map +1 -0
- package/esm/series/liquid/tooltip-helper.d.ts +9 -0
- package/esm/series/liquid/tooltip-helper.js +29 -0
- package/esm/series/liquid/tooltip-helper.js.map +1 -0
- package/esm/series/liquid/util.d.ts +2 -0
- package/esm/series/liquid/util.js +7 -0
- package/esm/series/liquid/util.js.map +1 -0
- package/esm/series/map/map.js +4 -4
- package/esm/series/map/map.js.map +1 -1
- package/esm/series/mixin/line-mixin.d.ts +2 -2
- package/esm/series/mixin/line-mixin.js +42 -22
- package/esm/series/mixin/line-mixin.js.map +1 -1
- package/esm/series/pie/pie.d.ts +1 -0
- package/esm/series/pie/pie.js +11 -7
- package/esm/series/pie/pie.js.map +1 -1
- package/esm/series/polar/polar.d.ts +2 -0
- package/esm/series/polar/polar.js +1 -1
- package/esm/series/polar/polar.js.map +1 -1
- package/esm/series/polar/progress-like/progress-like.js +4 -3
- package/esm/series/polar/progress-like/progress-like.js.map +1 -1
- package/esm/series/polar/rose-like/rose-like.js +4 -3
- package/esm/series/polar/rose-like/rose-like.js.map +1 -1
- package/esm/series/progress/circular/circular.d.ts +1 -0
- package/esm/series/progress/circular/circular.js +15 -8
- package/esm/series/progress/circular/circular.js.map +1 -1
- package/esm/series/progress/linear/linear.d.ts +1 -0
- package/esm/series/progress/linear/linear.js +56 -52
- package/esm/series/progress/linear/linear.js.map +1 -1
- package/esm/series/radar/animation.js +1 -1
- package/esm/series/radar/animation.js.map +1 -1
- package/esm/series/radar/radar.js +4 -3
- package/esm/series/radar/radar.js.map +1 -1
- package/esm/series/range-area/range-area.js +4 -3
- package/esm/series/range-area/range-area.js.map +1 -1
- package/esm/series/range-column/range-column.d.ts +5 -1
- package/esm/series/range-column/range-column.js +28 -33
- package/esm/series/range-column/range-column.js.map +1 -1
- package/esm/series/rose/rose.js +5 -4
- package/esm/series/rose/rose.js.map +1 -1
- package/esm/series/sankey/sankey.js +13 -12
- package/esm/series/sankey/sankey.js.map +1 -1
- package/esm/series/scatter/scatter.js +11 -8
- package/esm/series/scatter/scatter.js.map +1 -1
- package/esm/series/sunburst/sunburst.js +5 -4
- package/esm/series/sunburst/sunburst.js.map +1 -1
- package/esm/series/treemap/treemap-transform.d.ts +6 -0
- package/esm/series/treemap/treemap-transform.js +11 -0
- package/esm/series/treemap/treemap-transform.js.map +1 -0
- package/esm/series/treemap/treemap.d.ts +6 -3
- package/esm/series/treemap/treemap.js +29 -43
- package/esm/series/treemap/treemap.js.map +1 -1
- package/esm/series/util/stack.js +1 -1
- package/esm/series/util/stack.js.map +1 -1
- package/esm/series/waterfall/waterfall-transformer.js +1 -1
- package/esm/series/waterfall/waterfall-transformer.js.map +1 -1
- package/esm/series/waterfall/waterfall.js +3 -2
- package/esm/series/waterfall/waterfall.js.map +1 -1
- package/esm/series/word-cloud/base.d.ts +7 -7
- package/esm/series/word-cloud/base.js +41 -47
- package/esm/series/word-cloud/base.js.map +1 -1
- package/esm/series/word-cloud/interface.d.ts +1 -1
- package/esm/series/word-cloud/interface.js.map +1 -1
- package/esm/series/word-cloud/word-cloud-3d.js +4 -25
- package/esm/series/word-cloud/word-cloud-3d.js.map +1 -1
- package/esm/theme/builtin/common/component/axis/cartesian-axis.d.ts +1 -0
- package/esm/theme/builtin/common/component/axis/cartesian-axis.js +6 -0
- package/esm/theme/builtin/common/component/axis/cartesian-axis.js.map +1 -1
- package/esm/theme/builtin/common/component/index.js +2 -1
- package/esm/theme/builtin/common/component/index.js.map +1 -1
- package/esm/theme/builtin/common/mark.js +2 -2
- package/esm/theme/builtin/common/mark.js.map +1 -1
- package/esm/theme/builtin/common/series/funnel.js +0 -2
- package/esm/theme/builtin/common/series/funnel.js.map +1 -1
- package/esm/theme/builtin/common/series/funnel3d.js +0 -2
- package/esm/theme/builtin/common/series/funnel3d.js.map +1 -1
- package/esm/theme/builtin/common/series/index.js +4 -1
- package/esm/theme/builtin/common/series/index.js.map +1 -1
- package/esm/theme/builtin/common/series/liquid.d.ts +2 -0
- package/esm/theme/builtin/common/series/liquid.js +15 -0
- package/esm/theme/builtin/common/series/liquid.js.map +1 -0
- package/esm/theme/builtin/common/series/waterfall.js +1 -2
- package/esm/theme/builtin/common/series/waterfall.js.map +1 -1
- package/esm/theme/builtin/index.js +2 -1
- package/esm/theme/builtin/index.js.map +1 -1
- package/esm/typings/layout.d.ts +2 -1
- package/esm/typings/layout.js.map +1 -1
- package/esm/typings/spec/common.d.ts +5 -2
- package/esm/typings/spec/common.js.map +1 -1
- package/esm/typings/spec/index.d.ts +1 -0
- package/esm/typings/spec/index.js +2 -0
- package/esm/typings/spec/index.js.map +1 -1
- package/{cjs/plugin/chart/media-query/interface/spec.d.ts → esm/typings/spec/media-query.d.ts} +8 -5
- package/esm/typings/spec/media-query.js +2 -0
- package/esm/typings/spec/media-query.js.map +1 -0
- package/esm/typings/tooltip/line.d.ts +4 -0
- package/esm/typings/tooltip/line.js.map +1 -1
- package/esm/typings/visual.d.ts +6 -0
- package/esm/typings/visual.js.map +1 -1
- package/esm/util/env.js +5 -3
- package/esm/util/env.js.map +1 -1
- package/esm/util/model.js.map +1 -1
- package/esm/vchart-all.js +7 -1
- package/esm/vchart-all.js.map +1 -1
- package/esm/vchart-simple.js +5 -1
- package/esm/vchart-simple.js.map +1 -1
- package/package.json +23 -16
- package/cjs/component/tooltip/handler/base.js.map +0 -1
- package/cjs/component/tooltip/handler/canvas/canvas-tooltip-handler.js.map +0 -1
- package/cjs/component/tooltip/handler/canvas/index.js.map +0 -1
- package/cjs/component/tooltip/handler/constants.js.map +0 -1
- package/cjs/component/tooltip/handler/dom/dom-tooltip-handler.js.map +0 -1
- package/cjs/component/tooltip/handler/dom/index.js.map +0 -1
- package/cjs/component/tooltip/handler/dom/interface.js.map +0 -1
- package/cjs/component/tooltip/handler/dom/model/base-tooltip-model.js.map +0 -1
- package/cjs/component/tooltip/handler/dom/model/content-column-model.js.map +0 -1
- package/cjs/component/tooltip/handler/dom/model/content-model.js.map +0 -1
- package/cjs/component/tooltip/handler/dom/model/interface.js.map +0 -1
- package/cjs/component/tooltip/handler/dom/model/shape-model.js.map +0 -1
- package/cjs/component/tooltip/handler/dom/model/style-constants.js.map +0 -1
- package/cjs/component/tooltip/handler/dom/model/text-model.js.map +0 -1
- package/cjs/component/tooltip/handler/dom/model/title-model.js.map +0 -1
- package/cjs/component/tooltip/handler/dom/model/tooltip-model.js.map +0 -1
- package/cjs/component/tooltip/handler/dom/util.js.map +0 -1
- package/cjs/component/tooltip/handler/index.js.map +0 -1
- package/cjs/component/tooltip/handler/interface/index.d.ts +0 -1
- package/cjs/component/tooltip/handler/interface/index.js.map +0 -1
- package/cjs/component/tooltip/handler/interface/style.js.map +0 -1
- package/cjs/component/tooltip/handler/utils/attribute.js.map +0 -1
- package/cjs/component/tooltip/handler/utils/common.js.map +0 -1
- package/cjs/component/tooltip/handler/utils/compose.js +0 -106
- package/cjs/component/tooltip/handler/utils/compose.js.map +0 -1
- package/cjs/component/tooltip/handler/utils/get-spec.js.map +0 -1
- package/cjs/component/tooltip/handler/utils/index.js.map +0 -1
- package/cjs/component/tooltip/handler/utils/pattern.js.map +0 -1
- package/cjs/component/tooltip/handler/utils/position.js.map +0 -1
- package/cjs/interaction/trigger.d.ts +0 -38
- package/cjs/interaction/trigger.js +0 -140
- package/cjs/interaction/trigger.js.map +0 -1
- package/cjs/plugin/chart/media-query/interface/spec.js.map +0 -1
- package/cjs/plugin/components/axis-sync-plugin/axis-sync.js.map +0 -1
- package/cjs/plugin/components/axis-sync-plugin/index.js.map +0 -1
- package/cjs/plugin/components/axis-sync-plugin/tick-align-transform.js.map +0 -1
- package/cjs/plugin/components/axis-sync-plugin/zero-align-transform.js.map +0 -1
- package/cjs/theme/builtin/common-mobile/component/axis/band-axis.d.ts +0 -2
- package/cjs/theme/builtin/common-mobile/component/axis/band-axis.js +0 -22
- package/cjs/theme/builtin/common-mobile/component/axis/band-axis.js.map +0 -1
- package/cjs/theme/builtin/common-mobile/component/axis/cartesian-axis.d.ts +0 -3
- package/cjs/theme/builtin/common-mobile/component/axis/cartesian-axis.js +0 -36
- package/cjs/theme/builtin/common-mobile/component/axis/cartesian-axis.js.map +0 -1
- package/cjs/theme/builtin/common-mobile/component/axis/common-axis.d.ts +0 -2
- package/cjs/theme/builtin/common-mobile/component/axis/common-axis.js +0 -42
- package/cjs/theme/builtin/common-mobile/component/axis/common-axis.js.map +0 -1
- package/cjs/theme/builtin/common-mobile/component/axis/linear-axis.d.ts +0 -2
- package/cjs/theme/builtin/common-mobile/component/axis/linear-axis.js +0 -22
- package/cjs/theme/builtin/common-mobile/component/axis/linear-axis.js.map +0 -1
- package/cjs/theme/builtin/common-mobile/component/axis/polar-axis.d.ts +0 -3
- package/cjs/theme/builtin/common-mobile/component/axis/polar-axis.js +0 -25
- package/cjs/theme/builtin/common-mobile/component/axis/polar-axis.js.map +0 -1
- package/cjs/theme/builtin/common-mobile/component/crosshair.d.ts +0 -2
- package/cjs/theme/builtin/common-mobile/component/crosshair.js +0 -39
- package/cjs/theme/builtin/common-mobile/component/crosshair.js.map +0 -1
- package/cjs/theme/builtin/common-mobile/component/data-zoom.d.ts +0 -2
- package/cjs/theme/builtin/common-mobile/component/data-zoom.js +0 -40
- package/cjs/theme/builtin/common-mobile/component/data-zoom.js.map +0 -1
- package/cjs/theme/builtin/common-mobile/component/index.d.ts +0 -2
- package/cjs/theme/builtin/common-mobile/component/index.js +0 -33
- package/cjs/theme/builtin/common-mobile/component/index.js.map +0 -1
- package/cjs/theme/builtin/common-mobile/component/indicator.d.ts +0 -2
- package/cjs/theme/builtin/common-mobile/component/indicator.js +0 -23
- package/cjs/theme/builtin/common-mobile/component/indicator.js.map +0 -1
- package/cjs/theme/builtin/common-mobile/component/legend/color-legend.d.ts +0 -2
- package/cjs/theme/builtin/common-mobile/component/legend/color-legend.js +0 -23
- package/cjs/theme/builtin/common-mobile/component/legend/color-legend.js.map +0 -1
- package/cjs/theme/builtin/common-mobile/component/legend/continuous.d.ts +0 -2
- package/cjs/theme/builtin/common-mobile/component/legend/continuous.js +0 -44
- package/cjs/theme/builtin/common-mobile/component/legend/continuous.js.map +0 -1
- package/cjs/theme/builtin/common-mobile/component/legend/discrete-legend.d.ts +0 -2
- package/cjs/theme/builtin/common-mobile/component/legend/discrete-legend.js +0 -39
- package/cjs/theme/builtin/common-mobile/component/legend/discrete-legend.js.map +0 -1
- package/cjs/theme/builtin/common-mobile/component/legend/size-legend.d.ts +0 -2
- package/cjs/theme/builtin/common-mobile/component/legend/size-legend.js +0 -23
- package/cjs/theme/builtin/common-mobile/component/legend/size-legend.js.map +0 -1
- package/cjs/theme/builtin/common-mobile/component/map-label.d.ts +0 -2
- package/cjs/theme/builtin/common-mobile/component/map-label.js +0 -39
- package/cjs/theme/builtin/common-mobile/component/map-label.js.map +0 -1
- package/cjs/theme/builtin/common-mobile/component/mark-area.d.ts +0 -2
- package/cjs/theme/builtin/common-mobile/component/mark-area.js +0 -24
- package/cjs/theme/builtin/common-mobile/component/mark-area.js.map +0 -1
- package/cjs/theme/builtin/common-mobile/component/mark-line.d.ts +0 -2
- package/cjs/theme/builtin/common-mobile/component/mark-line.js +0 -33
- package/cjs/theme/builtin/common-mobile/component/mark-line.js.map +0 -1
- package/cjs/theme/builtin/common-mobile/component/mark-point.d.ts +0 -2
- package/cjs/theme/builtin/common-mobile/component/mark-point.js +0 -19
- package/cjs/theme/builtin/common-mobile/component/mark-point.js.map +0 -1
- package/cjs/theme/builtin/common-mobile/component/player.d.ts +0 -2
- package/cjs/theme/builtin/common-mobile/component/player.js +0 -51
- package/cjs/theme/builtin/common-mobile/component/player.js.map +0 -1
- package/cjs/theme/builtin/common-mobile/component/poptip.d.ts +0 -2
- package/cjs/theme/builtin/common-mobile/component/poptip.js +0 -25
- package/cjs/theme/builtin/common-mobile/component/poptip.js.map +0 -1
- package/cjs/theme/builtin/common-mobile/component/title.d.ts +0 -2
- package/cjs/theme/builtin/common-mobile/component/title.js +0 -23
- package/cjs/theme/builtin/common-mobile/component/title.js.map +0 -1
- package/cjs/theme/builtin/common-mobile/component/tooltip.d.ts +0 -2
- package/cjs/theme/builtin/common-mobile/component/tooltip.js +0 -43
- package/cjs/theme/builtin/common-mobile/component/tooltip.js.map +0 -1
- package/cjs/theme/builtin/common-mobile/component/total-label.d.ts +0 -2
- package/cjs/theme/builtin/common-mobile/component/total-label.js +0 -16
- package/cjs/theme/builtin/common-mobile/component/total-label.js.map +0 -1
- package/cjs/theme/builtin/common-mobile/constants.d.ts +0 -2
- package/cjs/theme/builtin/common-mobile/constants.js +0 -23
- package/cjs/theme/builtin/common-mobile/constants.js.map +0 -1
- package/cjs/theme/builtin/common-mobile/mark.d.ts +0 -3
- package/cjs/theme/builtin/common-mobile/mark.js +0 -35
- package/cjs/theme/builtin/common-mobile/mark.js.map +0 -1
- package/cjs/theme/builtin/dark-mobile/index.d.ts +0 -2
- package/cjs/theme/builtin/dark-mobile/index.js +0 -18
- package/cjs/theme/builtin/dark-mobile/index.js.map +0 -1
- package/cjs/theme/builtin/light-mobile/index.d.ts +0 -2
- package/cjs/theme/builtin/light-mobile/index.js +0 -18
- package/cjs/theme/builtin/light-mobile/index.js.map +0 -1
- package/esm/component/tooltip/handler/base.js.map +0 -1
- package/esm/component/tooltip/handler/canvas/canvas-tooltip-handler.js.map +0 -1
- package/esm/component/tooltip/handler/canvas/index.js.map +0 -1
- package/esm/component/tooltip/handler/constants.js.map +0 -1
- package/esm/component/tooltip/handler/dom/dom-tooltip-handler.js.map +0 -1
- package/esm/component/tooltip/handler/dom/index.js.map +0 -1
- package/esm/component/tooltip/handler/dom/interface.js.map +0 -1
- package/esm/component/tooltip/handler/dom/model/base-tooltip-model.js.map +0 -1
- package/esm/component/tooltip/handler/dom/model/content-column-model.js.map +0 -1
- package/esm/component/tooltip/handler/dom/model/content-model.js.map +0 -1
- package/esm/component/tooltip/handler/dom/model/interface.js.map +0 -1
- package/esm/component/tooltip/handler/dom/model/shape-model.js.map +0 -1
- package/esm/component/tooltip/handler/dom/model/style-constants.js.map +0 -1
- package/esm/component/tooltip/handler/dom/model/text-model.js.map +0 -1
- package/esm/component/tooltip/handler/dom/model/title-model.js.map +0 -1
- package/esm/component/tooltip/handler/dom/model/tooltip-model.js.map +0 -1
- package/esm/component/tooltip/handler/dom/util.js.map +0 -1
- package/esm/component/tooltip/handler/index.js.map +0 -1
- package/esm/component/tooltip/handler/interface/index.d.ts +0 -1
- package/esm/component/tooltip/handler/interface/index.js.map +0 -1
- package/esm/component/tooltip/handler/interface/style.js.map +0 -1
- package/esm/component/tooltip/handler/utils/attribute.js.map +0 -1
- package/esm/component/tooltip/handler/utils/common.js.map +0 -1
- package/esm/component/tooltip/handler/utils/compose.js +0 -89
- package/esm/component/tooltip/handler/utils/compose.js.map +0 -1
- package/esm/component/tooltip/handler/utils/get-spec.js.map +0 -1
- package/esm/component/tooltip/handler/utils/index.js.map +0 -1
- package/esm/component/tooltip/handler/utils/pattern.js.map +0 -1
- package/esm/component/tooltip/handler/utils/position.js.map +0 -1
- package/esm/interaction/trigger.d.ts +0 -38
- package/esm/interaction/trigger.js +0 -141
- package/esm/interaction/trigger.js.map +0 -1
- package/esm/plugin/chart/media-query/interface/spec.js +0 -2
- package/esm/plugin/chart/media-query/interface/spec.js.map +0 -1
- package/esm/plugin/components/axis-sync-plugin/axis-sync.js.map +0 -1
- package/esm/plugin/components/axis-sync-plugin/index.js.map +0 -1
- package/esm/plugin/components/axis-sync-plugin/tick-align-transform.js.map +0 -1
- package/esm/plugin/components/axis-sync-plugin/zero-align-transform.js.map +0 -1
- package/esm/theme/builtin/common-mobile/component/axis/band-axis.d.ts +0 -2
- package/esm/theme/builtin/common-mobile/component/axis/band-axis.js +0 -18
- package/esm/theme/builtin/common-mobile/component/axis/band-axis.js.map +0 -1
- package/esm/theme/builtin/common-mobile/component/axis/cartesian-axis.d.ts +0 -3
- package/esm/theme/builtin/common-mobile/component/axis/cartesian-axis.js +0 -32
- package/esm/theme/builtin/common-mobile/component/axis/cartesian-axis.js.map +0 -1
- package/esm/theme/builtin/common-mobile/component/axis/common-axis.d.ts +0 -2
- package/esm/theme/builtin/common-mobile/component/axis/common-axis.js +0 -36
- package/esm/theme/builtin/common-mobile/component/axis/common-axis.js.map +0 -1
- package/esm/theme/builtin/common-mobile/component/axis/linear-axis.d.ts +0 -2
- package/esm/theme/builtin/common-mobile/component/axis/linear-axis.js +0 -18
- package/esm/theme/builtin/common-mobile/component/axis/linear-axis.js.map +0 -1
- package/esm/theme/builtin/common-mobile/component/axis/polar-axis.d.ts +0 -3
- package/esm/theme/builtin/common-mobile/component/axis/polar-axis.js +0 -23
- package/esm/theme/builtin/common-mobile/component/axis/polar-axis.js.map +0 -1
- package/esm/theme/builtin/common-mobile/component/crosshair.d.ts +0 -2
- package/esm/theme/builtin/common-mobile/component/crosshair.js +0 -35
- package/esm/theme/builtin/common-mobile/component/crosshair.js.map +0 -1
- package/esm/theme/builtin/common-mobile/component/data-zoom.d.ts +0 -2
- package/esm/theme/builtin/common-mobile/component/data-zoom.js +0 -34
- package/esm/theme/builtin/common-mobile/component/data-zoom.js.map +0 -1
- package/esm/theme/builtin/common-mobile/component/index.d.ts +0 -2
- package/esm/theme/builtin/common-mobile/component/index.js +0 -65
- package/esm/theme/builtin/common-mobile/component/index.js.map +0 -1
- package/esm/theme/builtin/common-mobile/component/indicator.d.ts +0 -2
- package/esm/theme/builtin/common-mobile/component/indicator.js +0 -17
- package/esm/theme/builtin/common-mobile/component/indicator.js.map +0 -1
- package/esm/theme/builtin/common-mobile/component/legend/color-legend.d.ts +0 -2
- package/esm/theme/builtin/common-mobile/component/legend/color-legend.js +0 -17
- package/esm/theme/builtin/common-mobile/component/legend/color-legend.js.map +0 -1
- package/esm/theme/builtin/common-mobile/component/legend/continuous.d.ts +0 -2
- package/esm/theme/builtin/common-mobile/component/legend/continuous.js +0 -38
- package/esm/theme/builtin/common-mobile/component/legend/continuous.js.map +0 -1
- package/esm/theme/builtin/common-mobile/component/legend/discrete-legend.d.ts +0 -2
- package/esm/theme/builtin/common-mobile/component/legend/discrete-legend.js +0 -33
- package/esm/theme/builtin/common-mobile/component/legend/discrete-legend.js.map +0 -1
- package/esm/theme/builtin/common-mobile/component/legend/size-legend.d.ts +0 -2
- package/esm/theme/builtin/common-mobile/component/legend/size-legend.js +0 -17
- package/esm/theme/builtin/common-mobile/component/legend/size-legend.js.map +0 -1
- package/esm/theme/builtin/common-mobile/component/map-label.d.ts +0 -2
- package/esm/theme/builtin/common-mobile/component/map-label.js +0 -33
- package/esm/theme/builtin/common-mobile/component/map-label.js.map +0 -1
- package/esm/theme/builtin/common-mobile/component/mark-area.d.ts +0 -2
- package/esm/theme/builtin/common-mobile/component/mark-area.js +0 -18
- package/esm/theme/builtin/common-mobile/component/mark-area.js.map +0 -1
- package/esm/theme/builtin/common-mobile/component/mark-line.d.ts +0 -2
- package/esm/theme/builtin/common-mobile/component/mark-line.js +0 -27
- package/esm/theme/builtin/common-mobile/component/mark-line.js.map +0 -1
- package/esm/theme/builtin/common-mobile/component/mark-point.d.ts +0 -2
- package/esm/theme/builtin/common-mobile/component/mark-point.js +0 -15
- package/esm/theme/builtin/common-mobile/component/mark-point.js.map +0 -1
- package/esm/theme/builtin/common-mobile/component/player.d.ts +0 -2
- package/esm/theme/builtin/common-mobile/component/player.js +0 -47
- package/esm/theme/builtin/common-mobile/component/player.js.map +0 -1
- package/esm/theme/builtin/common-mobile/component/poptip.d.ts +0 -2
- package/esm/theme/builtin/common-mobile/component/poptip.js +0 -19
- package/esm/theme/builtin/common-mobile/component/poptip.js.map +0 -1
- package/esm/theme/builtin/common-mobile/component/title.d.ts +0 -2
- package/esm/theme/builtin/common-mobile/component/title.js +0 -17
- package/esm/theme/builtin/common-mobile/component/title.js.map +0 -1
- package/esm/theme/builtin/common-mobile/component/tooltip.d.ts +0 -2
- package/esm/theme/builtin/common-mobile/component/tooltip.js +0 -37
- package/esm/theme/builtin/common-mobile/component/tooltip.js.map +0 -1
- package/esm/theme/builtin/common-mobile/component/total-label.d.ts +0 -2
- package/esm/theme/builtin/common-mobile/component/total-label.js +0 -10
- package/esm/theme/builtin/common-mobile/component/total-label.js.map +0 -1
- package/esm/theme/builtin/common-mobile/constants.d.ts +0 -2
- package/esm/theme/builtin/common-mobile/constants.js +0 -19
- package/esm/theme/builtin/common-mobile/constants.js.map +0 -1
- package/esm/theme/builtin/common-mobile/mark.d.ts +0 -3
- package/esm/theme/builtin/common-mobile/mark.js +0 -31
- package/esm/theme/builtin/common-mobile/mark.js.map +0 -1
- package/esm/theme/builtin/dark-mobile/index.d.ts +0 -2
- package/esm/theme/builtin/dark-mobile/index.js +0 -16
- package/esm/theme/builtin/dark-mobile/index.js.map +0 -1
- package/esm/theme/builtin/light-mobile/index.d.ts +0 -2
- package/esm/theme/builtin/light-mobile/index.js +0 -16
- package/esm/theme/builtin/light-mobile/index.js.map +0 -1
- /package/cjs/{component/tooltip/handler/dom → chart/liquid}/interface.js +0 -0
- /package/cjs/plugin/components/{axis-sync-plugin → axis-sync}/axis-sync.d.ts +0 -0
- /package/cjs/plugin/components/{axis-sync-plugin → axis-sync}/axis-sync.js +0 -0
- /package/cjs/plugin/components/{axis-sync-plugin → axis-sync}/index.d.ts +0 -0
- /package/cjs/plugin/components/{axis-sync-plugin → axis-sync}/index.js +0 -0
- /package/cjs/plugin/components/{axis-sync-plugin → axis-sync}/tick-align-transform.d.ts +0 -0
- /package/cjs/plugin/components/{axis-sync-plugin → axis-sync}/tick-align-transform.js +0 -0
- /package/cjs/plugin/components/{axis-sync-plugin → axis-sync}/zero-align-transform.d.ts +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/canvas/index.d.ts +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/canvas/index.js +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/constants.d.ts +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/constants.js +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/index.d.ts +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/index.js +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/interface.d.ts +0 -0
- /package/cjs/{component/tooltip/handler/dom/model → plugin/components/tooltip-handler/dom}/interface.js +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/base-tooltip-model.d.ts +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/base-tooltip-model.js +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/content-column-model.d.ts +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/content-column-model.js +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/content-model.d.ts +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/content-model.js +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/interface.d.ts +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/shape-model.d.ts +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/style-constants.d.ts +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/style-constants.js +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/text-model.d.ts +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/text-model.js +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/title-model.d.ts +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/tooltip-model.d.ts +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/tooltip-model.js +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/util.d.ts +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/util.js +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/index.d.ts +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/index.js +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/interface/style.d.ts +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/interface/style.js +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/attribute.js +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/common.js +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/index.d.ts +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/index.js +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/pattern.d.ts +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/pattern.js +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/position.d.ts +0 -0
- /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/position.js +0 -0
- /package/esm/{component/tooltip/handler/dom → chart/liquid}/interface.js +0 -0
- /package/esm/plugin/components/{axis-sync-plugin → axis-sync}/axis-sync.d.ts +0 -0
- /package/esm/plugin/components/{axis-sync-plugin → axis-sync}/axis-sync.js +0 -0
- /package/esm/plugin/components/{axis-sync-plugin → axis-sync}/index.d.ts +0 -0
- /package/esm/plugin/components/{axis-sync-plugin → axis-sync}/index.js +0 -0
- /package/esm/plugin/components/{axis-sync-plugin → axis-sync}/tick-align-transform.d.ts +0 -0
- /package/esm/plugin/components/{axis-sync-plugin → axis-sync}/tick-align-transform.js +0 -0
- /package/esm/plugin/components/{axis-sync-plugin → axis-sync}/zero-align-transform.d.ts +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/canvas/index.d.ts +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/canvas/index.js +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/constants.d.ts +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/constants.js +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/index.d.ts +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/index.js +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/interface.d.ts +0 -0
- /package/esm/{component/tooltip/handler/dom/model → plugin/components/tooltip-handler/dom}/interface.js +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/base-tooltip-model.d.ts +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/base-tooltip-model.js +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/content-column-model.d.ts +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/content-column-model.js +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/content-model.d.ts +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/content-model.js +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/interface.d.ts +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/shape-model.d.ts +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/style-constants.d.ts +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/style-constants.js +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/text-model.d.ts +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/text-model.js +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/title-model.d.ts +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/tooltip-model.d.ts +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/tooltip-model.js +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/util.d.ts +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/util.js +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/index.d.ts +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/index.js +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/interface/style.d.ts +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/interface/style.js +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/attribute.js +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/common.js +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/index.d.ts +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/index.js +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/pattern.d.ts +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/pattern.js +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/position.d.ts +0 -0
- /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/position.js +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
|
+
export interface ILiquidAnimationParams {
|
|
3
|
+
height: {
|
|
4
|
+
from: () => number | number;
|
|
5
|
+
to: () => number | number;
|
|
6
|
+
};
|
|
7
|
+
y: {
|
|
8
|
+
from: () => number | number;
|
|
9
|
+
to: () => number | number;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export type LiquidAppearPreset = 'wave' | 'grow' | 'waveGrow';
|
|
13
|
+
export declare function liquidPresetAnimation(params: ILiquidAnimationParams, preset: LiquidAppearPreset): IAnimationTypeConfig;
|
|
14
|
+
export declare const registerLiquidAnimation: () => void;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.registerLiquidAnimation = exports.liquidPresetAnimation = void 0;
|
|
6
|
+
|
|
7
|
+
const factory_1 = require("../../core/factory"), Appear_Wave = {
|
|
8
|
+
duration: 2e3,
|
|
9
|
+
loop: !0,
|
|
10
|
+
channel: {
|
|
11
|
+
wave: {
|
|
12
|
+
from: 0,
|
|
13
|
+
to: 1
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}, Appear_Grow = params => ({
|
|
17
|
+
duration: 2e3,
|
|
18
|
+
channel: {
|
|
19
|
+
wave: {
|
|
20
|
+
from: 0,
|
|
21
|
+
to: 1
|
|
22
|
+
},
|
|
23
|
+
height: params.height,
|
|
24
|
+
y: params.y
|
|
25
|
+
}
|
|
26
|
+
}), Appear_WaveGrow = params => ({
|
|
27
|
+
duration: 2e3,
|
|
28
|
+
channel: {
|
|
29
|
+
wave: {
|
|
30
|
+
from: 0,
|
|
31
|
+
to: 1
|
|
32
|
+
},
|
|
33
|
+
height: params.height,
|
|
34
|
+
y: params.y
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
function liquidPresetAnimation(params, preset) {
|
|
39
|
+
switch (preset) {
|
|
40
|
+
case "wave":
|
|
41
|
+
default:
|
|
42
|
+
return Appear_Wave;
|
|
43
|
+
|
|
44
|
+
case "grow":
|
|
45
|
+
return Appear_Grow(params);
|
|
46
|
+
|
|
47
|
+
case "waveGrow":
|
|
48
|
+
return Appear_WaveGrow(params);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
exports.liquidPresetAnimation = liquidPresetAnimation;
|
|
53
|
+
|
|
54
|
+
const registerLiquidAnimation = () => {
|
|
55
|
+
factory_1.Factory.registerAnimation("liquid", ((params, preset) => ({
|
|
56
|
+
appear: liquidPresetAnimation(params, preset),
|
|
57
|
+
enter: liquidPresetAnimation(params, preset),
|
|
58
|
+
exit: liquidPresetAnimation(params, preset)
|
|
59
|
+
})));
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
exports.registerLiquidAnimation = registerLiquidAnimation;
|
|
63
|
+
//# sourceMappingURL=animation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/series/liquid/animation.ts"],"names":[],"mappings":";;;AACA,gDAA6C;AAe7C,MAAM,WAAW,GAAyB;IACxC,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE,IAAI;IACV,OAAO,EAAE;QACP,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE;KACzB;CACF,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,MAA8B,EAAwB,EAAE;IAC3E,OAAO;QACL,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE;YACP,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE;YACxB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,CAAC,EAAE,MAAM,CAAC,CAAC;SACZ;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,MAA8B,EAAwB,EAAE;IAC/E,OAAO;QACL,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE;YACP,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE;YACxB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,CAAC,EAAE,MAAM,CAAC,CAAC;SACZ;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,SAAgB,qBAAqB,CACnC,MAA8B,EAC9B,MAA0B;IAE1B,QAAQ,MAAM,EAAE;QACd,KAAK,MAAM;YACT,OAAO,WAAW,CAAC;QACrB,KAAK,MAAM;YACT,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC;QAC7B,KAAK,UAAU;YACb,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;QACjC;YACE,OAAO,WAAW,CAAC;KACtB;AACH,CAAC;AAdD,sDAcC;AAEM,MAAM,uBAAuB,GAAG,GAAG,EAAE;IAC1C,iBAAO,CAAC,iBAAiB,CAAC,QAAQ,EAAE,CAAC,MAA8B,EAAE,MAA0B,EAAE,EAAE;QACjG,OAAO;YACL,MAAM,EAAE,qBAAqB,CAAC,MAAM,EAAE,MAAM,CAAC;YAC7C,KAAK,EAAE,qBAAqB,CAAC,MAAM,EAAE,MAAM,CAAC;YAC5C,IAAI,EAAE,qBAAqB,CAAC,MAAM,EAAE,MAAM,CAAC;SAC5C,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AARW,QAAA,uBAAuB,2BAQlC","file":"animation.js","sourcesContent":["import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';\nimport { Factory } from '../../core/factory';\n\nexport interface ILiquidAnimationParams {\n height: {\n from: () => number | number;\n to: () => number | number;\n };\n y: {\n from: () => number | number;\n to: () => number | number;\n };\n}\n\nexport type LiquidAppearPreset = 'wave' | 'grow' | 'waveGrow';\n\nconst Appear_Wave: IAnimationTypeConfig = {\n duration: 2000,\n loop: true,\n channel: {\n wave: { from: 0, to: 1 }\n }\n};\n\nconst Appear_Grow = (params: ILiquidAnimationParams): IAnimationTypeConfig => {\n return {\n duration: 2000,\n channel: {\n wave: { from: 0, to: 1 },\n height: params.height,\n y: params.y\n }\n };\n};\n\nconst Appear_WaveGrow = (params: ILiquidAnimationParams): IAnimationTypeConfig => {\n return {\n duration: 2000,\n channel: {\n wave: { from: 0, to: 1 },\n height: params.height,\n y: params.y\n }\n };\n};\n\nexport function liquidPresetAnimation(\n params: ILiquidAnimationParams,\n preset: LiquidAppearPreset\n): IAnimationTypeConfig {\n switch (preset) {\n case 'wave':\n return Appear_Wave;\n case 'grow':\n return Appear_Grow(params);\n case 'waveGrow':\n return Appear_WaveGrow(params);\n default:\n return Appear_Wave;\n }\n}\n\nexport const registerLiquidAnimation = () => {\n Factory.registerAnimation('liquid', (params: ILiquidAnimationParams, preset: LiquidAppearPreset) => {\n return {\n appear: liquidPresetAnimation(params, preset),\n enter: liquidPresetAnimation(params, preset),\n exit: liquidPresetAnimation(params, preset)\n };\n });\n};\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.LiquidSeriesMark = void 0;
|
|
6
|
+
|
|
7
|
+
const type_1 = require("../../mark/interface/type"), constant_1 = require("../base/constant"), type_2 = require("../interface/type");
|
|
8
|
+
|
|
9
|
+
exports.LiquidSeriesMark = Object.assign(Object.assign({}, constant_1.baseSeriesMark), {
|
|
10
|
+
[type_2.SeriesMarkNameEnum.liquid]: {
|
|
11
|
+
name: type_2.SeriesMarkNameEnum.liquid,
|
|
12
|
+
type: type_1.MarkTypeEnum.liquid
|
|
13
|
+
},
|
|
14
|
+
[type_2.SeriesMarkNameEnum.liquidBackground]: {
|
|
15
|
+
name: type_2.SeriesMarkNameEnum.liquidBackground,
|
|
16
|
+
type: type_1.MarkTypeEnum.group
|
|
17
|
+
},
|
|
18
|
+
[type_2.SeriesMarkNameEnum.liquidOutline]: {
|
|
19
|
+
name: type_2.SeriesMarkNameEnum.liquidOutline,
|
|
20
|
+
type: type_1.MarkTypeEnum.symbol
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/series/liquid/constant.ts"],"names":[],"mappings":";;;AAAA,oDAAyD;AACzD,+CAAkD;AAElD,4CAAuD;AAE1C,QAAA,gBAAgB,mCACxB,yBAAc,KACjB,CAAC,yBAAkB,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,yBAAkB,CAAC,MAAM,EAAE,IAAI,EAAE,mBAAY,CAAC,MAAM,EAAE,EAC3F,CAAC,yBAAkB,CAAC,gBAAgB,CAAC,EAAE,EAAE,IAAI,EAAE,yBAAkB,CAAC,gBAAgB,EAAE,IAAI,EAAE,mBAAY,CAAC,KAAK,EAAE,EAC9G,CAAC,yBAAkB,CAAC,aAAa,CAAC,EAAE,EAAE,IAAI,EAAE,yBAAkB,CAAC,aAAa,EAAE,IAAI,EAAE,mBAAY,CAAC,MAAM,EAAE,IACzG","file":"constant.js","sourcesContent":["import { MarkTypeEnum } from '../../mark/interface/type';\nimport { baseSeriesMark } from '../base/constant';\nimport type { SeriesMarkMap } from '../interface/common';\nimport { SeriesMarkNameEnum } from '../interface/type';\n\nexport const LiquidSeriesMark: SeriesMarkMap = {\n ...baseSeriesMark,\n [SeriesMarkNameEnum.liquid]: { name: SeriesMarkNameEnum.liquid, type: MarkTypeEnum.liquid },\n [SeriesMarkNameEnum.liquidBackground]: { name: SeriesMarkNameEnum.liquidBackground, type: MarkTypeEnum.group },\n [SeriesMarkNameEnum.liquidOutline]: { name: SeriesMarkNameEnum.liquidOutline, type: MarkTypeEnum.symbol }\n};\n"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';
|
|
2
|
+
import type { ILiquidMarkSpec, IGroupMarkSpec, ILiquidOutlineSpec } from '../../typings/visual';
|
|
3
|
+
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
4
|
+
import type { IAnimationSpec } from '../../animation/spec';
|
|
5
|
+
import type { LiquidAppearPreset } from './animation';
|
|
6
|
+
import type { SymbolType } from '@visactor/vrender-core';
|
|
7
|
+
import type { ISymbolMark } from '../../mark/symbol';
|
|
8
|
+
type LiquidMarks = 'liquid';
|
|
9
|
+
export type LiquidShapeType = SymbolType | 'drop';
|
|
10
|
+
export type ILiquidPadding = {
|
|
11
|
+
left?: number;
|
|
12
|
+
right?: number;
|
|
13
|
+
top?: number;
|
|
14
|
+
bottom?: number;
|
|
15
|
+
};
|
|
16
|
+
export type ILiquidPaddingSpec = ILiquidPadding | number | number[];
|
|
17
|
+
export interface ILiquidSeriesSpec extends IAnimationSpec<LiquidMarks, LiquidAppearPreset> {
|
|
18
|
+
type: 'liquid';
|
|
19
|
+
valueField?: string;
|
|
20
|
+
maskShape?: LiquidShapeType;
|
|
21
|
+
outlineMargin?: ILiquidPaddingSpec;
|
|
22
|
+
outlinePadding?: ILiquidPaddingSpec;
|
|
23
|
+
indicatorSmartInvert?: boolean;
|
|
24
|
+
[SeriesMarkNameEnum.liquid]?: IMarkSpec<ILiquidMarkSpec>;
|
|
25
|
+
[SeriesMarkNameEnum.liquidBackground]?: IMarkSpec<IGroupMarkSpec>;
|
|
26
|
+
[SeriesMarkNameEnum.liquidOutline]?: IMarkSpec<ISymbolMark>;
|
|
27
|
+
}
|
|
28
|
+
export interface ILiquidSeriesTheme {
|
|
29
|
+
outlineMargin?: ILiquidPaddingSpec;
|
|
30
|
+
outlinePadding?: ILiquidPaddingSpec;
|
|
31
|
+
[SeriesMarkNameEnum.liquid]?: Partial<IMarkTheme<ILiquidMarkSpec>>;
|
|
32
|
+
[SeriesMarkNameEnum.liquidBackground]?: IMarkSpec<IGroupMarkSpec>;
|
|
33
|
+
[SeriesMarkNameEnum.liquidOutline]?: IMarkSpec<ILiquidOutlineSpec>;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/series/liquid/interface.ts"],"names":[],"mappings":"","file":"interface.js","sourcesContent":["import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';\nimport type { ILiquidMarkSpec, IGroupMarkSpec, ILiquidOutlineSpec } from '../../typings/visual';\nimport type { SeriesMarkNameEnum } from '../interface/type';\nimport type { IAnimationSpec } from '../../animation/spec';\nimport type { LiquidAppearPreset } from './animation';\nimport type { SymbolType } from '@visactor/vrender-core';\nimport type { ISymbolMark } from '../../mark/symbol';\n\ntype LiquidMarks = 'liquid';\n\nexport type LiquidShapeType = SymbolType | 'drop';\n\nexport type ILiquidPadding = {\n left?: number;\n right?: number;\n top?: number;\n bottom?: number;\n};\n\n/** 布局 padding的配置 */\nexport type ILiquidPaddingSpec = ILiquidPadding | number | number[];\n\nexport interface ILiquidSeriesSpec extends IAnimationSpec<LiquidMarks, LiquidAppearPreset> {\n /** 系列类型 */\n type: 'liquid';\n /**\n * value字段\n */\n valueField?: string;\n /**\n * 轮廓形状\n * @default 'circle'\n */\n maskShape?: LiquidShapeType;\n /**\n * 外轮廓与region边界之间的padding\n */\n outlineMargin?: ILiquidPaddingSpec;\n /**\n * 内轮廓与外轮廓之间的padding\n */\n outlinePadding?: ILiquidPaddingSpec;\n /**\n * 是否开启指标智能反色\n * @default false\n */\n indicatorSmartInvert?: boolean;\n\n /**\n * 水波图元配置\n */\n [SeriesMarkNameEnum.liquid]?: IMarkSpec<ILiquidMarkSpec>;\n /**\n * 水波背景图元配置\n */\n [SeriesMarkNameEnum.liquidBackground]?: IMarkSpec<IGroupMarkSpec>;\n /**\n * 水波外轮廓配置\n */\n [SeriesMarkNameEnum.liquidOutline]?: IMarkSpec<ISymbolMark>;\n}\n\nexport interface ILiquidSeriesTheme {\n outlineMargin?: ILiquidPaddingSpec;\n outlinePadding?: ILiquidPaddingSpec;\n [SeriesMarkNameEnum.liquid]?: Partial<IMarkTheme<ILiquidMarkSpec>>;\n [SeriesMarkNameEnum.liquidBackground]?: IMarkSpec<IGroupMarkSpec>;\n [SeriesMarkNameEnum.liquidOutline]?: IMarkSpec<ILiquidOutlineSpec>;\n}\n"]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { SeriesMarkMap } from '../interface';
|
|
2
|
+
import { SeriesTypeEnum } from '../interface/type';
|
|
3
|
+
import type { Datum, ILiquidMarkSpec, IPoint } from '../../typings';
|
|
4
|
+
import type { ILiquidSeriesSpec } from './interface';
|
|
5
|
+
import type { IMark, IMarkRaw } from '../../mark/interface';
|
|
6
|
+
import { LineLikeSeriesSpecTransformer } from '../mixin/line-mixin-transformer';
|
|
7
|
+
import { BaseSeries } from '../base';
|
|
8
|
+
import type { DataView } from '@visactor/vdataset';
|
|
9
|
+
export type ILiquidMark = IMarkRaw<ILiquidMarkSpec>;
|
|
10
|
+
export declare class LiquidSeries<T extends ILiquidSeriesSpec = ILiquidSeriesSpec> extends BaseSeries<T> {
|
|
11
|
+
static readonly type: string;
|
|
12
|
+
type: SeriesTypeEnum;
|
|
13
|
+
static readonly mark: SeriesMarkMap;
|
|
14
|
+
static readonly transformerConstructor: typeof LineLikeSeriesSpecTransformer;
|
|
15
|
+
readonly transformerConstructor: typeof LineLikeSeriesSpecTransformer;
|
|
16
|
+
private _liquidMark?;
|
|
17
|
+
private _liquidBackgroundMark?;
|
|
18
|
+
private _liquidOutlineMark?;
|
|
19
|
+
private _paddingSpec?;
|
|
20
|
+
private _marginSpec?;
|
|
21
|
+
private _heightRatio?;
|
|
22
|
+
protected _valueField?: string;
|
|
23
|
+
setValueField(field: string): void;
|
|
24
|
+
getValueField(): string;
|
|
25
|
+
setAttrFromSpec(): void;
|
|
26
|
+
rawDataUpdate(d: DataView): void;
|
|
27
|
+
initMark(): void;
|
|
28
|
+
initMarkStyle(): void;
|
|
29
|
+
private _initLiquidOutlineMark;
|
|
30
|
+
private _initLiquidBackgroundMark;
|
|
31
|
+
private _initLiquidMark;
|
|
32
|
+
private _getPosAndSizeFormRegion;
|
|
33
|
+
private _initLiquidOutlineMarkStyle;
|
|
34
|
+
private _initLiquidBackgroundMarkStyle;
|
|
35
|
+
private _initLiquidMarkStyle;
|
|
36
|
+
protected initTooltip(): void;
|
|
37
|
+
initInteraction(): void;
|
|
38
|
+
initAnimation(): void;
|
|
39
|
+
protected initEvent(): void;
|
|
40
|
+
dataToPosition(data: Datum): IPoint;
|
|
41
|
+
dataToPositionX(data: Datum): number;
|
|
42
|
+
dataToPositionY(data: Datum): number;
|
|
43
|
+
valueToPosition(value1: any, value2?: any): IPoint;
|
|
44
|
+
getStatisticFields(): any[];
|
|
45
|
+
getGroupFields(): string[];
|
|
46
|
+
getStackGroupFields(): string[];
|
|
47
|
+
getStackValueField(): string;
|
|
48
|
+
getActiveMarks(): IMark[];
|
|
49
|
+
}
|
|
50
|
+
export declare const registerLiquidSeries: () => void;
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.registerLiquidSeries = exports.LiquidSeries = void 0;
|
|
6
|
+
|
|
7
|
+
const type_1 = require("../interface/type"), vutils_1 = require("@visactor/vutils"), utils_1 = require("../../animation/utils"), animation_1 = require("./animation"), constant_1 = require("./constant"), factory_1 = require("../../core/factory"), line_mixin_transformer_1 = require("../mixin/line-mixin-transformer"), liquid_1 = require("../../mark/liquid"), constant_2 = require("../../constant"), base_1 = require("../base"), group_1 = require("../../mark/group"), util_1 = require("./util"), vrender_core_1 = require("@visactor/vrender-core"), vrender_components_1 = require("@visactor/vrender-components"), util_2 = require("../../util"), tooltip_helper_1 = require("./tooltip-helper");
|
|
8
|
+
|
|
9
|
+
class LiquidSeries extends base_1.BaseSeries {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments), this.type = type_1.SeriesTypeEnum.liquid, this.transformerConstructor = line_mixin_transformer_1.LineLikeSeriesSpecTransformer,
|
|
12
|
+
this._liquidBackgroundMark = null, this._liquidOutlineMark = null;
|
|
13
|
+
}
|
|
14
|
+
setValueField(field) {
|
|
15
|
+
(0, vutils_1.isValid)(field) && (this._valueField = field);
|
|
16
|
+
}
|
|
17
|
+
getValueField() {
|
|
18
|
+
return this._valueField;
|
|
19
|
+
}
|
|
20
|
+
setAttrFromSpec() {
|
|
21
|
+
super.setAttrFromSpec(), this._marginSpec = (0, util_2.normalizeLayoutPaddingSpec)(this._spec.outlineMargin),
|
|
22
|
+
this._paddingSpec = (0, util_2.normalizeLayoutPaddingSpec)(this._spec.outlinePadding),
|
|
23
|
+
this.setValueField(this._spec.valueField);
|
|
24
|
+
}
|
|
25
|
+
rawDataUpdate(d) {
|
|
26
|
+
super.rawDataUpdate(d), this._heightRatio = (0, vutils_1.max)(...this._data.getLatestData().map((d => d[this._valueField])));
|
|
27
|
+
}
|
|
28
|
+
initMark() {
|
|
29
|
+
this._initLiquidOutlineMark(), this._initLiquidBackgroundMark(), this._initLiquidMark();
|
|
30
|
+
}
|
|
31
|
+
initMarkStyle() {
|
|
32
|
+
this._initLiquidOutlineMarkStyle(), this._initLiquidBackgroundMarkStyle(), this._initLiquidMarkStyle();
|
|
33
|
+
}
|
|
34
|
+
_initLiquidOutlineMark() {
|
|
35
|
+
return this._liquidOutlineMark = this._createMark(LiquidSeries.mark.liquidOutline, {
|
|
36
|
+
isSeriesMark: !0,
|
|
37
|
+
skipBeforeLayouted: !1
|
|
38
|
+
}), this._liquidOutlineMark;
|
|
39
|
+
}
|
|
40
|
+
_initLiquidBackgroundMark() {
|
|
41
|
+
return this._liquidBackgroundMark = this._createMark(LiquidSeries.mark.liquidBackground, {
|
|
42
|
+
isSeriesMark: !0,
|
|
43
|
+
skipBeforeLayouted: !1
|
|
44
|
+
}), this._liquidBackgroundMark;
|
|
45
|
+
}
|
|
46
|
+
_initLiquidMark() {
|
|
47
|
+
return this._liquidMark = this._createMark(LiquidSeries.mark.liquid, {
|
|
48
|
+
parent: this._liquidBackgroundMark,
|
|
49
|
+
isSeriesMark: !0,
|
|
50
|
+
skipBeforeLayouted: !1
|
|
51
|
+
}), this._liquidMark;
|
|
52
|
+
}
|
|
53
|
+
_getPosAndSizeFormRegion(isOutline = !1) {
|
|
54
|
+
const {top: marginTop = 0, bottom: marginBottom = 0, left: marginLeft = 0, right: marginRight = 0} = this._marginSpec, {top: paddingTop = 0, bottom: paddingBottom = 0, left: paddingLeft = 0, right: paddingRight = 0} = this._paddingSpec, {width: regionWidth, height: regionHeight} = this._region.getLayoutRect();
|
|
55
|
+
return isOutline ? {
|
|
56
|
+
x: regionWidth / 2 + (marginLeft - marginRight) / 2,
|
|
57
|
+
y: regionHeight / 2 + (marginTop - marginBottom) / 2,
|
|
58
|
+
size: Math.min(regionWidth - (marginLeft + marginRight), regionHeight - (marginTop + marginBottom))
|
|
59
|
+
} : {
|
|
60
|
+
x: regionWidth / 2 + (marginLeft + paddingRight - (marginRight + paddingRight)) / 2,
|
|
61
|
+
y: regionHeight / 2 + (marginTop + paddingTop - (marginBottom + paddingBottom)) / 2,
|
|
62
|
+
size: Math.min(regionWidth - (marginLeft + marginRight + paddingLeft + paddingRight), regionHeight - (marginTop + marginBottom + paddingTop + paddingBottom))
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
_initLiquidOutlineMarkStyle() {
|
|
66
|
+
const liquidOutlineMark = this._liquidOutlineMark;
|
|
67
|
+
liquidOutlineMark.setZIndex(this.layoutZIndex), liquidOutlineMark.created(), this.setMarkStyle(liquidOutlineMark, {
|
|
68
|
+
stroke: this.getColorAttribute(),
|
|
69
|
+
x: () => this._getPosAndSizeFormRegion(!0).x,
|
|
70
|
+
y: () => this._getPosAndSizeFormRegion(!0).y,
|
|
71
|
+
size: () => this._getPosAndSizeFormRegion(!0).size,
|
|
72
|
+
symbolType: () => {
|
|
73
|
+
var _a;
|
|
74
|
+
return (0, util_1.getShapes)(null !== (_a = this._spec.maskShape) && void 0 !== _a ? _a : "circle", this._getPosAndSizeFormRegion(!0).size);
|
|
75
|
+
}
|
|
76
|
+
}, "normal", constant_2.AttributeLevel.Series), this._liquidOutlineMark.setInteractive(!1);
|
|
77
|
+
}
|
|
78
|
+
_initLiquidBackgroundMarkStyle() {
|
|
79
|
+
const liquidBackgroundMark = this._liquidBackgroundMark;
|
|
80
|
+
liquidBackgroundMark.setZIndex(this.layoutZIndex), liquidBackgroundMark.created(),
|
|
81
|
+
this.setMarkStyle(liquidBackgroundMark, {
|
|
82
|
+
clip: !0,
|
|
83
|
+
width: () => this._region.getLayoutRect().width,
|
|
84
|
+
height: () => this._region.getLayoutRect().height,
|
|
85
|
+
path: () => {
|
|
86
|
+
var _a;
|
|
87
|
+
const {x: x, y: y, size: size} = this._getPosAndSizeFormRegion();
|
|
88
|
+
return [ (0, vrender_core_1.createSymbol)({
|
|
89
|
+
x: x,
|
|
90
|
+
y: y,
|
|
91
|
+
size: size,
|
|
92
|
+
symbolType: (0, util_1.getShapes)(null !== (_a = this._spec.maskShape) && void 0 !== _a ? _a : "circle", size),
|
|
93
|
+
fill: !0
|
|
94
|
+
}) ];
|
|
95
|
+
}
|
|
96
|
+
}, "normal", constant_2.AttributeLevel.Series), this._liquidBackgroundMark.setInteractive(!1);
|
|
97
|
+
}
|
|
98
|
+
_initLiquidMarkStyle() {
|
|
99
|
+
const liquidMark = this._liquidMark;
|
|
100
|
+
liquidMark && this.setMarkStyle(liquidMark, {
|
|
101
|
+
dx: () => this._region.getLayoutStartPoint().x + this._region.getLayoutRect().width / 2,
|
|
102
|
+
y: () => {
|
|
103
|
+
const {y: liquidBackY, size: liquidBackSize} = this._getPosAndSizeFormRegion();
|
|
104
|
+
return liquidBackY - liquidBackSize / 2 + liquidBackSize - liquidBackSize * this._heightRatio;
|
|
105
|
+
},
|
|
106
|
+
height: () => {
|
|
107
|
+
const {size: liquidBackSize} = this._getPosAndSizeFormRegion();
|
|
108
|
+
return liquidBackSize * this._heightRatio;
|
|
109
|
+
},
|
|
110
|
+
fill: this.getColorAttribute(),
|
|
111
|
+
wave: 0
|
|
112
|
+
}, "normal", constant_2.AttributeLevel.Series);
|
|
113
|
+
}
|
|
114
|
+
initTooltip() {
|
|
115
|
+
this._tooltipHelper = new tooltip_helper_1.LiquidSeriesTooltipHelper(this), this._liquidMark && this._tooltipHelper.activeTriggerSet.mark.add(this._liquidMark);
|
|
116
|
+
}
|
|
117
|
+
initInteraction() {
|
|
118
|
+
this._parseInteractionConfig(this._liquidMark ? [ this._liquidMark ] : []);
|
|
119
|
+
}
|
|
120
|
+
initAnimation() {
|
|
121
|
+
var _a, _b, _c;
|
|
122
|
+
const animationParams = {
|
|
123
|
+
y: {
|
|
124
|
+
from: () => {
|
|
125
|
+
const {y: liquidBackY, size: liquidBackSize} = this._getPosAndSizeFormRegion();
|
|
126
|
+
return liquidBackY - liquidBackSize / 2 + liquidBackSize;
|
|
127
|
+
},
|
|
128
|
+
to: () => {
|
|
129
|
+
const {y: liquidBackY, size: liquidBackSize} = this._getPosAndSizeFormRegion();
|
|
130
|
+
return liquidBackY - liquidBackSize / 2 + liquidBackSize - liquidBackSize * this._heightRatio;
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
height: {
|
|
134
|
+
from: 0,
|
|
135
|
+
to: () => {
|
|
136
|
+
const {size: liquidBackSize} = this._getPosAndSizeFormRegion();
|
|
137
|
+
return liquidBackSize * this._heightRatio;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}, appearPreset = null === (_b = null === (_a = this._spec) || void 0 === _a ? void 0 : _a.animationAppear) || void 0 === _b ? void 0 : _b.preset;
|
|
141
|
+
this._liquidMark.setAnimationConfig((0, utils_1.animationConfig)(null === (_c = factory_1.Factory.getAnimationInKey("liquid")) || void 0 === _c ? void 0 : _c(animationParams, appearPreset), (0,
|
|
142
|
+
utils_1.userAnimationConfig)(type_1.SeriesMarkNameEnum.liquid, this._spec, this._markAttributeContext)));
|
|
143
|
+
}
|
|
144
|
+
initEvent() {
|
|
145
|
+
super.initEvent(), this._spec.indicatorSmartInvert && this._option.getChart().getComponentsByKey("indicator") && this.event.on(constant_2.ChartEvent.renderFinished, (() => {
|
|
146
|
+
this._option.getChart().getComponentsByKey("indicator").forEach((indicatorComponent => {
|
|
147
|
+
var _a, _b;
|
|
148
|
+
const waveItem = this._liquidMark.getProduct().elements[0].glyphGraphicItems.wave1;
|
|
149
|
+
let {y1: waveY1, y2: waveY2} = waveItem.globalAABBBounds;
|
|
150
|
+
waveY1 += this._region.getLayoutStartPoint().y, waveY2 += this._region.getLayoutStartPoint().y,
|
|
151
|
+
null === (_b = null === (_a = null == indicatorComponent ? void 0 : indicatorComponent.getIndicatorComponent()) || void 0 === _a ? void 0 : _a.getChildren()[0]) || void 0 === _b || _b.getChildren().forEach((text => {
|
|
152
|
+
const {y1: textY1, y2: textY2} = text.globalAABBBounds;
|
|
153
|
+
if (waveY1 < textY1 && waveY2 > textY2) {
|
|
154
|
+
const foregroundColor = text.attribute.fill, backgroundColor = waveItem.attribute.fill, invertColor = (0,
|
|
155
|
+
vrender_components_1.labelSmartInvert)(foregroundColor, backgroundColor);
|
|
156
|
+
text.setAttribute("fill", invertColor);
|
|
157
|
+
}
|
|
158
|
+
}));
|
|
159
|
+
}));
|
|
160
|
+
}));
|
|
161
|
+
}
|
|
162
|
+
dataToPosition(data) {
|
|
163
|
+
return null;
|
|
164
|
+
}
|
|
165
|
+
dataToPositionX(data) {
|
|
166
|
+
return null;
|
|
167
|
+
}
|
|
168
|
+
dataToPositionY(data) {
|
|
169
|
+
return null;
|
|
170
|
+
}
|
|
171
|
+
valueToPosition(value1, value2) {
|
|
172
|
+
return null;
|
|
173
|
+
}
|
|
174
|
+
getStatisticFields() {
|
|
175
|
+
return [];
|
|
176
|
+
}
|
|
177
|
+
getGroupFields() {
|
|
178
|
+
return [];
|
|
179
|
+
}
|
|
180
|
+
getStackGroupFields() {
|
|
181
|
+
return [];
|
|
182
|
+
}
|
|
183
|
+
getStackValueField() {
|
|
184
|
+
return "";
|
|
185
|
+
}
|
|
186
|
+
getActiveMarks() {
|
|
187
|
+
return [ this._liquidMark ];
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
exports.LiquidSeries = LiquidSeries, LiquidSeries.type = type_1.SeriesTypeEnum.liquid,
|
|
192
|
+
LiquidSeries.mark = constant_1.LiquidSeriesMark, LiquidSeries.transformerConstructor = line_mixin_transformer_1.LineLikeSeriesSpecTransformer;
|
|
193
|
+
|
|
194
|
+
const registerLiquidSeries = () => {
|
|
195
|
+
(0, liquid_1.registerLiquidMark)(), (0, group_1.registerGroupMark)(), (0, animation_1.registerLiquidAnimation)(),
|
|
196
|
+
factory_1.Factory.registerSeries(LiquidSeries.type, LiquidSeries);
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
exports.registerLiquidSeries = registerLiquidSeries;
|
|
200
|
+
//# sourceMappingURL=liquid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/series/liquid/liquid.ts"],"names":[],"mappings":"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","file":"liquid.js","sourcesContent":["import type { SeriesMarkMap } from '../interface';\nimport { SeriesMarkNameEnum, SeriesTypeEnum } from '../interface/type';\n// eslint-disable-next-line no-duplicate-imports\nimport { isValid, max } from '@visactor/vutils';\nimport type { Datum, ILiquidMarkSpec, IPoint } from '../../typings';\nimport { animationConfig, userAnimationConfig } from '../../animation/utils';\nimport type { ILiquidPadding, ILiquidSeriesSpec } from './interface';\nimport type { IStateAnimateSpec } from '../../animation/spec';\nimport type { LiquidAppearPreset } from './animation';\n// eslint-disable-next-line no-duplicate-imports\nimport { registerLiquidAnimation } from './animation';\nimport { LiquidSeriesMark } from './constant';\nimport { Factory } from '../../core/factory';\nimport type { IMark, IMarkRaw } from '../../mark/interface';\nimport { LineLikeSeriesSpecTransformer } from '../mixin/line-mixin-transformer';\nimport { registerLiquidMark } from '../../mark/liquid';\nimport { AttributeLevel, ChartEvent } from '../../constant';\nimport { BaseSeries } from '../base';\nimport type { IGroupMark } from '../../mark/group';\n// eslint-disable-next-line no-duplicate-imports\nimport { registerGroupMark } from '../../mark/group';\nimport { getShapes } from './util';\nimport { createSymbol } from '@visactor/vrender-core';\nimport { labelSmartInvert } from '@visactor/vrender-components';\nimport { normalizeLayoutPaddingSpec } from '../../util';\nimport type { DataView } from '@visactor/vdataset';\nimport { LiquidSeriesTooltipHelper } from './tooltip-helper';\nimport type { ISymbolMark } from '../../mark/symbol';\n\nexport type ILiquidMark = IMarkRaw<ILiquidMarkSpec>;\nexport class LiquidSeries<T extends ILiquidSeriesSpec = ILiquidSeriesSpec> extends BaseSeries<T> {\n static readonly type: string = SeriesTypeEnum.liquid;\n type = SeriesTypeEnum.liquid;\n\n static readonly mark: SeriesMarkMap = LiquidSeriesMark;\n static readonly transformerConstructor = LineLikeSeriesSpecTransformer;\n readonly transformerConstructor = LineLikeSeriesSpecTransformer;\n private _liquidMark?: ILiquidMark;\n private _liquidBackgroundMark?: IGroupMark | null = null;\n private _liquidOutlineMark?: ISymbolMark | null = null;\n private _paddingSpec?: ILiquidPadding;\n private _marginSpec?: ILiquidPadding;\n\n private _heightRatio?: number;\n\n protected _valueField?: string;\n setValueField(field: string) {\n if (isValid(field)) {\n this._valueField = field;\n }\n }\n getValueField() {\n return this._valueField;\n }\n\n setAttrFromSpec() {\n super.setAttrFromSpec();\n this._marginSpec = normalizeLayoutPaddingSpec(this._spec.outlineMargin) as ILiquidPadding;\n this._paddingSpec = normalizeLayoutPaddingSpec(this._spec.outlinePadding) as ILiquidPadding;\n this.setValueField(this._spec.valueField);\n }\n\n rawDataUpdate(d: DataView): void {\n super.rawDataUpdate(d);\n this._heightRatio = max(...this._data.getLatestData().map((d: Datum) => d[this._valueField]));\n }\n\n initMark(): void {\n this._initLiquidOutlineMark();\n this._initLiquidBackgroundMark();\n this._initLiquidMark();\n }\n\n initMarkStyle(): void {\n this._initLiquidOutlineMarkStyle();\n this._initLiquidBackgroundMarkStyle();\n this._initLiquidMarkStyle();\n }\n\n private _initLiquidOutlineMark() {\n this._liquidOutlineMark = this._createMark(LiquidSeries.mark.liquidOutline, {\n isSeriesMark: true,\n skipBeforeLayouted: false\n }) as ISymbolMark;\n return this._liquidOutlineMark;\n }\n\n private _initLiquidBackgroundMark() {\n this._liquidBackgroundMark = this._createMark(LiquidSeries.mark.liquidBackground, {\n isSeriesMark: true,\n skipBeforeLayouted: false\n }) as IGroupMark;\n return this._liquidBackgroundMark;\n }\n\n private _initLiquidMark() {\n this._liquidMark = this._createMark(LiquidSeries.mark.liquid, {\n parent: this._liquidBackgroundMark,\n isSeriesMark: true,\n skipBeforeLayouted: false\n }) as ILiquidMark;\n return this._liquidMark;\n }\n\n private _getPosAndSizeFormRegion(isOutline: boolean = false) {\n const {\n top: marginTop = 0,\n bottom: marginBottom = 0,\n left: marginLeft = 0,\n right: marginRight = 0\n } = this._marginSpec;\n const {\n top: paddingTop = 0,\n bottom: paddingBottom = 0,\n left: paddingLeft = 0,\n right: paddingRight = 0\n } = this._paddingSpec;\n\n const { width: regionWidth, height: regionHeight } = this._region.getLayoutRect();\n if (!isOutline) {\n return {\n x: regionWidth / 2 + (marginLeft + paddingRight - (marginRight + paddingRight)) / 2,\n y: regionHeight / 2 + (marginTop + paddingTop - (marginBottom + paddingBottom)) / 2,\n // eslint-disable-next-line max-len\n size: Math.min(\n regionWidth - (marginLeft + marginRight + paddingLeft + paddingRight),\n regionHeight - (marginTop + marginBottom + paddingTop + paddingBottom)\n )\n };\n }\n return {\n x: regionWidth / 2 + (marginLeft - marginRight) / 2,\n y: regionHeight / 2 + (marginTop - marginBottom) / 2,\n size: Math.min(regionWidth - (marginLeft + marginRight), regionHeight - (marginTop + marginBottom))\n };\n }\n\n private _initLiquidOutlineMarkStyle() {\n const liquidOutlineMark = this._liquidOutlineMark;\n liquidOutlineMark.setZIndex(this.layoutZIndex);\n liquidOutlineMark.created();\n this.setMarkStyle(\n liquidOutlineMark,\n {\n stroke: this.getColorAttribute(),\n x: () => this._getPosAndSizeFormRegion(true).x,\n y: () => this._getPosAndSizeFormRegion(true).y,\n size: () => this._getPosAndSizeFormRegion(true).size,\n symbolType: () => getShapes(this._spec.maskShape ?? 'circle', this._getPosAndSizeFormRegion(true).size)\n },\n 'normal',\n AttributeLevel.Series\n );\n this._liquidOutlineMark.setInteractive(false);\n }\n\n private _initLiquidBackgroundMarkStyle() {\n const liquidBackgroundMark = this._liquidBackgroundMark;\n liquidBackgroundMark.setZIndex(this.layoutZIndex);\n liquidBackgroundMark.created();\n this.setMarkStyle(\n liquidBackgroundMark,\n {\n clip: true,\n width: () => this._region.getLayoutRect().width,\n height: () => this._region.getLayoutRect().height,\n path: () => {\n const { x, y, size } = this._getPosAndSizeFormRegion();\n const symbolPath = createSymbol({\n x,\n y,\n size,\n symbolType: getShapes(this._spec.maskShape ?? 'circle', size),\n fill: true\n });\n return [symbolPath];\n }\n },\n 'normal',\n AttributeLevel.Series\n );\n this._liquidBackgroundMark.setInteractive(false);\n }\n\n private _initLiquidMarkStyle() {\n const liquidMark = this._liquidMark;\n if (liquidMark) {\n this.setMarkStyle(\n liquidMark,\n {\n dx: () => {\n return this._region.getLayoutStartPoint().x + this._region.getLayoutRect().width / 2;\n },\n y: () => {\n const { y: liquidBackY, size: liquidBackSize } = this._getPosAndSizeFormRegion();\n return liquidBackY - liquidBackSize / 2 + liquidBackSize - liquidBackSize * this._heightRatio;\n },\n height: () => {\n const { size: liquidBackSize } = this._getPosAndSizeFormRegion();\n return liquidBackSize * this._heightRatio;\n },\n fill: this.getColorAttribute(),\n wave: 0\n },\n 'normal',\n AttributeLevel.Series\n );\n }\n }\n\n protected initTooltip() {\n this._tooltipHelper = new LiquidSeriesTooltipHelper(this);\n this._liquidMark && this._tooltipHelper.activeTriggerSet.mark.add(this._liquidMark);\n }\n\n initInteraction(): void {\n this._parseInteractionConfig(this._liquidMark ? [this._liquidMark] : []);\n }\n\n initAnimation() {\n const animationParams = {\n y: {\n from: () => {\n const { y: liquidBackY, size: liquidBackSize } = this._getPosAndSizeFormRegion();\n return liquidBackY - liquidBackSize / 2 + liquidBackSize;\n },\n to: () => {\n const { y: liquidBackY, size: liquidBackSize } = this._getPosAndSizeFormRegion();\n return liquidBackY - liquidBackSize / 2 + liquidBackSize - liquidBackSize * this._heightRatio;\n }\n },\n height: {\n from: 0,\n to: () => {\n const { size: liquidBackSize } = this._getPosAndSizeFormRegion();\n return liquidBackSize * this._heightRatio;\n }\n }\n };\n const appearPreset = (this._spec?.animationAppear as IStateAnimateSpec<LiquidAppearPreset>)?.preset;\n this._liquidMark.setAnimationConfig(\n animationConfig(\n Factory.getAnimationInKey('liquid')?.(animationParams, appearPreset),\n userAnimationConfig(SeriesMarkNameEnum.liquid, this._spec, this._markAttributeContext)\n )\n );\n }\n\n protected initEvent(): void {\n super.initEvent();\n if (!this._spec.indicatorSmartInvert || !this._option.getChart().getComponentsByKey('indicator')) {\n return;\n }\n this.event.on(ChartEvent.renderFinished, () => {\n this._option\n .getChart()\n .getComponentsByKey('indicator')\n .forEach((indicatorComponent: any) => {\n // wave item比较特殊, 由wave1、wave2、wave3在x方向上偏移叠加而成\n // 由于在水波图中只需要判断y方向上是否重叠, 所以此处取wave1做y方向上对比\n const grammarMark = this._liquidMark.getProduct();\n const waveItem = (grammarMark.elements[0] as any).glyphGraphicItems.wave1;\n let { y1: waveY1, y2: waveY2 } = waveItem.globalAABBBounds;\n waveY1 += this._region.getLayoutStartPoint().y;\n waveY2 += this._region.getLayoutStartPoint().y;\n indicatorComponent\n ?.getIndicatorComponent()\n ?.getChildren()[0]\n ?.getChildren()\n .forEach((text: any) => {\n const { y1: textY1, y2: textY2 } = text.globalAABBBounds;\n if (waveY1 < textY1 && waveY2 > textY2) {\n const foregroundColor = text.attribute.fill;\n const backgroundColor = waveItem.attribute.fill;\n const invertColor = labelSmartInvert(foregroundColor, backgroundColor);\n text.setAttribute('fill', invertColor);\n }\n });\n });\n });\n }\n\n dataToPosition(data: Datum): IPoint {\n return null;\n }\n dataToPositionX(data: Datum): number {\n return null;\n }\n dataToPositionY(data: Datum): number {\n return null;\n }\n valueToPosition(value1: any, value2?: any): IPoint {\n return null;\n }\n\n getStatisticFields(): any[] {\n return [];\n }\n\n getGroupFields(): string[] {\n return [];\n }\n getStackGroupFields(): string[] {\n return [];\n }\n getStackValueField(): string {\n return '';\n }\n\n getActiveMarks(): IMark[] {\n return [this._liquidMark];\n }\n}\n\nexport const registerLiquidSeries = () => {\n registerLiquidMark();\n registerGroupMark();\n registerLiquidAnimation();\n Factory.registerSeries(LiquidSeries.type, LiquidSeries);\n};\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ISeriesTooltipHelper } from '../interface';
|
|
2
|
+
import { BaseSeriesTooltipHelper } from '../base/tooltip-helper';
|
|
3
|
+
import type { Datum, ITooltipPattern, TooltipActiveType } from '../../typings';
|
|
4
|
+
export declare class LiquidSeriesTooltipHelper extends BaseSeriesTooltipHelper implements ISeriesTooltipHelper {
|
|
5
|
+
getDefaultTooltipPattern(activeType: TooltipActiveType): ITooltipPattern | null;
|
|
6
|
+
getContentKey: () => (datum: any) => string;
|
|
7
|
+
getContentValue: () => (datum: any) => any;
|
|
8
|
+
getLiquidFillColor: (datum: Datum) => any;
|
|
9
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.LiquidSeriesTooltipHelper = void 0;
|
|
6
|
+
|
|
7
|
+
const tooltip_helper_1 = require("../base/tooltip-helper");
|
|
8
|
+
|
|
9
|
+
class LiquidSeriesTooltipHelper extends tooltip_helper_1.BaseSeriesTooltipHelper {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments), this.getContentKey = () => datum => this.series.getValueField(),
|
|
12
|
+
this.getContentValue = () => datum => datum[this.series.getValueField()], this.getLiquidFillColor = datum => this.series.getMarkInName("liquid").getAttribute("fill", datum);
|
|
13
|
+
}
|
|
14
|
+
getDefaultTooltipPattern(activeType) {
|
|
15
|
+
return {
|
|
16
|
+
visible: !0,
|
|
17
|
+
activeType: activeType,
|
|
18
|
+
title: {
|
|
19
|
+
key: void 0,
|
|
20
|
+
value: this.titleValueCallback,
|
|
21
|
+
hasShape: !1
|
|
22
|
+
},
|
|
23
|
+
content: [ {
|
|
24
|
+
key: this.getContentKey(),
|
|
25
|
+
value: this.getContentValue(),
|
|
26
|
+
hasShape: !0,
|
|
27
|
+
shapeType: this.contentShapeTypeCallback,
|
|
28
|
+
shapeColor: this.getLiquidFillColor,
|
|
29
|
+
shapeStroke: this.getLiquidFillColor,
|
|
30
|
+
shapeHollow: !1
|
|
31
|
+
} ]
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
exports.LiquidSeriesTooltipHelper = LiquidSeriesTooltipHelper;
|
|
37
|
+
//# sourceMappingURL=tooltip-helper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/series/liquid/tooltip-helper.ts"],"names":[],"mappings":";;;AACA,2DAAiE;AAIjE,MAAa,yBAA0B,SAAQ,wCAAuB;IAAtE;;QAwBE,kBAAa,GAAG,GAAG,EAAE,CAAC,CAAC,KAAU,EAAE,EAAE;YACnC,OAAQ,IAAI,CAAC,MAAuB,CAAC,aAAa,EAAE,CAAC;QACvD,CAAC,CAAC;QAEF,oBAAe,GAAG,GAAG,EAAE,CAAC,CAAC,KAAU,EAAE,EAAE;YACrC,MAAM,UAAU,GAAI,IAAI,CAAC,MAAuB,CAAC,aAAa,EAAE,CAAC;YACjE,OAAO,KAAK,CAAC,UAAU,CAAC,CAAC;QAC3B,CAAC,CAAC;QAEF,uBAAkB,GAAG,CAAC,KAAY,EAAE,EAAE;YACpC,OAAO,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,MAAM,EAAE,KAAK,CAAQ,CAAC;QAChF,CAAC,CAAC;IACJ,CAAC;IAlCC,wBAAwB,CAAC,UAA6B;QACpD,OAAO;YACL,OAAO,EAAE,IAAI;YACb,UAAU;YACV,KAAK,EAAE;gBACL,GAAG,EAAE,SAAS;gBACd,KAAK,EAAE,IAAI,CAAC,kBAAkB;gBAC9B,QAAQ,EAAE,KAAK;aAChB;YACD,OAAO,EAAE;gBACP;oBACE,GAAG,EAAE,IAAI,CAAC,aAAa,EAAE;oBACzB,KAAK,EAAE,IAAI,CAAC,eAAe,EAAE;oBAC7B,QAAQ,EAAE,IAAI;oBACd,SAAS,EAAE,IAAI,CAAC,wBAAwB;oBACxC,UAAU,EAAE,IAAI,CAAC,kBAAkB;oBACnC,WAAW,EAAE,IAAI,CAAC,kBAAkB;oBACpC,WAAW,EAAE,KAAK;iBACnB;aACF;SACF,CAAC;IACJ,CAAC;CAaF;AApCD,8DAoCC","file":"tooltip-helper.js","sourcesContent":["import type { ISeriesTooltipHelper } from '../interface';\nimport { BaseSeriesTooltipHelper } from '../base/tooltip-helper';\nimport type { Datum, ITooltipPattern, TooltipActiveType } from '../../typings';\nimport type { LiquidSeries } from './liquid';\n\nexport class LiquidSeriesTooltipHelper extends BaseSeriesTooltipHelper implements ISeriesTooltipHelper {\n /** 获取默认的tooltip pattern */\n getDefaultTooltipPattern(activeType: TooltipActiveType): ITooltipPattern | null {\n return {\n visible: true,\n activeType,\n title: {\n key: undefined,\n value: this.titleValueCallback,\n hasShape: false\n },\n content: [\n {\n key: this.getContentKey(),\n value: this.getContentValue(),\n hasShape: true,\n shapeType: this.contentShapeTypeCallback,\n shapeColor: this.getLiquidFillColor,\n shapeStroke: this.getLiquidFillColor,\n shapeHollow: false\n }\n ]\n };\n }\n getContentKey = () => (datum: any) => {\n return (this.series as LiquidSeries).getValueField();\n };\n\n getContentValue = () => (datum: any) => {\n const valueField = (this.series as LiquidSeries).getValueField();\n return datum[valueField];\n };\n\n getLiquidFillColor = (datum: Datum) => {\n return this.series.getMarkInName('liquid').getAttribute('fill', datum) as any;\n };\n}\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.getShapes = void 0;
|
|
6
|
+
|
|
7
|
+
const getShapes = (shapesType, size) => "drop" === shapesType ? pin(0, 0, size / 2) : shapesType;
|
|
8
|
+
|
|
9
|
+
function pin(x, y, radius) {
|
|
10
|
+
const w = 4 * radius / 3, h = Math.max(w, 2 * radius), r = w / 2, cx = x, cy = r + y - h / 2, theta = Math.asin(r / (.85 * (h - r))), dy = Math.sin(theta) * r, dx = Math.cos(theta) * r, x0 = cx - dx, y0 = cy + dy, cpX = x, cpY = cy + r / Math.sin(theta);
|
|
11
|
+
return `\n M ${x0} ${y0}\n A ${r} ${r} 0 1 1 ${x0 + 2 * dx} ${y0}\n Q ${cpX} ${cpY} ${x} ${y + h / 2}\n Q ${cpX} ${cpY} ${x0} ${y0}\n Z \n `;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
exports.getShapes = getShapes;
|
|
15
|
+
//# sourceMappingURL=util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/series/liquid/util.ts"],"names":[],"mappings":";;;AAEO,MAAM,SAAS,GAAG,CAAC,UAA2B,EAAE,IAAY,EAAE,EAAE;IACrE,IAAI,UAAU,KAAK,MAAM,EAAE;QACzB,OAAO,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC;KAC5B;IACD,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AALW,QAAA,SAAS,aAKpB;AAUF,SAAS,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,MAAc;IAC/C,MAAM,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;IAC3B,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC;IAClC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAGhB,MAAM,EAAE,GAAG,CAAC,CAAC;IACb,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACzB,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;IAC9C,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC/B,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAG/B,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IACnB,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAGnB,MAAM,GAAG,GAAG,CAAC,CAAC;IACd,MAAM,GAAG,GAAG,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAErC,OAAO;UACC,EAAE,IAAI,EAAE;UACR,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,EAAE,GAAG,CAAC,IAAI,EAAE;UACjC,GAAG,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;UAC5B,GAAG,IAAI,GAAG,IAAI,EAAE,IAAI,EAAE;;KAE3B,CAAC;AACN,CAAC","file":"util.js","sourcesContent":["import type { LiquidShapeType } from './interface';\n\nexport const getShapes = (shapesType: LiquidShapeType, size: number) => {\n if (shapesType === 'drop') {\n return pin(0, 0, size / 2);\n }\n return shapesType;\n};\n\n/* Adapted from liquid shapes by ai-qing-hai and hustcc\n * https://github.com/antvis/G2\n * Licensed under the MIT\n\n * url: https://github.com/antvis/G2/blob/v5/src/shape/liquid/shapes.ts\n * License: https://github.com/antvis/G2/blob/v5/LICENSE\n * @license\n */\nfunction pin(x: number, y: number, radius: number) {\n const w = (radius * 4) / 3;\n const h = Math.max(w, radius * 2);\n const r = w / 2;\n\n // Attrs of the upper circle.\n const cx = x;\n const cy = r + y - h / 2;\n const theta = Math.asin(r / ((h - r) * 0.85));\n const dy = Math.sin(theta) * r;\n const dx = Math.cos(theta) * r;\n\n // The start point of the path.\n const x0 = cx - dx;\n const y0 = cy + dy;\n\n // Control point.\n const cpX = x;\n const cpY = cy + r / Math.sin(theta);\n\n return `\n M ${x0} ${y0}\n A ${r} ${r} 0 1 1 ${x0 + dx * 2} ${y0}\n Q ${cpX} ${cpY} ${x} ${y + h / 2}\n Q ${cpX} ${cpY} ${x0} ${y0}\n Z \n `;\n}\n"]}
|
package/cjs/series/map/map.js
CHANGED
|
@@ -89,7 +89,7 @@ class MapSeries extends geo_1.GeoSeries {
|
|
|
89
89
|
}, "normal", index_1.AttributeLevel.Series), pathMark.setPostProcess("fill", (result => (0,
|
|
90
90
|
vutils_1.isValid)(result) ? result : this._spec.defaultFillColor)), this.setMarkStyle(pathMark, {
|
|
91
91
|
smoothScale: !0
|
|
92
|
-
}, "normal", index_1.AttributeLevel.Built_In)
|
|
92
|
+
}, "normal", index_1.AttributeLevel.Built_In));
|
|
93
93
|
}
|
|
94
94
|
initLabelMarkStyle(labelMark) {
|
|
95
95
|
labelMark && (this._labelMark = labelMark, this.setMarkStyle(labelMark, {
|
|
@@ -131,7 +131,7 @@ class MapSeries extends geo_1.GeoSeries {
|
|
|
131
131
|
return [ this.valueField ];
|
|
132
132
|
}
|
|
133
133
|
release() {
|
|
134
|
-
super.release(), this._areaCache.clear(), this._nameMap = {}, this.
|
|
134
|
+
super.release(), this._areaCache.clear(), this._nameMap = {}, this._mapViewData = null;
|
|
135
135
|
}
|
|
136
136
|
handleZoom(e) {
|
|
137
137
|
var _a, _b, _c;
|
|
@@ -142,7 +142,7 @@ class MapSeries extends geo_1.GeoSeries {
|
|
|
142
142
|
postMatrix: new vutils_1.Matrix
|
|
143
143
|
}), pathGroup.scale(scale, scale, scaleCenter));
|
|
144
144
|
const vgrammarLabel = null === (_c = null === (_b = this._labelMark) || void 0 === _b ? void 0 : _b.getComponent()) || void 0 === _c ? void 0 : _c.getProduct();
|
|
145
|
-
vgrammarLabel && vgrammarLabel.
|
|
145
|
+
vgrammarLabel && vgrammarLabel.evaluate(null, null);
|
|
146
146
|
}
|
|
147
147
|
handlePan(e) {
|
|
148
148
|
var _a, _b, _c;
|
|
@@ -153,7 +153,7 @@ class MapSeries extends geo_1.GeoSeries {
|
|
|
153
153
|
postMatrix: new vutils_1.Matrix
|
|
154
154
|
}), pathGroup.translate(delta[0], delta[1]));
|
|
155
155
|
const vgrammarLabel = null === (_c = null === (_b = this._labelMark) || void 0 === _b ? void 0 : _b.getComponent()) || void 0 === _c ? void 0 : _c.getProduct();
|
|
156
|
-
vgrammarLabel && vgrammarLabel.
|
|
156
|
+
vgrammarLabel && vgrammarLabel.evaluate(null, null);
|
|
157
157
|
}
|
|
158
158
|
getDatumCenter(datum) {
|
|
159
159
|
var _a, _b, _c, _d;
|