@antv/g2 4.1.43 → 4.1.44
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/dist/g2.min.js +44 -0
- package/dist/g2.min.js.map +1 -0
- package/esm/animate/animation/fade.d.ts +21 -0
- package/esm/animate/animation/fade.js +42 -0
- package/esm/animate/animation/fade.js.map +1 -0
- package/esm/animate/animation/grow-in.d.ts +30 -0
- package/esm/animate/animation/grow-in.js +38 -0
- package/esm/animate/animation/grow-in.js.map +1 -0
- package/esm/animate/animation/index.d.ts +16 -0
- package/esm/animate/animation/index.js +17 -0
- package/esm/animate/animation/index.js.map +1 -0
- package/esm/animate/animation/path-in.d.ts +12 -0
- package/esm/animate/animation/path-in.js +21 -0
- package/esm/animate/animation/path-in.js.map +1 -0
- package/esm/animate/animation/position-update.d.ts +11 -0
- package/esm/animate/animation/position-update.js +24 -0
- package/esm/animate/animation/position-update.js.map +1 -0
- package/esm/animate/animation/scale-in.d.ts +19 -0
- package/esm/animate/animation/scale-in.js +60 -0
- package/esm/animate/animation/scale-in.js.map +1 -0
- package/esm/animate/animation/sector-path-update.d.ts +11 -0
- package/esm/animate/animation/sector-path-update.js +131 -0
- package/esm/animate/animation/sector-path-update.js.map +1 -0
- package/esm/animate/animation/util.d.ts +19 -0
- package/esm/animate/animation/util.js +88 -0
- package/esm/animate/animation/util.js.map +1 -0
- package/esm/animate/animation/wave-in.d.ts +13 -0
- package/esm/animate/animation/wave-in.js +26 -0
- package/esm/animate/animation/wave-in.js.map +1 -0
- package/esm/animate/animation/zoom.d.ts +21 -0
- package/esm/animate/animation/zoom.js +66 -0
- package/esm/animate/animation/zoom.js.map +1 -0
- package/esm/animate/index.d.ts +48 -0
- package/esm/animate/index.js +249 -0
- package/esm/animate/index.js.map +1 -0
- package/esm/animate/interface.d.ts +12 -0
- package/esm/animate/interface.js +2 -0
- package/esm/animate/interface.js.map +1 -0
- package/esm/api.d.ts +2 -0
- package/esm/api.js +3 -0
- package/esm/api.js.map +1 -0
- package/esm/base.d.ts +33 -0
- package/esm/base.js +55 -0
- package/esm/base.js.map +1 -0
- package/esm/chart/chart.d.ts +61 -0
- package/esm/chart/chart.js +157 -0
- package/esm/chart/chart.js.map +1 -0
- package/esm/chart/controller/annotation.d.ts +162 -0
- package/esm/chart/controller/annotation.js +581 -0
- package/esm/chart/controller/annotation.js.map +1 -0
- package/esm/chart/controller/axis.d.ts +93 -0
- package/esm/chart/controller/axis.js +578 -0
- package/esm/chart/controller/axis.js.map +1 -0
- package/esm/chart/controller/base.d.ts +64 -0
- package/esm/chart/controller/base.js +62 -0
- package/esm/chart/controller/base.js.map +1 -0
- package/esm/chart/controller/coordinate.d.ts +74 -0
- package/esm/chart/controller/coordinate.js +145 -0
- package/esm/chart/controller/coordinate.js.map +1 -0
- package/esm/chart/controller/gesture.d.ts +37 -0
- package/esm/chart/controller/gesture.js +258 -0
- package/esm/chart/controller/gesture.js.map +1 -0
- package/esm/chart/controller/index.d.ts +25 -0
- package/esm/chart/controller/index.js +34 -0
- package/esm/chart/controller/index.js.map +1 -0
- package/esm/chart/controller/legend.d.ts +106 -0
- package/esm/chart/controller/legend.js +484 -0
- package/esm/chart/controller/legend.js.map +1 -0
- package/esm/chart/controller/scrollbar.d.ts +64 -0
- package/esm/chart/controller/scrollbar.js +316 -0
- package/esm/chart/controller/scrollbar.js.map +1 -0
- package/esm/chart/controller/slider.d.ts +88 -0
- package/esm/chart/controller/slider.js +296 -0
- package/esm/chart/controller/slider.js.map +1 -0
- package/esm/chart/controller/tooltip.d.ts +68 -0
- package/esm/chart/controller/tooltip.js +644 -0
- package/esm/chart/controller/tooltip.js.map +1 -0
- package/esm/chart/event.d.ts +47 -0
- package/esm/chart/event.js +91 -0
- package/esm/chart/event.js.map +1 -0
- package/esm/chart/index.d.ts +4 -0
- package/esm/chart/index.js +5 -0
- package/esm/chart/index.js.map +1 -0
- package/esm/chart/layout/auto.d.ts +8 -0
- package/esm/chart/layout/auto.js +64 -0
- package/esm/chart/layout/auto.js.map +1 -0
- package/esm/chart/layout/constraint/bounds.d.ts +32 -0
- package/esm/chart/layout/constraint/bounds.js +30 -0
- package/esm/chart/layout/constraint/bounds.js.map +1 -0
- package/esm/chart/layout/constraint/constraint.d.ts +31 -0
- package/esm/chart/layout/constraint/constraint.js +81 -0
- package/esm/chart/layout/constraint/constraint.js.map +1 -0
- package/esm/chart/layout/constraint/gauss.d.ts +11 -0
- package/esm/chart/layout/constraint/gauss.js +63 -0
- package/esm/chart/layout/constraint/gauss.js.map +1 -0
- package/esm/chart/layout/constraint/index.d.ts +5 -0
- package/esm/chart/layout/constraint/index.js +30 -0
- package/esm/chart/layout/constraint/index.js.map +1 -0
- package/esm/chart/layout/constraint/solver.d.ts +40 -0
- package/esm/chart/layout/constraint/solver.js +77 -0
- package/esm/chart/layout/constraint/solver.js.map +1 -0
- package/esm/chart/layout/constraint/types.d.ts +21 -0
- package/esm/chart/layout/constraint/types.js +13 -0
- package/esm/chart/layout/constraint/types.js.map +1 -0
- package/esm/chart/layout/constraint/variable.d.ts +24 -0
- package/esm/chart/layout/constraint/variable.js +28 -0
- package/esm/chart/layout/constraint/variable.js.map +1 -0
- package/esm/chart/layout/index.d.ts +15 -0
- package/esm/chart/layout/index.js +26 -0
- package/esm/chart/layout/index.js.map +1 -0
- package/esm/chart/layout/padding-cal.d.ts +53 -0
- package/esm/chart/layout/padding-cal.js +108 -0
- package/esm/chart/layout/padding-cal.js.map +1 -0
- package/esm/chart/util/scale-pool.d.ts +57 -0
- package/esm/chart/util/scale-pool.js +212 -0
- package/esm/chart/util/scale-pool.js.map +1 -0
- package/esm/chart/util/sync-view-padding.d.ts +9 -0
- package/esm/chart/util/sync-view-padding.js +14 -0
- package/esm/chart/util/sync-view-padding.js.map +1 -0
- package/esm/chart/view.d.ts +747 -0
- package/esm/chart/view.js +1633 -0
- package/esm/chart/view.js.map +1 -0
- package/esm/component/labels.d.ts +47 -0
- package/esm/component/labels.js +274 -0
- package/esm/component/labels.js.map +1 -0
- package/esm/component/update-label.d.ts +21 -0
- package/esm/component/update-label.js +57 -0
- package/esm/component/update-label.js.map +1 -0
- package/esm/constant.d.ts +122 -0
- package/esm/constant.js +134 -0
- package/esm/constant.js.map +1 -0
- package/esm/core.d.ts +46 -0
- package/esm/core.js +60 -0
- package/esm/core.js.map +1 -0
- package/esm/dependents.d.ts +21 -0
- package/esm/dependents.js +33 -0
- package/esm/dependents.js.map +1 -0
- package/esm/engine/index.d.ts +13 -0
- package/esm/engine/index.js +22 -0
- package/esm/engine/index.js.map +1 -0
- package/esm/facet/circle.d.ts +36 -0
- package/esm/facet/circle.js +119 -0
- package/esm/facet/circle.js.map +1 -0
- package/esm/facet/facet.d.ts +165 -0
- package/esm/facet/facet.js +291 -0
- package/esm/facet/facet.js.map +1 -0
- package/esm/facet/index.d.ts +13 -0
- package/esm/facet/index.js +22 -0
- package/esm/facet/index.js.map +1 -0
- package/esm/facet/list.d.ts +46 -0
- package/esm/facet/list.js +134 -0
- package/esm/facet/list.js.map +1 -0
- package/esm/facet/matrix.d.ts +34 -0
- package/esm/facet/matrix.js +119 -0
- package/esm/facet/matrix.js.map +1 -0
- package/esm/facet/mirror.d.ts +31 -0
- package/esm/facet/mirror.js +144 -0
- package/esm/facet/mirror.js.map +1 -0
- package/esm/facet/rect.d.ts +35 -0
- package/esm/facet/rect.js +141 -0
- package/esm/facet/rect.js.map +1 -0
- package/esm/facet/tree.d.ts +40 -0
- package/esm/facet/tree.js +288 -0
- package/esm/facet/tree.js.map +1 -0
- package/esm/geometry/area.d.ts +46 -0
- package/esm/geometry/area.js +62 -0
- package/esm/geometry/area.js.map +1 -0
- package/esm/geometry/base.d.ts +793 -0
- package/esm/geometry/base.js +1487 -0
- package/esm/geometry/base.js.map +1 -0
- package/esm/geometry/edge.d.ts +15 -0
- package/esm/geometry/edge.js +24 -0
- package/esm/geometry/edge.js.map +1 -0
- package/esm/geometry/element/index.d.ts +127 -0
- package/esm/geometry/element/index.js +436 -0
- package/esm/geometry/element/index.js.map +1 -0
- package/esm/geometry/heatmap.d.ts +31 -0
- package/esm/geometry/heatmap.js +190 -0
- package/esm/geometry/heatmap.js.map +1 -0
- package/esm/geometry/interval.d.ts +41 -0
- package/esm/geometry/interval.js +98 -0
- package/esm/geometry/interval.js.map +1 -0
- package/esm/geometry/label/base.d.ts +76 -0
- package/esm/geometry/label/base.js +404 -0
- package/esm/geometry/label/base.js.map +1 -0
- package/esm/geometry/label/index.d.ts +38 -0
- package/esm/geometry/label/index.js +35 -0
- package/esm/geometry/label/index.js.map +1 -0
- package/esm/geometry/label/interface.d.ts +50 -0
- package/esm/geometry/label/interface.js +2 -0
- package/esm/geometry/label/interface.js.map +1 -0
- package/esm/geometry/label/interval.d.ts +27 -0
- package/esm/geometry/label/interval.js +146 -0
- package/esm/geometry/label/interval.js.map +1 -0
- package/esm/geometry/label/layout/adjust-color.d.ts +3 -0
- package/esm/geometry/label/layout/adjust-color.js +36 -0
- package/esm/geometry/label/layout/adjust-color.js.map +1 -0
- package/esm/geometry/label/layout/hide-overlap.d.ts +8 -0
- package/esm/geometry/label/layout/hide-overlap.js +29 -0
- package/esm/geometry/label/layout/hide-overlap.js.map +1 -0
- package/esm/geometry/label/layout/interval/adjust-position.d.ts +9 -0
- package/esm/geometry/label/layout/interval/adjust-position.js +61 -0
- package/esm/geometry/label/layout/interval/adjust-position.js.map +1 -0
- package/esm/geometry/label/layout/interval/hide-overlap.d.ts +9 -0
- package/esm/geometry/label/layout/interval/hide-overlap.js +78 -0
- package/esm/geometry/label/layout/interval/hide-overlap.js.map +1 -0
- package/esm/geometry/label/layout/limit-in-canvas.d.ts +9 -0
- package/esm/geometry/label/layout/limit-in-canvas.js +44 -0
- package/esm/geometry/label/layout/limit-in-canvas.js.map +1 -0
- package/esm/geometry/label/layout/limit-in-plot.d.ts +18 -0
- package/esm/geometry/label/layout/limit-in-plot.js +75 -0
- package/esm/geometry/label/layout/limit-in-plot.js.map +1 -0
- package/esm/geometry/label/layout/limit-in-shape.d.ts +7 -0
- package/esm/geometry/label/layout/limit-in-shape.js +18 -0
- package/esm/geometry/label/layout/limit-in-shape.js.map +1 -0
- package/esm/geometry/label/layout/overlap.d.ts +15 -0
- package/esm/geometry/label/layout/overlap.js +223 -0
- package/esm/geometry/label/layout/overlap.js.map +1 -0
- package/esm/geometry/label/layout/path/adjust-position.d.ts +17 -0
- package/esm/geometry/label/layout/path/adjust-position.js +94 -0
- package/esm/geometry/label/layout/path/adjust-position.js.map +1 -0
- package/esm/geometry/label/layout/pie/distribute.d.ts +3 -0
- package/esm/geometry/label/layout/pie/distribute.js +185 -0
- package/esm/geometry/label/layout/pie/distribute.js.map +1 -0
- package/esm/geometry/label/layout/pie/outer.d.ts +6 -0
- package/esm/geometry/label/layout/pie/outer.js +207 -0
- package/esm/geometry/label/layout/pie/outer.js.map +1 -0
- package/esm/geometry/label/layout/pie/spider.d.ts +7 -0
- package/esm/geometry/label/layout/pie/spider.js +181 -0
- package/esm/geometry/label/layout/pie/spider.js.map +1 -0
- package/esm/geometry/label/layout/pie/util.d.ts +10 -0
- package/esm/geometry/label/layout/pie/util.js +73 -0
- package/esm/geometry/label/layout/pie/util.js.map +1 -0
- package/esm/geometry/label/layout/point/adjust-position.d.ts +17 -0
- package/esm/geometry/label/layout/point/adjust-position.js +94 -0
- package/esm/geometry/label/layout/point/adjust-position.js.map +1 -0
- package/esm/geometry/label/pie.d.ts +22 -0
- package/esm/geometry/label/pie.js +95 -0
- package/esm/geometry/label/pie.js.map +1 -0
- package/esm/geometry/label/polar.d.ts +64 -0
- package/esm/geometry/label/polar.js +221 -0
- package/esm/geometry/label/polar.js.map +1 -0
- package/esm/geometry/label/util/index.d.ts +26 -0
- package/esm/geometry/label/util/index.js +61 -0
- package/esm/geometry/label/util/index.js.map +1 -0
- package/esm/geometry/line.d.ts +11 -0
- package/esm/geometry/line.js +21 -0
- package/esm/geometry/line.js.map +1 -0
- package/esm/geometry/path.d.ts +40 -0
- package/esm/geometry/path.js +122 -0
- package/esm/geometry/path.js.map +1 -0
- package/esm/geometry/point.d.ts +19 -0
- package/esm/geometry/point.js +30 -0
- package/esm/geometry/point.js.map +1 -0
- package/esm/geometry/polygon.d.ts +19 -0
- package/esm/geometry/polygon.js +62 -0
- package/esm/geometry/polygon.js.map +1 -0
- package/esm/geometry/schema.d.ts +18 -0
- package/esm/geometry/schema.js +48 -0
- package/esm/geometry/schema.js.map +1 -0
- package/esm/geometry/shape/area/index.d.ts +2 -0
- package/esm/geometry/shape/area/index.js +44 -0
- package/esm/geometry/shape/area/index.js.map +1 -0
- package/esm/geometry/shape/area/line.d.ts +1 -0
- package/esm/geometry/shape/area/line.js +31 -0
- package/esm/geometry/shape/area/line.js.map +1 -0
- package/esm/geometry/shape/area/smooth-line.d.ts +1 -0
- package/esm/geometry/shape/area/smooth-line.js +30 -0
- package/esm/geometry/shape/area/smooth-line.js.map +1 -0
- package/esm/geometry/shape/area/smooth.d.ts +1 -0
- package/esm/geometry/shape/area/smooth.js +31 -0
- package/esm/geometry/shape/area/smooth.js.map +1 -0
- package/esm/geometry/shape/area/util.d.ts +22 -0
- package/esm/geometry/shape/area/util.js +88 -0
- package/esm/geometry/shape/area/util.js.map +1 -0
- package/esm/geometry/shape/base.d.ts +22 -0
- package/esm/geometry/shape/base.js +162 -0
- package/esm/geometry/shape/base.js.map +1 -0
- package/esm/geometry/shape/constant.d.ts +4 -0
- package/esm/geometry/shape/constant.js +5 -0
- package/esm/geometry/shape/constant.js.map +1 -0
- package/esm/geometry/shape/edge/arc.d.ts +1 -0
- package/esm/geometry/shape/edge/arc.js +84 -0
- package/esm/geometry/shape/edge/arc.js.map +1 -0
- package/esm/geometry/shape/edge/index.d.ts +2 -0
- package/esm/geometry/shape/edge/index.js +31 -0
- package/esm/geometry/shape/edge/index.js.map +1 -0
- package/esm/geometry/shape/edge/smooth.d.ts +1 -0
- package/esm/geometry/shape/edge/smooth.js +30 -0
- package/esm/geometry/shape/edge/smooth.js.map +1 -0
- package/esm/geometry/shape/edge/util.d.ts +17 -0
- package/esm/geometry/shape/edge/util.js +32 -0
- package/esm/geometry/shape/edge/util.js.map +1 -0
- package/esm/geometry/shape/edge/vhv.d.ts +1 -0
- package/esm/geometry/shape/edge/vhv.js +42 -0
- package/esm/geometry/shape/edge/vhv.js.map +1 -0
- package/esm/geometry/shape/interval/funnel.d.ts +1 -0
- package/esm/geometry/shape/interval/funnel.js +31 -0
- package/esm/geometry/shape/interval/funnel.js.map +1 -0
- package/esm/geometry/shape/interval/hollow-rect.d.ts +1 -0
- package/esm/geometry/shape/interval/hollow-rect.js +51 -0
- package/esm/geometry/shape/interval/hollow-rect.js.map +1 -0
- package/esm/geometry/shape/interval/index.d.ts +3 -0
- package/esm/geometry/shape/interval/index.js +63 -0
- package/esm/geometry/shape/interval/index.js.map +1 -0
- package/esm/geometry/shape/interval/line.d.ts +1 -0
- package/esm/geometry/shape/interval/line.js +54 -0
- package/esm/geometry/shape/interval/line.js.map +1 -0
- package/esm/geometry/shape/interval/pyramid.d.ts +1 -0
- package/esm/geometry/shape/interval/pyramid.js +31 -0
- package/esm/geometry/shape/interval/pyramid.js.map +1 -0
- package/esm/geometry/shape/interval/tick.d.ts +1 -0
- package/esm/geometry/shape/interval/tick.js +77 -0
- package/esm/geometry/shape/interval/tick.js.map +1 -0
- package/esm/geometry/shape/interval/util.d.ts +55 -0
- package/esm/geometry/shape/interval/util.js +311 -0
- package/esm/geometry/shape/interval/util.js.map +1 -0
- package/esm/geometry/shape/line/index.d.ts +8 -0
- package/esm/geometry/shape/line/index.js +105 -0
- package/esm/geometry/shape/line/index.js.map +1 -0
- package/esm/geometry/shape/line/step.d.ts +1 -0
- package/esm/geometry/shape/line/step.js +84 -0
- package/esm/geometry/shape/line/step.js.map +1 -0
- package/esm/geometry/shape/line/util.d.ts +16 -0
- package/esm/geometry/shape/line/util.js +83 -0
- package/esm/geometry/shape/line/util.js.map +1 -0
- package/esm/geometry/shape/point/hollow.d.ts +1 -0
- package/esm/geometry/shape/point/hollow.js +24 -0
- package/esm/geometry/shape/point/hollow.js.map +1 -0
- package/esm/geometry/shape/point/image.d.ts +1 -0
- package/esm/geometry/shape/point/image.js +48 -0
- package/esm/geometry/shape/point/image.js.map +1 -0
- package/esm/geometry/shape/point/index.d.ts +2 -0
- package/esm/geometry/shape/point/index.js +32 -0
- package/esm/geometry/shape/point/index.js.map +1 -0
- package/esm/geometry/shape/point/solid.d.ts +1 -0
- package/esm/geometry/shape/point/solid.js +23 -0
- package/esm/geometry/shape/point/solid.js.map +1 -0
- package/esm/geometry/shape/point/util.d.ts +15 -0
- package/esm/geometry/shape/point/util.js +39 -0
- package/esm/geometry/shape/point/util.js.map +1 -0
- package/esm/geometry/shape/polygon/index.d.ts +2 -0
- package/esm/geometry/shape/polygon/index.js +65 -0
- package/esm/geometry/shape/polygon/index.js.map +1 -0
- package/esm/geometry/shape/polygon/square.d.ts +1 -0
- package/esm/geometry/shape/polygon/square.js +44 -0
- package/esm/geometry/shape/polygon/square.js.map +1 -0
- package/esm/geometry/shape/schema/box.d.ts +1 -0
- package/esm/geometry/shape/schema/box.js +142 -0
- package/esm/geometry/shape/schema/box.js.map +1 -0
- package/esm/geometry/shape/schema/candle.d.ts +1 -0
- package/esm/geometry/shape/schema/candle.js +80 -0
- package/esm/geometry/shape/schema/candle.js.map +1 -0
- package/esm/geometry/shape/schema/index.d.ts +2 -0
- package/esm/geometry/shape/schema/index.js +6 -0
- package/esm/geometry/shape/schema/index.js.map +1 -0
- package/esm/geometry/shape/util/get-path-points.d.ts +38 -0
- package/esm/geometry/shape/util/get-path-points.js +131 -0
- package/esm/geometry/shape/util/get-path-points.js.map +1 -0
- package/esm/geometry/shape/util/get-style.d.ts +18 -0
- package/esm/geometry/shape/util/get-style.js +47 -0
- package/esm/geometry/shape/util/get-style.js.map +1 -0
- package/esm/geometry/shape/util/path.d.ts +32 -0
- package/esm/geometry/shape/util/path.js +311 -0
- package/esm/geometry/shape/util/path.js.map +1 -0
- package/esm/geometry/shape/util/split-points.d.ts +13 -0
- package/esm/geometry/shape/util/split-points.js +24 -0
- package/esm/geometry/shape/util/split-points.js.map +1 -0
- package/esm/geometry/shape/violin/hollow.d.ts +1 -0
- package/esm/geometry/shape/violin/hollow.js +51 -0
- package/esm/geometry/shape/violin/hollow.js.map +1 -0
- package/esm/geometry/shape/violin/index.d.ts +2 -0
- package/esm/geometry/shape/violin/index.js +60 -0
- package/esm/geometry/shape/violin/index.js.map +1 -0
- package/esm/geometry/shape/violin/smooth.d.ts +1 -0
- package/esm/geometry/shape/violin/smooth.js +28 -0
- package/esm/geometry/shape/violin/smooth.js.map +1 -0
- package/esm/geometry/util/diff.d.ts +11 -0
- package/esm/geometry/util/diff.js +30 -0
- package/esm/geometry/util/diff.js.map +1 -0
- package/esm/geometry/util/get-shape-type.d.ts +8 -0
- package/esm/geometry/util/get-shape-type.js +16 -0
- package/esm/geometry/util/get-shape-type.js.map +1 -0
- package/esm/geometry/util/group-data.d.ts +3 -0
- package/esm/geometry/util/group-data.js +31 -0
- package/esm/geometry/util/group-data.js.map +1 -0
- package/esm/geometry/util/is-model-change.d.ts +9 -0
- package/esm/geometry/util/is-model-change.js +14 -0
- package/esm/geometry/util/is-model-change.js.map +1 -0
- package/esm/geometry/util/parse-fields.d.ts +2 -0
- package/esm/geometry/util/parse-fields.js +9 -0
- package/esm/geometry/util/parse-fields.js.map +1 -0
- package/esm/geometry/util/shape-size.d.ts +2 -0
- package/esm/geometry/util/shape-size.js +124 -0
- package/esm/geometry/util/shape-size.js.map +1 -0
- package/esm/geometry/violin.d.ts +25 -0
- package/esm/geometry/violin.js +67 -0
- package/esm/geometry/violin.js.map +1 -0
- package/esm/index.d.ts +107 -0
- package/esm/index.js +581 -0
- package/esm/index.js.map +1 -0
- package/esm/interaction/action/active-region.d.ts +33 -0
- package/esm/interaction/action/active-region.js +198 -0
- package/esm/interaction/action/active-region.js.map +1 -0
- package/esm/interaction/action/base.d.ts +29 -0
- package/esm/interaction/action/base.js +36 -0
- package/esm/interaction/action/base.js.map +1 -0
- package/esm/interaction/action/callback.d.ts +17 -0
- package/esm/interaction/action/callback.js +27 -0
- package/esm/interaction/action/callback.js.map +1 -0
- package/esm/interaction/action/component/list-active.d.ts +14 -0
- package/esm/interaction/action/component/list-active.js +24 -0
- package/esm/interaction/action/component/list-active.js.map +1 -0
- package/esm/interaction/action/component/list-checked.d.ts +30 -0
- package/esm/interaction/action/component/list-checked.js +82 -0
- package/esm/interaction/action/component/list-checked.js.map +1 -0
- package/esm/interaction/action/component/list-focus.d.ts +5 -0
- package/esm/interaction/action/component/list-focus.js +55 -0
- package/esm/interaction/action/component/list-focus.js.map +1 -0
- package/esm/interaction/action/component/list-highlight-util.d.ts +7 -0
- package/esm/interaction/action/component/list-highlight-util.js +20 -0
- package/esm/interaction/action/component/list-highlight-util.js.map +1 -0
- package/esm/interaction/action/component/list-highlight.d.ts +20 -0
- package/esm/interaction/action/component/list-highlight.js +97 -0
- package/esm/interaction/action/component/list-highlight.js.map +1 -0
- package/esm/interaction/action/component/list-radio.d.ts +24 -0
- package/esm/interaction/action/component/list-radio.js +116 -0
- package/esm/interaction/action/component/list-radio.js.map +1 -0
- package/esm/interaction/action/component/list-selected.d.ts +10 -0
- package/esm/interaction/action/component/list-selected.js +20 -0
- package/esm/interaction/action/component/list-selected.js.map +1 -0
- package/esm/interaction/action/component/list-state.d.ts +46 -0
- package/esm/interaction/action/component/list-state.js +167 -0
- package/esm/interaction/action/component/list-state.js.map +1 -0
- package/esm/interaction/action/component/list-unchecked.d.ts +13 -0
- package/esm/interaction/action/component/list-unchecked.js +23 -0
- package/esm/interaction/action/component/list-unchecked.js.map +1 -0
- package/esm/interaction/action/component/tooltip/ellipsis-text.d.ts +25 -0
- package/esm/interaction/action/component/tooltip/ellipsis-text.js +93 -0
- package/esm/interaction/action/component/tooltip/ellipsis-text.js.map +1 -0
- package/esm/interaction/action/component/tooltip/geometry.d.ts +24 -0
- package/esm/interaction/action/component/tooltip/geometry.js +71 -0
- package/esm/interaction/action/component/tooltip/geometry.js.map +1 -0
- package/esm/interaction/action/component/tooltip/sibling.d.ts +21 -0
- package/esm/interaction/action/component/tooltip/sibling.js +39 -0
- package/esm/interaction/action/component/tooltip/sibling.js.map +1 -0
- package/esm/interaction/action/cursor.d.ts +69 -0
- package/esm/interaction/action/cursor.js +113 -0
- package/esm/interaction/action/cursor.js.map +1 -0
- package/esm/interaction/action/data/filter.d.ts +13 -0
- package/esm/interaction/action/data/filter.js +66 -0
- package/esm/interaction/action/data/filter.js.map +1 -0
- package/esm/interaction/action/data/range-filter.d.ts +56 -0
- package/esm/interaction/action/data/range-filter.js +163 -0
- package/esm/interaction/action/data/range-filter.js.map +1 -0
- package/esm/interaction/action/data/sibling-filter.d.ts +22 -0
- package/esm/interaction/action/data/sibling-filter.js +39 -0
- package/esm/interaction/action/data/sibling-filter.js.map +1 -0
- package/esm/interaction/action/element/active.d.ts +14 -0
- package/esm/interaction/action/element/active.js +24 -0
- package/esm/interaction/action/element/active.js.map +1 -0
- package/esm/interaction/action/element/filter.d.ts +20 -0
- package/esm/interaction/action/element/filter.js +89 -0
- package/esm/interaction/action/element/filter.js.map +1 -0
- package/esm/interaction/action/element/highlight-by-color.d.ts +10 -0
- package/esm/interaction/action/element/highlight-by-color.js +30 -0
- package/esm/interaction/action/element/highlight-by-color.js.map +1 -0
- package/esm/interaction/action/element/highlight-by-x.d.ts +15 -0
- package/esm/interaction/action/element/highlight-by-x.js +51 -0
- package/esm/interaction/action/element/highlight-by-x.js.map +1 -0
- package/esm/interaction/action/element/highlight-util.d.ts +18 -0
- package/esm/interaction/action/element/highlight-util.js +45 -0
- package/esm/interaction/action/element/highlight-util.js.map +1 -0
- package/esm/interaction/action/element/highlight.d.ts +21 -0
- package/esm/interaction/action/element/highlight.js +93 -0
- package/esm/interaction/action/element/highlight.js.map +1 -0
- package/esm/interaction/action/element/link-by-color.d.ts +51 -0
- package/esm/interaction/action/element/link-by-color.js +156 -0
- package/esm/interaction/action/element/link-by-color.js.map +1 -0
- package/esm/interaction/action/element/range-active.d.ts +13 -0
- package/esm/interaction/action/element/range-active.js +23 -0
- package/esm/interaction/action/element/range-active.js.map +1 -0
- package/esm/interaction/action/element/range-highlight.d.ts +27 -0
- package/esm/interaction/action/element/range-highlight.js +54 -0
- package/esm/interaction/action/element/range-highlight.js.map +1 -0
- package/esm/interaction/action/element/range-selected.d.ts +13 -0
- package/esm/interaction/action/element/range-selected.js +23 -0
- package/esm/interaction/action/element/range-selected.js.map +1 -0
- package/esm/interaction/action/element/range-state.d.ts +38 -0
- package/esm/interaction/action/element/range-state.js +164 -0
- package/esm/interaction/action/element/range-state.js.map +1 -0
- package/esm/interaction/action/element/selected.d.ts +14 -0
- package/esm/interaction/action/element/selected.js +24 -0
- package/esm/interaction/action/element/selected.js.map +1 -0
- package/esm/interaction/action/element/sibling-filter.d.ts +19 -0
- package/esm/interaction/action/element/sibling-filter.js +93 -0
- package/esm/interaction/action/element/sibling-filter.js.map +1 -0
- package/esm/interaction/action/element/single-active.d.ts +13 -0
- package/esm/interaction/action/element/single-active.js +23 -0
- package/esm/interaction/action/element/single-active.js.map +1 -0
- package/esm/interaction/action/element/single-highlight.d.ts +16 -0
- package/esm/interaction/action/element/single-highlight.js +35 -0
- package/esm/interaction/action/element/single-highlight.js.map +1 -0
- package/esm/interaction/action/element/single-selected.d.ts +13 -0
- package/esm/interaction/action/element/single-selected.js +23 -0
- package/esm/interaction/action/element/single-selected.js.map +1 -0
- package/esm/interaction/action/element/single-state.d.ts +18 -0
- package/esm/interaction/action/element/single-state.js +53 -0
- package/esm/interaction/action/element/single-state.js.map +1 -0
- package/esm/interaction/action/element/state-base.d.ts +39 -0
- package/esm/interaction/action/element/state-base.js +59 -0
- package/esm/interaction/action/element/state-base.js.map +1 -0
- package/esm/interaction/action/element/state.d.ts +28 -0
- package/esm/interaction/action/element/state.js +99 -0
- package/esm/interaction/action/element/state.js.map +1 -0
- package/esm/interaction/action/index.d.ts +2 -0
- package/esm/interaction/action/index.js +3 -0
- package/esm/interaction/action/index.js.map +1 -0
- package/esm/interaction/action/mask/base.d.ts +62 -0
- package/esm/interaction/action/mask/base.js +169 -0
- package/esm/interaction/action/mask/base.js.map +1 -0
- package/esm/interaction/action/mask/circle.d.ts +14 -0
- package/esm/interaction/action/mask/circle.js +37 -0
- package/esm/interaction/action/mask/circle.js.map +1 -0
- package/esm/interaction/action/mask/dim-rect.d.ts +11 -0
- package/esm/interaction/action/mask/dim-rect.js +62 -0
- package/esm/interaction/action/mask/dim-rect.js.map +1 -0
- package/esm/interaction/action/mask/path.d.ts +16 -0
- package/esm/interaction/action/mask/path.js +44 -0
- package/esm/interaction/action/mask/path.js.map +1 -0
- package/esm/interaction/action/mask/rect.d.ts +17 -0
- package/esm/interaction/action/mask/rect.js +39 -0
- package/esm/interaction/action/mask/rect.js.map +1 -0
- package/esm/interaction/action/mask/smooth-path.d.ts +9 -0
- package/esm/interaction/action/mask/smooth-path.js +21 -0
- package/esm/interaction/action/mask/smooth-path.js.map +1 -0
- package/esm/interaction/action/register.d.ts +36 -0
- package/esm/interaction/action/register.js +60 -0
- package/esm/interaction/action/register.js.map +1 -0
- package/esm/interaction/action/util.d.ts +140 -0
- package/esm/interaction/action/util.js +361 -0
- package/esm/interaction/action/util.js.map +1 -0
- package/esm/interaction/action/view/button.d.ts +25 -0
- package/esm/interaction/action/view/button.js +116 -0
- package/esm/interaction/action/view/button.js.map +1 -0
- package/esm/interaction/action/view/drag.d.ts +24 -0
- package/esm/interaction/action/view/drag.js +73 -0
- package/esm/interaction/action/view/drag.js.map +1 -0
- package/esm/interaction/action/view/mousewheel-scroll.d.ts +5 -0
- package/esm/interaction/action/view/mousewheel-scroll.js +35 -0
- package/esm/interaction/action/view/mousewheel-scroll.js.map +1 -0
- package/esm/interaction/action/view/move.d.ts +28 -0
- package/esm/interaction/action/view/move.js +80 -0
- package/esm/interaction/action/view/move.js.map +1 -0
- package/esm/interaction/action/view/scale-transform.d.ts +18 -0
- package/esm/interaction/action/view/scale-transform.js +51 -0
- package/esm/interaction/action/view/scale-transform.js.map +1 -0
- package/esm/interaction/action/view/scale-translate.d.ts +30 -0
- package/esm/interaction/action/view/scale-translate.js +112 -0
- package/esm/interaction/action/view/scale-translate.js.map +1 -0
- package/esm/interaction/action/view/scale-zoom.d.ts +20 -0
- package/esm/interaction/action/view/scale-zoom.js +83 -0
- package/esm/interaction/action/view/scale-zoom.js.map +1 -0
- package/esm/interaction/context.d.ts +65 -0
- package/esm/interaction/context.js +142 -0
- package/esm/interaction/context.js.map +1 -0
- package/esm/interaction/grammar-interaction.d.ts +158 -0
- package/esm/interaction/grammar-interaction.js +285 -0
- package/esm/interaction/grammar-interaction.js.map +1 -0
- package/esm/interaction/index.d.ts +25 -0
- package/esm/interaction/index.js +43 -0
- package/esm/interaction/index.js.map +1 -0
- package/esm/interaction/interaction.d.ts +29 -0
- package/esm/interaction/interaction.js +32 -0
- package/esm/interaction/interaction.js.map +1 -0
- package/esm/interface.d.ts +2264 -0
- package/esm/interface.js +2 -0
- package/esm/interface.js.map +1 -0
- package/esm/theme/index.d.ts +12 -0
- package/esm/theme/index.js +23 -0
- package/esm/theme/index.js.map +1 -0
- package/esm/theme/style-sheet/dark.d.ts +825 -0
- package/esm/theme/style-sheet/dark.js +496 -0
- package/esm/theme/style-sheet/dark.js.map +1 -0
- package/esm/theme/style-sheet/light.d.ts +817 -0
- package/esm/theme/style-sheet/light.js +492 -0
- package/esm/theme/style-sheet/light.js.map +1 -0
- package/esm/theme/util/create-by-style-sheet.d.ts +6 -0
- package/esm/theme/util/create-by-style-sheet.js +1422 -0
- package/esm/theme/util/create-by-style-sheet.js.map +1 -0
- package/esm/theme/util/create-theme.d.ts +6 -0
- package/esm/theme/util/create-theme.js +12 -0
- package/esm/theme/util/create-theme.js.map +1 -0
- package/esm/theme/util/index.d.ts +1 -0
- package/esm/theme/util/index.js +2 -0
- package/esm/theme/util/index.js.map +1 -0
- package/esm/util/annotation.d.ts +7 -0
- package/esm/util/annotation.js +39 -0
- package/esm/util/annotation.js.map +1 -0
- package/esm/util/attr.d.ts +10 -0
- package/esm/util/attr.js +25 -0
- package/esm/util/attr.js.map +1 -0
- package/esm/util/axis.d.ts +100 -0
- package/esm/util/axis.js +236 -0
- package/esm/util/axis.js.map +1 -0
- package/esm/util/bbox.d.ts +105 -0
- package/esm/util/bbox.js +282 -0
- package/esm/util/bbox.js.map +1 -0
- package/esm/util/collision-detect.d.ts +16 -0
- package/esm/util/collision-detect.js +127 -0
- package/esm/util/collision-detect.js.map +1 -0
- package/esm/util/color.d.ts +1 -0
- package/esm/util/color.js +18 -0
- package/esm/util/color.js.map +1 -0
- package/esm/util/context.d.ts +4 -0
- package/esm/util/context.js +11 -0
- package/esm/util/context.js.map +1 -0
- package/esm/util/coordinate.d.ts +86 -0
- package/esm/util/coordinate.js +147 -0
- package/esm/util/coordinate.js.map +1 -0
- package/esm/util/direction.d.ts +19 -0
- package/esm/util/direction.js +120 -0
- package/esm/util/direction.js.map +1 -0
- package/esm/util/dom.d.ts +19 -0
- package/esm/util/dom.js +61 -0
- package/esm/util/dom.js.map +1 -0
- package/esm/util/event.d.ts +8 -0
- package/esm/util/event.js +14 -0
- package/esm/util/event.js.map +1 -0
- package/esm/util/facet.d.ts +16 -0
- package/esm/util/facet.js +43 -0
- package/esm/util/facet.js.map +1 -0
- package/esm/util/graphics.d.ts +58 -0
- package/esm/util/graphics.js +203 -0
- package/esm/util/graphics.js.map +1 -0
- package/esm/util/grid.d.ts +36 -0
- package/esm/util/grid.js +118 -0
- package/esm/util/grid.js.map +1 -0
- package/esm/util/helper.d.ts +34 -0
- package/esm/util/helper.js +72 -0
- package/esm/util/helper.js.map +1 -0
- package/esm/util/legend.d.ts +45 -0
- package/esm/util/legend.js +145 -0
- package/esm/util/legend.js.map +1 -0
- package/esm/util/marker.d.ts +10 -0
- package/esm/util/marker.js +58 -0
- package/esm/util/marker.js.map +1 -0
- package/esm/util/padding.d.ts +14 -0
- package/esm/util/padding.js +40 -0
- package/esm/util/padding.js.map +1 -0
- package/esm/util/scale.d.ts +42 -0
- package/esm/util/scale.js +128 -0
- package/esm/util/scale.js.map +1 -0
- package/esm/util/stat.d.ts +10 -0
- package/esm/util/stat.js +36 -0
- package/esm/util/stat.js.map +1 -0
- package/esm/util/text.d.ts +23 -0
- package/esm/util/text.js +84 -0
- package/esm/util/text.js.map +1 -0
- package/esm/util/tooltip.d.ts +26 -0
- package/esm/util/tooltip.js +419 -0
- package/esm/util/tooltip.js.map +1 -0
- package/esm/util/transform.d.ts +33 -0
- package/esm/util/transform.js +61 -0
- package/esm/util/transform.js.map +1 -0
- package/esm/util/types.d.ts +6 -0
- package/esm/util/types.js +2 -0
- package/esm/util/types.js.map +1 -0
- package/lib/animate/animation/fade.d.ts +21 -0
- package/lib/animate/animation/fade.js +47 -0
- package/lib/animate/animation/fade.js.map +1 -0
- package/lib/animate/animation/grow-in.d.ts +30 -0
- package/lib/animate/animation/grow-in.js +44 -0
- package/lib/animate/animation/grow-in.js.map +1 -0
- package/lib/animate/animation/index.d.ts +16 -0
- package/lib/animate/animation/index.js +22 -0
- package/lib/animate/animation/index.js.map +1 -0
- package/lib/animate/animation/path-in.d.ts +12 -0
- package/lib/animate/animation/path-in.js +25 -0
- package/lib/animate/animation/path-in.js.map +1 -0
- package/lib/animate/animation/position-update.d.ts +11 -0
- package/lib/animate/animation/position-update.js +28 -0
- package/lib/animate/animation/position-update.js.map +1 -0
- package/lib/animate/animation/scale-in.d.ts +19 -0
- package/lib/animate/animation/scale-in.js +65 -0
- package/lib/animate/animation/scale-in.js.map +1 -0
- package/lib/animate/animation/sector-path-update.d.ts +11 -0
- package/lib/animate/animation/sector-path-update.js +135 -0
- package/lib/animate/animation/sector-path-update.js.map +1 -0
- package/lib/animate/animation/util.d.ts +19 -0
- package/lib/animate/animation/util.js +93 -0
- package/lib/animate/animation/util.js.map +1 -0
- package/lib/animate/animation/wave-in.d.ts +13 -0
- package/lib/animate/animation/wave-in.js +30 -0
- package/lib/animate/animation/wave-in.js.map +1 -0
- package/lib/animate/animation/zoom.d.ts +21 -0
- package/lib/animate/animation/zoom.js +71 -0
- package/lib/animate/animation/zoom.js.map +1 -0
- package/lib/animate/index.d.ts +48 -0
- package/lib/animate/index.js +255 -0
- package/lib/animate/index.js.map +1 -0
- package/lib/animate/interface.d.ts +12 -0
- package/lib/animate/interface.js +3 -0
- package/lib/animate/interface.js.map +1 -0
- package/lib/api.d.ts +2 -0
- package/lib/api.js +7 -0
- package/lib/api.js.map +1 -0
- package/lib/base.d.ts +33 -0
- package/lib/base.js +57 -0
- package/lib/base.js.map +1 -0
- package/lib/chart/chart.d.ts +61 -0
- package/lib/chart/chart.js +159 -0
- package/lib/chart/chart.js.map +1 -0
- package/lib/chart/controller/annotation.d.ts +162 -0
- package/lib/chart/controller/annotation.js +583 -0
- package/lib/chart/controller/annotation.js.map +1 -0
- package/lib/chart/controller/axis.d.ts +93 -0
- package/lib/chart/controller/axis.js +580 -0
- package/lib/chart/controller/axis.js.map +1 -0
- package/lib/chart/controller/base.d.ts +64 -0
- package/lib/chart/controller/base.js +65 -0
- package/lib/chart/controller/base.js.map +1 -0
- package/lib/chart/controller/coordinate.d.ts +74 -0
- package/lib/chart/controller/coordinate.js +147 -0
- package/lib/chart/controller/coordinate.js.map +1 -0
- package/lib/chart/controller/gesture.d.ts +37 -0
- package/lib/chart/controller/gesture.js +260 -0
- package/lib/chart/controller/gesture.js.map +1 -0
- package/lib/chart/controller/index.d.ts +25 -0
- package/lib/chart/controller/index.js +41 -0
- package/lib/chart/controller/index.js.map +1 -0
- package/lib/chart/controller/legend.d.ts +106 -0
- package/lib/chart/controller/legend.js +486 -0
- package/lib/chart/controller/legend.js.map +1 -0
- package/lib/chart/controller/scrollbar.d.ts +64 -0
- package/lib/chart/controller/scrollbar.js +318 -0
- package/lib/chart/controller/scrollbar.js.map +1 -0
- package/lib/chart/controller/slider.d.ts +88 -0
- package/lib/chart/controller/slider.js +298 -0
- package/lib/chart/controller/slider.js.map +1 -0
- package/lib/chart/controller/tooltip.d.ts +68 -0
- package/lib/chart/controller/tooltip.js +646 -0
- package/lib/chart/controller/tooltip.js.map +1 -0
- package/lib/chart/event.d.ts +47 -0
- package/lib/chart/event.js +93 -0
- package/lib/chart/event.js.map +1 -0
- package/lib/chart/index.d.ts +4 -0
- package/lib/chart/index.js +16 -0
- package/lib/chart/index.js.map +1 -0
- package/lib/chart/layout/auto.d.ts +8 -0
- package/lib/chart/layout/auto.js +68 -0
- package/lib/chart/layout/auto.js.map +1 -0
- package/lib/chart/layout/constraint/bounds.d.ts +32 -0
- package/lib/chart/layout/constraint/bounds.js +33 -0
- package/lib/chart/layout/constraint/bounds.js.map +1 -0
- package/lib/chart/layout/constraint/constraint.d.ts +31 -0
- package/lib/chart/layout/constraint/constraint.js +84 -0
- package/lib/chart/layout/constraint/constraint.js.map +1 -0
- package/lib/chart/layout/constraint/gauss.d.ts +11 -0
- package/lib/chart/layout/constraint/gauss.js +68 -0
- package/lib/chart/layout/constraint/gauss.js.map +1 -0
- package/lib/chart/layout/constraint/index.d.ts +5 -0
- package/lib/chart/layout/constraint/index.js +38 -0
- package/lib/chart/layout/constraint/index.js.map +1 -0
- package/lib/chart/layout/constraint/solver.d.ts +40 -0
- package/lib/chart/layout/constraint/solver.js +80 -0
- package/lib/chart/layout/constraint/solver.js.map +1 -0
- package/lib/chart/layout/constraint/types.d.ts +21 -0
- package/lib/chart/layout/constraint/types.js +16 -0
- package/lib/chart/layout/constraint/types.js.map +1 -0
- package/lib/chart/layout/constraint/variable.d.ts +24 -0
- package/lib/chart/layout/constraint/variable.js +31 -0
- package/lib/chart/layout/constraint/variable.js.map +1 -0
- package/lib/chart/layout/index.d.ts +15 -0
- package/lib/chart/layout/index.js +29 -0
- package/lib/chart/layout/index.js.map +1 -0
- package/lib/chart/layout/padding-cal.d.ts +53 -0
- package/lib/chart/layout/padding-cal.js +111 -0
- package/lib/chart/layout/padding-cal.js.map +1 -0
- package/lib/chart/util/scale-pool.d.ts +57 -0
- package/lib/chart/util/scale-pool.js +215 -0
- package/lib/chart/util/scale-pool.js.map +1 -0
- package/lib/chart/util/sync-view-padding.d.ts +9 -0
- package/lib/chart/util/sync-view-padding.js +18 -0
- package/lib/chart/util/sync-view-padding.js.map +1 -0
- package/lib/chart/view.d.ts +747 -0
- package/lib/chart/view.js +1637 -0
- package/lib/chart/view.js.map +1 -0
- package/lib/component/labels.d.ts +47 -0
- package/lib/component/labels.js +276 -0
- package/lib/component/labels.js.map +1 -0
- package/lib/component/update-label.d.ts +21 -0
- package/lib/component/update-label.js +61 -0
- package/lib/component/update-label.js.map +1 -0
- package/lib/constant.d.ts +122 -0
- package/lib/constant.js +137 -0
- package/lib/constant.js.map +1 -0
- package/lib/core.d.ts +46 -0
- package/lib/core.js +101 -0
- package/lib/core.js.map +1 -0
- package/lib/dependents.d.ts +21 -0
- package/lib/dependents.js +55 -0
- package/lib/dependents.js.map +1 -0
- package/lib/engine/index.d.ts +13 -0
- package/lib/engine/index.js +27 -0
- package/lib/engine/index.js.map +1 -0
- package/lib/facet/circle.d.ts +36 -0
- package/lib/facet/circle.js +121 -0
- package/lib/facet/circle.js.map +1 -0
- package/lib/facet/facet.d.ts +165 -0
- package/lib/facet/facet.js +294 -0
- package/lib/facet/facet.js.map +1 -0
- package/lib/facet/index.d.ts +13 -0
- package/lib/facet/index.js +28 -0
- package/lib/facet/index.js.map +1 -0
- package/lib/facet/list.d.ts +46 -0
- package/lib/facet/list.js +136 -0
- package/lib/facet/list.js.map +1 -0
- package/lib/facet/matrix.d.ts +34 -0
- package/lib/facet/matrix.js +121 -0
- package/lib/facet/matrix.js.map +1 -0
- package/lib/facet/mirror.d.ts +31 -0
- package/lib/facet/mirror.js +146 -0
- package/lib/facet/mirror.js.map +1 -0
- package/lib/facet/rect.d.ts +35 -0
- package/lib/facet/rect.js +143 -0
- package/lib/facet/rect.js.map +1 -0
- package/lib/facet/tree.d.ts +40 -0
- package/lib/facet/tree.js +290 -0
- package/lib/facet/tree.js.map +1 -0
- package/lib/geometry/area.d.ts +46 -0
- package/lib/geometry/area.js +64 -0
- package/lib/geometry/area.js.map +1 -0
- package/lib/geometry/base.d.ts +793 -0
- package/lib/geometry/base.js +1489 -0
- package/lib/geometry/base.js.map +1 -0
- package/lib/geometry/edge.d.ts +15 -0
- package/lib/geometry/edge.js +26 -0
- package/lib/geometry/edge.js.map +1 -0
- package/lib/geometry/element/index.d.ts +127 -0
- package/lib/geometry/element/index.js +438 -0
- package/lib/geometry/element/index.js.map +1 -0
- package/lib/geometry/heatmap.d.ts +31 -0
- package/lib/geometry/heatmap.js +192 -0
- package/lib/geometry/heatmap.js.map +1 -0
- package/lib/geometry/interval.d.ts +41 -0
- package/lib/geometry/interval.js +100 -0
- package/lib/geometry/interval.js.map +1 -0
- package/lib/geometry/label/base.d.ts +76 -0
- package/lib/geometry/label/base.js +406 -0
- package/lib/geometry/label/base.js.map +1 -0
- package/lib/geometry/label/index.d.ts +38 -0
- package/lib/geometry/label/index.js +42 -0
- package/lib/geometry/label/index.js.map +1 -0
- package/lib/geometry/label/interface.d.ts +50 -0
- package/lib/geometry/label/interface.js +3 -0
- package/lib/geometry/label/interface.js.map +1 -0
- package/lib/geometry/label/interval.d.ts +27 -0
- package/lib/geometry/label/interval.js +148 -0
- package/lib/geometry/label/interval.js.map +1 -0
- package/lib/geometry/label/layout/adjust-color.d.ts +3 -0
- package/lib/geometry/label/layout/adjust-color.js +40 -0
- package/lib/geometry/label/layout/adjust-color.js.map +1 -0
- package/lib/geometry/label/layout/hide-overlap.d.ts +8 -0
- package/lib/geometry/label/layout/hide-overlap.js +33 -0
- package/lib/geometry/label/layout/hide-overlap.js.map +1 -0
- package/lib/geometry/label/layout/interval/adjust-position.d.ts +9 -0
- package/lib/geometry/label/layout/interval/adjust-position.js +65 -0
- package/lib/geometry/label/layout/interval/adjust-position.js.map +1 -0
- package/lib/geometry/label/layout/interval/hide-overlap.d.ts +9 -0
- package/lib/geometry/label/layout/interval/hide-overlap.js +82 -0
- package/lib/geometry/label/layout/interval/hide-overlap.js.map +1 -0
- package/lib/geometry/label/layout/limit-in-canvas.d.ts +9 -0
- package/lib/geometry/label/layout/limit-in-canvas.js +48 -0
- package/lib/geometry/label/layout/limit-in-canvas.js.map +1 -0
- package/lib/geometry/label/layout/limit-in-plot.d.ts +18 -0
- package/lib/geometry/label/layout/limit-in-plot.js +79 -0
- package/lib/geometry/label/layout/limit-in-plot.js.map +1 -0
- package/lib/geometry/label/layout/limit-in-shape.d.ts +7 -0
- package/lib/geometry/label/layout/limit-in-shape.js +22 -0
- package/lib/geometry/label/layout/limit-in-shape.js.map +1 -0
- package/lib/geometry/label/layout/overlap.d.ts +15 -0
- package/lib/geometry/label/layout/overlap.js +228 -0
- package/lib/geometry/label/layout/overlap.js.map +1 -0
- package/lib/geometry/label/layout/path/adjust-position.d.ts +17 -0
- package/lib/geometry/label/layout/path/adjust-position.js +98 -0
- package/lib/geometry/label/layout/path/adjust-position.js.map +1 -0
- package/lib/geometry/label/layout/pie/distribute.d.ts +3 -0
- package/lib/geometry/label/layout/pie/distribute.js +189 -0
- package/lib/geometry/label/layout/pie/distribute.js.map +1 -0
- package/lib/geometry/label/layout/pie/outer.d.ts +6 -0
- package/lib/geometry/label/layout/pie/outer.js +211 -0
- package/lib/geometry/label/layout/pie/outer.js.map +1 -0
- package/lib/geometry/label/layout/pie/spider.d.ts +7 -0
- package/lib/geometry/label/layout/pie/spider.js +185 -0
- package/lib/geometry/label/layout/pie/spider.js.map +1 -0
- package/lib/geometry/label/layout/pie/util.d.ts +10 -0
- package/lib/geometry/label/layout/pie/util.js +77 -0
- package/lib/geometry/label/layout/pie/util.js.map +1 -0
- package/lib/geometry/label/layout/point/adjust-position.d.ts +17 -0
- package/lib/geometry/label/layout/point/adjust-position.js +98 -0
- package/lib/geometry/label/layout/point/adjust-position.js.map +1 -0
- package/lib/geometry/label/pie.d.ts +22 -0
- package/lib/geometry/label/pie.js +97 -0
- package/lib/geometry/label/pie.js.map +1 -0
- package/lib/geometry/label/polar.d.ts +64 -0
- package/lib/geometry/label/polar.js +223 -0
- package/lib/geometry/label/polar.js.map +1 -0
- package/lib/geometry/label/util/index.d.ts +26 -0
- package/lib/geometry/label/util/index.js +68 -0
- package/lib/geometry/label/util/index.js.map +1 -0
- package/lib/geometry/line.d.ts +11 -0
- package/lib/geometry/line.js +23 -0
- package/lib/geometry/line.js.map +1 -0
- package/lib/geometry/path.d.ts +40 -0
- package/lib/geometry/path.js +124 -0
- package/lib/geometry/path.js.map +1 -0
- package/lib/geometry/point.d.ts +19 -0
- package/lib/geometry/point.js +32 -0
- package/lib/geometry/point.js.map +1 -0
- package/lib/geometry/polygon.d.ts +19 -0
- package/lib/geometry/polygon.js +64 -0
- package/lib/geometry/polygon.js.map +1 -0
- package/lib/geometry/schema.d.ts +18 -0
- package/lib/geometry/schema.js +50 -0
- package/lib/geometry/schema.js.map +1 -0
- package/lib/geometry/shape/area/index.d.ts +2 -0
- package/lib/geometry/shape/area/index.js +46 -0
- package/lib/geometry/shape/area/index.js.map +1 -0
- package/lib/geometry/shape/area/line.d.ts +1 -0
- package/lib/geometry/shape/area/line.js +33 -0
- package/lib/geometry/shape/area/line.js.map +1 -0
- package/lib/geometry/shape/area/smooth-line.d.ts +1 -0
- package/lib/geometry/shape/area/smooth-line.js +32 -0
- package/lib/geometry/shape/area/smooth-line.js.map +1 -0
- package/lib/geometry/shape/area/smooth.d.ts +1 -0
- package/lib/geometry/shape/area/smooth.js +33 -0
- package/lib/geometry/shape/area/smooth.js.map +1 -0
- package/lib/geometry/shape/area/util.d.ts +22 -0
- package/lib/geometry/shape/area/util.js +93 -0
- package/lib/geometry/shape/area/util.js.map +1 -0
- package/lib/geometry/shape/base.d.ts +22 -0
- package/lib/geometry/shape/base.js +168 -0
- package/lib/geometry/shape/base.js.map +1 -0
- package/lib/geometry/shape/constant.d.ts +4 -0
- package/lib/geometry/shape/constant.js +8 -0
- package/lib/geometry/shape/constant.js.map +1 -0
- package/lib/geometry/shape/edge/arc.d.ts +1 -0
- package/lib/geometry/shape/edge/arc.js +86 -0
- package/lib/geometry/shape/edge/arc.js.map +1 -0
- package/lib/geometry/shape/edge/index.d.ts +2 -0
- package/lib/geometry/shape/edge/index.js +33 -0
- package/lib/geometry/shape/edge/index.js.map +1 -0
- package/lib/geometry/shape/edge/smooth.d.ts +1 -0
- package/lib/geometry/shape/edge/smooth.js +32 -0
- package/lib/geometry/shape/edge/smooth.js.map +1 -0
- package/lib/geometry/shape/edge/util.d.ts +17 -0
- package/lib/geometry/shape/edge/util.js +37 -0
- package/lib/geometry/shape/edge/util.js.map +1 -0
- package/lib/geometry/shape/edge/vhv.d.ts +1 -0
- package/lib/geometry/shape/edge/vhv.js +44 -0
- package/lib/geometry/shape/edge/vhv.js.map +1 -0
- package/lib/geometry/shape/interval/funnel.d.ts +1 -0
- package/lib/geometry/shape/interval/funnel.js +33 -0
- package/lib/geometry/shape/interval/funnel.js.map +1 -0
- package/lib/geometry/shape/interval/hollow-rect.d.ts +1 -0
- package/lib/geometry/shape/interval/hollow-rect.js +53 -0
- package/lib/geometry/shape/interval/hollow-rect.js.map +1 -0
- package/lib/geometry/shape/interval/index.d.ts +3 -0
- package/lib/geometry/shape/interval/index.js +65 -0
- package/lib/geometry/shape/interval/index.js.map +1 -0
- package/lib/geometry/shape/interval/line.d.ts +1 -0
- package/lib/geometry/shape/interval/line.js +56 -0
- package/lib/geometry/shape/interval/line.js.map +1 -0
- package/lib/geometry/shape/interval/pyramid.d.ts +1 -0
- package/lib/geometry/shape/interval/pyramid.js +33 -0
- package/lib/geometry/shape/interval/pyramid.js.map +1 -0
- package/lib/geometry/shape/interval/tick.d.ts +1 -0
- package/lib/geometry/shape/interval/tick.js +79 -0
- package/lib/geometry/shape/interval/tick.js.map +1 -0
- package/lib/geometry/shape/interval/util.d.ts +55 -0
- package/lib/geometry/shape/interval/util.js +321 -0
- package/lib/geometry/shape/interval/util.js.map +1 -0
- package/lib/geometry/shape/line/index.d.ts +8 -0
- package/lib/geometry/shape/line/index.js +109 -0
- package/lib/geometry/shape/line/index.js.map +1 -0
- package/lib/geometry/shape/line/step.d.ts +1 -0
- package/lib/geometry/shape/line/step.js +86 -0
- package/lib/geometry/shape/line/step.js.map +1 -0
- package/lib/geometry/shape/line/util.d.ts +16 -0
- package/lib/geometry/shape/line/util.js +87 -0
- package/lib/geometry/shape/line/util.js.map +1 -0
- package/lib/geometry/shape/point/hollow.d.ts +1 -0
- package/lib/geometry/shape/point/hollow.js +26 -0
- package/lib/geometry/shape/point/hollow.js.map +1 -0
- package/lib/geometry/shape/point/image.d.ts +1 -0
- package/lib/geometry/shape/point/image.js +50 -0
- package/lib/geometry/shape/point/image.js.map +1 -0
- package/lib/geometry/shape/point/index.d.ts +2 -0
- package/lib/geometry/shape/point/index.js +34 -0
- package/lib/geometry/shape/point/index.js.map +1 -0
- package/lib/geometry/shape/point/solid.d.ts +1 -0
- package/lib/geometry/shape/point/solid.js +25 -0
- package/lib/geometry/shape/point/solid.js.map +1 -0
- package/lib/geometry/shape/point/util.d.ts +15 -0
- package/lib/geometry/shape/point/util.js +43 -0
- package/lib/geometry/shape/point/util.js.map +1 -0
- package/lib/geometry/shape/polygon/index.d.ts +2 -0
- package/lib/geometry/shape/polygon/index.js +67 -0
- package/lib/geometry/shape/polygon/index.js.map +1 -0
- package/lib/geometry/shape/polygon/square.d.ts +1 -0
- package/lib/geometry/shape/polygon/square.js +46 -0
- package/lib/geometry/shape/polygon/square.js.map +1 -0
- package/lib/geometry/shape/schema/box.d.ts +1 -0
- package/lib/geometry/shape/schema/box.js +144 -0
- package/lib/geometry/shape/schema/box.js.map +1 -0
- package/lib/geometry/shape/schema/candle.d.ts +1 -0
- package/lib/geometry/shape/schema/candle.js +82 -0
- package/lib/geometry/shape/schema/candle.js.map +1 -0
- package/lib/geometry/shape/schema/index.d.ts +2 -0
- package/lib/geometry/shape/schema/index.js +8 -0
- package/lib/geometry/shape/schema/index.js.map +1 -0
- package/lib/geometry/shape/util/get-path-points.d.ts +38 -0
- package/lib/geometry/shape/util/get-path-points.js +137 -0
- package/lib/geometry/shape/util/get-path-points.js.map +1 -0
- package/lib/geometry/shape/util/get-style.d.ts +18 -0
- package/lib/geometry/shape/util/get-style.js +52 -0
- package/lib/geometry/shape/util/get-style.js.map +1 -0
- package/lib/geometry/shape/util/path.d.ts +32 -0
- package/lib/geometry/shape/util/path.js +320 -0
- package/lib/geometry/shape/util/path.js.map +1 -0
- package/lib/geometry/shape/util/split-points.d.ts +13 -0
- package/lib/geometry/shape/util/split-points.js +28 -0
- package/lib/geometry/shape/util/split-points.js.map +1 -0
- package/lib/geometry/shape/violin/hollow.d.ts +1 -0
- package/lib/geometry/shape/violin/hollow.js +53 -0
- package/lib/geometry/shape/violin/hollow.js.map +1 -0
- package/lib/geometry/shape/violin/index.d.ts +2 -0
- package/lib/geometry/shape/violin/index.js +62 -0
- package/lib/geometry/shape/violin/index.js.map +1 -0
- package/lib/geometry/shape/violin/smooth.d.ts +1 -0
- package/lib/geometry/shape/violin/smooth.js +30 -0
- package/lib/geometry/shape/violin/smooth.js.map +1 -0
- package/lib/geometry/util/diff.d.ts +11 -0
- package/lib/geometry/util/diff.js +34 -0
- package/lib/geometry/util/diff.js.map +1 -0
- package/lib/geometry/util/get-shape-type.d.ts +8 -0
- package/lib/geometry/util/get-shape-type.js +20 -0
- package/lib/geometry/util/get-shape-type.js.map +1 -0
- package/lib/geometry/util/group-data.d.ts +3 -0
- package/lib/geometry/util/group-data.js +35 -0
- package/lib/geometry/util/group-data.js.map +1 -0
- package/lib/geometry/util/is-model-change.d.ts +9 -0
- package/lib/geometry/util/is-model-change.js +18 -0
- package/lib/geometry/util/is-model-change.js.map +1 -0
- package/lib/geometry/util/parse-fields.d.ts +2 -0
- package/lib/geometry/util/parse-fields.js +13 -0
- package/lib/geometry/util/parse-fields.js.map +1 -0
- package/lib/geometry/util/shape-size.d.ts +2 -0
- package/lib/geometry/util/shape-size.js +128 -0
- package/lib/geometry/util/shape-size.js.map +1 -0
- package/lib/geometry/violin.d.ts +25 -0
- package/lib/geometry/violin.js +69 -0
- package/lib/geometry/violin.js.map +1 -0
- package/lib/index.d.ts +107 -0
- package/lib/index.js +586 -0
- package/lib/index.js.map +1 -0
- package/lib/interaction/action/active-region.d.ts +33 -0
- package/lib/interaction/action/active-region.js +202 -0
- package/lib/interaction/action/active-region.js.map +1 -0
- package/lib/interaction/action/base.d.ts +29 -0
- package/lib/interaction/action/base.js +38 -0
- package/lib/interaction/action/base.js.map +1 -0
- package/lib/interaction/action/callback.d.ts +17 -0
- package/lib/interaction/action/callback.js +29 -0
- package/lib/interaction/action/callback.js.map +1 -0
- package/lib/interaction/action/component/list-active.d.ts +14 -0
- package/lib/interaction/action/component/list-active.js +26 -0
- package/lib/interaction/action/component/list-active.js.map +1 -0
- package/lib/interaction/action/component/list-checked.d.ts +30 -0
- package/lib/interaction/action/component/list-checked.js +84 -0
- package/lib/interaction/action/component/list-checked.js.map +1 -0
- package/lib/interaction/action/component/list-focus.d.ts +5 -0
- package/lib/interaction/action/component/list-focus.js +57 -0
- package/lib/interaction/action/component/list-focus.js.map +1 -0
- package/lib/interaction/action/component/list-highlight-util.d.ts +7 -0
- package/lib/interaction/action/component/list-highlight-util.js +24 -0
- package/lib/interaction/action/component/list-highlight-util.js.map +1 -0
- package/lib/interaction/action/component/list-highlight.d.ts +20 -0
- package/lib/interaction/action/component/list-highlight.js +99 -0
- package/lib/interaction/action/component/list-highlight.js.map +1 -0
- package/lib/interaction/action/component/list-radio.d.ts +24 -0
- package/lib/interaction/action/component/list-radio.js +118 -0
- package/lib/interaction/action/component/list-radio.js.map +1 -0
- package/lib/interaction/action/component/list-selected.d.ts +10 -0
- package/lib/interaction/action/component/list-selected.js +22 -0
- package/lib/interaction/action/component/list-selected.js.map +1 -0
- package/lib/interaction/action/component/list-state.d.ts +46 -0
- package/lib/interaction/action/component/list-state.js +169 -0
- package/lib/interaction/action/component/list-state.js.map +1 -0
- package/lib/interaction/action/component/list-unchecked.d.ts +13 -0
- package/lib/interaction/action/component/list-unchecked.js +25 -0
- package/lib/interaction/action/component/list-unchecked.js.map +1 -0
- package/lib/interaction/action/component/tooltip/ellipsis-text.d.ts +25 -0
- package/lib/interaction/action/component/tooltip/ellipsis-text.js +95 -0
- package/lib/interaction/action/component/tooltip/ellipsis-text.js.map +1 -0
- package/lib/interaction/action/component/tooltip/geometry.d.ts +24 -0
- package/lib/interaction/action/component/tooltip/geometry.js +73 -0
- package/lib/interaction/action/component/tooltip/geometry.js.map +1 -0
- package/lib/interaction/action/component/tooltip/sibling.d.ts +21 -0
- package/lib/interaction/action/component/tooltip/sibling.js +41 -0
- package/lib/interaction/action/component/tooltip/sibling.js.map +1 -0
- package/lib/interaction/action/cursor.d.ts +69 -0
- package/lib/interaction/action/cursor.js +115 -0
- package/lib/interaction/action/cursor.js.map +1 -0
- package/lib/interaction/action/data/filter.d.ts +13 -0
- package/lib/interaction/action/data/filter.js +68 -0
- package/lib/interaction/action/data/filter.js.map +1 -0
- package/lib/interaction/action/data/range-filter.d.ts +56 -0
- package/lib/interaction/action/data/range-filter.js +166 -0
- package/lib/interaction/action/data/range-filter.js.map +1 -0
- package/lib/interaction/action/data/sibling-filter.d.ts +22 -0
- package/lib/interaction/action/data/sibling-filter.js +41 -0
- package/lib/interaction/action/data/sibling-filter.js.map +1 -0
- package/lib/interaction/action/element/active.d.ts +14 -0
- package/lib/interaction/action/element/active.js +26 -0
- package/lib/interaction/action/element/active.js.map +1 -0
- package/lib/interaction/action/element/filter.d.ts +20 -0
- package/lib/interaction/action/element/filter.js +91 -0
- package/lib/interaction/action/element/filter.js.map +1 -0
- package/lib/interaction/action/element/highlight-by-color.d.ts +10 -0
- package/lib/interaction/action/element/highlight-by-color.js +32 -0
- package/lib/interaction/action/element/highlight-by-color.js.map +1 -0
- package/lib/interaction/action/element/highlight-by-x.d.ts +15 -0
- package/lib/interaction/action/element/highlight-by-x.js +53 -0
- package/lib/interaction/action/element/highlight-by-x.js.map +1 -0
- package/lib/interaction/action/element/highlight-util.d.ts +18 -0
- package/lib/interaction/action/element/highlight-util.js +50 -0
- package/lib/interaction/action/element/highlight-util.js.map +1 -0
- package/lib/interaction/action/element/highlight.d.ts +21 -0
- package/lib/interaction/action/element/highlight.js +96 -0
- package/lib/interaction/action/element/highlight.js.map +1 -0
- package/lib/interaction/action/element/link-by-color.d.ts +51 -0
- package/lib/interaction/action/element/link-by-color.js +158 -0
- package/lib/interaction/action/element/link-by-color.js.map +1 -0
- package/lib/interaction/action/element/range-active.d.ts +13 -0
- package/lib/interaction/action/element/range-active.js +25 -0
- package/lib/interaction/action/element/range-active.js.map +1 -0
- package/lib/interaction/action/element/range-highlight.d.ts +27 -0
- package/lib/interaction/action/element/range-highlight.js +57 -0
- package/lib/interaction/action/element/range-highlight.js.map +1 -0
- package/lib/interaction/action/element/range-selected.d.ts +13 -0
- package/lib/interaction/action/element/range-selected.js +25 -0
- package/lib/interaction/action/element/range-selected.js.map +1 -0
- package/lib/interaction/action/element/range-state.d.ts +38 -0
- package/lib/interaction/action/element/range-state.js +166 -0
- package/lib/interaction/action/element/range-state.js.map +1 -0
- package/lib/interaction/action/element/selected.d.ts +14 -0
- package/lib/interaction/action/element/selected.js +26 -0
- package/lib/interaction/action/element/selected.js.map +1 -0
- package/lib/interaction/action/element/sibling-filter.d.ts +19 -0
- package/lib/interaction/action/element/sibling-filter.js +95 -0
- package/lib/interaction/action/element/sibling-filter.js.map +1 -0
- package/lib/interaction/action/element/single-active.d.ts +13 -0
- package/lib/interaction/action/element/single-active.js +25 -0
- package/lib/interaction/action/element/single-active.js.map +1 -0
- package/lib/interaction/action/element/single-highlight.d.ts +16 -0
- package/lib/interaction/action/element/single-highlight.js +37 -0
- package/lib/interaction/action/element/single-highlight.js.map +1 -0
- package/lib/interaction/action/element/single-selected.d.ts +13 -0
- package/lib/interaction/action/element/single-selected.js +25 -0
- package/lib/interaction/action/element/single-selected.js.map +1 -0
- package/lib/interaction/action/element/single-state.d.ts +18 -0
- package/lib/interaction/action/element/single-state.js +55 -0
- package/lib/interaction/action/element/single-state.js.map +1 -0
- package/lib/interaction/action/element/state-base.d.ts +39 -0
- package/lib/interaction/action/element/state-base.js +61 -0
- package/lib/interaction/action/element/state-base.js.map +1 -0
- package/lib/interaction/action/element/state.d.ts +28 -0
- package/lib/interaction/action/element/state.js +101 -0
- package/lib/interaction/action/element/state.js.map +1 -0
- package/lib/interaction/action/index.d.ts +2 -0
- package/lib/interaction/action/index.js +13 -0
- package/lib/interaction/action/index.js.map +1 -0
- package/lib/interaction/action/mask/base.d.ts +62 -0
- package/lib/interaction/action/mask/base.js +171 -0
- package/lib/interaction/action/mask/base.js.map +1 -0
- package/lib/interaction/action/mask/circle.d.ts +14 -0
- package/lib/interaction/action/mask/circle.js +39 -0
- package/lib/interaction/action/mask/circle.js.map +1 -0
- package/lib/interaction/action/mask/dim-rect.d.ts +11 -0
- package/lib/interaction/action/mask/dim-rect.js +64 -0
- package/lib/interaction/action/mask/dim-rect.js.map +1 -0
- package/lib/interaction/action/mask/path.d.ts +16 -0
- package/lib/interaction/action/mask/path.js +46 -0
- package/lib/interaction/action/mask/path.js.map +1 -0
- package/lib/interaction/action/mask/rect.d.ts +17 -0
- package/lib/interaction/action/mask/rect.js +41 -0
- package/lib/interaction/action/mask/rect.js.map +1 -0
- package/lib/interaction/action/mask/smooth-path.d.ts +9 -0
- package/lib/interaction/action/mask/smooth-path.js +23 -0
- package/lib/interaction/action/mask/smooth-path.js.map +1 -0
- package/lib/interaction/action/register.d.ts +36 -0
- package/lib/interaction/action/register.js +69 -0
- package/lib/interaction/action/register.js.map +1 -0
- package/lib/interaction/action/util.d.ts +140 -0
- package/lib/interaction/action/util.js +387 -0
- package/lib/interaction/action/util.js.map +1 -0
- package/lib/interaction/action/view/button.d.ts +25 -0
- package/lib/interaction/action/view/button.js +118 -0
- package/lib/interaction/action/view/button.js.map +1 -0
- package/lib/interaction/action/view/drag.d.ts +24 -0
- package/lib/interaction/action/view/drag.js +75 -0
- package/lib/interaction/action/view/drag.js.map +1 -0
- package/lib/interaction/action/view/mousewheel-scroll.d.ts +5 -0
- package/lib/interaction/action/view/mousewheel-scroll.js +37 -0
- package/lib/interaction/action/view/mousewheel-scroll.js.map +1 -0
- package/lib/interaction/action/view/move.d.ts +28 -0
- package/lib/interaction/action/view/move.js +82 -0
- package/lib/interaction/action/view/move.js.map +1 -0
- package/lib/interaction/action/view/scale-transform.d.ts +18 -0
- package/lib/interaction/action/view/scale-transform.js +53 -0
- package/lib/interaction/action/view/scale-transform.js.map +1 -0
- package/lib/interaction/action/view/scale-translate.d.ts +30 -0
- package/lib/interaction/action/view/scale-translate.js +114 -0
- package/lib/interaction/action/view/scale-translate.js.map +1 -0
- package/lib/interaction/action/view/scale-zoom.d.ts +20 -0
- package/lib/interaction/action/view/scale-zoom.js +85 -0
- package/lib/interaction/action/view/scale-zoom.js.map +1 -0
- package/lib/interaction/context.d.ts +65 -0
- package/lib/interaction/context.js +144 -0
- package/lib/interaction/context.js.map +1 -0
- package/lib/interaction/grammar-interaction.d.ts +158 -0
- package/lib/interaction/grammar-interaction.js +289 -0
- package/lib/interaction/grammar-interaction.js.map +1 -0
- package/lib/interaction/index.d.ts +25 -0
- package/lib/interaction/index.js +54 -0
- package/lib/interaction/index.js.map +1 -0
- package/lib/interaction/interaction.d.ts +29 -0
- package/lib/interaction/interaction.js +34 -0
- package/lib/interaction/interaction.js.map +1 -0
- package/lib/interface.d.ts +2264 -0
- package/lib/interface.js +3 -0
- package/lib/interface.js.map +1 -0
- package/lib/theme/index.d.ts +12 -0
- package/lib/theme/index.js +28 -0
- package/lib/theme/index.js.map +1 -0
- package/lib/theme/style-sheet/dark.d.ts +825 -0
- package/lib/theme/style-sheet/dark.js +500 -0
- package/lib/theme/style-sheet/dark.js.map +1 -0
- package/lib/theme/style-sheet/light.d.ts +817 -0
- package/lib/theme/style-sheet/light.js +496 -0
- package/lib/theme/style-sheet/light.js.map +1 -0
- package/lib/theme/util/create-by-style-sheet.d.ts +6 -0
- package/lib/theme/util/create-by-style-sheet.js +1426 -0
- package/lib/theme/util/create-by-style-sheet.js.map +1 -0
- package/lib/theme/util/create-theme.d.ts +6 -0
- package/lib/theme/util/create-theme.js +16 -0
- package/lib/theme/util/create-theme.js.map +1 -0
- package/lib/theme/util/index.d.ts +1 -0
- package/lib/theme/util/index.js +6 -0
- package/lib/theme/util/index.js.map +1 -0
- package/lib/util/annotation.d.ts +7 -0
- package/lib/util/annotation.js +43 -0
- package/lib/util/annotation.js.map +1 -0
- package/lib/util/attr.d.ts +10 -0
- package/lib/util/attr.js +29 -0
- package/lib/util/attr.js.map +1 -0
- package/lib/util/axis.d.ts +100 -0
- package/lib/util/axis.js +251 -0
- package/lib/util/axis.js.map +1 -0
- package/lib/util/bbox.d.ts +105 -0
- package/lib/util/bbox.js +287 -0
- package/lib/util/bbox.js.map +1 -0
- package/lib/util/collision-detect.d.ts +16 -0
- package/lib/util/collision-detect.js +132 -0
- package/lib/util/collision-detect.js.map +1 -0
- package/lib/util/color.d.ts +1 -0
- package/lib/util/color.js +23 -0
- package/lib/util/color.js.map +1 -0
- package/lib/util/context.d.ts +4 -0
- package/lib/util/context.js +15 -0
- package/lib/util/context.js.map +1 -0
- package/lib/util/coordinate.d.ts +86 -0
- package/lib/util/coordinate.js +157 -0
- package/lib/util/coordinate.js.map +1 -0
- package/lib/util/direction.d.ts +19 -0
- package/lib/util/direction.js +125 -0
- package/lib/util/direction.js.map +1 -0
- package/lib/util/dom.d.ts +19 -0
- package/lib/util/dom.js +68 -0
- package/lib/util/dom.js.map +1 -0
- package/lib/util/event.d.ts +8 -0
- package/lib/util/event.js +18 -0
- package/lib/util/event.js.map +1 -0
- package/lib/util/facet.d.ts +16 -0
- package/lib/util/facet.js +48 -0
- package/lib/util/facet.js.map +1 -0
- package/lib/util/graphics.d.ts +58 -0
- package/lib/util/graphics.js +212 -0
- package/lib/util/graphics.js.map +1 -0
- package/lib/util/grid.d.ts +36 -0
- package/lib/util/grid.js +125 -0
- package/lib/util/grid.js.map +1 -0
- package/lib/util/helper.d.ts +34 -0
- package/lib/util/helper.js +79 -0
- package/lib/util/helper.js.map +1 -0
- package/lib/util/legend.d.ts +45 -0
- package/lib/util/legend.js +152 -0
- package/lib/util/legend.js.map +1 -0
- package/lib/util/marker.d.ts +10 -0
- package/lib/util/marker.js +61 -0
- package/lib/util/marker.js.map +1 -0
- package/lib/util/padding.d.ts +14 -0
- package/lib/util/padding.js +45 -0
- package/lib/util/padding.js.map +1 -0
- package/lib/util/scale.d.ts +42 -0
- package/lib/util/scale.js +137 -0
- package/lib/util/scale.js.map +1 -0
- package/lib/util/stat.d.ts +10 -0
- package/lib/util/stat.js +41 -0
- package/lib/util/stat.js.map +1 -0
- package/lib/util/text.d.ts +23 -0
- package/lib/util/text.js +88 -0
- package/lib/util/text.js.map +1 -0
- package/lib/util/tooltip.d.ts +26 -0
- package/lib/util/tooltip.js +426 -0
- package/lib/util/tooltip.js.map +1 -0
- package/lib/util/transform.d.ts +33 -0
- package/lib/util/transform.js +69 -0
- package/lib/util/transform.js.map +1 -0
- package/lib/util/types.d.ts +6 -0
- package/lib/util/types.js +3 -0
- package/lib/util/types.js.map +1 -0
- package/package.json +4 -3
- package/src/core.ts +1 -1
package/lib/index.js
ADDED
|
@@ -0,0 +1,586 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ELEMENT_RANGE_HIGHLIGHT_EVENTS = exports.BRUSH_FILTER_EVENTS = exports.VIEW_LIFE_CIRCLE = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
// 注册黑暗主题
|
|
6
|
+
var core_1 = require("./core");
|
|
7
|
+
var dark_1 = require("./theme/style-sheet/dark");
|
|
8
|
+
var create_by_style_sheet_1 = require("./theme/util/create-by-style-sheet");
|
|
9
|
+
(0, core_1.registerTheme)('dark', (0, create_by_style_sheet_1.createThemeByStyleSheet)(dark_1.antvDark));
|
|
10
|
+
// 注册 G 渲染引擎
|
|
11
|
+
var CanvasEngine = (0, tslib_1.__importStar)(require("@antv/g-canvas"));
|
|
12
|
+
var SVGEngine = (0, tslib_1.__importStar)(require("@antv/g-svg"));
|
|
13
|
+
var core_2 = require("./core");
|
|
14
|
+
(0, core_2.registerEngine)('canvas', CanvasEngine);
|
|
15
|
+
(0, core_2.registerEngine)('svg', SVGEngine);
|
|
16
|
+
// 注册 G2 内置的 geometry
|
|
17
|
+
var core_3 = require("./core");
|
|
18
|
+
var area_1 = (0, tslib_1.__importDefault)(require("./geometry/area"));
|
|
19
|
+
var edge_1 = (0, tslib_1.__importDefault)(require("./geometry/edge"));
|
|
20
|
+
var heatmap_1 = (0, tslib_1.__importDefault)(require("./geometry/heatmap"));
|
|
21
|
+
var interval_1 = (0, tslib_1.__importDefault)(require("./geometry/interval"));
|
|
22
|
+
var line_1 = (0, tslib_1.__importDefault)(require("./geometry/line"));
|
|
23
|
+
var path_1 = (0, tslib_1.__importDefault)(require("./geometry/path"));
|
|
24
|
+
var point_1 = (0, tslib_1.__importDefault)(require("./geometry/point"));
|
|
25
|
+
var polygon_1 = (0, tslib_1.__importDefault)(require("./geometry/polygon"));
|
|
26
|
+
var schema_1 = (0, tslib_1.__importDefault)(require("./geometry/schema"));
|
|
27
|
+
var violin_1 = (0, tslib_1.__importDefault)(require("./geometry/violin"));
|
|
28
|
+
(0, core_3.registerGeometry)('Polygon', polygon_1.default);
|
|
29
|
+
(0, core_3.registerGeometry)('Interval', interval_1.default);
|
|
30
|
+
(0, core_3.registerGeometry)('Schema', schema_1.default);
|
|
31
|
+
(0, core_3.registerGeometry)('Path', path_1.default);
|
|
32
|
+
(0, core_3.registerGeometry)('Point', point_1.default);
|
|
33
|
+
(0, core_3.registerGeometry)('Line', line_1.default);
|
|
34
|
+
(0, core_3.registerGeometry)('Area', area_1.default);
|
|
35
|
+
(0, core_3.registerGeometry)('Edge', edge_1.default);
|
|
36
|
+
(0, core_3.registerGeometry)('Heatmap', heatmap_1.default);
|
|
37
|
+
(0, core_3.registerGeometry)('Violin', violin_1.default);
|
|
38
|
+
// 引入所有内置的 shapes
|
|
39
|
+
require("./geometry/shape/area/line");
|
|
40
|
+
require("./geometry/shape/area/smooth");
|
|
41
|
+
require("./geometry/shape/area/smooth-line");
|
|
42
|
+
require("./geometry/shape/edge/arc");
|
|
43
|
+
require("./geometry/shape/edge/smooth");
|
|
44
|
+
require("./geometry/shape/edge/vhv");
|
|
45
|
+
require("./geometry/shape/interval/funnel");
|
|
46
|
+
require("./geometry/shape/interval/hollow-rect");
|
|
47
|
+
require("./geometry/shape/interval/line");
|
|
48
|
+
require("./geometry/shape/interval/pyramid");
|
|
49
|
+
require("./geometry/shape/interval/tick");
|
|
50
|
+
require("./geometry/shape/line/step");
|
|
51
|
+
require("./geometry/shape/point/hollow");
|
|
52
|
+
require("./geometry/shape/point/image");
|
|
53
|
+
require("./geometry/shape/point/solid");
|
|
54
|
+
require("./geometry/shape/schema/box");
|
|
55
|
+
require("./geometry/shape/schema/candle");
|
|
56
|
+
require("./geometry/shape/polygon/square");
|
|
57
|
+
require("./geometry/shape/violin/smooth");
|
|
58
|
+
require("./geometry/shape/violin/hollow");
|
|
59
|
+
// 注册 Geometry 内置的 label
|
|
60
|
+
var core_4 = require("./core");
|
|
61
|
+
var base_1 = (0, tslib_1.__importDefault)(require("./geometry/label/base"));
|
|
62
|
+
var interval_2 = (0, tslib_1.__importDefault)(require("./geometry/label/interval"));
|
|
63
|
+
var pie_1 = (0, tslib_1.__importDefault)(require("./geometry/label/pie"));
|
|
64
|
+
var polar_1 = (0, tslib_1.__importDefault)(require("./geometry/label/polar"));
|
|
65
|
+
(0, core_4.registerGeometryLabel)('base', base_1.default);
|
|
66
|
+
(0, core_4.registerGeometryLabel)('interval', interval_2.default);
|
|
67
|
+
(0, core_4.registerGeometryLabel)('pie', pie_1.default);
|
|
68
|
+
(0, core_4.registerGeometryLabel)('polar', polar_1.default);
|
|
69
|
+
// 注册 Geometry label 内置的布局函数
|
|
70
|
+
var core_5 = require("./core");
|
|
71
|
+
var distribute_1 = require("./geometry/label/layout/pie/distribute");
|
|
72
|
+
var outer_1 = require("./geometry/label/layout/pie/outer");
|
|
73
|
+
var spider_1 = require("./geometry/label/layout/pie/spider");
|
|
74
|
+
var limit_in_canvas_1 = require("./geometry/label/layout/limit-in-canvas");
|
|
75
|
+
var limit_in_shape_1 = require("./geometry/label/layout/limit-in-shape");
|
|
76
|
+
var overlap_1 = require("./geometry/label/layout/overlap");
|
|
77
|
+
var hide_overlap_1 = require("./geometry/label/layout/hide-overlap");
|
|
78
|
+
var adjust_color_1 = require("./geometry/label/layout/adjust-color");
|
|
79
|
+
var adjust_position_1 = require("./geometry/label/layout/interval/adjust-position");
|
|
80
|
+
var hide_overlap_2 = require("./geometry/label/layout/interval/hide-overlap");
|
|
81
|
+
var adjust_position_2 = require("./geometry/label/layout/point/adjust-position");
|
|
82
|
+
var adjust_position_3 = require("./geometry/label/layout/path/adjust-position");
|
|
83
|
+
var limit_in_plot_1 = require("./geometry/label/layout/limit-in-plot");
|
|
84
|
+
(0, core_5.registerGeometryLabelLayout)('overlap', overlap_1.overlap);
|
|
85
|
+
(0, core_5.registerGeometryLabelLayout)('distribute', distribute_1.distribute);
|
|
86
|
+
(0, core_5.registerGeometryLabelLayout)('fixed-overlap', overlap_1.fixedOverlap);
|
|
87
|
+
(0, core_5.registerGeometryLabelLayout)('hide-overlap', hide_overlap_1.hideOverlap);
|
|
88
|
+
(0, core_5.registerGeometryLabelLayout)('limit-in-shape', limit_in_shape_1.limitInShape);
|
|
89
|
+
(0, core_5.registerGeometryLabelLayout)('limit-in-canvas', limit_in_canvas_1.limitInCanvas);
|
|
90
|
+
(0, core_5.registerGeometryLabelLayout)('limit-in-plot', limit_in_plot_1.limitInPlot);
|
|
91
|
+
(0, core_5.registerGeometryLabelLayout)('pie-outer', outer_1.pieOuterLabelLayout);
|
|
92
|
+
(0, core_5.registerGeometryLabelLayout)('adjust-color', adjust_color_1.adjustColor);
|
|
93
|
+
(0, core_5.registerGeometryLabelLayout)('interval-adjust-position', adjust_position_1.intervalAdjustPosition);
|
|
94
|
+
(0, core_5.registerGeometryLabelLayout)('interval-hide-overlap', hide_overlap_2.intervalHideOverlap);
|
|
95
|
+
(0, core_5.registerGeometryLabelLayout)('point-adjust-position', adjust_position_2.pointAdjustPosition);
|
|
96
|
+
(0, core_5.registerGeometryLabelLayout)('pie-spider', spider_1.pieSpiderLabelLayout);
|
|
97
|
+
(0, core_5.registerGeometryLabelLayout)('path-adjust-position', adjust_position_3.pathAdjustPosition);
|
|
98
|
+
// 注册需要的动画执行函数
|
|
99
|
+
var fade_1 = require("./animate/animation/fade");
|
|
100
|
+
var grow_in_1 = require("./animate/animation/grow-in");
|
|
101
|
+
var path_in_1 = require("./animate/animation/path-in");
|
|
102
|
+
var position_update_1 = require("./animate/animation/position-update");
|
|
103
|
+
var scale_in_1 = require("./animate/animation/scale-in");
|
|
104
|
+
var sector_path_update_1 = require("./animate/animation/sector-path-update");
|
|
105
|
+
var wave_in_1 = require("./animate/animation/wave-in");
|
|
106
|
+
var zoom_1 = require("./animate/animation/zoom");
|
|
107
|
+
var core_6 = require("./core");
|
|
108
|
+
(0, core_6.registerAnimation)('fade-in', fade_1.fadeIn);
|
|
109
|
+
(0, core_6.registerAnimation)('fade-out', fade_1.fadeOut);
|
|
110
|
+
(0, core_6.registerAnimation)('grow-in-x', grow_in_1.growInX);
|
|
111
|
+
(0, core_6.registerAnimation)('grow-in-xy', grow_in_1.growInXY);
|
|
112
|
+
(0, core_6.registerAnimation)('grow-in-y', grow_in_1.growInY);
|
|
113
|
+
(0, core_6.registerAnimation)('scale-in-x', scale_in_1.scaleInX);
|
|
114
|
+
(0, core_6.registerAnimation)('scale-in-y', scale_in_1.scaleInY);
|
|
115
|
+
(0, core_6.registerAnimation)('wave-in', wave_in_1.waveIn);
|
|
116
|
+
(0, core_6.registerAnimation)('zoom-in', zoom_1.zoomIn);
|
|
117
|
+
(0, core_6.registerAnimation)('zoom-out', zoom_1.zoomOut);
|
|
118
|
+
(0, core_6.registerAnimation)('position-update', position_update_1.positionUpdate);
|
|
119
|
+
(0, core_6.registerAnimation)('sector-path-update', sector_path_update_1.sectorPathUpdate);
|
|
120
|
+
(0, core_6.registerAnimation)('path-in', path_in_1.pathIn);
|
|
121
|
+
// 注册内置的 Facet
|
|
122
|
+
var core_7 = require("./core");
|
|
123
|
+
var circle_1 = (0, tslib_1.__importDefault)(require("./facet/circle"));
|
|
124
|
+
var list_1 = (0, tslib_1.__importDefault)(require("./facet/list"));
|
|
125
|
+
var matrix_1 = (0, tslib_1.__importDefault)(require("./facet/matrix"));
|
|
126
|
+
var mirror_1 = (0, tslib_1.__importDefault)(require("./facet/mirror"));
|
|
127
|
+
var rect_1 = (0, tslib_1.__importDefault)(require("./facet/rect"));
|
|
128
|
+
var tree_1 = (0, tslib_1.__importDefault)(require("./facet/tree"));
|
|
129
|
+
(0, core_7.registerFacet)('rect', rect_1.default);
|
|
130
|
+
(0, core_7.registerFacet)('mirror', mirror_1.default);
|
|
131
|
+
(0, core_7.registerFacet)('list', list_1.default);
|
|
132
|
+
(0, core_7.registerFacet)('matrix', matrix_1.default);
|
|
133
|
+
(0, core_7.registerFacet)('circle', circle_1.default);
|
|
134
|
+
(0, core_7.registerFacet)('tree', tree_1.default);
|
|
135
|
+
// 注册内置的 Component
|
|
136
|
+
var core_8 = require("./core");
|
|
137
|
+
var annotation_1 = (0, tslib_1.__importDefault)(require("./chart/controller/annotation"));
|
|
138
|
+
var axis_1 = (0, tslib_1.__importDefault)(require("./chart/controller/axis"));
|
|
139
|
+
var legend_1 = (0, tslib_1.__importDefault)(require("./chart/controller/legend"));
|
|
140
|
+
var slider_1 = (0, tslib_1.__importDefault)(require("./chart/controller/slider"));
|
|
141
|
+
var tooltip_1 = (0, tslib_1.__importDefault)(require("./chart/controller/tooltip"));
|
|
142
|
+
var scrollbar_1 = (0, tslib_1.__importDefault)(require("./chart/controller/scrollbar"));
|
|
143
|
+
// register build-in components
|
|
144
|
+
(0, core_8.registerComponentController)('axis', axis_1.default);
|
|
145
|
+
(0, core_8.registerComponentController)('legend', legend_1.default);
|
|
146
|
+
(0, core_8.registerComponentController)('tooltip', tooltip_1.default);
|
|
147
|
+
(0, core_8.registerComponentController)('annotation', annotation_1.default);
|
|
148
|
+
(0, core_8.registerComponentController)('slider', slider_1.default);
|
|
149
|
+
(0, core_8.registerComponentController)('scrollbar', scrollbar_1.default);
|
|
150
|
+
// 注册 Interaction Action
|
|
151
|
+
var core_9 = require("./core");
|
|
152
|
+
var active_region_1 = (0, tslib_1.__importDefault)(require("./interaction/action/active-region"));
|
|
153
|
+
var sibling_1 = (0, tslib_1.__importDefault)(require("./interaction/action/component/tooltip/sibling"));
|
|
154
|
+
var geometry_1 = (0, tslib_1.__importDefault)(require("./interaction/action/component/tooltip/geometry"));
|
|
155
|
+
var ellipsis_text_1 = (0, tslib_1.__importDefault)(require("./interaction/action/component/tooltip/ellipsis-text"));
|
|
156
|
+
var active_1 = (0, tslib_1.__importDefault)(require("./interaction/action/element/active"));
|
|
157
|
+
var link_by_color_1 = (0, tslib_1.__importDefault)(require("./interaction/action/element/link-by-color"));
|
|
158
|
+
var range_active_1 = (0, tslib_1.__importDefault)(require("./interaction/action/element/range-active"));
|
|
159
|
+
var single_active_1 = (0, tslib_1.__importDefault)(require("./interaction/action/element/single-active"));
|
|
160
|
+
var highlight_1 = (0, tslib_1.__importDefault)(require("./interaction/action/element/highlight"));
|
|
161
|
+
var highlight_by_color_1 = (0, tslib_1.__importDefault)(require("./interaction/action/element/highlight-by-color"));
|
|
162
|
+
var highlight_by_x_1 = (0, tslib_1.__importDefault)(require("./interaction/action/element/highlight-by-x"));
|
|
163
|
+
var range_highlight_1 = (0, tslib_1.__importStar)(require("./interaction/action/element/range-highlight"));
|
|
164
|
+
Object.defineProperty(exports, "ELEMENT_RANGE_HIGHLIGHT_EVENTS", { enumerable: true, get: function () { return range_highlight_1.ELEMENT_RANGE_HIGHLIGHT_EVENTS; } });
|
|
165
|
+
var single_highlight_1 = (0, tslib_1.__importDefault)(require("./interaction/action/element/single-highlight"));
|
|
166
|
+
var range_selected_1 = (0, tslib_1.__importDefault)(require("./interaction/action/element/range-selected"));
|
|
167
|
+
var selected_1 = (0, tslib_1.__importDefault)(require("./interaction/action/element/selected"));
|
|
168
|
+
var single_selected_1 = (0, tslib_1.__importDefault)(require("./interaction/action/element/single-selected"));
|
|
169
|
+
var list_active_1 = (0, tslib_1.__importDefault)(require("./interaction/action/component/list-active"));
|
|
170
|
+
var list_highlight_1 = (0, tslib_1.__importDefault)(require("./interaction/action/component/list-highlight"));
|
|
171
|
+
var list_selected_1 = (0, tslib_1.__importDefault)(require("./interaction/action/component/list-selected"));
|
|
172
|
+
var list_unchecked_1 = (0, tslib_1.__importDefault)(require("./interaction/action/component/list-unchecked"));
|
|
173
|
+
var list_checked_1 = (0, tslib_1.__importDefault)(require("./interaction/action/component/list-checked"));
|
|
174
|
+
var list_focus_1 = (0, tslib_1.__importDefault)(require("./interaction/action/component/list-focus"));
|
|
175
|
+
var list_radio_1 = (0, tslib_1.__importDefault)(require("./interaction/action/component/list-radio"));
|
|
176
|
+
var circle_2 = (0, tslib_1.__importDefault)(require("./interaction/action/mask/circle"));
|
|
177
|
+
var dim_rect_1 = (0, tslib_1.__importDefault)(require("./interaction/action/mask/dim-rect"));
|
|
178
|
+
var path_2 = (0, tslib_1.__importDefault)(require("./interaction/action/mask/path"));
|
|
179
|
+
var rect_2 = (0, tslib_1.__importDefault)(require("./interaction/action/mask/rect"));
|
|
180
|
+
var smooth_path_1 = (0, tslib_1.__importDefault)(require("./interaction/action/mask/smooth-path"));
|
|
181
|
+
var cursor_1 = (0, tslib_1.__importDefault)(require("./interaction/action/cursor"));
|
|
182
|
+
var filter_1 = (0, tslib_1.__importDefault)(require("./interaction/action/data/filter"));
|
|
183
|
+
var range_filter_1 = (0, tslib_1.__importStar)(require("./interaction/action/data/range-filter"));
|
|
184
|
+
Object.defineProperty(exports, "BRUSH_FILTER_EVENTS", { enumerable: true, get: function () { return range_filter_1.BRUSH_FILTER_EVENTS; } });
|
|
185
|
+
var sibling_filter_1 = (0, tslib_1.__importDefault)(require("./interaction/action/data/sibling-filter"));
|
|
186
|
+
var filter_2 = (0, tslib_1.__importDefault)(require("./interaction/action/element/filter"));
|
|
187
|
+
var sibling_filter_2 = (0, tslib_1.__importDefault)(require("./interaction/action/element/sibling-filter"));
|
|
188
|
+
var button_1 = (0, tslib_1.__importDefault)(require("./interaction/action/view/button"));
|
|
189
|
+
var drag_1 = (0, tslib_1.__importDefault)(require("./interaction/action/view/drag"));
|
|
190
|
+
var move_1 = (0, tslib_1.__importDefault)(require("./interaction/action/view/move"));
|
|
191
|
+
var scale_translate_1 = (0, tslib_1.__importDefault)(require("./interaction/action/view/scale-translate"));
|
|
192
|
+
var scale_zoom_1 = (0, tslib_1.__importDefault)(require("./interaction/action/view/scale-zoom"));
|
|
193
|
+
var mousewheel_scroll_1 = (0, tslib_1.__importDefault)(require("./interaction/action/view/mousewheel-scroll"));
|
|
194
|
+
(0, core_9.registerAction)('tooltip', geometry_1.default);
|
|
195
|
+
(0, core_9.registerAction)('sibling-tooltip', sibling_1.default);
|
|
196
|
+
(0, core_9.registerAction)('ellipsis-text', ellipsis_text_1.default);
|
|
197
|
+
(0, core_9.registerAction)('element-active', active_1.default);
|
|
198
|
+
(0, core_9.registerAction)('element-single-active', single_active_1.default);
|
|
199
|
+
(0, core_9.registerAction)('element-range-active', range_active_1.default);
|
|
200
|
+
(0, core_9.registerAction)('element-highlight', highlight_1.default);
|
|
201
|
+
(0, core_9.registerAction)('element-highlight-by-x', highlight_by_x_1.default);
|
|
202
|
+
(0, core_9.registerAction)('element-highlight-by-color', highlight_by_color_1.default);
|
|
203
|
+
(0, core_9.registerAction)('element-single-highlight', single_highlight_1.default);
|
|
204
|
+
(0, core_9.registerAction)('element-range-highlight', range_highlight_1.default);
|
|
205
|
+
(0, core_9.registerAction)('element-sibling-highlight', range_highlight_1.default, {
|
|
206
|
+
effectSiblings: true,
|
|
207
|
+
effectByRecord: true,
|
|
208
|
+
});
|
|
209
|
+
(0, core_9.registerAction)('element-selected', selected_1.default);
|
|
210
|
+
(0, core_9.registerAction)('element-single-selected', single_selected_1.default);
|
|
211
|
+
(0, core_9.registerAction)('element-range-selected', range_selected_1.default);
|
|
212
|
+
(0, core_9.registerAction)('element-link-by-color', link_by_color_1.default);
|
|
213
|
+
(0, core_9.registerAction)('active-region', active_region_1.default);
|
|
214
|
+
(0, core_9.registerAction)('list-active', list_active_1.default);
|
|
215
|
+
(0, core_9.registerAction)('list-selected', list_selected_1.default);
|
|
216
|
+
(0, core_9.registerAction)('list-highlight', list_highlight_1.default);
|
|
217
|
+
(0, core_9.registerAction)('list-unchecked', list_unchecked_1.default);
|
|
218
|
+
(0, core_9.registerAction)('list-checked', list_checked_1.default);
|
|
219
|
+
(0, core_9.registerAction)('list-focus', list_focus_1.default);
|
|
220
|
+
(0, core_9.registerAction)('list-radio', list_radio_1.default);
|
|
221
|
+
(0, core_9.registerAction)('legend-item-highlight', list_highlight_1.default, {
|
|
222
|
+
componentNames: ['legend'],
|
|
223
|
+
});
|
|
224
|
+
(0, core_9.registerAction)('axis-label-highlight', list_highlight_1.default, {
|
|
225
|
+
componentNames: ['axis'],
|
|
226
|
+
});
|
|
227
|
+
(0, core_9.registerAction)('rect-mask', rect_2.default);
|
|
228
|
+
(0, core_9.registerAction)('x-rect-mask', dim_rect_1.default, { dim: 'x' });
|
|
229
|
+
(0, core_9.registerAction)('y-rect-mask', dim_rect_1.default, { dim: 'y' });
|
|
230
|
+
(0, core_9.registerAction)('circle-mask', circle_2.default);
|
|
231
|
+
(0, core_9.registerAction)('path-mask', path_2.default);
|
|
232
|
+
(0, core_9.registerAction)('smooth-path-mask', smooth_path_1.default);
|
|
233
|
+
(0, core_9.registerAction)('cursor', cursor_1.default);
|
|
234
|
+
(0, core_9.registerAction)('data-filter', filter_1.default);
|
|
235
|
+
(0, core_9.registerAction)('brush', range_filter_1.default);
|
|
236
|
+
(0, core_9.registerAction)('brush-x', range_filter_1.default, { dims: ['x'] });
|
|
237
|
+
(0, core_9.registerAction)('brush-y', range_filter_1.default, { dims: ['y'] });
|
|
238
|
+
(0, core_9.registerAction)('sibling-filter', sibling_filter_1.default);
|
|
239
|
+
(0, core_9.registerAction)('sibling-x-filter', sibling_filter_1.default);
|
|
240
|
+
(0, core_9.registerAction)('sibling-y-filter', sibling_filter_1.default);
|
|
241
|
+
(0, core_9.registerAction)('element-filter', filter_2.default);
|
|
242
|
+
(0, core_9.registerAction)('element-sibling-filter', sibling_filter_2.default);
|
|
243
|
+
(0, core_9.registerAction)('element-sibling-filter-record', sibling_filter_2.default, { byRecord: true });
|
|
244
|
+
(0, core_9.registerAction)('view-drag', drag_1.default);
|
|
245
|
+
(0, core_9.registerAction)('view-move', move_1.default);
|
|
246
|
+
(0, core_9.registerAction)('scale-translate', scale_translate_1.default);
|
|
247
|
+
(0, core_9.registerAction)('scale-zoom', scale_zoom_1.default);
|
|
248
|
+
(0, core_9.registerAction)('reset-button', button_1.default, {
|
|
249
|
+
name: 'reset-button',
|
|
250
|
+
text: 'reset',
|
|
251
|
+
});
|
|
252
|
+
(0, core_9.registerAction)('mousewheel-scroll', mousewheel_scroll_1.default);
|
|
253
|
+
// 注册默认的 Interaction 交互行为
|
|
254
|
+
var core_10 = require("./core");
|
|
255
|
+
function isPointInView(context) {
|
|
256
|
+
return context.isInPlot();
|
|
257
|
+
}
|
|
258
|
+
// 注册 tooltip 的 interaction
|
|
259
|
+
(0, core_10.registerInteraction)('tooltip', {
|
|
260
|
+
start: [
|
|
261
|
+
{ trigger: 'plot:mousemove', action: 'tooltip:show', throttle: { wait: 50, leading: true, trailing: false } },
|
|
262
|
+
{ trigger: 'plot:touchmove', action: 'tooltip:show', throttle: { wait: 50, leading: true, trailing: false } },
|
|
263
|
+
],
|
|
264
|
+
end: [
|
|
265
|
+
{ trigger: 'plot:mouseleave', action: 'tooltip:hide' },
|
|
266
|
+
{ trigger: 'plot:leave', action: 'tooltip:hide' },
|
|
267
|
+
{ trigger: 'plot:touchend', action: 'tooltip:hide' },
|
|
268
|
+
],
|
|
269
|
+
});
|
|
270
|
+
(0, core_10.registerInteraction)('ellipsis-text', {
|
|
271
|
+
start: [
|
|
272
|
+
{
|
|
273
|
+
trigger: 'legend-item-name:mousemove',
|
|
274
|
+
action: 'ellipsis-text:show',
|
|
275
|
+
throttle: { wait: 50, leading: true, trailing: false },
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
trigger: 'legend-item-name:touchstart',
|
|
279
|
+
action: 'ellipsis-text:show',
|
|
280
|
+
throttle: { wait: 50, leading: true, trailing: false },
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
trigger: 'axis-label:mousemove',
|
|
284
|
+
action: 'ellipsis-text:show',
|
|
285
|
+
throttle: { wait: 50, leading: true, trailing: false },
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
trigger: 'axis-label:touchstart',
|
|
289
|
+
action: 'ellipsis-text:show',
|
|
290
|
+
throttle: { wait: 50, leading: true, trailing: false },
|
|
291
|
+
},
|
|
292
|
+
],
|
|
293
|
+
end: [
|
|
294
|
+
{ trigger: 'legend-item-name:mouseleave', action: 'ellipsis-text:hide' },
|
|
295
|
+
{ trigger: 'legend-item-name:touchend', action: 'ellipsis-text:hide' },
|
|
296
|
+
{ trigger: 'axis-label:mouseleave', action: 'ellipsis-text:hide' },
|
|
297
|
+
{ trigger: 'axis-label:touchend', action: 'ellipsis-text:hide' },
|
|
298
|
+
],
|
|
299
|
+
});
|
|
300
|
+
// 移动到 element 上 active
|
|
301
|
+
(0, core_10.registerInteraction)('element-active', {
|
|
302
|
+
start: [{ trigger: 'element:mouseenter', action: 'element-active:active' }],
|
|
303
|
+
end: [{ trigger: 'element:mouseleave', action: 'element-active:reset' }],
|
|
304
|
+
});
|
|
305
|
+
// 点击选中,允许取消
|
|
306
|
+
(0, core_10.registerInteraction)('element-selected', {
|
|
307
|
+
start: [{ trigger: 'element:click', action: 'element-selected:toggle' }],
|
|
308
|
+
});
|
|
309
|
+
// hover highlight,允许取消
|
|
310
|
+
(0, core_10.registerInteraction)('element-highlight', {
|
|
311
|
+
start: [{ trigger: 'element:mouseenter', action: 'element-highlight:highlight' }],
|
|
312
|
+
end: [{ trigger: 'element:mouseleave', action: 'element-highlight:reset' }],
|
|
313
|
+
});
|
|
314
|
+
// hover highlight by x,允许取消
|
|
315
|
+
(0, core_10.registerInteraction)('element-highlight-by-x', {
|
|
316
|
+
start: [{ trigger: 'element:mouseenter', action: 'element-highlight-by-x:highlight' }],
|
|
317
|
+
end: [{ trigger: 'element:mouseleave', action: 'element-highlight-by-x:reset' }],
|
|
318
|
+
});
|
|
319
|
+
// hover highlight by y,允许取消
|
|
320
|
+
(0, core_10.registerInteraction)('element-highlight-by-color', {
|
|
321
|
+
start: [{ trigger: 'element:mouseenter', action: 'element-highlight-by-color:highlight' }],
|
|
322
|
+
end: [{ trigger: 'element:mouseleave', action: 'element-highlight-by-color:reset' }],
|
|
323
|
+
});
|
|
324
|
+
// legend hover,element active
|
|
325
|
+
(0, core_10.registerInteraction)('legend-active', {
|
|
326
|
+
start: [{ trigger: 'legend-item:mouseenter', action: ['list-active:active', 'element-active:active'] }],
|
|
327
|
+
end: [{ trigger: 'legend-item:mouseleave', action: ['list-active:reset', 'element-active:reset'] }],
|
|
328
|
+
});
|
|
329
|
+
// legend hover,element active
|
|
330
|
+
(0, core_10.registerInteraction)('legend-highlight', {
|
|
331
|
+
start: [
|
|
332
|
+
{ trigger: 'legend-item:mouseenter', action: ['legend-item-highlight:highlight', 'element-highlight:highlight'] },
|
|
333
|
+
],
|
|
334
|
+
end: [{ trigger: 'legend-item:mouseleave', action: ['legend-item-highlight:reset', 'element-highlight:reset'] }],
|
|
335
|
+
});
|
|
336
|
+
// legend hover,element active
|
|
337
|
+
(0, core_10.registerInteraction)('axis-label-highlight', {
|
|
338
|
+
start: [
|
|
339
|
+
{ trigger: 'axis-label:mouseenter', action: ['axis-label-highlight:highlight', 'element-highlight:highlight'] },
|
|
340
|
+
],
|
|
341
|
+
end: [{ trigger: 'axis-label:mouseleave', action: ['axis-label-highlight:reset', 'element-highlight:reset'] }],
|
|
342
|
+
});
|
|
343
|
+
// legend hover,element active
|
|
344
|
+
(0, core_10.registerInteraction)('element-list-highlight', {
|
|
345
|
+
start: [{ trigger: 'element:mouseenter', action: ['list-highlight:highlight', 'element-highlight:highlight'] }],
|
|
346
|
+
end: [{ trigger: 'element:mouseleave', action: ['list-highlight:reset', 'element-highlight:reset'] }],
|
|
347
|
+
});
|
|
348
|
+
// 框选
|
|
349
|
+
(0, core_10.registerInteraction)('element-range-highlight', {
|
|
350
|
+
showEnable: [
|
|
351
|
+
{ trigger: 'plot:mouseenter', action: 'cursor:crosshair' },
|
|
352
|
+
{ trigger: 'mask:mouseenter', action: 'cursor:move' },
|
|
353
|
+
{ trigger: 'plot:mouseleave', action: 'cursor:default' },
|
|
354
|
+
{ trigger: 'mask:mouseleave', action: 'cursor:crosshair' },
|
|
355
|
+
],
|
|
356
|
+
start: [
|
|
357
|
+
{
|
|
358
|
+
trigger: 'plot:mousedown',
|
|
359
|
+
isEnable: function (context) {
|
|
360
|
+
// 不要点击在 mask 上重新开始
|
|
361
|
+
return !context.isInShape('mask');
|
|
362
|
+
},
|
|
363
|
+
action: ['rect-mask:start', 'rect-mask:show'],
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
trigger: 'mask:dragstart',
|
|
367
|
+
action: ['rect-mask:moveStart'],
|
|
368
|
+
},
|
|
369
|
+
],
|
|
370
|
+
processing: [
|
|
371
|
+
{
|
|
372
|
+
trigger: 'plot:mousemove',
|
|
373
|
+
action: ['rect-mask:resize'],
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
trigger: 'mask:drag',
|
|
377
|
+
action: ['rect-mask:move'],
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
trigger: 'mask:change',
|
|
381
|
+
action: ['element-range-highlight:highlight'],
|
|
382
|
+
},
|
|
383
|
+
],
|
|
384
|
+
end: [
|
|
385
|
+
{ trigger: 'plot:mouseup', action: ['rect-mask:end'] },
|
|
386
|
+
{ trigger: 'mask:dragend', action: ['rect-mask:moveEnd'] },
|
|
387
|
+
{
|
|
388
|
+
trigger: 'document:mouseup',
|
|
389
|
+
isEnable: function (context) {
|
|
390
|
+
return !context.isInPlot();
|
|
391
|
+
},
|
|
392
|
+
action: ['element-range-highlight:clear', 'rect-mask:end', 'rect-mask:hide'],
|
|
393
|
+
},
|
|
394
|
+
],
|
|
395
|
+
rollback: [{ trigger: 'dblclick', action: ['element-range-highlight:clear', 'rect-mask:hide'] }],
|
|
396
|
+
});
|
|
397
|
+
(0, core_10.registerInteraction)('brush', {
|
|
398
|
+
showEnable: [
|
|
399
|
+
{ trigger: 'plot:mouseenter', action: 'cursor:crosshair' },
|
|
400
|
+
{ trigger: 'plot:mouseleave', action: 'cursor:default' },
|
|
401
|
+
],
|
|
402
|
+
start: [
|
|
403
|
+
{
|
|
404
|
+
trigger: 'mousedown',
|
|
405
|
+
isEnable: isPointInView,
|
|
406
|
+
action: ['brush:start', 'rect-mask:start', 'rect-mask:show'],
|
|
407
|
+
},
|
|
408
|
+
],
|
|
409
|
+
processing: [
|
|
410
|
+
{
|
|
411
|
+
trigger: 'mousemove',
|
|
412
|
+
isEnable: isPointInView,
|
|
413
|
+
action: ['rect-mask:resize'],
|
|
414
|
+
},
|
|
415
|
+
],
|
|
416
|
+
end: [
|
|
417
|
+
{
|
|
418
|
+
trigger: 'mouseup',
|
|
419
|
+
isEnable: isPointInView,
|
|
420
|
+
action: ['brush:filter', 'brush:end', 'rect-mask:end', 'rect-mask:hide', 'reset-button:show'],
|
|
421
|
+
},
|
|
422
|
+
],
|
|
423
|
+
rollback: [{ trigger: 'reset-button:click', action: ['brush:reset', 'reset-button:hide', 'cursor:crosshair'] }],
|
|
424
|
+
});
|
|
425
|
+
(0, core_10.registerInteraction)('brush-visible', {
|
|
426
|
+
showEnable: [
|
|
427
|
+
{ trigger: 'plot:mouseenter', action: 'cursor:crosshair' },
|
|
428
|
+
{ trigger: 'plot:mouseleave', action: 'cursor:default' },
|
|
429
|
+
],
|
|
430
|
+
start: [
|
|
431
|
+
{
|
|
432
|
+
trigger: 'plot:mousedown',
|
|
433
|
+
action: ['rect-mask:start', 'rect-mask:show'],
|
|
434
|
+
},
|
|
435
|
+
],
|
|
436
|
+
processing: [
|
|
437
|
+
{
|
|
438
|
+
trigger: 'plot:mousemove',
|
|
439
|
+
action: ['rect-mask:resize'],
|
|
440
|
+
},
|
|
441
|
+
{ trigger: 'mask:change', action: ['element-range-highlight:highlight'] },
|
|
442
|
+
],
|
|
443
|
+
end: [
|
|
444
|
+
{
|
|
445
|
+
trigger: 'plot:mouseup',
|
|
446
|
+
action: ['rect-mask:end', 'rect-mask:hide', 'element-filter:filter', 'element-range-highlight:clear'],
|
|
447
|
+
},
|
|
448
|
+
],
|
|
449
|
+
rollback: [
|
|
450
|
+
{
|
|
451
|
+
trigger: 'dblclick',
|
|
452
|
+
action: ['element-filter:clear'],
|
|
453
|
+
},
|
|
454
|
+
],
|
|
455
|
+
});
|
|
456
|
+
(0, core_10.registerInteraction)('brush-x', {
|
|
457
|
+
showEnable: [
|
|
458
|
+
{ trigger: 'plot:mouseenter', action: 'cursor:crosshair' },
|
|
459
|
+
{ trigger: 'plot:mouseleave', action: 'cursor:default' },
|
|
460
|
+
],
|
|
461
|
+
start: [
|
|
462
|
+
{
|
|
463
|
+
trigger: 'mousedown',
|
|
464
|
+
isEnable: isPointInView,
|
|
465
|
+
action: ['brush-x:start', 'x-rect-mask:start', 'x-rect-mask:show'],
|
|
466
|
+
},
|
|
467
|
+
],
|
|
468
|
+
processing: [
|
|
469
|
+
{
|
|
470
|
+
trigger: 'mousemove',
|
|
471
|
+
isEnable: isPointInView,
|
|
472
|
+
action: ['x-rect-mask:resize'],
|
|
473
|
+
},
|
|
474
|
+
],
|
|
475
|
+
end: [
|
|
476
|
+
{
|
|
477
|
+
trigger: 'mouseup',
|
|
478
|
+
isEnable: isPointInView,
|
|
479
|
+
action: ['brush-x:filter', 'brush-x:end', 'x-rect-mask:end', 'x-rect-mask:hide'],
|
|
480
|
+
},
|
|
481
|
+
],
|
|
482
|
+
rollback: [{ trigger: 'dblclick', action: ['brush-x:reset'] }],
|
|
483
|
+
});
|
|
484
|
+
(0, core_10.registerInteraction)('element-path-highlight', {
|
|
485
|
+
showEnable: [
|
|
486
|
+
{ trigger: 'plot:mouseenter', action: 'cursor:crosshair' },
|
|
487
|
+
{ trigger: 'plot:mouseleave', action: 'cursor:default' },
|
|
488
|
+
],
|
|
489
|
+
start: [
|
|
490
|
+
{ trigger: 'mousedown', isEnable: isPointInView, action: 'path-mask:start' },
|
|
491
|
+
{ trigger: 'mousedown', isEnable: isPointInView, action: 'path-mask:show' },
|
|
492
|
+
],
|
|
493
|
+
processing: [{ trigger: 'mousemove', action: 'path-mask:addPoint' }],
|
|
494
|
+
end: [{ trigger: 'mouseup', action: 'path-mask:end' }],
|
|
495
|
+
rollback: [{ trigger: 'dblclick', action: 'path-mask:hide' }],
|
|
496
|
+
});
|
|
497
|
+
// 点击选中,允许取消
|
|
498
|
+
(0, core_10.registerInteraction)('element-single-selected', {
|
|
499
|
+
start: [{ trigger: 'element:click', action: 'element-single-selected:toggle' }],
|
|
500
|
+
});
|
|
501
|
+
// 筛选数据
|
|
502
|
+
(0, core_10.registerInteraction)('legend-filter', {
|
|
503
|
+
showEnable: [
|
|
504
|
+
{ trigger: 'legend-item:mouseenter', action: ['cursor:pointer', 'list-radio:show'] },
|
|
505
|
+
{ trigger: 'legend-item:mouseleave', action: ['cursor:default', 'list-radio:hide'] },
|
|
506
|
+
],
|
|
507
|
+
start: [
|
|
508
|
+
{
|
|
509
|
+
trigger: 'legend-item:click',
|
|
510
|
+
isEnable: function (context) {
|
|
511
|
+
return !context.isInShape('legend-item-radio');
|
|
512
|
+
},
|
|
513
|
+
action: ['list-unchecked:toggle', 'data-filter:filter', 'list-radio:show'],
|
|
514
|
+
},
|
|
515
|
+
// 正反选数据: 只有当 radio === truthy 的时候才会有 legend-item-radio 这个元素
|
|
516
|
+
{
|
|
517
|
+
trigger: 'legend-item-radio:mouseenter',
|
|
518
|
+
action: ['list-radio:showTip'],
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
trigger: 'legend-item-radio:mouseleave',
|
|
522
|
+
action: ['list-radio:hideTip'],
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
trigger: 'legend-item-radio:click',
|
|
526
|
+
action: ['list-focus:toggle', 'data-filter:filter', 'list-radio:show'],
|
|
527
|
+
},
|
|
528
|
+
],
|
|
529
|
+
});
|
|
530
|
+
// 筛选数据
|
|
531
|
+
(0, core_10.registerInteraction)('continuous-filter', {
|
|
532
|
+
start: [{ trigger: 'legend:valuechanged', action: 'data-filter:filter' }],
|
|
533
|
+
});
|
|
534
|
+
// 筛选数据
|
|
535
|
+
(0, core_10.registerInteraction)('continuous-visible-filter', {
|
|
536
|
+
start: [{ trigger: 'legend:valuechanged', action: 'element-filter:filter' }],
|
|
537
|
+
});
|
|
538
|
+
// 筛选图形
|
|
539
|
+
(0, core_10.registerInteraction)('legend-visible-filter', {
|
|
540
|
+
showEnable: [
|
|
541
|
+
{ trigger: 'legend-item:mouseenter', action: 'cursor:pointer' },
|
|
542
|
+
{ trigger: 'legend-item:mouseleave', action: 'cursor:default' },
|
|
543
|
+
],
|
|
544
|
+
start: [{ trigger: 'legend-item:click', action: ['list-unchecked:toggle', 'element-filter:filter'] }],
|
|
545
|
+
});
|
|
546
|
+
// 出现背景框
|
|
547
|
+
(0, core_10.registerInteraction)('active-region', {
|
|
548
|
+
start: [{ trigger: 'plot:mousemove', action: 'active-region:show' }],
|
|
549
|
+
end: [{ trigger: 'plot:mouseleave', action: 'active-region:hide' }],
|
|
550
|
+
});
|
|
551
|
+
function isWheelDown(event) {
|
|
552
|
+
event.gEvent.preventDefault();
|
|
553
|
+
return event.gEvent.originalEvent.deltaY > 0;
|
|
554
|
+
}
|
|
555
|
+
(0, core_10.registerInteraction)('view-zoom', {
|
|
556
|
+
start: [
|
|
557
|
+
{
|
|
558
|
+
trigger: 'plot:mousewheel',
|
|
559
|
+
isEnable: function (context) {
|
|
560
|
+
return isWheelDown(context.event);
|
|
561
|
+
},
|
|
562
|
+
action: 'scale-zoom:zoomOut',
|
|
563
|
+
throttle: { wait: 100, leading: true, trailing: false },
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
trigger: 'plot:mousewheel',
|
|
567
|
+
isEnable: function (context) {
|
|
568
|
+
return !isWheelDown(context.event);
|
|
569
|
+
},
|
|
570
|
+
action: 'scale-zoom:zoomIn',
|
|
571
|
+
throttle: { wait: 100, leading: true, trailing: false },
|
|
572
|
+
},
|
|
573
|
+
],
|
|
574
|
+
});
|
|
575
|
+
(0, core_10.registerInteraction)('sibling-tooltip', {
|
|
576
|
+
start: [{ trigger: 'plot:mousemove', action: 'sibling-tooltip:show' }],
|
|
577
|
+
end: [{ trigger: 'plot:mouseleave', action: 'sibling-tooltip:hide' }],
|
|
578
|
+
});
|
|
579
|
+
(0, core_10.registerInteraction)('plot-mousewheel-scroll', {
|
|
580
|
+
start: [{ trigger: 'plot:mousewheel', action: 'mousewheel-scroll:scroll' }],
|
|
581
|
+
});
|
|
582
|
+
// 暴露一些常量
|
|
583
|
+
var constant_1 = require("./constant");
|
|
584
|
+
Object.defineProperty(exports, "VIEW_LIFE_CIRCLE", { enumerable: true, get: function () { return constant_1.VIEW_LIFE_CIRCLE; } });
|
|
585
|
+
(0, tslib_1.__exportStar)(require("./core"), exports);
|
|
586
|
+
//# sourceMappingURL=index.js.map
|