@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
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview 设置画布的箭头,参看:https://www.w3school.com.cn/jsref/prop_style_cursor.asp
|
|
4
|
+
* @author dxq613
|
|
5
|
+
*/
|
|
6
|
+
import Action from './base';
|
|
7
|
+
/**
|
|
8
|
+
* 鼠标形状的 Action
|
|
9
|
+
* @ignore
|
|
10
|
+
*/
|
|
11
|
+
var CursorAction = /** @class */ (function (_super) {
|
|
12
|
+
__extends(CursorAction, _super);
|
|
13
|
+
function CursorAction() {
|
|
14
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
15
|
+
}
|
|
16
|
+
CursorAction.prototype.setCursor = function (cursor) {
|
|
17
|
+
var view = this.context.view;
|
|
18
|
+
view.getCanvas().setCursor(cursor);
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* 默认光标(通常是一个箭头)
|
|
22
|
+
*/
|
|
23
|
+
CursorAction.prototype.default = function () {
|
|
24
|
+
this.setCursor('default');
|
|
25
|
+
};
|
|
26
|
+
/** 光标呈现为指示链接的指针(一只手) */
|
|
27
|
+
CursorAction.prototype.pointer = function () {
|
|
28
|
+
this.setCursor('pointer');
|
|
29
|
+
};
|
|
30
|
+
/** 此光标指示某对象可被移动。 */
|
|
31
|
+
CursorAction.prototype.move = function () {
|
|
32
|
+
this.setCursor('move');
|
|
33
|
+
};
|
|
34
|
+
/** 光标呈现为十字线。 */
|
|
35
|
+
CursorAction.prototype.crosshair = function () {
|
|
36
|
+
this.setCursor('crosshair');
|
|
37
|
+
};
|
|
38
|
+
/** 此光标指示程序正忙(通常是一只表或沙漏)。 */
|
|
39
|
+
CursorAction.prototype.wait = function () {
|
|
40
|
+
this.setCursor('wait');
|
|
41
|
+
};
|
|
42
|
+
/** 此光标指示可用的帮助(通常是一个问号或一个气球)。 */
|
|
43
|
+
CursorAction.prototype.help = function () {
|
|
44
|
+
this.setCursor('help');
|
|
45
|
+
};
|
|
46
|
+
/** 此光标指示文本。 */
|
|
47
|
+
CursorAction.prototype.text = function () {
|
|
48
|
+
this.setCursor('text');
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* 此光标指示矩形框的边缘可被向右(东)移动。
|
|
52
|
+
*/
|
|
53
|
+
CursorAction.prototype.eResize = function () {
|
|
54
|
+
this.setCursor('e-resize');
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* 此光标指示矩形框的边缘可被向左(西)移动。
|
|
58
|
+
*/
|
|
59
|
+
CursorAction.prototype.wResize = function () {
|
|
60
|
+
this.setCursor('w-resize');
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* 此光标指示矩形框的边缘可被向上(北)移动。
|
|
64
|
+
*/
|
|
65
|
+
CursorAction.prototype.nResize = function () {
|
|
66
|
+
this.setCursor('n-resize');
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* 此光标指示矩形框的边缘可被向下(南)移动。
|
|
70
|
+
*/
|
|
71
|
+
CursorAction.prototype.sResize = function () {
|
|
72
|
+
this.setCursor('s-resize');
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* 光标指示可移动的方向 右上方(东北)
|
|
76
|
+
*/
|
|
77
|
+
CursorAction.prototype.neResize = function () {
|
|
78
|
+
this.setCursor('ne-resize');
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* 光标指示可移动的方向 左上方(西北)
|
|
82
|
+
*/
|
|
83
|
+
CursorAction.prototype.nwResize = function () {
|
|
84
|
+
this.setCursor('nw-resize');
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* 光标指示可移动的方向右下方(东南)
|
|
88
|
+
*/
|
|
89
|
+
CursorAction.prototype.seResize = function () {
|
|
90
|
+
this.setCursor('se-resize');
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* 光标指示可移动的方向左下方(西南)
|
|
94
|
+
*/
|
|
95
|
+
CursorAction.prototype.swResize = function () {
|
|
96
|
+
this.setCursor('sw-resize');
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* 光标指示可以在上下方向移动
|
|
100
|
+
*/
|
|
101
|
+
CursorAction.prototype.nsResize = function () {
|
|
102
|
+
this.setCursor('ns-resize');
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* 光标指示可以在左右方向移动
|
|
106
|
+
*/
|
|
107
|
+
CursorAction.prototype.ewResize = function () {
|
|
108
|
+
this.setCursor('ew-resize');
|
|
109
|
+
};
|
|
110
|
+
return CursorAction;
|
|
111
|
+
}(Action));
|
|
112
|
+
export default CursorAction;
|
|
113
|
+
//# sourceMappingURL=cursor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cursor.js","sourceRoot":"","sources":["../../../src/interaction/action/cursor.ts"],"names":[],"mappings":";AAAA;;;GAGG;AACH,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B;;;GAGG;AACH;IAA2B,gCAAM;IAAjC;;IAwGA,CAAC;IAvGS,gCAAS,GAAjB,UAAkB,MAAM;QACtB,IAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;QAC/B,IAAI,CAAC,SAAS,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IAED;;OAEG;IACI,8BAAO,GAAd;QACE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IAC5B,CAAC;IAED,wBAAwB;IACjB,8BAAO,GAAd;QACE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IAC5B,CAAC;IACD,oBAAoB;IACb,2BAAI,GAAX;QACE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC;IACD,gBAAgB;IACT,gCAAS,GAAhB;QACE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC9B,CAAC;IACD,4BAA4B;IACrB,2BAAI,GAAX;QACE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC;IAED,gCAAgC;IACzB,2BAAI,GAAX;QACE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC;IAED,eAAe;IACR,2BAAI,GAAX;QACE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC;IAED;;OAEG;IACI,8BAAO,GAAd;QACE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC7B,CAAC;IAED;;OAEG;IACI,8BAAO,GAAd;QACE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC7B,CAAC;IAED;;OAEG;IACI,8BAAO,GAAd;QACE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC7B,CAAC;IAED;;OAEG;IACI,8BAAO,GAAd;QACE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC7B,CAAC;IACD;;OAEG;IACI,+BAAQ,GAAf;QACE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC9B,CAAC;IACD;;OAEG;IACI,+BAAQ,GAAf;QACE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC9B,CAAC;IACD;;OAEG;IACI,+BAAQ,GAAf;QACE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC9B,CAAC;IACD;;OAEG;IACI,+BAAQ,GAAf;QACE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC9B,CAAC;IAED;;OAEG;IACI,+BAAQ,GAAf;QACE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC9B,CAAC;IACD;;OAEG;IACI,+BAAQ,GAAf;QACE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC9B,CAAC;IACH,mBAAC;AAAD,CAAC,AAxGD,CAA2B,MAAM,GAwGhC;AAED,eAAe,YAAY,CAAC","sourcesContent":["/**\n * @fileoverview 设置画布的箭头,参看:https://www.w3school.com.cn/jsref/prop_style_cursor.asp\n * @author dxq613\n */\nimport Action from './base';\n\n/**\n * 鼠标形状的 Action\n * @ignore\n */\nclass CursorAction extends Action {\n private setCursor(cursor) {\n const view = this.context.view;\n view.getCanvas().setCursor(cursor);\n }\n\n /**\n * 默认光标(通常是一个箭头)\n */\n public default() {\n this.setCursor('default');\n }\n\n /** 光标呈现为指示链接的指针(一只手) */\n public pointer() {\n this.setCursor('pointer');\n }\n /** 此光标指示某对象可被移动。 */\n public move() {\n this.setCursor('move');\n }\n /** 光标呈现为十字线。 */\n public crosshair() {\n this.setCursor('crosshair');\n }\n /** 此光标指示程序正忙(通常是一只表或沙漏)。 */\n public wait() {\n this.setCursor('wait');\n }\n\n /** 此光标指示可用的帮助(通常是一个问号或一个气球)。 */\n public help() {\n this.setCursor('help');\n }\n\n /** 此光标指示文本。 */\n public text() {\n this.setCursor('text');\n }\n\n /**\n * 此光标指示矩形框的边缘可被向右(东)移动。\n */\n public eResize() {\n this.setCursor('e-resize');\n }\n\n /**\n * 此光标指示矩形框的边缘可被向左(西)移动。\n */\n public wResize() {\n this.setCursor('w-resize');\n }\n\n /**\n * 此光标指示矩形框的边缘可被向上(北)移动。\n */\n public nResize() {\n this.setCursor('n-resize');\n }\n\n /**\n * 此光标指示矩形框的边缘可被向下(南)移动。\n */\n public sResize() {\n this.setCursor('s-resize');\n }\n /**\n * 光标指示可移动的方向 右上方(东北)\n */\n public neResize() {\n this.setCursor('ne-resize');\n }\n /**\n * 光标指示可移动的方向 左上方(西北)\n */\n public nwResize() {\n this.setCursor('nw-resize');\n }\n /**\n * 光标指示可移动的方向右下方(东南)\n */\n public seResize() {\n this.setCursor('se-resize');\n }\n /**\n * 光标指示可移动的方向左下方(西南)\n */\n public swResize() {\n this.setCursor('sw-resize');\n }\n\n /**\n * 光标指示可以在上下方向移动\n */\n public nsResize() {\n this.setCursor('ns-resize');\n }\n /**\n * 光标指示可以在左右方向移动\n */\n public ewResize() {\n this.setCursor('ew-resize');\n }\n}\n\nexport default CursorAction;\n"]}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { each } from '@antv/util';
|
|
3
|
+
import Action from '../base';
|
|
4
|
+
import { getDelegationObject, getScaleByField, isList, isSlider } from '../util';
|
|
5
|
+
/**
|
|
6
|
+
* 数据过滤。
|
|
7
|
+
* @ignore
|
|
8
|
+
*/
|
|
9
|
+
var DataFilter = /** @class */ (function (_super) {
|
|
10
|
+
__extends(DataFilter, _super);
|
|
11
|
+
function DataFilter() {
|
|
12
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
13
|
+
}
|
|
14
|
+
DataFilter.prototype.filterView = function (view, field, filter) {
|
|
15
|
+
var _this = this;
|
|
16
|
+
// 只有存在这个 scale 时才生效
|
|
17
|
+
if (view.getScaleByField(field)) {
|
|
18
|
+
view.filter(field, filter);
|
|
19
|
+
}
|
|
20
|
+
if (view.views && view.views.length) {
|
|
21
|
+
each(view.views, function (subView) {
|
|
22
|
+
_this.filterView(subView, field, filter);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* 过滤数据
|
|
28
|
+
*/
|
|
29
|
+
DataFilter.prototype.filter = function () {
|
|
30
|
+
var delegateObject = getDelegationObject(this.context);
|
|
31
|
+
if (delegateObject) {
|
|
32
|
+
var view = this.context.view;
|
|
33
|
+
var component = delegateObject.component;
|
|
34
|
+
var field = component.get('field');
|
|
35
|
+
// 列表类的组件能够触发
|
|
36
|
+
if (isList(delegateObject)) {
|
|
37
|
+
if (field) {
|
|
38
|
+
var unCheckedItems = component.getItemsByState('unchecked');
|
|
39
|
+
var scale_1 = getScaleByField(view, field);
|
|
40
|
+
var names_1 = unCheckedItems.map(function (item) { return item.name; });
|
|
41
|
+
if (names_1.length) {
|
|
42
|
+
this.filterView(view, field, function (value) {
|
|
43
|
+
var text = scale_1.getText(value);
|
|
44
|
+
return !names_1.includes(text);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
this.filterView(view, field, null);
|
|
49
|
+
}
|
|
50
|
+
view.render(true);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
else if (isSlider(delegateObject)) {
|
|
54
|
+
var range = component.getValue();
|
|
55
|
+
var min_1 = range[0], max_1 = range[1];
|
|
56
|
+
this.filterView(view, field, function (value) {
|
|
57
|
+
return value >= min_1 && value <= max_1;
|
|
58
|
+
});
|
|
59
|
+
view.render(true);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
return DataFilter;
|
|
64
|
+
}(Action));
|
|
65
|
+
export default DataFilter;
|
|
66
|
+
//# sourceMappingURL=filter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter.js","sourceRoot":"","sources":["../../../../src/interaction/action/data/filter.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,OAAO,MAAM,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEjF;;;GAGG;AACH;IAAyB,8BAAM;IAA/B;;IA+CA,CAAC;IA9CS,+BAAU,GAAlB,UAAmB,IAAU,EAAE,KAAK,EAAE,MAAM;QAA5C,iBAUC;QATC,oBAAoB;QACpB,IAAI,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE;YAC/B,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;SAC5B;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;YACnC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,UAAC,OAAO;gBACvB,KAAI,CAAC,UAAU,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;YAC1C,CAAC,CAAC,CAAC;SACJ;IACH,CAAC;IACD;;OAEG;IACI,2BAAM,GAAb;QACE,IAAM,cAAc,GAAG,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,IAAI,cAAc,EAAE;YAClB,IAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;YACvB,IAAA,SAAS,GAAK,cAAc,UAAnB,CAAoB;YACrC,IAAM,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YACrC,aAAa;YACb,IAAI,MAAM,CAAC,cAAc,CAAC,EAAE;gBAC1B,IAAI,KAAK,EAAE;oBACT,IAAM,cAAc,GAAG,SAAS,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC;oBAC9D,IAAM,OAAK,GAAG,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;oBAC3C,IAAM,OAAK,GAAa,cAAc,CAAC,GAAG,CAAC,UAAC,IAAI,IAAK,OAAA,IAAI,CAAC,IAAI,EAAT,CAAS,CAAC,CAAC;oBAChE,IAAI,OAAK,CAAC,MAAM,EAAE;wBAChB,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,UAAC,KAAK;4BACjC,IAAM,IAAI,GAAG,OAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;4BAClC,OAAO,CAAC,OAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;wBAC/B,CAAC,CAAC,CAAC;qBACJ;yBAAM;wBACL,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;qBACpC;oBACD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;iBACnB;aACF;iBAAM,IAAI,QAAQ,CAAC,cAAc,CAAC,EAAE;gBACnC,IAAM,KAAK,GAAG,SAAS,CAAC,QAAQ,EAAE,CAAC;gBAC5B,IAAA,KAAG,GAAS,KAAK,GAAd,EAAE,KAAG,GAAI,KAAK,GAAT,CAAU;gBACzB,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,UAAC,KAAK;oBACjC,OAAO,KAAK,IAAI,KAAG,IAAI,KAAK,IAAI,KAAG,CAAC;gBACtC,CAAC,CAAC,CAAC;gBACH,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;aACnB;SACF;IACH,CAAC;IACH,iBAAC;AAAD,CAAC,AA/CD,CAAyB,MAAM,GA+C9B;AAED,eAAe,UAAU,CAAC","sourcesContent":["import { each } from '@antv/util';\nimport { View } from 'src/chart';\nimport Action from '../base';\nimport { getDelegationObject, getScaleByField, isList, isSlider } from '../util';\n\n/**\n * 数据过滤。\n * @ignore\n */\nclass DataFilter extends Action {\n private filterView(view: View, field, filter) {\n // 只有存在这个 scale 时才生效\n if (view.getScaleByField(field)) {\n view.filter(field, filter);\n }\n if (view.views && view.views.length) {\n each(view.views, (subView) => {\n this.filterView(subView, field, filter);\n });\n }\n }\n /**\n * 过滤数据\n */\n public filter() {\n const delegateObject = getDelegationObject(this.context);\n if (delegateObject) {\n const view = this.context.view;\n const { component } = delegateObject;\n const field = component.get('field');\n // 列表类的组件能够触发\n if (isList(delegateObject)) {\n if (field) {\n const unCheckedItems = component.getItemsByState('unchecked');\n const scale = getScaleByField(view, field);\n const names: string[] = unCheckedItems.map((item) => item.name);\n if (names.length) {\n this.filterView(view, field, (value) => {\n const text = scale.getText(value);\n return !names.includes(text);\n });\n } else {\n this.filterView(view, field, null);\n }\n view.render(true);\n }\n } else if (isSlider(delegateObject)) {\n const range = component.getValue();\n const [min, max] = range;\n this.filterView(view, field, (value) => {\n return value >= min && value <= max;\n });\n view.render(true);\n }\n }\n }\n}\n\nexport default DataFilter;\n"]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Point } from '../../../dependents';
|
|
2
|
+
import { FilterCondition, EventPayload } from '../../../interface';
|
|
3
|
+
import { View } from '../../../chart';
|
|
4
|
+
import Action from '../base';
|
|
5
|
+
/** range-filter 只用于:brush-filter, brush-x-filter, brush-y-filter */
|
|
6
|
+
declare enum EVENTS {
|
|
7
|
+
FILTER = "brush-filter-processing",
|
|
8
|
+
RESET = "brush-filter-reset",
|
|
9
|
+
BEFORE_FILTER = "brush-filter:beforefilter",
|
|
10
|
+
AFTER_FILTER = "brush-filter:afterfilter",
|
|
11
|
+
BEFORE_RESET = "brush-filter:beforereset",
|
|
12
|
+
AFTER_RESET = "brush-filter:afterreset"
|
|
13
|
+
}
|
|
14
|
+
export { EVENTS as BRUSH_FILTER_EVENTS };
|
|
15
|
+
/**
|
|
16
|
+
* 范围过滤的 Action
|
|
17
|
+
* @ignore
|
|
18
|
+
*/
|
|
19
|
+
declare class RangeFilter extends Action {
|
|
20
|
+
/** 允许外部传入 dims */
|
|
21
|
+
protected cfgFields: ['dims'];
|
|
22
|
+
/**
|
|
23
|
+
* 范围过滤生效的字段/维度,可以是 x, y
|
|
24
|
+
*/
|
|
25
|
+
protected dims: string[];
|
|
26
|
+
/** 起始点 */
|
|
27
|
+
protected startPoint: Point;
|
|
28
|
+
private isStarted;
|
|
29
|
+
private hasDim;
|
|
30
|
+
/**
|
|
31
|
+
* 开始范围过滤,记录范围过滤的起点
|
|
32
|
+
*/
|
|
33
|
+
start(): void;
|
|
34
|
+
/**
|
|
35
|
+
* 过滤,以开始的点和当前点对数据进行过滤
|
|
36
|
+
*/
|
|
37
|
+
filter(): void;
|
|
38
|
+
/**
|
|
39
|
+
* 结束
|
|
40
|
+
*/
|
|
41
|
+
end(): void;
|
|
42
|
+
/**
|
|
43
|
+
* 取消同当前 Action 相关的过滤,指定的 x,y
|
|
44
|
+
*/
|
|
45
|
+
reset(): void;
|
|
46
|
+
/**
|
|
47
|
+
* 对 view 进行过滤
|
|
48
|
+
*/
|
|
49
|
+
protected filterView(view: View, field: string, filter: FilterCondition): void;
|
|
50
|
+
/**
|
|
51
|
+
* 重新渲染
|
|
52
|
+
* @param view
|
|
53
|
+
*/
|
|
54
|
+
protected reRender(view: View, payload?: EventPayload): void;
|
|
55
|
+
}
|
|
56
|
+
export default RangeFilter;
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { Event } from '../../../chart';
|
|
3
|
+
import Action from '../base';
|
|
4
|
+
import { isMask } from '../util';
|
|
5
|
+
// 获取对应的 scale
|
|
6
|
+
function getFilter(scale, dim, point1, point2) {
|
|
7
|
+
var min = Math.min(point1[dim], point2[dim]);
|
|
8
|
+
var max = Math.max(point1[dim], point2[dim]);
|
|
9
|
+
var _a = scale.range, rangeMin = _a[0], rangeMax = _a[1];
|
|
10
|
+
// 约束值在 scale 的 range 之间
|
|
11
|
+
if (min < rangeMin) {
|
|
12
|
+
min = rangeMin;
|
|
13
|
+
}
|
|
14
|
+
if (max > rangeMax) {
|
|
15
|
+
max = rangeMax;
|
|
16
|
+
}
|
|
17
|
+
// 范围大于整个 view 的范围,则返回 null
|
|
18
|
+
if (min === rangeMax && max === rangeMax) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
var minValue = scale.invert(min);
|
|
22
|
+
var maxValue = scale.invert(max);
|
|
23
|
+
if (scale.isCategory) {
|
|
24
|
+
var minIndex = scale.values.indexOf(minValue);
|
|
25
|
+
var maxIndex = scale.values.indexOf(maxValue);
|
|
26
|
+
var arr_1 = scale.values.slice(minIndex, maxIndex + 1);
|
|
27
|
+
return function (value) {
|
|
28
|
+
return arr_1.includes(value);
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
return function (value) {
|
|
33
|
+
return value >= minValue && value <= maxValue;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
/** range-filter 只用于:brush-filter, brush-x-filter, brush-y-filter */
|
|
38
|
+
var EVENTS;
|
|
39
|
+
(function (EVENTS) {
|
|
40
|
+
EVENTS["FILTER"] = "brush-filter-processing";
|
|
41
|
+
EVENTS["RESET"] = "brush-filter-reset";
|
|
42
|
+
EVENTS["BEFORE_FILTER"] = "brush-filter:beforefilter";
|
|
43
|
+
EVENTS["AFTER_FILTER"] = "brush-filter:afterfilter";
|
|
44
|
+
EVENTS["BEFORE_RESET"] = "brush-filter:beforereset";
|
|
45
|
+
EVENTS["AFTER_RESET"] = "brush-filter:afterreset";
|
|
46
|
+
})(EVENTS || (EVENTS = {}));
|
|
47
|
+
export { EVENTS as BRUSH_FILTER_EVENTS };
|
|
48
|
+
/**
|
|
49
|
+
* 范围过滤的 Action
|
|
50
|
+
* @ignore
|
|
51
|
+
*/
|
|
52
|
+
var RangeFilter = /** @class */ (function (_super) {
|
|
53
|
+
__extends(RangeFilter, _super);
|
|
54
|
+
function RangeFilter() {
|
|
55
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
56
|
+
/**
|
|
57
|
+
* 范围过滤生效的字段/维度,可以是 x, y
|
|
58
|
+
*/
|
|
59
|
+
_this.dims = ['x', 'y'];
|
|
60
|
+
/** 起始点 */
|
|
61
|
+
_this.startPoint = null;
|
|
62
|
+
_this.isStarted = false;
|
|
63
|
+
return _this;
|
|
64
|
+
}
|
|
65
|
+
// x,y 是否生效
|
|
66
|
+
RangeFilter.prototype.hasDim = function (dim) {
|
|
67
|
+
return this.dims.includes(dim);
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* 开始范围过滤,记录范围过滤的起点
|
|
71
|
+
*/
|
|
72
|
+
RangeFilter.prototype.start = function () {
|
|
73
|
+
var context = this.context;
|
|
74
|
+
this.isStarted = true;
|
|
75
|
+
this.startPoint = context.getCurrentPoint();
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* 过滤,以开始的点和当前点对数据进行过滤
|
|
79
|
+
*/
|
|
80
|
+
RangeFilter.prototype.filter = function () {
|
|
81
|
+
var startPoint;
|
|
82
|
+
var currentPoint;
|
|
83
|
+
if (isMask(this.context)) {
|
|
84
|
+
var maskShape = this.context.event.target;
|
|
85
|
+
var bbox = maskShape.getCanvasBBox();
|
|
86
|
+
startPoint = { x: bbox.x, y: bbox.y };
|
|
87
|
+
currentPoint = { x: bbox.maxX, y: bbox.maxY };
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
if (!this.isStarted) {
|
|
91
|
+
// 如果没有开始,则不执行过滤
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
startPoint = this.startPoint;
|
|
95
|
+
currentPoint = this.context.getCurrentPoint();
|
|
96
|
+
}
|
|
97
|
+
if (Math.abs(startPoint.x - currentPoint.x) < 5 || Math.abs(startPoint.x - currentPoint.y) < 5) {
|
|
98
|
+
// 距离过小也不生效
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
var _a = this.context, view = _a.view, event = _a.event;
|
|
102
|
+
var payload = { view: view, event: event, dims: this.dims };
|
|
103
|
+
view.emit(EVENTS.BEFORE_FILTER, Event.fromData(view, EVENTS.BEFORE_FILTER, payload));
|
|
104
|
+
var coord = view.getCoordinate();
|
|
105
|
+
var normalCurrent = coord.invert(currentPoint);
|
|
106
|
+
var normalStart = coord.invert(startPoint);
|
|
107
|
+
// 设置 x 方向的 filter
|
|
108
|
+
if (this.hasDim('x')) {
|
|
109
|
+
var xScale = view.getXScale();
|
|
110
|
+
var filter = getFilter(xScale, 'x', normalCurrent, normalStart);
|
|
111
|
+
this.filterView(view, xScale.field, filter);
|
|
112
|
+
}
|
|
113
|
+
// 设置 y 方向的 filter
|
|
114
|
+
if (this.hasDim('y')) {
|
|
115
|
+
var yScale = view.getYScales()[0];
|
|
116
|
+
var filter = getFilter(yScale, 'y', normalCurrent, normalStart);
|
|
117
|
+
this.filterView(view, yScale.field, filter);
|
|
118
|
+
}
|
|
119
|
+
this.reRender(view, { source: EVENTS.FILTER });
|
|
120
|
+
view.emit(EVENTS.AFTER_FILTER, Event.fromData(view, EVENTS.AFTER_FILTER, payload));
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* 结束
|
|
124
|
+
*/
|
|
125
|
+
RangeFilter.prototype.end = function () {
|
|
126
|
+
this.isStarted = false;
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* 取消同当前 Action 相关的过滤,指定的 x,y
|
|
130
|
+
*/
|
|
131
|
+
RangeFilter.prototype.reset = function () {
|
|
132
|
+
var view = this.context.view;
|
|
133
|
+
view.emit(EVENTS.BEFORE_RESET, Event.fromData(view, EVENTS.BEFORE_RESET, {}));
|
|
134
|
+
this.isStarted = false;
|
|
135
|
+
if (this.hasDim('x')) {
|
|
136
|
+
var xScale = view.getXScale();
|
|
137
|
+
this.filterView(view, xScale.field, null); // 取消过滤
|
|
138
|
+
}
|
|
139
|
+
if (this.hasDim('y')) {
|
|
140
|
+
// y 轴过滤仅取第一个 yScale
|
|
141
|
+
var yScale = view.getYScales()[0];
|
|
142
|
+
this.filterView(view, yScale.field, null); // 取消过滤
|
|
143
|
+
}
|
|
144
|
+
this.reRender(view, { source: EVENTS.RESET });
|
|
145
|
+
view.emit(EVENTS.AFTER_RESET, Event.fromData(view, EVENTS.AFTER_RESET, {}));
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* 对 view 进行过滤
|
|
149
|
+
*/
|
|
150
|
+
RangeFilter.prototype.filterView = function (view, field, filter) {
|
|
151
|
+
view.filter(field, filter);
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* 重新渲染
|
|
155
|
+
* @param view
|
|
156
|
+
*/
|
|
157
|
+
RangeFilter.prototype.reRender = function (view, payload) {
|
|
158
|
+
view.render(true, payload);
|
|
159
|
+
};
|
|
160
|
+
return RangeFilter;
|
|
161
|
+
}(Action));
|
|
162
|
+
export default RangeFilter;
|
|
163
|
+
//# sourceMappingURL=range-filter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range-filter.js","sourceRoot":"","sources":["../../../../src/interaction/action/data/range-filter.ts"],"names":[],"mappings":";AAEA,OAAO,EAAQ,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,MAAM,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,cAAc;AACd,SAAS,SAAS,CAAC,KAAY,EAAE,GAAW,EAAE,MAAa,EAAE,MAAa;IACxE,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7C,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IACvC,IAAA,KAAuB,KAAK,CAAC,KAAK,EAAjC,QAAQ,QAAA,EAAE,QAAQ,QAAe,CAAC;IACzC,wBAAwB;IACxB,IAAI,GAAG,GAAG,QAAQ,EAAE;QAClB,GAAG,GAAG,QAAQ,CAAC;KAChB;IACD,IAAI,GAAG,GAAG,QAAQ,EAAE;QAClB,GAAG,GAAG,QAAQ,CAAC;KAChB;IACD,2BAA2B;IAC3B,IAAI,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,QAAQ,EAAE;QACxC,OAAO,IAAI,CAAC;KACb;IACD,IAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACnC,IAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACnC,IAAI,KAAK,CAAC,UAAU,EAAE;QACpB,IAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAChD,IAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAChD,IAAM,KAAG,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,GAAG,CAAC,CAAC,CAAC;QACvD,OAAO,UAAC,KAAK;YACX,OAAO,KAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC7B,CAAC,CAAC;KACH;SAAM;QACL,OAAO,UAAC,KAAK;YACX,OAAO,KAAK,IAAI,QAAQ,IAAI,KAAK,IAAI,QAAQ,CAAC;QAChD,CAAC,CAAC;KACH;AACH,CAAC;AAED,oEAAoE;AACpE,IAAK,MAOJ;AAPD,WAAK,MAAM;IACT,4CAAkC,CAAA;IAClC,sCAA4B,CAAA;IAC5B,qDAA2C,CAAA;IAC3C,mDAAyC,CAAA;IACzC,mDAAyC,CAAA;IACzC,iDAAuC,CAAA;AACzC,CAAC,EAPI,MAAM,KAAN,MAAM,QAOV;AAED,OAAO,EAAE,MAAM,IAAI,mBAAmB,EAAE,CAAC;AAEzC;;;GAGG;AACH;IAA0B,+BAAM;IAAhC;QAAA,qEAoHC;QAjHC;;WAEG;QACO,UAAI,GAAa,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QACtC,UAAU;QACA,gBAAU,GAAU,IAAI,CAAC;QAE3B,eAAS,GAAY,KAAK,CAAC;;IA0GrC,CAAC;IAxGC,WAAW;IACH,4BAAM,GAAd,UAAe,GAAW;QACxB,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IACjC,CAAC;IAED;;OAEG;IACI,2BAAK,GAAZ;QACE,IAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAC9C,CAAC;IAED;;OAEG;IACI,4BAAM,GAAb;QACE,IAAI,UAAU,CAAC;QACf,IAAI,YAAY,CAAC;QACjB,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE;YACxB,IAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC;YAC5C,IAAM,IAAI,GAAG,SAAS,CAAC,aAAa,EAAE,CAAC;YACvC,UAAU,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC;YACtC,YAAY,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;SAC/C;aAAM;YACL,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;gBACnB,gBAAgB;gBAChB,OAAO;aACR;YACD,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;YAC7B,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC;SAC/C;QACD,IAAI,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE;YAC9F,WAAW;YACX,OAAO;SACR;QACK,IAAA,KAAkB,IAAI,CAAC,OAAO,EAA5B,IAAI,UAAA,EAAE,KAAK,WAAiB,CAAC;QACrC,IAAM,OAAO,GAAG,EAAE,IAAI,MAAA,EAAE,KAAK,OAAA,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;QACjD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC;QAErF,IAAM,KAAK,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;QACnC,IAAM,aAAa,GAAG,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QACjD,IAAM,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QAC7C,kBAAkB;QAClB,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE;YACpB,IAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;YAChC,IAAM,MAAM,GAAG,SAAS,CAAC,MAAM,EAAE,GAAG,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC;YAClE,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;SAC7C;QACD,kBAAkB;QAClB,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE;YACpB,IAAM,MAAM,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC;YACpC,IAAM,MAAM,GAAG,SAAS,CAAC,MAAM,EAAE,GAAG,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC;YAClE,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;SAC7C;QACD,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;QAE/C,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC;IACrF,CAAC;IAED;;OAEG;IACI,yBAAG,GAAV;QACE,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;IACzB,CAAC;IAED;;OAEG;IACI,2BAAK,GAAZ;QACE,IAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;QAC/B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC,CAAC;QAE9E,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACvB,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE;YACpB,IAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;YAChC,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO;SACnD;QACD,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE;YACpB,oBAAoB;YACpB,IAAM,MAAM,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC;YACpC,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO;SACnD;QACD,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;QAE9C,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,CAAC;IAC9E,CAAC;IAED;;OAEG;IACO,gCAAU,GAApB,UAAqB,IAAU,EAAE,KAAa,EAAE,MAAuB;QACrE,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACO,8BAAQ,GAAlB,UAAmB,IAAU,EAAE,OAAsB;QACnD,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC7B,CAAC;IACH,kBAAC;AAAD,CAAC,AApHD,CAA0B,MAAM,GAoH/B;AAED,eAAe,WAAW,CAAC","sourcesContent":["import { Point, Scale } from '../../../dependents';\nimport { FilterCondition, EventPayload } from '../../../interface';\nimport { View, Event } from '../../../chart';\nimport Action from '../base';\nimport { isMask } from '../util';\n\n// 获取对应的 scale\nfunction getFilter(scale: Scale, dim: string, point1: Point, point2: Point): FilterCondition {\n let min = Math.min(point1[dim], point2[dim]);\n let max = Math.max(point1[dim], point2[dim]);\n const [rangeMin, rangeMax] = scale.range;\n // 约束值在 scale 的 range 之间\n if (min < rangeMin) {\n min = rangeMin;\n }\n if (max > rangeMax) {\n max = rangeMax;\n }\n // 范围大于整个 view 的范围,则返回 null\n if (min === rangeMax && max === rangeMax) {\n return null;\n }\n const minValue = scale.invert(min);\n const maxValue = scale.invert(max);\n if (scale.isCategory) {\n const minIndex = scale.values.indexOf(minValue);\n const maxIndex = scale.values.indexOf(maxValue);\n const arr = scale.values.slice(minIndex, maxIndex + 1);\n return (value) => {\n return arr.includes(value);\n };\n } else {\n return (value) => {\n return value >= minValue && value <= maxValue;\n };\n }\n}\n\n/** range-filter 只用于:brush-filter, brush-x-filter, brush-y-filter */\nenum EVENTS {\n FILTER = 'brush-filter-processing',\n RESET = 'brush-filter-reset',\n BEFORE_FILTER = 'brush-filter:beforefilter',\n AFTER_FILTER = 'brush-filter:afterfilter',\n BEFORE_RESET = 'brush-filter:beforereset',\n AFTER_RESET = 'brush-filter:afterreset',\n}\n\nexport { EVENTS as BRUSH_FILTER_EVENTS };\n\n/**\n * 范围过滤的 Action\n * @ignore\n */\nclass RangeFilter extends Action {\n /** 允许外部传入 dims */\n protected cfgFields: ['dims'];\n /**\n * 范围过滤生效的字段/维度,可以是 x, y\n */\n protected dims: string[] = ['x', 'y'];\n /** 起始点 */\n protected startPoint: Point = null;\n\n private isStarted: boolean = false;\n\n // x,y 是否生效\n private hasDim(dim: string) {\n return this.dims.includes(dim);\n }\n\n /**\n * 开始范围过滤,记录范围过滤的起点\n */\n public start() {\n const context = this.context;\n this.isStarted = true;\n this.startPoint = context.getCurrentPoint();\n }\n\n /**\n * 过滤,以开始的点和当前点对数据进行过滤\n */\n public filter() {\n let startPoint;\n let currentPoint;\n if (isMask(this.context)) {\n const maskShape = this.context.event.target;\n const bbox = maskShape.getCanvasBBox();\n startPoint = { x: bbox.x, y: bbox.y };\n currentPoint = { x: bbox.maxX, y: bbox.maxY };\n } else {\n if (!this.isStarted) {\n // 如果没有开始,则不执行过滤\n return;\n }\n startPoint = this.startPoint;\n currentPoint = this.context.getCurrentPoint();\n }\n if (Math.abs(startPoint.x - currentPoint.x) < 5 || Math.abs(startPoint.x - currentPoint.y) < 5) {\n // 距离过小也不生效\n return;\n }\n const { view, event } = this.context;\n const payload = { view, event, dims: this.dims };\n view.emit(EVENTS.BEFORE_FILTER, Event.fromData(view, EVENTS.BEFORE_FILTER, payload));\n\n const coord = view.getCoordinate();\n const normalCurrent = coord.invert(currentPoint);\n const normalStart = coord.invert(startPoint);\n // 设置 x 方向的 filter\n if (this.hasDim('x')) {\n const xScale = view.getXScale();\n const filter = getFilter(xScale, 'x', normalCurrent, normalStart);\n this.filterView(view, xScale.field, filter);\n }\n // 设置 y 方向的 filter\n if (this.hasDim('y')) {\n const yScale = view.getYScales()[0];\n const filter = getFilter(yScale, 'y', normalCurrent, normalStart);\n this.filterView(view, yScale.field, filter);\n }\n this.reRender(view, { source: EVENTS.FILTER });\n\n view.emit(EVENTS.AFTER_FILTER, Event.fromData(view, EVENTS.AFTER_FILTER, payload));\n }\n\n /**\n * 结束\n */\n public end() {\n this.isStarted = false;\n }\n\n /**\n * 取消同当前 Action 相关的过滤,指定的 x,y\n */\n public reset() {\n const view = this.context.view;\n view.emit(EVENTS.BEFORE_RESET, Event.fromData(view, EVENTS.BEFORE_RESET, {}));\n\n this.isStarted = false;\n if (this.hasDim('x')) {\n const xScale = view.getXScale();\n this.filterView(view, xScale.field, null); // 取消过滤\n }\n if (this.hasDim('y')) {\n // y 轴过滤仅取第一个 yScale\n const yScale = view.getYScales()[0];\n this.filterView(view, yScale.field, null); // 取消过滤\n }\n this.reRender(view, { source: EVENTS.RESET });\n\n view.emit(EVENTS.AFTER_RESET, Event.fromData(view, EVENTS.AFTER_RESET, {}));\n }\n\n /**\n * 对 view 进行过滤\n */\n protected filterView(view: View, field: string, filter: FilterCondition) {\n view.filter(field, filter);\n }\n\n /**\n * 重新渲染\n * @param view\n */\n protected reRender(view: View, payload?: EventPayload) {\n view.render(true, payload);\n }\n}\n\nexport default RangeFilter;\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { View } from '../../../chart';
|
|
2
|
+
import { FilterCondition } from '../../../interface';
|
|
3
|
+
import RangeFilter from './range-filter';
|
|
4
|
+
/**
|
|
5
|
+
* 数据范围过滤,但不在当前的 view 上生效,而在当前的 view 同一层级的其他 views 上生效,用于实现联动过滤。
|
|
6
|
+
* @ignore
|
|
7
|
+
*/
|
|
8
|
+
declare class SiblingFilter extends RangeFilter {
|
|
9
|
+
/**
|
|
10
|
+
* 对 view 进行过滤
|
|
11
|
+
* @param view
|
|
12
|
+
* @param field
|
|
13
|
+
* @param filter
|
|
14
|
+
*/
|
|
15
|
+
protected filterView(view: View, field: string, filter: FilterCondition): void;
|
|
16
|
+
/**
|
|
17
|
+
* 重新渲染
|
|
18
|
+
* @param view
|
|
19
|
+
*/
|
|
20
|
+
protected reRender(view: View): void;
|
|
21
|
+
}
|
|
22
|
+
export default SiblingFilter;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { each } from '@antv/util';
|
|
3
|
+
import RangeFilter from './range-filter';
|
|
4
|
+
import { getSilbings } from '../util';
|
|
5
|
+
/**
|
|
6
|
+
* 数据范围过滤,但不在当前的 view 上生效,而在当前的 view 同一层级的其他 views 上生效,用于实现联动过滤。
|
|
7
|
+
* @ignore
|
|
8
|
+
*/
|
|
9
|
+
var SiblingFilter = /** @class */ (function (_super) {
|
|
10
|
+
__extends(SiblingFilter, _super);
|
|
11
|
+
function SiblingFilter() {
|
|
12
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* 对 view 进行过滤
|
|
16
|
+
* @param view
|
|
17
|
+
* @param field
|
|
18
|
+
* @param filter
|
|
19
|
+
*/
|
|
20
|
+
SiblingFilter.prototype.filterView = function (view, field, filter) {
|
|
21
|
+
var siblings = getSilbings(view);
|
|
22
|
+
each(siblings, function (sibling) {
|
|
23
|
+
sibling.filter(field, filter);
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* 重新渲染
|
|
28
|
+
* @param view
|
|
29
|
+
*/
|
|
30
|
+
SiblingFilter.prototype.reRender = function (view) {
|
|
31
|
+
var siblings = getSilbings(view);
|
|
32
|
+
each(siblings, function (sibling) {
|
|
33
|
+
sibling.render(true);
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
return SiblingFilter;
|
|
37
|
+
}(RangeFilter));
|
|
38
|
+
export default SiblingFilter;
|
|
39
|
+
//# sourceMappingURL=sibling-filter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sibling-filter.js","sourceRoot":"","sources":["../../../../src/interaction/action/data/sibling-filter.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGlC,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC;;;GAGG;AACH;IAA4B,iCAAW;IAAvC;;IAwBA,CAAC;IAvBC;;;;;OAKG;IACO,kCAAU,GAApB,UAAqB,IAAU,EAAE,KAAa,EAAE,MAAuB;QACrE,IAAM,QAAQ,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;QACnC,IAAI,CAAC,QAAQ,EAAE,UAAC,OAAO;YACrB,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAChC,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACO,gCAAQ,GAAlB,UAAmB,IAAU;QAC3B,IAAM,QAAQ,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;QACnC,IAAI,CAAC,QAAQ,EAAE,UAAC,OAAO;YACrB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvB,CAAC,CAAC,CAAC;IACL,CAAC;IACH,oBAAC;AAAD,CAAC,AAxBD,CAA4B,WAAW,GAwBtC;AAED,eAAe,aAAa,CAAC","sourcesContent":["import { each } from '@antv/util';\nimport { View } from '../../../chart';\nimport { FilterCondition } from '../../../interface';\nimport RangeFilter from './range-filter';\n\nimport { getSilbings } from '../util';\n\n/**\n * 数据范围过滤,但不在当前的 view 上生效,而在当前的 view 同一层级的其他 views 上生效,用于实现联动过滤。\n * @ignore\n */\nclass SiblingFilter extends RangeFilter {\n /**\n * 对 view 进行过滤\n * @param view\n * @param field\n * @param filter\n */\n protected filterView(view: View, field: string, filter: FilterCondition) {\n const siblings = getSilbings(view);\n each(siblings, (sibling) => {\n sibling.filter(field, filter);\n });\n }\n\n /**\n * 重新渲染\n * @param view\n */\n protected reRender(view: View) {\n const siblings = getSilbings(view);\n each(siblings, (sibling) => {\n sibling.render(true);\n });\n }\n}\n\nexport default SiblingFilter;\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import StateAction from './state';
|
|
2
|
+
/**
|
|
3
|
+
* 元素 active 的 Action,允许多个元素同时 active
|
|
4
|
+
* @class
|
|
5
|
+
* @ignore
|
|
6
|
+
*/
|
|
7
|
+
declare class ElementActive extends StateAction {
|
|
8
|
+
protected stateName: string;
|
|
9
|
+
/**
|
|
10
|
+
* Active Element
|
|
11
|
+
*/
|
|
12
|
+
active(): void;
|
|
13
|
+
}
|
|
14
|
+
export default ElementActive;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import StateAction from './state';
|
|
3
|
+
/**
|
|
4
|
+
* 元素 active 的 Action,允许多个元素同时 active
|
|
5
|
+
* @class
|
|
6
|
+
* @ignore
|
|
7
|
+
*/
|
|
8
|
+
var ElementActive = /** @class */ (function (_super) {
|
|
9
|
+
__extends(ElementActive, _super);
|
|
10
|
+
function ElementActive() {
|
|
11
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
12
|
+
_this.stateName = 'active';
|
|
13
|
+
return _this;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Active Element
|
|
17
|
+
*/
|
|
18
|
+
ElementActive.prototype.active = function () {
|
|
19
|
+
this.setState();
|
|
20
|
+
};
|
|
21
|
+
return ElementActive;
|
|
22
|
+
}(StateAction));
|
|
23
|
+
export default ElementActive;
|
|
24
|
+
//# sourceMappingURL=active.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"active.js","sourceRoot":"","sources":["../../../../src/interaction/action/element/active.ts"],"names":[],"mappings":";AAAA,OAAO,WAAW,MAAM,SAAS,CAAC;AAElC;;;;GAIG;AACH;IAA4B,iCAAW;IAAvC;QAAA,qEAQC;QAPW,eAAS,GAAW,QAAQ,CAAC;;IAOzC,CAAC;IANC;;OAEG;IACI,8BAAM,GAAb;QACE,IAAI,CAAC,QAAQ,EAAE,CAAC;IAClB,CAAC;IACH,oBAAC;AAAD,CAAC,AARD,CAA4B,WAAW,GAQtC;AAED,eAAe,aAAa,CAAC","sourcesContent":["import StateAction from './state';\n\n/**\n * 元素 active 的 Action,允许多个元素同时 active\n * @class\n * @ignore\n */\nclass ElementActive extends StateAction {\n protected stateName: string = 'active';\n /**\n * Active Element\n */\n public active() {\n this.setState();\n }\n}\n\nexport default ElementActive;\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Action from '../base';
|
|
2
|
+
/**
|
|
3
|
+
* 元素过滤的 Action,控制元素的显示隐藏
|
|
4
|
+
* @ignore
|
|
5
|
+
*/
|
|
6
|
+
declare class ElementFilter extends Action {
|
|
7
|
+
/**
|
|
8
|
+
* 过滤
|
|
9
|
+
*/
|
|
10
|
+
filter(): void;
|
|
11
|
+
/**
|
|
12
|
+
* 清除过滤
|
|
13
|
+
*/
|
|
14
|
+
clear(): void;
|
|
15
|
+
/**
|
|
16
|
+
* 恢复发生的过滤,保持同 data-filter 命名的一致
|
|
17
|
+
*/
|
|
18
|
+
reset(): void;
|
|
19
|
+
}
|
|
20
|
+
export default ElementFilter;
|