@antv/g2plot 2.4.22 → 2.4.24
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/CHANGELOG.md +446 -413
- package/dist/g2plot.min.js +17 -2
- package/dist/g2plot.min.js.map +1 -1
- package/esm/adaptor/brush.d.ts +1 -1
- package/esm/adaptor/brush.js +2 -2
- package/esm/adaptor/brush.js.map +1 -1
- package/esm/adaptor/common.d.ts +1 -1
- package/esm/adaptor/common.js +1 -1
- package/esm/adaptor/common.js.map +1 -1
- package/esm/adaptor/connected-area.d.ts +1 -1
- package/esm/adaptor/connected-area.js.map +1 -1
- package/esm/adaptor/conversion-tag.js +1 -1
- package/esm/adaptor/conversion-tag.js.map +1 -1
- package/esm/adaptor/geometries/area.js +1 -1
- package/esm/adaptor/geometries/area.js.map +1 -1
- package/esm/adaptor/geometries/base.d.ts +1 -1
- package/esm/adaptor/geometries/base.js +1 -1
- package/esm/adaptor/geometries/base.js.map +1 -1
- package/esm/adaptor/geometries/edge.d.ts +1 -1
- package/esm/adaptor/geometries/edge.js +1 -1
- package/esm/adaptor/geometries/edge.js.map +1 -1
- package/esm/adaptor/geometries/index.d.ts +5 -5
- package/esm/adaptor/geometries/index.js +2 -2
- package/esm/adaptor/geometries/index.js.map +1 -1
- package/esm/adaptor/geometries/interval.js.map +1 -1
- package/esm/adaptor/geometries/line.js +1 -1
- package/esm/adaptor/geometries/line.js.map +1 -1
- package/esm/adaptor/geometries/point.d.ts +1 -1
- package/esm/adaptor/geometries/point.js +1 -1
- package/esm/adaptor/geometries/point.js.map +1 -1
- package/esm/adaptor/geometries/polygon.d.ts +1 -1
- package/esm/adaptor/geometries/polygon.js +1 -1
- package/esm/adaptor/geometries/polygon.js.map +1 -1
- package/esm/adaptor/geometries/schema.d.ts +1 -1
- package/esm/adaptor/geometries/schema.js +1 -1
- package/esm/adaptor/geometries/schema.js.map +1 -1
- package/esm/adaptor/geometries/violin.d.ts +1 -1
- package/esm/adaptor/geometries/violin.js +1 -1
- package/esm/adaptor/geometries/violin.js.map +1 -1
- package/esm/adaptor/pattern.d.ts +1 -1
- package/esm/adaptor/pattern.js +1 -1
- package/esm/adaptor/pattern.js.map +1 -1
- package/esm/core/plot.d.ts +2 -2
- package/esm/core/plot.js +2 -2
- package/esm/core/plot.js.map +1 -1
- package/esm/index.d.ts +68 -71
- package/esm/index.js +69 -71
- package/esm/index.js.map +1 -1
- package/esm/interactions/actions/drill-down.js +1 -1
- package/esm/interactions/actions/drill-down.js.map +1 -1
- package/esm/interactions/drill-down.js +1 -1
- package/esm/interactions/drill-down.js.map +1 -1
- package/esm/plots/_template/adaptor.js +1 -1
- package/esm/plots/_template/adaptor.js.map +1 -1
- package/esm/plots/_template/index.d.ts +1 -1
- package/esm/plots/_template/index.js.map +1 -1
- package/esm/plots/area/adaptor.js +4 -5
- package/esm/plots/area/adaptor.js.map +1 -1
- package/esm/plots/area/index.d.ts +1 -1
- package/esm/plots/area/index.js.map +1 -1
- package/esm/plots/bar/adaptor.d.ts +1 -1
- package/esm/plots/bar/adaptor.js.map +1 -1
- package/esm/plots/bar/index.d.ts +1 -1
- package/esm/plots/bar/index.js.map +1 -1
- package/esm/plots/bidirectional-bar/adaptor.js +2 -2
- package/esm/plots/bidirectional-bar/adaptor.js.map +1 -1
- package/esm/plots/bidirectional-bar/index.d.ts +1 -1
- package/esm/plots/bidirectional-bar/index.js +3 -3
- package/esm/plots/bidirectional-bar/index.js.map +1 -1
- package/esm/plots/bidirectional-bar/types.d.ts +1 -1
- package/esm/plots/bidirectional-bar/types.js.map +1 -1
- package/esm/plots/bidirectional-bar/utils.js.map +1 -1
- package/esm/plots/box/adaptor.js +2 -2
- package/esm/plots/box/adaptor.js.map +1 -1
- package/esm/plots/box/index.d.ts +1 -1
- package/esm/plots/box/index.js +1 -1
- package/esm/plots/box/index.js.map +1 -1
- package/esm/plots/bullet/adaptor.js +2 -2
- package/esm/plots/bullet/adaptor.js.map +1 -1
- package/esm/plots/bullet/index.d.ts +1 -1
- package/esm/plots/bullet/index.js +1 -1
- package/esm/plots/bullet/index.js.map +1 -1
- package/esm/plots/bullet/types.d.ts +1 -1
- package/esm/plots/bullet/types.js.map +1 -1
- package/esm/plots/chord/adaptor.js +4 -5
- package/esm/plots/chord/adaptor.js.map +1 -1
- package/esm/plots/chord/index.d.ts +1 -1
- package/esm/plots/chord/index.js.map +1 -1
- package/esm/plots/circle-packing/adaptor.js +3 -3
- package/esm/plots/circle-packing/adaptor.js.map +1 -1
- package/esm/plots/circle-packing/index.d.ts +2 -2
- package/esm/plots/circle-packing/index.js.map +1 -1
- package/esm/plots/circle-packing/utils.js +2 -2
- package/esm/plots/circle-packing/utils.js.map +1 -1
- package/esm/plots/column/adaptor.js +4 -4
- package/esm/plots/column/adaptor.js.map +1 -1
- package/esm/plots/column/index.d.ts +1 -1
- package/esm/plots/column/index.js.map +1 -1
- package/esm/plots/column/types.d.ts +2 -2
- package/esm/plots/column/types.js.map +1 -1
- package/esm/plots/dual-axes/adaptor.js +7 -7
- package/esm/plots/dual-axes/adaptor.js.map +1 -1
- package/esm/plots/dual-axes/index.d.ts +1 -1
- package/esm/plots/dual-axes/index.js.map +1 -1
- package/esm/plots/dual-axes/types.d.ts +1 -1
- package/esm/plots/dual-axes/types.js.map +1 -1
- package/esm/plots/dual-axes/util/geometry.js +3 -3
- package/esm/plots/dual-axes/util/geometry.js.map +1 -1
- package/esm/plots/dual-axes/util/legend.d.ts +1 -1
- package/esm/plots/dual-axes/util/legend.js +1 -1
- package/esm/plots/dual-axes/util/legend.js.map +1 -1
- package/esm/plots/dual-axes/util/option.d.ts +1 -1
- package/esm/plots/dual-axes/util/option.js +1 -1
- package/esm/plots/dual-axes/util/option.js.map +1 -1
- package/esm/plots/facet/adaptor.js +1 -1
- package/esm/plots/facet/adaptor.js.map +1 -1
- package/esm/plots/facet/index.d.ts +1 -1
- package/esm/plots/facet/index.js.map +1 -1
- package/esm/plots/facet/types.d.ts +4 -4
- package/esm/plots/facet/types.js.map +1 -1
- package/esm/plots/facet/utils.js +1 -1
- package/esm/plots/facet/utils.js.map +1 -1
- package/esm/plots/funnel/adaptor.js +6 -6
- package/esm/plots/funnel/adaptor.js.map +1 -1
- package/esm/plots/funnel/geometries/basic.js +4 -4
- package/esm/plots/funnel/geometries/basic.js.map +1 -1
- package/esm/plots/funnel/geometries/common.d.ts +1 -1
- package/esm/plots/funnel/geometries/common.js +2 -2
- package/esm/plots/funnel/geometries/common.js.map +1 -1
- package/esm/plots/funnel/geometries/compare.js +4 -4
- package/esm/plots/funnel/geometries/compare.js.map +1 -1
- package/esm/plots/funnel/geometries/dynamic-height.js +3 -3
- package/esm/plots/funnel/geometries/dynamic-height.js.map +1 -1
- package/esm/plots/funnel/geometries/facet.js +1 -1
- package/esm/plots/funnel/geometries/facet.js.map +1 -1
- package/esm/plots/funnel/index.d.ts +3 -3
- package/esm/plots/funnel/index.js.map +1 -1
- package/esm/plots/funnel/interactions/funnel-conversion-tag.js +2 -2
- package/esm/plots/funnel/interactions/funnel-conversion-tag.js.map +1 -1
- package/esm/plots/funnel/types.d.ts +1 -1
- package/esm/plots/funnel/types.js.map +1 -1
- package/esm/plots/gauge/adaptor.js +2 -2
- package/esm/plots/gauge/adaptor.js.map +1 -1
- package/esm/plots/gauge/index.d.ts +2 -2
- package/esm/plots/gauge/index.js +3 -3
- package/esm/plots/gauge/index.js.map +1 -1
- package/esm/plots/gauge/utils.js +1 -1
- package/esm/plots/gauge/utils.js.map +1 -1
- package/esm/plots/heatmap/adaptor.js +2 -3
- package/esm/plots/heatmap/adaptor.js.map +1 -1
- package/esm/plots/heatmap/index.d.ts +2 -2
- package/esm/plots/heatmap/index.js.map +1 -1
- package/esm/plots/heatmap/shapes/circle.js.map +1 -1
- package/esm/plots/heatmap/shapes/square.js.map +1 -1
- package/esm/plots/histogram/adaptor.js +3 -4
- package/esm/plots/histogram/adaptor.js.map +1 -1
- package/esm/plots/histogram/index.d.ts +1 -1
- package/esm/plots/histogram/index.js.map +1 -1
- package/esm/plots/line/adaptor.js +3 -4
- package/esm/plots/line/adaptor.js.map +1 -1
- package/esm/plots/line/index.d.ts +2 -2
- package/esm/plots/line/index.js.map +1 -1
- package/esm/plots/line/interactions/marker-active.js +1 -1
- package/esm/plots/line/interactions/marker-active.js.map +1 -1
- package/esm/plots/line/types.d.ts +1 -1
- package/esm/plots/line/types.js.map +1 -1
- package/esm/plots/liquid/adaptor.js +5 -3
- package/esm/plots/liquid/adaptor.js.map +1 -1
- package/esm/plots/liquid/index.d.ts +2 -2
- package/esm/plots/liquid/index.js +2 -2
- package/esm/plots/liquid/index.js.map +1 -1
- package/esm/plots/liquid/shapes/liquid.js +28 -18
- package/esm/plots/liquid/shapes/liquid.js.map +1 -1
- package/esm/plots/liquid/types.d.ts +7 -1
- package/esm/plots/liquid/types.js.map +1 -1
- package/esm/plots/mix/adaptor.js +2 -2
- package/esm/plots/mix/adaptor.js.map +1 -1
- package/esm/plots/mix/index.d.ts +2 -2
- package/esm/plots/mix/index.js.map +1 -1
- package/esm/plots/mix/interactions/association.js +3 -3
- package/esm/plots/mix/interactions/association.js.map +1 -1
- package/esm/plots/mix/interactions/utils.d.ts +1 -1
- package/esm/plots/mix/interactions/utils.js.map +1 -1
- package/esm/plots/mix/types.d.ts +3 -3
- package/esm/plots/mix/types.js.map +1 -1
- package/esm/plots/mix/utils.d.ts +10 -10
- package/esm/plots/mix/utils.js +22 -22
- package/esm/plots/mix/utils.js.map +1 -1
- package/esm/plots/pie/adaptor.js +5 -5
- package/esm/plots/pie/adaptor.js.map +1 -1
- package/esm/plots/pie/index.d.ts +2 -2
- package/esm/plots/pie/index.js +2 -2
- package/esm/plots/pie/index.js.map +1 -1
- package/esm/plots/pie/interactions/actions/legend-active.js +1 -1
- package/esm/plots/pie/interactions/actions/legend-active.js.map +1 -1
- package/esm/plots/pie/interactions/actions/statistic-active.js.map +1 -1
- package/esm/plots/pie/types.d.ts +1 -1
- package/esm/plots/pie/types.js.map +1 -1
- package/esm/plots/progress/adaptor.js +2 -2
- package/esm/plots/progress/adaptor.js.map +1 -1
- package/esm/plots/progress/index.d.ts +1 -1
- package/esm/plots/progress/index.js.map +1 -1
- package/esm/plots/progress/types.d.ts +1 -1
- package/esm/plots/progress/types.js.map +1 -1
- package/esm/plots/radar/adaptor.js +3 -3
- package/esm/plots/radar/adaptor.js.map +1 -1
- package/esm/plots/radar/index.d.ts +2 -2
- package/esm/plots/radar/index.js.map +1 -1
- package/esm/plots/radar/interactions/radar-tooltip-action.d.ts +1 -1
- package/esm/plots/radar/interactions/radar-tooltip-action.js +1 -1
- package/esm/plots/radar/interactions/radar-tooltip-action.js.map +1 -1
- package/esm/plots/radar/types.d.ts +1 -1
- package/esm/plots/radar/types.js.map +1 -1
- package/esm/plots/radial-bar/adaptor.js +2 -3
- package/esm/plots/radial-bar/adaptor.js.map +1 -1
- package/esm/plots/radial-bar/index.d.ts +1 -1
- package/esm/plots/radial-bar/index.js.map +1 -1
- package/esm/plots/ring-progress/adaptor.js +1 -1
- package/esm/plots/ring-progress/adaptor.js.map +1 -1
- package/esm/plots/ring-progress/index.d.ts +1 -1
- package/esm/plots/ring-progress/index.js +1 -1
- package/esm/plots/ring-progress/index.js.map +1 -1
- package/esm/plots/ring-progress/types.d.ts +1 -1
- package/esm/plots/ring-progress/types.js.map +1 -1
- package/esm/plots/rose/adaptor.js +3 -3
- package/esm/plots/rose/adaptor.js.map +1 -1
- package/esm/plots/rose/index.d.ts +1 -1
- package/esm/plots/rose/index.js.map +1 -1
- package/esm/plots/sankey/adaptor.js +2 -2
- package/esm/plots/sankey/adaptor.js.map +1 -1
- package/esm/plots/sankey/helper.js +1 -1
- package/esm/plots/sankey/helper.js.map +1 -1
- package/esm/plots/sankey/index.d.ts +2 -2
- package/esm/plots/sankey/index.js +1 -1
- package/esm/plots/sankey/index.js.map +1 -1
- package/esm/plots/sankey/interactions/node-draggable.js +1 -1
- package/esm/plots/sankey/interactions/node-draggable.js.map +1 -1
- package/esm/plots/sankey/layout.d.ts +1 -1
- package/esm/plots/sankey/layout.js +2 -2
- package/esm/plots/sankey/layout.js.map +1 -1
- package/esm/plots/sankey/sankey/index.d.ts +1 -1
- package/esm/plots/sankey/sankey/index.js +1 -1
- package/esm/plots/sankey/sankey/index.js.map +1 -1
- package/esm/plots/sankey/sankey/sankey.js +1 -1
- package/esm/plots/sankey/sankey/sankey.js.map +1 -1
- package/esm/plots/scatter/adaptor.js +4 -5
- package/esm/plots/scatter/adaptor.js.map +1 -1
- package/esm/plots/scatter/index.d.ts +2 -2
- package/esm/plots/scatter/index.js +1 -1
- package/esm/plots/scatter/index.js.map +1 -1
- package/esm/plots/scatter/types.d.ts +1 -1
- package/esm/plots/scatter/types.js.map +1 -1
- package/esm/plots/scatter/util.js +2 -2
- package/esm/plots/scatter/util.js.map +1 -1
- package/esm/plots/stock/adaptor.js +3 -3
- package/esm/plots/stock/adaptor.js.map +1 -1
- package/esm/plots/stock/index.d.ts +1 -1
- package/esm/plots/stock/index.js +1 -1
- package/esm/plots/stock/index.js.map +1 -1
- package/esm/plots/stock/utils.js +1 -1
- package/esm/plots/stock/utils.js.map +1 -1
- package/esm/plots/sunburst/adaptor.js +3 -3
- package/esm/plots/sunburst/adaptor.js.map +1 -1
- package/esm/plots/sunburst/index.d.ts +2 -2
- package/esm/plots/sunburst/index.js.map +1 -1
- package/esm/plots/tiny-area/adaptor.js +3 -3
- package/esm/plots/tiny-area/adaptor.js.map +1 -1
- package/esm/plots/tiny-area/index.d.ts +1 -1
- package/esm/plots/tiny-area/index.js.map +1 -1
- package/esm/plots/tiny-area/types.d.ts +1 -1
- package/esm/plots/tiny-area/types.js.map +1 -1
- package/esm/plots/tiny-column/adaptor.js +3 -3
- package/esm/plots/tiny-column/adaptor.js.map +1 -1
- package/esm/plots/tiny-line/adaptor.js +3 -3
- package/esm/plots/tiny-line/adaptor.js.map +1 -1
- package/esm/plots/tiny-line/index.d.ts +1 -1
- package/esm/plots/tiny-line/index.js.map +1 -1
- package/esm/plots/tiny-line/types.d.ts +1 -1
- package/esm/plots/tiny-line/types.js.map +1 -1
- package/esm/plots/treemap/adaptor.js +3 -3
- package/esm/plots/treemap/adaptor.js.map +1 -1
- package/esm/plots/treemap/index.d.ts +2 -2
- package/esm/plots/treemap/index.js +1 -1
- package/esm/plots/treemap/index.js.map +1 -1
- package/esm/plots/treemap/utils.js +1 -1
- package/esm/plots/treemap/utils.js.map +1 -1
- package/esm/plots/venn/adaptor.d.ts +3 -3
- package/esm/plots/venn/adaptor.js +6 -7
- package/esm/plots/venn/adaptor.js.map +1 -1
- package/esm/plots/venn/index.d.ts +1 -1
- package/esm/plots/venn/index.js.map +1 -1
- package/esm/plots/venn/interactions/index.js +1 -1
- package/esm/plots/venn/interactions/index.js.map +1 -1
- package/esm/plots/venn/label.js +1 -1
- package/esm/plots/venn/label.js.map +1 -1
- package/esm/plots/venn/layout/diagram.js +1 -1
- package/esm/plots/venn/layout/diagram.js.map +1 -1
- package/esm/plots/venn/layout/layout.js +2 -2
- package/esm/plots/venn/layout/layout.js.map +1 -1
- package/esm/plots/venn/shape.js.map +1 -1
- package/esm/plots/venn/utils.js +3 -3
- package/esm/plots/venn/utils.js.map +1 -1
- package/esm/plots/violin/adaptor.js +5 -5
- package/esm/plots/violin/adaptor.js.map +1 -1
- package/esm/plots/violin/index.d.ts +1 -1
- package/esm/plots/violin/index.js.map +1 -1
- package/esm/plots/violin/utils.js +1 -1
- package/esm/plots/violin/utils.js.map +1 -1
- package/esm/plots/waterfall/adaptor.d.ts +1 -1
- package/esm/plots/waterfall/adaptor.js +4 -4
- package/esm/plots/waterfall/adaptor.js.map +1 -1
- package/esm/plots/waterfall/index.d.ts +1 -1
- package/esm/plots/waterfall/index.js.map +1 -1
- package/esm/plots/waterfall/shape.js.map +1 -1
- package/esm/plots/waterfall/utils.js +1 -1
- package/esm/plots/waterfall/utils.js.map +1 -1
- package/esm/plots/word-cloud/adaptor.js +4 -4
- package/esm/plots/word-cloud/adaptor.js.map +1 -1
- package/esm/plots/word-cloud/index.d.ts +2 -2
- package/esm/plots/word-cloud/index.js +1 -1
- package/esm/plots/word-cloud/index.js.map +1 -1
- package/esm/plots/word-cloud/shapes/word-cloud.js.map +1 -1
- package/esm/plots/word-cloud/utils.js +1 -1
- package/esm/plots/word-cloud/utils.js.map +1 -1
- package/esm/plugin/index.d.ts +1 -1
- package/esm/plugin/index.js +1 -1
- package/esm/plugin/index.js.map +1 -1
- package/esm/types/common.d.ts +8 -8
- package/esm/types/common.js.map +1 -1
- package/esm/types/index.d.ts +7 -7
- package/esm/types/index.js +7 -7
- package/esm/types/index.js.map +1 -1
- package/esm/types/state.d.ts +2 -2
- package/esm/types/state.js.map +1 -1
- package/esm/utils/data.js +1 -1
- package/esm/utils/data.js.map +1 -1
- package/esm/utils/geometry.d.ts +1 -1
- package/esm/utils/geometry.js +1 -1
- package/esm/utils/geometry.js.map +1 -1
- package/esm/utils/hierarchy/pack.js +2 -2
- package/esm/utils/hierarchy/pack.js.map +1 -1
- package/esm/utils/hierarchy/partition.js +2 -2
- package/esm/utils/hierarchy/partition.js.map +1 -1
- package/esm/utils/hierarchy/treemap.js +2 -2
- package/esm/utils/hierarchy/treemap.js.map +1 -1
- package/esm/utils/hierarchy/util.js +1 -1
- package/esm/utils/hierarchy/util.js.map +1 -1
- package/esm/utils/index.d.ts +10 -11
- package/esm/utils/index.js +10 -11
- package/esm/utils/index.js.map +1 -1
- package/esm/utils/padding.js +1 -1
- package/esm/utils/padding.js.map +1 -1
- package/esm/utils/path.d.ts +1 -1
- package/esm/utils/path.js.map +1 -1
- package/esm/utils/pattern/dot.js +1 -1
- package/esm/utils/pattern/dot.js.map +1 -1
- package/esm/utils/pattern/line.js +1 -1
- package/esm/utils/pattern/line.js.map +1 -1
- package/esm/utils/pattern/square.js +1 -1
- package/esm/utils/pattern/square.js.map +1 -1
- package/esm/utils/statistic.js +3 -2
- package/esm/utils/statistic.js.map +1 -1
- package/esm/utils/transform/histogram.js +1 -1
- package/esm/utils/transform/histogram.js.map +1 -1
- package/esm/utils/transform/word-cloud.js +4 -3
- package/esm/utils/transform/word-cloud.js.map +1 -1
- package/esm/utils/view.d.ts +1 -1
- package/esm/utils/view.js.map +1 -1
- package/lib/adaptor/brush.d.ts +1 -1
- package/lib/adaptor/brush.js +2 -2
- package/lib/adaptor/brush.js.map +1 -1
- package/lib/adaptor/common.d.ts +1 -1
- package/lib/adaptor/common.js.map +1 -1
- package/lib/adaptor/connected-area.d.ts +1 -1
- package/lib/adaptor/connected-area.js.map +1 -1
- package/lib/adaptor/conversion-tag.js +1 -1
- package/lib/adaptor/conversion-tag.js.map +1 -1
- package/lib/adaptor/geometries/area.js +1 -1
- package/lib/adaptor/geometries/area.js.map +1 -1
- package/lib/adaptor/geometries/base.d.ts +1 -1
- package/lib/adaptor/geometries/base.js.map +1 -1
- package/lib/adaptor/geometries/edge.d.ts +1 -1
- package/lib/adaptor/geometries/edge.js +1 -1
- package/lib/adaptor/geometries/edge.js.map +1 -1
- package/lib/adaptor/geometries/index.d.ts +5 -5
- package/lib/adaptor/geometries/index.js +4 -4
- package/lib/adaptor/geometries/index.js.map +1 -1
- package/lib/adaptor/geometries/interval.js.map +1 -1
- package/lib/adaptor/geometries/line.js +1 -1
- package/lib/adaptor/geometries/line.js.map +1 -1
- package/lib/adaptor/geometries/point.d.ts +1 -1
- package/lib/adaptor/geometries/point.js +1 -1
- package/lib/adaptor/geometries/point.js.map +1 -1
- package/lib/adaptor/geometries/polygon.d.ts +1 -1
- package/lib/adaptor/geometries/polygon.js +1 -1
- package/lib/adaptor/geometries/polygon.js.map +1 -1
- package/lib/adaptor/geometries/schema.d.ts +1 -1
- package/lib/adaptor/geometries/schema.js +1 -1
- package/lib/adaptor/geometries/schema.js.map +1 -1
- package/lib/adaptor/geometries/violin.d.ts +1 -1
- package/lib/adaptor/geometries/violin.js +1 -1
- package/lib/adaptor/geometries/violin.js.map +1 -1
- package/lib/adaptor/pattern.d.ts +1 -1
- package/lib/adaptor/pattern.js +1 -1
- package/lib/adaptor/pattern.js.map +1 -1
- package/lib/core/plot.d.ts +2 -2
- package/lib/core/plot.js +1 -1
- package/lib/core/plot.js.map +1 -1
- package/lib/index.d.ts +68 -71
- package/lib/index.js +103 -105
- package/lib/index.js.map +1 -1
- package/lib/interactions/actions/drill-down.js.map +1 -1
- package/lib/interactions/drill-down.js.map +1 -1
- package/lib/plots/_template/adaptor.js.map +1 -1
- package/lib/plots/_template/index.d.ts +1 -1
- package/lib/plots/_template/index.js.map +1 -1
- package/lib/plots/area/adaptor.js +6 -7
- package/lib/plots/area/adaptor.js.map +1 -1
- package/lib/plots/area/index.d.ts +1 -1
- package/lib/plots/area/index.js.map +1 -1
- package/lib/plots/bar/adaptor.d.ts +1 -1
- package/lib/plots/bar/adaptor.js.map +1 -1
- package/lib/plots/bar/index.d.ts +1 -1
- package/lib/plots/bar/index.js.map +1 -1
- package/lib/plots/bidirectional-bar/adaptor.js.map +1 -1
- package/lib/plots/bidirectional-bar/index.d.ts +1 -1
- package/lib/plots/bidirectional-bar/index.js +1 -1
- package/lib/plots/bidirectional-bar/index.js.map +1 -1
- package/lib/plots/bidirectional-bar/types.d.ts +1 -1
- package/lib/plots/bidirectional-bar/types.js.map +1 -1
- package/lib/plots/bidirectional-bar/utils.js.map +1 -1
- package/lib/plots/box/adaptor.js +1 -1
- package/lib/plots/box/adaptor.js.map +1 -1
- package/lib/plots/box/index.d.ts +1 -1
- package/lib/plots/box/index.js +1 -1
- package/lib/plots/box/index.js.map +1 -1
- package/lib/plots/bullet/adaptor.js +1 -1
- package/lib/plots/bullet/adaptor.js.map +1 -1
- package/lib/plots/bullet/index.d.ts +1 -1
- package/lib/plots/bullet/index.js +1 -1
- package/lib/plots/bullet/index.js.map +1 -1
- package/lib/plots/bullet/types.d.ts +1 -1
- package/lib/plots/bullet/types.js.map +1 -1
- package/lib/plots/chord/adaptor.js +3 -4
- package/lib/plots/chord/adaptor.js.map +1 -1
- package/lib/plots/chord/index.d.ts +1 -1
- package/lib/plots/chord/index.js.map +1 -1
- package/lib/plots/circle-packing/adaptor.js +2 -2
- package/lib/plots/circle-packing/adaptor.js.map +1 -1
- package/lib/plots/circle-packing/index.d.ts +2 -2
- package/lib/plots/circle-packing/index.js.map +1 -1
- package/lib/plots/circle-packing/utils.js +2 -2
- package/lib/plots/circle-packing/utils.js.map +1 -1
- package/lib/plots/column/adaptor.js +2 -2
- package/lib/plots/column/adaptor.js.map +1 -1
- package/lib/plots/column/index.d.ts +1 -1
- package/lib/plots/column/index.js.map +1 -1
- package/lib/plots/column/types.d.ts +2 -2
- package/lib/plots/column/types.js.map +1 -1
- package/lib/plots/dual-axes/adaptor.js +5 -5
- package/lib/plots/dual-axes/adaptor.js.map +1 -1
- package/lib/plots/dual-axes/index.d.ts +1 -1
- package/lib/plots/dual-axes/index.js.map +1 -1
- package/lib/plots/dual-axes/types.d.ts +1 -1
- package/lib/plots/dual-axes/types.js.map +1 -1
- package/lib/plots/dual-axes/util/geometry.js.map +1 -1
- package/lib/plots/dual-axes/util/legend.d.ts +1 -1
- package/lib/plots/dual-axes/util/legend.js +1 -1
- package/lib/plots/dual-axes/util/legend.js.map +1 -1
- package/lib/plots/dual-axes/util/option.d.ts +1 -1
- package/lib/plots/dual-axes/util/option.js +1 -1
- package/lib/plots/dual-axes/util/option.js.map +1 -1
- package/lib/plots/facet/adaptor.js.map +1 -1
- package/lib/plots/facet/index.d.ts +1 -1
- package/lib/plots/facet/index.js.map +1 -1
- package/lib/plots/facet/types.d.ts +4 -4
- package/lib/plots/facet/types.js.map +1 -1
- package/lib/plots/facet/utils.js.map +1 -1
- package/lib/plots/funnel/adaptor.js +2 -2
- package/lib/plots/funnel/adaptor.js.map +1 -1
- package/lib/plots/funnel/geometries/basic.js +1 -1
- package/lib/plots/funnel/geometries/basic.js.map +1 -1
- package/lib/plots/funnel/geometries/common.d.ts +1 -1
- package/lib/plots/funnel/geometries/common.js.map +1 -1
- package/lib/plots/funnel/geometries/compare.js +1 -1
- package/lib/plots/funnel/geometries/compare.js.map +1 -1
- package/lib/plots/funnel/geometries/dynamic-height.js +2 -2
- package/lib/plots/funnel/geometries/dynamic-height.js.map +1 -1
- package/lib/plots/funnel/geometries/facet.js.map +1 -1
- package/lib/plots/funnel/index.d.ts +3 -3
- package/lib/plots/funnel/index.js.map +1 -1
- package/lib/plots/funnel/interactions/funnel-conversion-tag.js +2 -2
- package/lib/plots/funnel/interactions/funnel-conversion-tag.js.map +1 -1
- package/lib/plots/funnel/types.d.ts +1 -1
- package/lib/plots/funnel/types.js.map +1 -1
- package/lib/plots/gauge/adaptor.js.map +1 -1
- package/lib/plots/gauge/index.d.ts +2 -2
- package/lib/plots/gauge/index.js +1 -1
- package/lib/plots/gauge/index.js.map +1 -1
- package/lib/plots/gauge/utils.js.map +1 -1
- package/lib/plots/heatmap/adaptor.js +4 -5
- package/lib/plots/heatmap/adaptor.js.map +1 -1
- package/lib/plots/heatmap/index.d.ts +2 -2
- package/lib/plots/heatmap/index.js.map +1 -1
- package/lib/plots/heatmap/shapes/circle.js.map +1 -1
- package/lib/plots/heatmap/shapes/square.js.map +1 -1
- package/lib/plots/histogram/adaptor.js +4 -5
- package/lib/plots/histogram/adaptor.js.map +1 -1
- package/lib/plots/histogram/index.d.ts +1 -1
- package/lib/plots/histogram/index.js.map +1 -1
- package/lib/plots/line/adaptor.js +3 -4
- package/lib/plots/line/adaptor.js.map +1 -1
- package/lib/plots/line/index.d.ts +2 -2
- package/lib/plots/line/index.js.map +1 -1
- package/lib/plots/line/interactions/marker-active.js +1 -1
- package/lib/plots/line/interactions/marker-active.js.map +1 -1
- package/lib/plots/line/types.d.ts +1 -1
- package/lib/plots/line/types.js.map +1 -1
- package/lib/plots/liquid/adaptor.js +4 -2
- package/lib/plots/liquid/adaptor.js.map +1 -1
- package/lib/plots/liquid/index.d.ts +2 -2
- package/lib/plots/liquid/index.js +1 -1
- package/lib/plots/liquid/index.js.map +1 -1
- package/lib/plots/liquid/shapes/liquid.js +27 -17
- package/lib/plots/liquid/shapes/liquid.js.map +1 -1
- package/lib/plots/liquid/types.d.ts +7 -1
- package/lib/plots/liquid/types.js.map +1 -1
- package/lib/plots/mix/adaptor.js +2 -2
- package/lib/plots/mix/adaptor.js.map +1 -1
- package/lib/plots/mix/index.d.ts +2 -2
- package/lib/plots/mix/index.js.map +1 -1
- package/lib/plots/mix/interactions/association.js +1 -1
- package/lib/plots/mix/interactions/association.js.map +1 -1
- package/lib/plots/mix/interactions/utils.d.ts +1 -1
- package/lib/plots/mix/interactions/utils.js.map +1 -1
- package/lib/plots/mix/types.d.ts +3 -3
- package/lib/plots/mix/types.js.map +1 -1
- package/lib/plots/mix/utils.d.ts +10 -10
- package/lib/plots/mix/utils.js +37 -37
- package/lib/plots/mix/utils.js.map +1 -1
- package/lib/plots/pie/adaptor.js +2 -2
- package/lib/plots/pie/adaptor.js.map +1 -1
- package/lib/plots/pie/index.d.ts +2 -2
- package/lib/plots/pie/index.js +1 -1
- package/lib/plots/pie/index.js.map +1 -1
- package/lib/plots/pie/interactions/actions/legend-active.js.map +1 -1
- package/lib/plots/pie/interactions/actions/statistic-active.js.map +1 -1
- package/lib/plots/pie/types.d.ts +1 -1
- package/lib/plots/pie/types.js.map +1 -1
- package/lib/plots/progress/adaptor.js +1 -1
- package/lib/plots/progress/adaptor.js.map +1 -1
- package/lib/plots/progress/index.d.ts +1 -1
- package/lib/plots/progress/index.js.map +1 -1
- package/lib/plots/progress/types.d.ts +1 -1
- package/lib/plots/progress/types.js.map +1 -1
- package/lib/plots/radar/adaptor.js.map +1 -1
- package/lib/plots/radar/index.d.ts +2 -2
- package/lib/plots/radar/index.js.map +1 -1
- package/lib/plots/radar/interactions/radar-tooltip-action.d.ts +1 -1
- package/lib/plots/radar/interactions/radar-tooltip-action.js.map +1 -1
- package/lib/plots/radar/types.d.ts +1 -1
- package/lib/plots/radar/types.js.map +1 -1
- package/lib/plots/radial-bar/adaptor.js +6 -7
- package/lib/plots/radial-bar/adaptor.js.map +1 -1
- package/lib/plots/radial-bar/index.d.ts +1 -1
- package/lib/plots/radial-bar/index.js.map +1 -1
- package/lib/plots/ring-progress/adaptor.js +1 -1
- package/lib/plots/ring-progress/adaptor.js.map +1 -1
- package/lib/plots/ring-progress/index.d.ts +1 -1
- package/lib/plots/ring-progress/index.js.map +1 -1
- package/lib/plots/ring-progress/types.d.ts +1 -1
- package/lib/plots/ring-progress/types.js.map +1 -1
- package/lib/plots/rose/adaptor.js +1 -1
- package/lib/plots/rose/adaptor.js.map +1 -1
- package/lib/plots/rose/index.d.ts +1 -1
- package/lib/plots/rose/index.js.map +1 -1
- package/lib/plots/sankey/adaptor.js +2 -2
- package/lib/plots/sankey/adaptor.js.map +1 -1
- package/lib/plots/sankey/helper.js +1 -1
- package/lib/plots/sankey/helper.js.map +1 -1
- package/lib/plots/sankey/index.d.ts +2 -2
- package/lib/plots/sankey/index.js +1 -1
- package/lib/plots/sankey/index.js.map +1 -1
- package/lib/plots/sankey/interactions/node-draggable.js.map +1 -1
- package/lib/plots/sankey/layout.d.ts +1 -1
- package/lib/plots/sankey/layout.js.map +1 -1
- package/lib/plots/sankey/sankey/index.d.ts +1 -1
- package/lib/plots/sankey/sankey/index.js +1 -1
- package/lib/plots/sankey/sankey/index.js.map +1 -1
- package/lib/plots/sankey/sankey/sankey.js.map +1 -1
- package/lib/plots/scatter/adaptor.js +5 -6
- package/lib/plots/scatter/adaptor.js.map +1 -1
- package/lib/plots/scatter/index.d.ts +2 -2
- package/lib/plots/scatter/index.js.map +1 -1
- package/lib/plots/scatter/types.d.ts +1 -1
- package/lib/plots/scatter/types.js.map +1 -1
- package/lib/plots/scatter/util.js +1 -1
- package/lib/plots/scatter/util.js.map +1 -1
- package/lib/plots/stock/adaptor.js +1 -1
- package/lib/plots/stock/adaptor.js.map +1 -1
- package/lib/plots/stock/index.d.ts +1 -1
- package/lib/plots/stock/index.js +1 -1
- package/lib/plots/stock/index.js.map +1 -1
- package/lib/plots/stock/utils.js.map +1 -1
- package/lib/plots/sunburst/adaptor.js +1 -1
- package/lib/plots/sunburst/adaptor.js.map +1 -1
- package/lib/plots/sunburst/index.d.ts +2 -2
- package/lib/plots/sunburst/index.js.map +1 -1
- package/lib/plots/tiny-area/adaptor.js +2 -2
- package/lib/plots/tiny-area/adaptor.js.map +1 -1
- package/lib/plots/tiny-area/index.d.ts +1 -1
- package/lib/plots/tiny-area/index.js.map +1 -1
- package/lib/plots/tiny-area/types.d.ts +1 -1
- package/lib/plots/tiny-area/types.js.map +1 -1
- package/lib/plots/tiny-column/adaptor.js +3 -3
- package/lib/plots/tiny-column/adaptor.js.map +1 -1
- package/lib/plots/tiny-line/adaptor.js +2 -2
- package/lib/plots/tiny-line/adaptor.js.map +1 -1
- package/lib/plots/tiny-line/index.d.ts +1 -1
- package/lib/plots/tiny-line/index.js.map +1 -1
- package/lib/plots/tiny-line/types.d.ts +1 -1
- package/lib/plots/tiny-line/types.js.map +1 -1
- package/lib/plots/treemap/adaptor.js +1 -1
- package/lib/plots/treemap/adaptor.js.map +1 -1
- package/lib/plots/treemap/index.d.ts +2 -2
- package/lib/plots/treemap/index.js +1 -1
- package/lib/plots/treemap/index.js.map +1 -1
- package/lib/plots/treemap/utils.js.map +1 -1
- package/lib/plots/venn/adaptor.d.ts +3 -3
- package/lib/plots/venn/adaptor.js +8 -9
- package/lib/plots/venn/adaptor.js.map +1 -1
- package/lib/plots/venn/index.d.ts +1 -1
- package/lib/plots/venn/index.js.map +1 -1
- package/lib/plots/venn/interactions/index.js.map +1 -1
- package/lib/plots/venn/label.js.map +1 -1
- package/lib/plots/venn/layout/diagram.js.map +1 -1
- package/lib/plots/venn/layout/layout.js.map +1 -1
- package/lib/plots/venn/shape.js.map +1 -1
- package/lib/plots/venn/utils.js +3 -3
- package/lib/plots/venn/utils.js.map +1 -1
- package/lib/plots/violin/adaptor.js +2 -2
- package/lib/plots/violin/adaptor.js.map +1 -1
- package/lib/plots/violin/index.d.ts +1 -1
- package/lib/plots/violin/index.js.map +1 -1
- package/lib/plots/violin/utils.js.map +1 -1
- package/lib/plots/waterfall/adaptor.d.ts +1 -1
- package/lib/plots/waterfall/adaptor.js +1 -1
- package/lib/plots/waterfall/adaptor.js.map +1 -1
- package/lib/plots/waterfall/index.d.ts +1 -1
- package/lib/plots/waterfall/index.js.map +1 -1
- package/lib/plots/waterfall/shape.js.map +1 -1
- package/lib/plots/waterfall/utils.js.map +1 -1
- package/lib/plots/word-cloud/adaptor.js +2 -2
- package/lib/plots/word-cloud/adaptor.js.map +1 -1
- package/lib/plots/word-cloud/index.d.ts +2 -2
- package/lib/plots/word-cloud/index.js +1 -1
- package/lib/plots/word-cloud/index.js.map +1 -1
- package/lib/plots/word-cloud/shapes/word-cloud.js.map +1 -1
- package/lib/plots/word-cloud/utils.js +1 -1
- package/lib/plots/word-cloud/utils.js.map +1 -1
- package/lib/plugin/index.d.ts +1 -1
- package/lib/plugin/index.js +1 -1
- package/lib/plugin/index.js.map +1 -1
- package/lib/types/common.d.ts +8 -8
- package/lib/types/common.js.map +1 -1
- package/lib/types/index.d.ts +7 -7
- package/lib/types/index.js +7 -7
- package/lib/types/index.js.map +1 -1
- package/lib/types/state.d.ts +2 -2
- package/lib/types/state.js.map +1 -1
- package/lib/utils/data.js.map +1 -1
- package/lib/utils/geometry.d.ts +1 -1
- package/lib/utils/geometry.js.map +1 -1
- package/lib/utils/hierarchy/pack.js +1 -1
- package/lib/utils/hierarchy/pack.js.map +1 -1
- package/lib/utils/hierarchy/partition.js +1 -1
- package/lib/utils/hierarchy/partition.js.map +1 -1
- package/lib/utils/hierarchy/treemap.js +1 -1
- package/lib/utils/hierarchy/treemap.js.map +1 -1
- package/lib/utils/hierarchy/util.js.map +1 -1
- package/lib/utils/index.d.ts +10 -11
- package/lib/utils/index.js +23 -24
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/padding.js.map +1 -1
- package/lib/utils/path.d.ts +1 -1
- package/lib/utils/path.js.map +1 -1
- package/lib/utils/pattern/dot.js.map +1 -1
- package/lib/utils/pattern/line.js.map +1 -1
- package/lib/utils/pattern/square.js.map +1 -1
- package/lib/utils/statistic.js +8 -7
- package/lib/utils/statistic.js.map +1 -1
- package/lib/utils/transform/histogram.js.map +1 -1
- package/lib/utils/transform/word-cloud.js +3 -2
- package/lib/utils/transform/word-cloud.js.map +1 -1
- package/lib/utils/view.d.ts +1 -1
- package/lib/utils/view.js.map +1 -1
- package/package.json +15 -46
- package/src/adaptor/brush.ts +3 -4
- package/src/adaptor/common.ts +4 -4
- package/src/adaptor/connected-area.ts +1 -1
- package/src/adaptor/conversion-tag.ts +3 -3
- package/src/adaptor/geometries/area.ts +2 -2
- package/src/adaptor/geometries/base.ts +2 -2
- package/src/adaptor/geometries/edge.ts +2 -2
- package/src/adaptor/geometries/index.ts +5 -5
- package/src/adaptor/geometries/interval.ts +1 -1
- package/src/adaptor/geometries/line.ts +2 -2
- package/src/adaptor/geometries/point.ts +2 -2
- package/src/adaptor/geometries/polygon.ts +2 -2
- package/src/adaptor/geometries/schema.ts +2 -2
- package/src/adaptor/geometries/violin.ts +2 -2
- package/src/adaptor/pattern.ts +1 -1
- package/src/core/plot.ts +4 -4
- package/src/index.ts +105 -151
- package/src/interactions/actions/drill-down.ts +1 -1
- package/src/interactions/drill-down.ts +1 -1
- package/src/plots/_template/adaptor.ts +1 -1
- package/src/plots/_template/index.ts +2 -2
- package/src/plots/area/adaptor.ts +8 -9
- package/src/plots/area/index.ts +2 -2
- package/src/plots/bar/adaptor.ts +3 -3
- package/src/plots/bar/index.ts +2 -2
- package/src/plots/bidirectional-bar/adaptor.ts +6 -6
- package/src/plots/bidirectional-bar/index.ts +5 -5
- package/src/plots/bidirectional-bar/types.ts +1 -1
- package/src/plots/bidirectional-bar/utils.ts +1 -1
- package/src/plots/box/adaptor.ts +5 -5
- package/src/plots/box/index.ts +3 -3
- package/src/plots/bullet/adaptor.ts +3 -3
- package/src/plots/bullet/index.ts +3 -3
- package/src/plots/bullet/types.ts +1 -1
- package/src/plots/chord/adaptor.ts +4 -5
- package/src/plots/chord/index.ts +1 -1
- package/src/plots/circle-packing/adaptor.ts +10 -10
- package/src/plots/circle-packing/index.ts +2 -2
- package/src/plots/circle-packing/utils.ts +2 -2
- package/src/plots/column/adaptor.ts +10 -10
- package/src/plots/column/index.ts +2 -2
- package/src/plots/column/types.ts +2 -2
- package/src/plots/dual-axes/adaptor.ts +11 -11
- package/src/plots/dual-axes/index.ts +2 -2
- package/src/plots/dual-axes/types.ts +1 -1
- package/src/plots/dual-axes/util/geometry.ts +4 -4
- package/src/plots/dual-axes/util/legend.ts +3 -3
- package/src/plots/dual-axes/util/option.ts +5 -5
- package/src/plots/facet/adaptor.ts +2 -2
- package/src/plots/facet/index.ts +1 -1
- package/src/plots/facet/types.ts +4 -5
- package/src/plots/facet/utils.ts +1 -1
- package/src/plots/funnel/adaptor.ts +7 -7
- package/src/plots/funnel/geometries/basic.ts +6 -6
- package/src/plots/funnel/geometries/common.ts +3 -3
- package/src/plots/funnel/geometries/compare.ts +5 -5
- package/src/plots/funnel/geometries/dynamic-height.ts +5 -5
- package/src/plots/funnel/geometries/facet.ts +1 -1
- package/src/plots/funnel/index.ts +4 -5
- package/src/plots/funnel/interactions/funnel-conversion-tag.ts +2 -2
- package/src/plots/funnel/types.ts +1 -1
- package/src/plots/gauge/adaptor.ts +2 -2
- package/src/plots/gauge/index.ts +5 -6
- package/src/plots/gauge/utils.ts +2 -2
- package/src/plots/heatmap/adaptor.ts +3 -4
- package/src/plots/heatmap/index.ts +2 -2
- package/src/plots/heatmap/shapes/circle.ts +1 -1
- package/src/plots/heatmap/shapes/square.ts +1 -1
- package/src/plots/histogram/adaptor.ts +5 -6
- package/src/plots/histogram/index.ts +2 -2
- package/src/plots/line/adaptor.ts +8 -9
- package/src/plots/line/index.ts +2 -2
- package/src/plots/line/interactions/marker-active.ts +1 -1
- package/src/plots/line/types.ts +1 -1
- package/src/plots/liquid/adaptor.ts +7 -5
- package/src/plots/liquid/index.ts +4 -5
- package/src/plots/liquid/shapes/liquid.ts +47 -33
- package/src/plots/liquid/types.ts +7 -1
- package/src/plots/mix/adaptor.ts +6 -6
- package/src/plots/mix/index.ts +2 -2
- package/src/plots/mix/interactions/association.ts +3 -3
- package/src/plots/mix/interactions/utils.ts +1 -1
- package/src/plots/mix/types.ts +3 -3
- package/src/plots/mix/utils.ts +23 -23
- package/src/plots/pie/adaptor.ts +7 -7
- package/src/plots/pie/index.ts +3 -3
- package/src/plots/pie/interactions/actions/legend-active.ts +1 -1
- package/src/plots/pie/interactions/actions/statistic-active.ts +1 -1
- package/src/plots/pie/types.ts +1 -1
- package/src/plots/progress/adaptor.ts +4 -4
- package/src/plots/progress/index.ts +2 -2
- package/src/plots/progress/types.ts +1 -1
- package/src/plots/radar/adaptor.ts +3 -3
- package/src/plots/radar/index.ts +2 -2
- package/src/plots/radar/interactions/radar-tooltip-action.ts +1 -1
- package/src/plots/radar/types.ts +1 -1
- package/src/plots/radial-bar/adaptor.ts +3 -4
- package/src/plots/radial-bar/index.ts +2 -2
- package/src/plots/ring-progress/adaptor.ts +1 -1
- package/src/plots/ring-progress/index.ts +3 -3
- package/src/plots/ring-progress/types.ts +1 -1
- package/src/plots/rose/adaptor.ts +4 -4
- package/src/plots/rose/index.ts +2 -2
- package/src/plots/sankey/adaptor.ts +2 -2
- package/src/plots/sankey/helper.ts +2 -2
- package/src/plots/sankey/index.ts +3 -3
- package/src/plots/sankey/interactions/node-draggable.ts +1 -1
- package/src/plots/sankey/layout.ts +2 -2
- package/src/plots/sankey/sankey/index.ts +1 -1
- package/src/plots/sankey/sankey/sankey.ts +1 -1
- package/src/plots/scatter/adaptor.ts +5 -6
- package/src/plots/scatter/index.ts +3 -3
- package/src/plots/scatter/types.ts +5 -5
- package/src/plots/scatter/util.ts +3 -3
- package/src/plots/stock/adaptor.ts +4 -5
- package/src/plots/stock/index.ts +3 -3
- package/src/plots/stock/utils.ts +1 -1
- package/src/plots/sunburst/adaptor.ts +10 -10
- package/src/plots/sunburst/index.ts +2 -2
- package/src/plots/tiny-area/adaptor.ts +4 -4
- package/src/plots/tiny-area/index.ts +2 -2
- package/src/plots/tiny-area/types.ts +1 -1
- package/src/plots/tiny-column/adaptor.ts +4 -4
- package/src/plots/tiny-line/adaptor.ts +5 -5
- package/src/plots/tiny-line/index.ts +2 -2
- package/src/plots/tiny-line/types.ts +1 -1
- package/src/plots/treemap/adaptor.ts +4 -4
- package/src/plots/treemap/index.ts +3 -3
- package/src/plots/treemap/utils.ts +1 -1
- package/src/plots/venn/adaptor.ts +12 -11
- package/src/plots/venn/index.ts +2 -2
- package/src/plots/venn/interactions/index.ts +1 -1
- package/src/plots/venn/label.ts +1 -1
- package/src/plots/venn/layout/diagram.ts +1 -1
- package/src/plots/venn/layout/layout.ts +2 -2
- package/src/plots/venn/shape.ts +2 -2
- package/src/plots/venn/utils.ts +3 -3
- package/src/plots/violin/adaptor.ts +7 -7
- package/src/plots/violin/index.ts +2 -2
- package/src/plots/violin/utils.ts +1 -1
- package/src/plots/waterfall/adaptor.ts +6 -6
- package/src/plots/waterfall/index.ts +2 -2
- package/src/plots/waterfall/shape.ts +2 -3
- package/src/plots/waterfall/utils.ts +1 -1
- package/src/plots/word-cloud/adaptor.ts +5 -5
- package/src/plots/word-cloud/index.ts +3 -3
- package/src/plots/word-cloud/shapes/word-cloud.ts +1 -1
- package/src/plots/word-cloud/utils.ts +3 -4
- package/src/plugin/index.ts +2 -2
- package/src/types/common.ts +8 -8
- package/src/types/index.ts +7 -7
- package/src/types/state.ts +2 -2
- package/src/utils/data.ts +1 -1
- package/src/utils/geometry.ts +2 -2
- package/src/utils/hierarchy/pack.ts +2 -2
- package/src/utils/hierarchy/partition.ts +2 -2
- package/src/utils/hierarchy/treemap.ts +2 -2
- package/src/utils/hierarchy/util.ts +1 -1
- package/src/utils/index.ts +10 -11
- package/src/utils/padding.ts +1 -1
- package/src/utils/path.ts +1 -1
- package/src/utils/pattern/dot.ts +3 -3
- package/src/utils/pattern/line.ts +1 -1
- package/src/utils/pattern/square.ts +3 -3
- package/src/utils/statistic.ts +4 -3
- package/src/utils/transform/histogram.ts +1 -1
- package/src/utils/transform/word-cloud.ts +6 -3
- package/src/utils/view.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Types } from '@antv/g2';
|
|
2
|
-
import { pack } from '../../utils/hierarchy/pack';
|
|
3
|
-
import { deepAssign, pick } from '../../utils';
|
|
4
2
|
import { HIERARCHY_DATA_TRANSFORM_PARAMS } from '../../interactions/actions/drill-down';
|
|
3
|
+
import { deepAssign, pick } from '../../utils';
|
|
4
|
+
import { pack } from '../../utils/hierarchy/pack';
|
|
5
5
|
import { resolveAllPadding } from '../../utils/padding';
|
|
6
6
|
import { CirclePackingOptions } from './types';
|
|
7
7
|
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { Types } from '@antv/g2';
|
|
2
2
|
import { each, filter, isMatch } from '@antv/util';
|
|
3
|
-
import {
|
|
3
|
+
import { brushInteraction } from '../../adaptor/brush';
|
|
4
4
|
import {
|
|
5
|
-
slider,
|
|
6
|
-
interaction,
|
|
7
5
|
animation,
|
|
8
|
-
theme,
|
|
9
|
-
scale,
|
|
10
6
|
annotation,
|
|
11
|
-
|
|
7
|
+
interaction,
|
|
12
8
|
limitInPlot,
|
|
9
|
+
scale,
|
|
10
|
+
scrollbar,
|
|
11
|
+
slider,
|
|
13
12
|
state,
|
|
13
|
+
theme,
|
|
14
14
|
transformations,
|
|
15
15
|
} from '../../adaptor/common';
|
|
16
|
-
import { conversionTag } from '../../adaptor/conversion-tag';
|
|
17
16
|
import { connectedArea } from '../../adaptor/connected-area';
|
|
17
|
+
import { conversionTag } from '../../adaptor/conversion-tag';
|
|
18
18
|
import { interval } from '../../adaptor/geometries';
|
|
19
19
|
import { pattern } from '../../adaptor/pattern';
|
|
20
|
-
import {
|
|
21
|
-
import { flow, transformLabel, deepAssign, findGeometry, adjustYMetaByZero, pick } from '../../utils';
|
|
22
|
-
import { getDataWhetherPercentage, getDeepPercent } from '../../utils/transform/percent';
|
|
20
|
+
import { Params } from '../../core/adaptor';
|
|
23
21
|
import { Datum } from '../../types';
|
|
22
|
+
import { adjustYMetaByZero, deepAssign, findGeometry, flow, pick, transformLabel } from '../../utils';
|
|
23
|
+
import { getDataWhetherPercentage, getDeepPercent } from '../../utils/transform/percent';
|
|
24
24
|
import { ColumnOptions } from './types';
|
|
25
25
|
|
|
26
26
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Plot } from '../../core/plot';
|
|
2
1
|
import { Adaptor } from '../../core/adaptor';
|
|
2
|
+
import { Plot } from '../../core/plot';
|
|
3
3
|
import { getDataWhetherPercentage } from '../../utils/transform/percent';
|
|
4
|
-
import { ColumnOptions } from './types';
|
|
5
4
|
import { adaptor, meta } from './adaptor';
|
|
6
5
|
import { DEFAULT_OPTIONS } from './constants';
|
|
6
|
+
import { ColumnOptions } from './types';
|
|
7
7
|
|
|
8
8
|
export type { ColumnOptions };
|
|
9
9
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ShapeAttrs } from '@antv/g2';
|
|
2
|
-
import { BrushCfg, Options, StyleAttr } from '../../types';
|
|
3
|
-
import { OptionWithConversionTag } from '../../adaptor/conversion-tag';
|
|
4
2
|
import { OptionWithConnectedArea } from '../../adaptor/connected-area';
|
|
3
|
+
import { OptionWithConversionTag } from '../../adaptor/conversion-tag';
|
|
5
4
|
import { IntervalGeometryOptions } from '../../adaptor/geometries/interval';
|
|
5
|
+
import { BrushCfg, Options, StyleAttr } from '../../types';
|
|
6
6
|
import { Transformations } from '../../types/coordinate';
|
|
7
7
|
|
|
8
8
|
type PartialIntervalGeometryOptions = Pick<IntervalGeometryOptions, 'dodgePadding' | 'intervalPadding'>;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Event, Scale, Types } from '@antv/g2';
|
|
2
|
+
import { each, every, find, findIndex, get, isBoolean, isEqual, isObject } from '@antv/util';
|
|
3
3
|
import {
|
|
4
|
-
theme as commonTheme,
|
|
5
4
|
animation as commonAnimation,
|
|
6
|
-
scale,
|
|
7
|
-
interaction as commonInteraction,
|
|
8
5
|
annotation as commonAnnotation,
|
|
6
|
+
interaction as commonInteraction,
|
|
9
7
|
limitInPlot as commonLimitInPlot,
|
|
8
|
+
scale,
|
|
9
|
+
theme as commonTheme,
|
|
10
10
|
} from '../../adaptor/common';
|
|
11
|
-
import { percent } from '../../utils/transform/percent';
|
|
12
11
|
import { Params } from '../../core/adaptor';
|
|
13
12
|
import { Datum } from '../../types';
|
|
14
|
-
import {
|
|
13
|
+
import { deepAssign, flow } from '../../utils';
|
|
14
|
+
import { percent } from '../../utils/transform/percent';
|
|
15
15
|
import { findViewById } from '../../utils/view';
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
16
|
+
import { LEFT_AXES_VIEW, RIGHT_AXES_VIEW } from './constant';
|
|
17
|
+
import { AxisType, DualAxesGeometry, DualAxesOptions } from './types';
|
|
18
18
|
import { drawSingleGeometry } from './util/geometry';
|
|
19
|
+
import { getViewLegendItems } from './util/legend';
|
|
20
|
+
import { getGeometryOption, getYAxisWithDefault, isColumn, transformObjectToArray } from './util/option';
|
|
19
21
|
import { doSliderFilter } from './util/render-sider';
|
|
20
|
-
import { DualAxesOptions, AxisType, DualAxesGeometry } from './types';
|
|
21
|
-
import { LEFT_AXES_VIEW, RIGHT_AXES_VIEW } from './constant';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* transformOptions,双轴图整体的取参逻辑如下
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Plot } from '../../core/plot';
|
|
2
1
|
import { Adaptor } from '../../core/adaptor';
|
|
2
|
+
import { Plot } from '../../core/plot';
|
|
3
3
|
import { deepAssign } from '../../utils';
|
|
4
|
-
import { DualAxesOptions } from './types';
|
|
5
4
|
import { adaptor } from './adaptor';
|
|
5
|
+
import { DualAxesOptions } from './types';
|
|
6
6
|
|
|
7
7
|
export type { DualAxesOptions };
|
|
8
8
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { each } from '@antv/util';
|
|
2
1
|
import { Geometry } from '@antv/g2';
|
|
2
|
+
import { each } from '@antv/util';
|
|
3
|
+
import { line, point } from '../../../adaptor/geometries';
|
|
3
4
|
import { Params } from '../../../core/adaptor';
|
|
4
|
-
import {
|
|
5
|
-
import { pick, deepAssign } from '../../../utils';
|
|
5
|
+
import { deepAssign, pick } from '../../../utils';
|
|
6
6
|
import { adaptor as columnAdaptor } from '../../column/adaptor';
|
|
7
7
|
import { GeometryOption } from '../types';
|
|
8
|
-
import {
|
|
8
|
+
import { isColumn, isLine } from './option';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* 绘制单个图形
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Util, View } from '@antv/g2';
|
|
2
|
+
import { get, isEmpty, isFunction, reduce } from '@antv/util';
|
|
3
|
+
import { Legend } from '../../../types/legend';
|
|
3
4
|
import { deepAssign, findGeometry } from '../../../utils';
|
|
4
5
|
import { GeometryOption } from '../types';
|
|
5
|
-
import { Legend } from '../../../types/legend';
|
|
6
6
|
import { isLine } from './option';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { get, isArray } from '@antv/util';
|
|
2
2
|
import { Axis } from '../../../types/axis';
|
|
3
3
|
import { deepAssign } from '../../../utils';
|
|
4
|
+
import { DEFAULT_LEFT_YAXIS_CONFIG, DEFAULT_RIGHT_YAXIS_CONFIG } from '../constant';
|
|
4
5
|
import {
|
|
5
|
-
|
|
6
|
-
GeometryOption,
|
|
6
|
+
AxisType,
|
|
7
7
|
DualAxesGeometry,
|
|
8
|
-
|
|
8
|
+
DualAxesOptions,
|
|
9
9
|
GeometryColumnOption,
|
|
10
|
-
|
|
10
|
+
GeometryLineOption,
|
|
11
|
+
GeometryOption,
|
|
11
12
|
} from '../types';
|
|
12
|
-
import { DEFAULT_LEFT_YAXIS_CONFIG, DEFAULT_RIGHT_YAXIS_CONFIG } from '../constant';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* 根据 GeometryOption 判断 geometry 是否为 line
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { each, omit } from '@antv/util';
|
|
2
2
|
import { theme } from '../../adaptor/common';
|
|
3
|
-
import { Params } from '../../core/adaptor';
|
|
4
3
|
import { AXIS_META_CONFIG_KEYS } from '../../constant';
|
|
5
|
-
import {
|
|
4
|
+
import { Params } from '../../core/adaptor';
|
|
6
5
|
import { Axis, Interaction } from '../../types';
|
|
6
|
+
import { deepAssign, flow, pick } from '../../utils';
|
|
7
7
|
import { execPlotAdaptor } from '../mix/utils';
|
|
8
8
|
import { FacetOptions, IPlot, IView } from './types';
|
|
9
9
|
import { execViewAdaptor } from './utils';
|
package/src/plots/facet/index.ts
CHANGED
package/src/plots/facet/types.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Data, Meta, Options, Tooltip } from '../../types';
|
|
3
|
-
import { Axis } from '../../types/axis';
|
|
4
|
-
import { Legend } from '../../types/legend';
|
|
1
|
+
import { Types, View } from '@antv/g2';
|
|
5
2
|
import { Geometry } from '../../adaptor/geometries/base';
|
|
6
|
-
import {
|
|
3
|
+
import { Data, Meta, Options, Tooltip } from '../../types';
|
|
7
4
|
import { Annotation } from '../../types/annotation';
|
|
5
|
+
import { Axis } from '../../types/axis';
|
|
8
6
|
import { Interaction } from '../../types/interaction';
|
|
7
|
+
import { Legend } from '../../types/legend';
|
|
9
8
|
import { IPlotTypes } from '../mix/utils';
|
|
10
9
|
|
|
11
10
|
/**
|
package/src/plots/facet/utils.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { View } from '@antv/g2';
|
|
|
2
2
|
import { each } from '@antv/util';
|
|
3
3
|
import { geometry as geometryAdaptor } from '../../adaptor/geometries/base';
|
|
4
4
|
import { AXIS_META_CONFIG_KEYS } from '../../constant';
|
|
5
|
-
import { pick, deepAssign, addViewAnimation } from '../../utils';
|
|
6
5
|
import { Axis, Interaction, Options } from '../../types';
|
|
6
|
+
import { addViewAnimation, deepAssign, pick } from '../../utils';
|
|
7
7
|
import { IView } from './types';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { clone, each, isFunction } from '@antv/util';
|
|
2
|
+
import { animation, annotation, scale, theme, tooltip } from '../../adaptor/common';
|
|
2
3
|
import { Params } from '../../core/adaptor';
|
|
3
|
-
import { animation, theme, scale, annotation, tooltip } from '../../adaptor/common';
|
|
4
4
|
import { getLocale } from '../../core/locale';
|
|
5
5
|
import { Datum } from '../../types';
|
|
6
|
-
import {
|
|
6
|
+
import { deepAssign, flow } from '../../utils';
|
|
7
7
|
import { conversionTagFormatter } from '../../utils/conversion';
|
|
8
|
-
import {
|
|
8
|
+
import { FUNNEL_CONVERSATION, FUNNEL_PERCENT } from './constant';
|
|
9
9
|
import { basicFunnel } from './geometries/basic';
|
|
10
10
|
import { compareFunnel } from './geometries/compare';
|
|
11
|
-
import { facetFunnel } from './geometries/facet';
|
|
12
11
|
import { dynamicHeightFunnel } from './geometries/dynamic-height';
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
12
|
+
import { facetFunnel } from './geometries/facet';
|
|
13
|
+
import { FUNNEL_LEGEND_FILTER, interactionStart } from './interactions';
|
|
14
|
+
import { FunnelOptions } from './types';
|
|
15
15
|
import type { Interaction } from './types';
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Types } from '@antv/g2';
|
|
2
|
-
import {
|
|
3
|
-
import { flow, findGeometry } from '../../../utils';
|
|
4
|
-
import { getTooltipMapping } from '../../../utils/tooltip';
|
|
5
|
-
import { Params } from '../../../core/adaptor';
|
|
6
|
-
import { Datum, Data } from '../../../types/common';
|
|
2
|
+
import { get, isArray, map } from '@antv/util';
|
|
7
3
|
import { geometry as baseGeometry } from '../../../adaptor/geometries/base';
|
|
4
|
+
import { Params } from '../../../core/adaptor';
|
|
5
|
+
import { Data, Datum } from '../../../types/common';
|
|
6
|
+
import { findGeometry, flow } from '../../../utils';
|
|
7
|
+
import { getTooltipMapping } from '../../../utils/tooltip';
|
|
8
|
+
import { FUNNEL_CONVERSATION, FUNNEL_MAPPING_VALUE, FUNNEL_PERCENT } from '../constant';
|
|
8
9
|
import { FunnelOptions } from '../types';
|
|
9
|
-
import { FUNNEL_CONVERSATION, FUNNEL_PERCENT, FUNNEL_MAPPING_VALUE } from '../constant';
|
|
10
10
|
import { conversionTagComponent, transformData } from './common';
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Types } from '@antv/g2';
|
|
2
|
-
import {
|
|
3
|
-
import { Datum, Data } from '../../../types/common';
|
|
4
|
-
import { FUNNEL_PERCENT, FUNNEL_CONVERSATION, FUNNEL_MAPPING_VALUE } from '../constant';
|
|
2
|
+
import { get, isFunction, isNumber, map, maxBy } from '@antv/util';
|
|
5
3
|
import { Params } from '../../../core/adaptor';
|
|
4
|
+
import { Data, Datum } from '../../../types/common';
|
|
5
|
+
import { FUNNEL_CONVERSATION, FUNNEL_MAPPING_VALUE, FUNNEL_PERCENT } from '../constant';
|
|
6
6
|
import { FunnelOptions } from '../types';
|
|
7
7
|
|
|
8
8
|
export const CONVERSION_TAG_NAME = 'CONVERSION_TAG_NAME';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Types } from '@antv/g2';
|
|
2
|
-
import { isArray, isNumber,
|
|
3
|
-
import {
|
|
2
|
+
import { get, isArray, isNumber, map } from '@antv/util';
|
|
3
|
+
import { geometry as baseGeometry } from '../../../adaptor/geometries/base';
|
|
4
4
|
import { Params } from '../../../core/adaptor';
|
|
5
|
-
import {
|
|
5
|
+
import { Data, Datum } from '../../../types/common';
|
|
6
|
+
import { deepAssign, flow } from '../../../utils';
|
|
6
7
|
import { getTooltipMapping } from '../../../utils/tooltip';
|
|
7
|
-
import {
|
|
8
|
+
import { FUNNEL_CONVERSATION, FUNNEL_MAPPING_VALUE, FUNNEL_PERCENT } from '../constant';
|
|
8
9
|
import { FunnelOptions } from '../types';
|
|
9
|
-
import { FUNNEL_PERCENT, FUNNEL_CONVERSATION, FUNNEL_MAPPING_VALUE } from '../constant';
|
|
10
10
|
import { conversionTagComponent, transformData } from './common';
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { map, reduce, maxBy, isArray, get } from '@antv/util';
|
|
2
1
|
import { Types } from '@antv/g2';
|
|
3
|
-
import {
|
|
4
|
-
import { Params } from '../../../core/adaptor';
|
|
5
|
-
import { FUNNEL_PERCENT, FUNNEL_CONVERSATION, FUNNEL_TOTAL_PERCENT, PLOYGON_X, PLOYGON_Y } from '../constant';
|
|
2
|
+
import { get, isArray, map, maxBy, reduce } from '@antv/util';
|
|
6
3
|
import { geometry as baseGeometry } from '../../../adaptor/geometries/base';
|
|
4
|
+
import { Params } from '../../../core/adaptor';
|
|
5
|
+
import { Data, Datum } from '../../../types/common';
|
|
6
|
+
import { flow } from '../../../utils';
|
|
7
7
|
import { getTooltipMapping } from '../../../utils/tooltip';
|
|
8
|
-
import {
|
|
8
|
+
import { FUNNEL_CONVERSATION, FUNNEL_PERCENT, FUNNEL_TOTAL_PERCENT, PLOYGON_X, PLOYGON_Y } from '../constant';
|
|
9
9
|
import { FunnelOptions } from '../types';
|
|
10
10
|
import { conversionTagComponent } from './common';
|
|
11
11
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { each } from '@antv/util';
|
|
2
1
|
import { Element } from '@antv/g2';
|
|
3
|
-
import {
|
|
2
|
+
import { each } from '@antv/util';
|
|
3
|
+
import { StateCondition, StateName, StateObject } from '../..';
|
|
4
4
|
import { Adaptor } from '../../core/adaptor';
|
|
5
|
-
import {
|
|
5
|
+
import { Plot } from '../../core/plot';
|
|
6
6
|
import { getAllElementsRecursively } from '../../utils';
|
|
7
|
-
import { FunnelOptions } from './types';
|
|
8
7
|
import { adaptor } from './adaptor';
|
|
9
8
|
import {
|
|
10
9
|
DEFAULT_OPTIONS,
|
|
@@ -13,9 +12,9 @@ import {
|
|
|
13
12
|
FUNNEL_TOTAL_PERCENT,
|
|
14
13
|
} from './constant';
|
|
15
14
|
import './interactions';
|
|
15
|
+
import { FunnelOptions } from './types';
|
|
16
16
|
|
|
17
17
|
export type { FunnelOptions };
|
|
18
|
-
|
|
19
18
|
export { FUNNEL_CONVERSATION_FIELD };
|
|
20
19
|
|
|
21
20
|
export class Funnel extends Plot<FunnelOptions> {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { get, map, filter, each } from '@antv/util';
|
|
2
1
|
import { Action } from '@antv/g2';
|
|
2
|
+
import { each, filter, get, map } from '@antv/util';
|
|
3
3
|
import { conversionTag as basicConversionTag } from '../geometries/basic';
|
|
4
|
+
import { CONVERSION_TAG_NAME, transformData } from '../geometries/common';
|
|
4
5
|
import { compareConversionTag } from '../geometries/compare';
|
|
5
|
-
import { transformData, CONVERSION_TAG_NAME } from '../geometries/common';
|
|
6
6
|
import { FunnelOptions } from '../types';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StyleAttr } from '../../types/attr';
|
|
2
|
-
import {
|
|
2
|
+
import { AnnotationPosition, Data, Datum, Options, TextStyle } from '../../types/common';
|
|
3
3
|
export { Interaction } from '../../types';
|
|
4
4
|
|
|
5
5
|
export type ConversionPosition = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Geometry } from '@antv/g2';
|
|
2
2
|
import { get, isString } from '@antv/util';
|
|
3
|
-
import {
|
|
3
|
+
import { animation, annotation, interaction, scale, theme } from '../../adaptor/common';
|
|
4
4
|
import { interval } from '../../adaptor/geometries';
|
|
5
5
|
import { AXIS_META_CONFIG_KEYS } from '../../constant';
|
|
6
6
|
import { Params } from '../../core/adaptor';
|
|
7
7
|
import { deepAssign, flow, pick, renderGaugeStatistic } from '../../utils';
|
|
8
|
-
import {
|
|
8
|
+
import { DEFAULT_COLOR, INDICATEOR_VIEW_ID, PERCENT, RANGE_TYPE, RANGE_VALUE, RANGE_VIEW_ID } from './constants';
|
|
9
9
|
import { GaugeOptions } from './types';
|
|
10
10
|
import { getIndicatorData, getRangeData } from './utils';
|
|
11
11
|
|
package/src/plots/gauge/index.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Plot } from '../../core/plot';
|
|
1
|
+
import { Event, VIEW_LIFE_CIRCLE } from '@antv/g2';
|
|
3
2
|
import { Adaptor } from '../../core/adaptor';
|
|
4
|
-
import {
|
|
3
|
+
import { Plot } from '../../core/plot';
|
|
5
4
|
import { adaptor, statistic } from './adaptor';
|
|
6
|
-
import { INDICATEOR_VIEW_ID, RANGE_VIEW_ID
|
|
7
|
-
import { getIndicatorData, getRangeData } from './utils';
|
|
8
|
-
|
|
5
|
+
import { DEFAULT_OPTIONS, INDICATEOR_VIEW_ID, RANGE_VIEW_ID } from './constants';
|
|
9
6
|
// 注册 shape
|
|
10
7
|
import './shapes/indicator';
|
|
11
8
|
import './shapes/meter-gauge';
|
|
9
|
+
import { GaugeOptions } from './types';
|
|
10
|
+
import { getIndicatorData, getRangeData } from './utils';
|
|
12
11
|
|
|
13
12
|
export type { GaugeOptions };
|
|
14
13
|
|
package/src/plots/gauge/utils.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { clamp, get, size, uniq } from '@antv/util';
|
|
2
|
-
import { Data
|
|
3
|
-
import {
|
|
2
|
+
import { Data } from '../../types';
|
|
3
|
+
import { PERCENT, RANGE_TYPE, RANGE_VALUE } from './constants';
|
|
4
4
|
import { GaugeOptions, GaugeRangeData } from './types';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { get, isNumber } from '@antv/util';
|
|
2
|
-
import {
|
|
3
|
-
import { deepAssign, findGeometry } from '../../utils';
|
|
4
|
-
import { flow, transformLabel } from '../../utils';
|
|
5
|
-
import { tooltip, interaction, animation, theme, scale, annotation, state, pattern } from '../../adaptor/common';
|
|
2
|
+
import { animation, annotation, interaction, pattern, scale, state, theme, tooltip } from '../../adaptor/common';
|
|
6
3
|
import { geometry as geometryAdaptor } from '../../adaptor/geometries/base';
|
|
4
|
+
import { Params } from '../../core/adaptor';
|
|
5
|
+
import { deepAssign, findGeometry, flow, transformLabel } from '../../utils';
|
|
7
6
|
import { getTooltipMapping } from '../../utils/tooltip';
|
|
8
7
|
import { HeatmapOptions } from './types';
|
|
9
8
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Plot } from '../../core/plot';
|
|
2
1
|
import { Adaptor } from '../../core/adaptor';
|
|
3
|
-
import {
|
|
2
|
+
import { Plot } from '../../core/plot';
|
|
4
3
|
import { adaptor } from './adaptor';
|
|
5
4
|
import { DEFAULT_OPTIONS } from './constant';
|
|
6
5
|
// registered shapes
|
|
7
6
|
import './shapes/circle';
|
|
8
7
|
import './shapes/square';
|
|
8
|
+
import { HeatmapOptions } from './types';
|
|
9
9
|
|
|
10
10
|
export type { HeatmapOptions };
|
|
11
11
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { tooltip, interaction, animation, theme, scale, state } from '../../adaptor/common';
|
|
3
|
-
import { pattern } from '../../adaptor/pattern';
|
|
4
|
-
import { findGeometry, deepAssign } from '../../utils';
|
|
5
|
-
import { flow, transformLabel } from '../../utils';
|
|
1
|
+
import { animation, interaction, scale, state, theme, tooltip } from '../../adaptor/common';
|
|
6
2
|
import { interval } from '../../adaptor/geometries';
|
|
3
|
+
import { pattern } from '../../adaptor/pattern';
|
|
4
|
+
import { Params } from '../../core/adaptor';
|
|
5
|
+
import { deepAssign, findGeometry, flow, transformLabel } from '../../utils';
|
|
7
6
|
import { binHistogram } from '../../utils/transform/histogram';
|
|
8
|
-
import { HistogramOptions } from './types';
|
|
9
7
|
import { HISTOGRAM_X_FIELD, HISTOGRAM_Y_FIELD } from './constant';
|
|
8
|
+
import { HistogramOptions } from './types';
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* geometry 处理
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Plot } from '../../core/plot';
|
|
2
1
|
import { Adaptor } from '../../core/adaptor';
|
|
2
|
+
import { Plot } from '../../core/plot';
|
|
3
3
|
import { binHistogram } from '../../utils/transform/histogram';
|
|
4
|
-
import { HistogramOptions } from './types';
|
|
5
4
|
import { adaptor } from './adaptor';
|
|
6
5
|
import { DEFAULT_OPTIONS } from './constant';
|
|
6
|
+
import { HistogramOptions } from './types';
|
|
7
7
|
|
|
8
8
|
export type { HistogramOptions };
|
|
9
9
|
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { Geometry } from '@antv/g2';
|
|
2
2
|
import { each, isArray } from '@antv/util';
|
|
3
|
-
import { Params } from '../../core/adaptor';
|
|
4
3
|
import {
|
|
5
|
-
tooltip,
|
|
6
|
-
slider,
|
|
7
|
-
interaction,
|
|
8
4
|
animation,
|
|
9
|
-
theme,
|
|
10
|
-
scale,
|
|
11
5
|
annotation,
|
|
6
|
+
interaction,
|
|
12
7
|
limitInPlot,
|
|
8
|
+
scale,
|
|
13
9
|
scrollbar,
|
|
10
|
+
slider,
|
|
11
|
+
theme,
|
|
12
|
+
tooltip,
|
|
14
13
|
} from '../../adaptor/common';
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { flow } from '../../utils';
|
|
14
|
+
import { area, line, point } from '../../adaptor/geometries';
|
|
15
|
+
import { Params } from '../../core/adaptor';
|
|
16
|
+
import { deepAssign, findGeometry, flow, transformLabel } from '../../utils';
|
|
18
17
|
import { adjustYMetaByZero } from '../../utils/data';
|
|
19
18
|
import { LineOptions } from './types';
|
|
20
19
|
|
package/src/plots/line/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Plot } from '../../core/plot';
|
|
2
1
|
import { Adaptor } from '../../core/adaptor';
|
|
3
|
-
import {
|
|
2
|
+
import { Plot } from '../../core/plot';
|
|
4
3
|
import { adaptor, meta } from './adaptor';
|
|
5
4
|
import { DEFAULT_OPTIONS } from './constants';
|
|
6
5
|
import './interactions';
|
|
6
|
+
import { LineOptions } from './types';
|
|
7
7
|
|
|
8
8
|
export type { LineOptions };
|
|
9
9
|
|
package/src/plots/line/types.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Geometry } from '@antv/g2';
|
|
2
2
|
import { get, isNil } from '@antv/util';
|
|
3
|
-
import {
|
|
4
|
-
import { Params } from '../../core/adaptor';
|
|
5
|
-
import { flow, deepAssign, renderStatistic } from '../../utils';
|
|
3
|
+
import { animation, interaction, pattern, scale, theme } from '../../adaptor/common';
|
|
6
4
|
import { interval } from '../../adaptor/geometries';
|
|
7
|
-
import {
|
|
5
|
+
import { Params } from '../../core/adaptor';
|
|
6
|
+
import { deepAssign, flow, renderStatistic } from '../../utils';
|
|
7
|
+
import { CustomInfo, LiquidOptions } from './types';
|
|
8
8
|
import { getLiquidData } from './utils';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -13,7 +13,7 @@ import { getLiquidData } from './utils';
|
|
|
13
13
|
*/
|
|
14
14
|
function geometry(params: Params<LiquidOptions>): Params<LiquidOptions> {
|
|
15
15
|
const { chart, options } = params;
|
|
16
|
-
const { percent, liquidStyle, radius, outline, wave, shape, animation } = options;
|
|
16
|
+
const { percent, liquidStyle, radius, outline, wave, shape, shapeStyle, animation } = options;
|
|
17
17
|
|
|
18
18
|
chart.scale({
|
|
19
19
|
percent: {
|
|
@@ -44,10 +44,12 @@ function geometry(params: Params<LiquidOptions>): Params<LiquidOptions> {
|
|
|
44
44
|
const geometry = ext.geometry as Geometry;
|
|
45
45
|
const { background } = chart.getTheme();
|
|
46
46
|
const customInfo: CustomInfo = {
|
|
47
|
+
percent,
|
|
47
48
|
radius,
|
|
48
49
|
outline,
|
|
49
50
|
wave,
|
|
50
51
|
shape,
|
|
52
|
+
shapeStyle,
|
|
51
53
|
background,
|
|
52
54
|
animation,
|
|
53
55
|
};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Plot } from '../../core/plot';
|
|
1
|
+
import { Event, VIEW_LIFE_CIRCLE } from '@antv/g2';
|
|
3
2
|
import { Adaptor } from '../../core/adaptor';
|
|
4
|
-
import {
|
|
3
|
+
import { Plot } from '../../core/plot';
|
|
5
4
|
import { adaptor, statistic } from './adaptor';
|
|
6
5
|
import { DEFAULT_OPTIONS } from './constants';
|
|
7
|
-
import { getLiquidData } from './utils';
|
|
8
6
|
// register liquid shape
|
|
9
7
|
import './shapes/liquid';
|
|
8
|
+
import { LiquidOptions } from './types';
|
|
9
|
+
import { getLiquidData } from './utils';
|
|
10
10
|
|
|
11
11
|
export { addWaterWave } from './shapes/liquid';
|
|
12
|
-
|
|
13
12
|
export type { LiquidOptions };
|
|
14
13
|
|
|
15
14
|
/**
|