@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
package/src/index.ts
CHANGED
|
@@ -1,197 +1,151 @@
|
|
|
1
|
-
export const version = '2.4.
|
|
1
|
+
export const version = '2.4.24';
|
|
2
2
|
|
|
3
3
|
// G2 自定义能力透出
|
|
4
4
|
import * as G2 from '@antv/g2';
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
/** 开放一些通用的 adaptor 通道方法,实验阶段:不保证稳定性 */
|
|
6
|
+
import { animation, annotation, interaction, legend, scale, theme, tooltip } from './adaptor/common';
|
|
7
7
|
// 国际化处理
|
|
8
8
|
import { registerLocale } from './core/locale';
|
|
9
9
|
import { EN_US_LOCALE } from './locales/en_US';
|
|
10
10
|
import { ZH_CN_LOCALE } from './locales/zh_CN';
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
/** 各个 geometry 的 adaptor,可以让开发者更快的构造图形 */
|
|
12
|
+
export { area, interval, line, point, polygon, schema } from './adaptor/geometries';
|
|
13
|
+
export type {
|
|
14
|
+
AreaGeometryOptions,
|
|
15
|
+
IntervalGeometryOptions,
|
|
16
|
+
LineGeometryOptions,
|
|
17
|
+
PointGeometryOptions,
|
|
18
|
+
PolygonGeometryOptions,
|
|
19
|
+
SchemaGeometryOptions,
|
|
20
|
+
} from './adaptor/geometries';
|
|
21
|
+
/** Adaptor 及其参数的类型定义 */
|
|
22
|
+
export type { Adaptor, Params } from './core/adaptor';
|
|
17
23
|
/** 全局变量 */
|
|
18
24
|
export { setGlobal } from './core/global';
|
|
19
|
-
|
|
20
25
|
/** G2Plot 的 Plot 基类 */
|
|
21
26
|
export { Plot } from './core/plot';
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export type { Adaptor, Params } from './core/adaptor';
|
|
25
|
-
|
|
26
|
-
// 类型定义导出
|
|
27
|
-
export * from './types';
|
|
28
|
-
|
|
29
|
-
// 折线图及类型定义 | author by [hustcc](https://github.com/hustcc)
|
|
30
|
-
export { Line } from './plots/line';
|
|
31
|
-
export type { LineOptions } from './plots/line';
|
|
32
|
-
|
|
27
|
+
/** 对于没有开发完成的图表,可以暂时先放到 Lab 下面,先做体验,稳定后放到根 export */
|
|
28
|
+
export { Lab } from './lab';
|
|
33
29
|
// 面积图及类型定义 | author by [hustcc](https://github.com/hustcc)
|
|
34
30
|
export { Area } from './plots/area';
|
|
35
31
|
export type { AreaOptions } from './plots/area';
|
|
36
|
-
|
|
37
|
-
// 柱形图及类型定义 | author by [zqlu](https://github.com/zqlu)
|
|
38
|
-
export { Column } from './plots/column';
|
|
39
|
-
export type { ColumnOptions } from './plots/column';
|
|
40
|
-
|
|
41
32
|
// 条形图及类型定义 | author by [BBSQQ](https://github.com/BBSQQ)
|
|
42
33
|
export { Bar } from './plots/bar';
|
|
43
34
|
export type { BarOptions } from './plots/bar';
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
export {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
export
|
|
52
|
-
|
|
53
|
-
//
|
|
54
|
-
export {
|
|
55
|
-
export type {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
export {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
export { Radar } from './plots/radar';
|
|
63
|
-
export type { RadarOptions } from './plots/radar';
|
|
64
|
-
|
|
35
|
+
// 对称条形图及类型定义 | author by [arcsin1](https://github.com/arcsin1)
|
|
36
|
+
export { BidirectionalBar } from './plots/bidirectional-bar';
|
|
37
|
+
export type { BidirectionalBarOptions } from './plots/bidirectional-bar';
|
|
38
|
+
// 箱线图及类型定义 | author by [BBSQQ](https://github.com/BBSQQ), [visiky](https://github.com/visiky)
|
|
39
|
+
export { Box } from './plots/box';
|
|
40
|
+
export type { BoxOptions } from './plots/box';
|
|
41
|
+
// 子弹图及类型定义 | author by [arcsin1](https://github.com/arcsin1)
|
|
42
|
+
export { Bullet } from './plots/bullet';
|
|
43
|
+
export type { BulletOptions } from './plots/bullet';
|
|
44
|
+
// 弦图及类型定义 | author by [MrSmallLiu](https://github.com/MrSmallLiu), [visiky](https://github.com/visiky)
|
|
45
|
+
export { Chord } from './plots/chord';
|
|
46
|
+
export type { ChordOptions } from './plots/chord';
|
|
47
|
+
// circle-packing 及类型定义 | author by [visiky](https://github.com/visiky), [Angeli](https://github.com/Angelii)
|
|
48
|
+
export { CirclePacking } from './plots/circle-packing';
|
|
49
|
+
export type { CirclePackingOptions } from './plots/circle-packing';
|
|
50
|
+
// 柱形图及类型定义 | author by [zqlu](https://github.com/zqlu)
|
|
51
|
+
export { Column } from './plots/column';
|
|
52
|
+
export type { ColumnOptions } from './plots/column';
|
|
65
53
|
// 混合图形 | author by [liuzhenying](https://github.com/liuzhenying)
|
|
66
54
|
export { DualAxes } from './plots/dual-axes';
|
|
67
55
|
export type { DualAxesOptions } from './plots/dual-axes';
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
export {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
export
|
|
76
|
-
|
|
77
|
-
//
|
|
78
|
-
export {
|
|
79
|
-
export type {
|
|
80
|
-
|
|
56
|
+
// 分面图及类型定义 | author by [visiky](https://github.com/visiky)
|
|
57
|
+
export { Facet } from './plots/facet';
|
|
58
|
+
export type { FacetOptions } from './plots/facet';
|
|
59
|
+
// 漏斗图及类型定义
|
|
60
|
+
export { Funnel, FUNNEL_CONVERSATION_FIELD } from './plots/funnel';
|
|
61
|
+
export type { FunnelOptions } from './plots/funnel';
|
|
62
|
+
// 仪表盘及类型定义 | author by [hustcc](https://github.com/hustcc)
|
|
63
|
+
export { Gauge } from './plots/gauge';
|
|
64
|
+
export type { GaugeOptions } from './plots/gauge';
|
|
65
|
+
// 热力图及类型定义 | author by [jiazhewang](https://github.com/jiazhewang)
|
|
66
|
+
export { Heatmap } from './plots/heatmap';
|
|
67
|
+
export type { HeatmapOptions } from './plots/heatmap';
|
|
81
68
|
// 直方图及类型定义 | author by [arcsin1](https://github.com/arcsin1), [visiky](https://github.com/visiky)
|
|
82
69
|
export { Histogram } from './plots/histogram';
|
|
83
70
|
export type { HistogramOptions } from './plots/histogram';
|
|
84
|
-
|
|
71
|
+
// 折线图及类型定义 | author by [hustcc](https://github.com/hustcc)
|
|
72
|
+
export { Line } from './plots/line';
|
|
73
|
+
export type { LineOptions } from './plots/line';
|
|
74
|
+
// 水波图及类型定义 | author by [CarisL](https://github.com/CarisL), [hustcc](https://github.com/hustcc), [pearmini](https://github.com/pearmini)
|
|
75
|
+
export { addWaterWave, Liquid } from './plots/liquid';
|
|
76
|
+
export type { LiquidOptions } from './plots/liquid';
|
|
77
|
+
// 已经废弃,更名为 Mix
|
|
78
|
+
export { Mix as Mix, Mix as MultiView } from './plots/mix';
|
|
79
|
+
export type { MixOptions, MixOptions as MultiViewOptions } from './plots/mix';
|
|
80
|
+
// 饼图及类型定义 | author by [visiky](https://github.com/visiky)
|
|
81
|
+
export { Pie } from './plots/pie';
|
|
82
|
+
export type { PieOptions } from './plots/pie';
|
|
85
83
|
// 进度图及类型定义 | author by [connono](https://github.com/connono)
|
|
86
84
|
export { Progress } from './plots/progress';
|
|
87
85
|
export type { ProgressOptions } from './plots/progress';
|
|
88
|
-
|
|
86
|
+
// 雷达图及类型定义 | author by [visiky](https://github.com/visiky)
|
|
87
|
+
export { Radar } from './plots/radar';
|
|
88
|
+
export type { RadarOptions } from './plots/radar';
|
|
89
|
+
// 玉珏图 | author by [yujs](https://github.com/yujs) | updated by [visiky](https://github.com/visiky)
|
|
90
|
+
export { RadialBar } from './plots/radial-bar';
|
|
91
|
+
export type { RadialBarOptions } from './plots/radial-bar';
|
|
89
92
|
// 环形进度图及类型定义 | author by [connono](https://github.com/connono)
|
|
90
93
|
export { RingProgress } from './plots/ring-progress';
|
|
91
94
|
export type { RingProgressOptions } from './plots/ring-progress';
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
export {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
export
|
|
100
|
-
|
|
101
|
-
// 小提琴图及类型定义 | author by [YiSiWang](https://github.com/YiSiWang), [visiky](https://github.com/visiky)
|
|
102
|
-
export { Violin } from './plots/violin';
|
|
103
|
-
export type { ViolinOptions } from './plots/violin';
|
|
104
|
-
|
|
105
|
-
// 韦恩图及类型定义 | author by [visiky](https://github.com/visiky)
|
|
106
|
-
export { Venn } from './plots/venn';
|
|
107
|
-
export type { VennOptions } from './plots/venn';
|
|
108
|
-
|
|
95
|
+
// 玫瑰图及类型定义 | author by [zhangzhonghe](https://github.com/zhangzhonghe)
|
|
96
|
+
export { Rose } from './plots/rose';
|
|
97
|
+
export type { RoseOptions } from './plots/rose';
|
|
98
|
+
// 桑基图及类型定义 | author by [hustcc](https://github.com/hustcc)
|
|
99
|
+
export { Sankey } from './plots/sankey';
|
|
100
|
+
export type { SankeyOptions } from './plots/sankey';
|
|
101
|
+
// 散点图及类型定义 | author by [lxfu1](https://github.com/lxfu1)
|
|
102
|
+
export { Scatter } from './plots/scatter';
|
|
103
|
+
export type { ScatterOptions } from './plots/scatter';
|
|
109
104
|
// K线图及类型定义 | author by [jhwong](https://github.com/jinhuiWong), [visiky](https://github.com/visiky)
|
|
110
105
|
export { Stock } from './plots/stock';
|
|
111
106
|
export type { StockOptions } from './plots/stock';
|
|
112
|
-
|
|
113
|
-
// 漏斗图及类型定义
|
|
114
|
-
export { Funnel, FUNNEL_CONVERSATION_FIELD } from './plots/funnel';
|
|
115
|
-
export type { FunnelOptions } from './plots/funnel';
|
|
116
|
-
|
|
117
|
-
// 水波图及类型定义 | author by [CarisL](https://github.com/CarisL), [hustcc](https://github.com/hustcc), [pearmini](https://github.com/pearmini)
|
|
118
|
-
export { Liquid, addWaterWave } from './plots/liquid';
|
|
119
|
-
export type { LiquidOptions } from './plots/liquid';
|
|
120
|
-
|
|
121
|
-
// 子弹图及类型定义 | author by [arcsin1](https://github.com/arcsin1)
|
|
122
|
-
export { Bullet } from './plots/bullet';
|
|
123
|
-
export type { BulletOptions } from './plots/bullet';
|
|
124
|
-
|
|
125
107
|
// 旭日图及类型定义 | author by [lxfu1](https://github.com/lxfu1), [visiky](https://github.com/visiky)
|
|
126
108
|
export { Sunburst } from './plots/sunburst';
|
|
127
109
|
export type { SunburstOptions } from './plots/sunburst';
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
export {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
export
|
|
136
|
-
|
|
137
|
-
// 玉珏图 | author by [yujs](https://github.com/yujs) | updated by [visiky](https://github.com/visiky)
|
|
138
|
-
export { RadialBar } from './plots/radial-bar';
|
|
139
|
-
export type { RadialBarOptions } from './plots/radial-bar';
|
|
140
|
-
|
|
141
|
-
// 对称条形图及类型定义 | author by [arcsin1](https://github.com/arcsin1)
|
|
142
|
-
export { BidirectionalBar } from './plots/bidirectional-bar';
|
|
143
|
-
export type { BidirectionalBarOptions } from './plots/bidirectional-bar';
|
|
144
|
-
|
|
110
|
+
// 迷你面积图及类型定义 | author by [connono](https://github.com/connono)
|
|
111
|
+
export { TinyArea } from './plots/tiny-area';
|
|
112
|
+
export type { TinyAreaOptions } from './plots/tiny-area';
|
|
113
|
+
// 迷你柱形图及类型定义 | author by [connono](https://github.com/connono)
|
|
114
|
+
export { TinyColumn } from './plots/tiny-column';
|
|
115
|
+
export type { TinyColumnOptions } from './plots/tiny-column';
|
|
116
|
+
// 迷你折线图及类型定义 | author by [connono](https://github.com/connono)
|
|
117
|
+
export { TinyLine } from './plots/tiny-line';
|
|
118
|
+
export type { TinyLineOptions } from './plots/tiny-line';
|
|
145
119
|
// 矩形树图
|
|
146
120
|
export { Treemap } from './plots/treemap';
|
|
147
121
|
export type { TreemapOptions } from './plots/treemap';
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
export {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
export
|
|
156
|
-
|
|
157
|
-
//
|
|
158
|
-
export {
|
|
159
|
-
export type {
|
|
160
|
-
|
|
122
|
+
// 韦恩图及类型定义 | author by [visiky](https://github.com/visiky)
|
|
123
|
+
export { Venn } from './plots/venn';
|
|
124
|
+
export type { VennOptions } from './plots/venn';
|
|
125
|
+
// 小提琴图及类型定义 | author by [YiSiWang](https://github.com/YiSiWang), [visiky](https://github.com/visiky)
|
|
126
|
+
export { Violin } from './plots/violin';
|
|
127
|
+
export type { ViolinOptions } from './plots/violin';
|
|
128
|
+
// 瀑布图 | author by [visiky](https://github.com/visiky)
|
|
129
|
+
export { Waterfall } from './plots/waterfall';
|
|
130
|
+
export type { WaterfallOptions } from './plots/waterfall';
|
|
131
|
+
// 词云图及类型定义 | author by [zhangzhonghe](https://github.com/zhangzhonghe)
|
|
132
|
+
export { WordCloud } from './plots/word-cloud';
|
|
133
|
+
export type { WordCloudOptions } from './plots/word-cloud';
|
|
161
134
|
// 以下开放自定义图表开发的能力(目前仅仅是孵化中)
|
|
162
135
|
/** 所有开放图表都使用 G2Plot.P 作为入口开发,理论上官方的所有图表都可以走 G2Plot.P 的入口(暂时不处理) */
|
|
163
136
|
export { P } from './plugin';
|
|
164
|
-
|
|
137
|
+
// 类型定义导出
|
|
138
|
+
export * from './types';
|
|
139
|
+
/** 开发 adaptor 可能会用到的方法或一些工具方法,不强制使用 */
|
|
140
|
+
export { flow, measureTextWidth } from './utils';
|
|
165
141
|
/** 开放 getCanvasPatterng 方法 */
|
|
166
142
|
export { getCanvasPattern } from './utils/pattern';
|
|
143
|
+
export { G2 };
|
|
144
|
+
/** 透出 国际化 工具函数,便于使用 */
|
|
145
|
+
export { registerLocale };
|
|
167
146
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
/** 开放多图层图表 (mix) */
|
|
172
|
-
export { Mix as Mix } from './plots/mix';
|
|
173
|
-
export type { MixOptions } from './plots/mix';
|
|
174
|
-
|
|
175
|
-
// 分面图及类型定义 | author by [visiky](https://github.com/visiky)
|
|
176
|
-
export { Facet } from './plots/facet';
|
|
177
|
-
export type { FacetOptions } from './plots/facet';
|
|
178
|
-
|
|
179
|
-
/** 开发 adaptor 可能会用到的方法或一些工具方法,不强制使用 */
|
|
180
|
-
export { flow, measureTextWidth } from './utils';
|
|
147
|
+
/** default locale register */
|
|
148
|
+
registerLocale('en-US', EN_US_LOCALE);
|
|
149
|
+
registerLocale('zh-CN', ZH_CN_LOCALE);
|
|
181
150
|
|
|
182
|
-
/** 各个 geometry 的 adaptor,可以让开发者更快的构造图形 */
|
|
183
|
-
export { line, interval, area, point, polygon, schema } from './adaptor/geometries';
|
|
184
|
-
export type {
|
|
185
|
-
LineGeometryOptions,
|
|
186
|
-
IntervalGeometryOptions,
|
|
187
|
-
AreaGeometryOptions,
|
|
188
|
-
PointGeometryOptions,
|
|
189
|
-
PolygonGeometryOptions,
|
|
190
|
-
SchemaGeometryOptions,
|
|
191
|
-
} from './adaptor/geometries';
|
|
192
|
-
/** 开放一些通用的 adaptor 通道方法,实验阶段:不保证稳定性 */
|
|
193
|
-
import { scale, legend, tooltip, annotation, interaction, theme, animation } from './adaptor/common';
|
|
194
151
|
export const adaptors = { scale, legend, tooltip, annotation, interaction, theme, animation };
|
|
195
|
-
|
|
196
|
-
/** 对于没有开发完成的图表,可以暂时先放到 Lab 下面,先做体验,稳定后放到根 export */
|
|
197
|
-
export { Lab } from './lab';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Action, IGroup, Util } from '@antv/g2';
|
|
2
|
-
import { get,
|
|
2
|
+
import { get, isNil, last, size } from '@antv/util';
|
|
3
3
|
import { Data } from '../../types';
|
|
4
4
|
import { DrillDownCfg } from '../../types/drill-down';
|
|
5
5
|
import { deepAssign } from '../../utils/deep-assign';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { interaction,
|
|
1
|
+
import { animation, interaction, scale, theme } from '../../adaptor/common';
|
|
2
2
|
import { Params } from '../../core/adaptor';
|
|
3
3
|
import { flow } from '../../utils';
|
|
4
4
|
import { TemplateOptions } from './types';
|
|
@@ -1,7 +1,7 @@
|
|
|
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';
|
|
4
|
+
import { TemplateOptions } from './types';
|
|
5
5
|
|
|
6
6
|
export type { TemplateOptions };
|
|
7
7
|
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { Geometry } from '@antv/g2';
|
|
2
2
|
import { each, omit } from '@antv/util';
|
|
3
3
|
import {
|
|
4
|
-
tooltip,
|
|
5
|
-
slider,
|
|
6
|
-
interaction,
|
|
7
4
|
animation,
|
|
8
|
-
theme,
|
|
9
5
|
annotation,
|
|
6
|
+
interaction,
|
|
10
7
|
limitInPlot,
|
|
11
8
|
pattern,
|
|
9
|
+
slider,
|
|
10
|
+
theme,
|
|
11
|
+
tooltip,
|
|
12
12
|
transformations,
|
|
13
13
|
} from '../../adaptor/common';
|
|
14
|
-
import {
|
|
14
|
+
import { area, line, point } from '../../adaptor/geometries';
|
|
15
15
|
import { Params } from '../../core/adaptor';
|
|
16
|
-
import { area, point, line } from '../../adaptor/geometries';
|
|
17
|
-
import { flow, transformLabel, deepAssign } from '../../utils';
|
|
18
|
-
import { getDataWhetherPercentage } from '../../utils/transform/percent';
|
|
19
16
|
import { Datum } from '../../types';
|
|
20
|
-
import {
|
|
17
|
+
import { deepAssign, findGeometry, flow, transformLabel } from '../../utils';
|
|
18
|
+
import { getDataWhetherPercentage } from '../../utils/transform/percent';
|
|
19
|
+
import { axis, legend, meta } from '../line/adaptor';
|
|
21
20
|
import { AreaOptions } from './types';
|
|
22
21
|
|
|
23
22
|
export { meta };
|
package/src/plots/area/index.ts
CHANGED
|
@@ -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 { AreaOptions } from './types';
|
|
5
4
|
import { adaptor, meta } from './adaptor';
|
|
6
5
|
import { DEFAULT_OPTIONS } from './constants';
|
|
6
|
+
import { AreaOptions } from './types';
|
|
7
7
|
|
|
8
8
|
export type { AreaOptions };
|
|
9
9
|
|
package/src/plots/bar/adaptor.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Params } from '../../core/adaptor';
|
|
2
1
|
import { tooltip } from '../../adaptor/common';
|
|
3
|
-
import {
|
|
2
|
+
import { Params } from '../../core/adaptor';
|
|
4
3
|
import { Axis } from '../../types';
|
|
4
|
+
import { deepAssign, flow } from '../../utils';
|
|
5
5
|
import { adaptor as columnAdaptor } from '../column/adaptor';
|
|
6
|
-
export { meta } from '../column/adaptor';
|
|
7
6
|
import { BarOptions } from './types';
|
|
7
|
+
export { meta } from '../column/adaptor';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* 处理默认配置项
|
package/src/plots/bar/index.ts
CHANGED
|
@@ -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 { BarOptions } from './types';
|
|
5
4
|
import { adaptor, meta } from './adaptor';
|
|
6
5
|
import { DEFAULT_OPTIONS } from './constants';
|
|
6
|
+
import { BarOptions } from './types';
|
|
7
7
|
|
|
8
8
|
export type { BarOptions };
|
|
9
9
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { View } from '@antv/g2';
|
|
2
2
|
import { get, keys } from '@antv/util';
|
|
3
|
-
import { Params } from '../../core/adaptor';
|
|
4
3
|
import {
|
|
5
|
-
tooltip,
|
|
6
|
-
interaction as commonInteraction,
|
|
7
4
|
animation as commonAnimation,
|
|
8
|
-
|
|
5
|
+
interaction as commonInteraction,
|
|
9
6
|
limitInPlot as commonLimitInPlot,
|
|
10
7
|
scale,
|
|
8
|
+
theme as commonTheme,
|
|
9
|
+
tooltip,
|
|
11
10
|
} from '../../adaptor/common';
|
|
12
11
|
import { interval } from '../../adaptor/geometries';
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
12
|
+
import { Params } from '../../core/adaptor';
|
|
13
|
+
import { deepAssign, findGeometry, findViewById, flow, transformLabel } from '../../utils';
|
|
15
14
|
import { FIRST_AXES_VIEW, SECOND_AXES_VIEW, SERIES_FIELD_KEY } from './constant';
|
|
15
|
+
import { BidirectionalBarOptions } from './types';
|
|
16
16
|
import { isHorizontal, transformData } from './utils';
|
|
17
17
|
|
|
18
18
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Plot } from '../../core/plot';
|
|
1
|
+
import { Event, VIEW_LIFE_CIRCLE } from '@antv/g2';
|
|
3
2
|
import { Adaptor } from '../../core/adaptor';
|
|
3
|
+
import { Plot } from '../../core/plot';
|
|
4
4
|
import { deepAssign, findViewById } from '../../utils';
|
|
5
|
-
import { BidirectionalBarOptions } from './types';
|
|
6
5
|
import { adaptor } from './adaptor';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { FIRST_AXES_VIEW, SECOND_AXES_VIEW, SERIES_FIELD_KEY } from './constant';
|
|
7
|
+
import { BidirectionalBarOptions } from './types';
|
|
8
|
+
import { isHorizontal, syncViewPadding, transformData } from './utils';
|
|
9
9
|
|
|
10
10
|
export type { BidirectionalBarOptions };
|
|
11
11
|
|
package/src/plots/box/adaptor.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { isArray } from '@antv/util';
|
|
2
1
|
import { Types } from '@antv/g2';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { isArray } from '@antv/util';
|
|
3
|
+
import { animation, annotation, interaction, theme, tooltip } from '../../adaptor/common';
|
|
5
4
|
import { point, schema } from '../../adaptor/geometries';
|
|
6
|
-
import { flow, pick, deepAssign } from '../../utils';
|
|
7
5
|
import { AXIS_META_CONFIG_KEYS } from '../../constant';
|
|
8
|
-
import {
|
|
6
|
+
import { Params } from '../../core/adaptor';
|
|
7
|
+
import { deepAssign, flow, pick } from '../../utils';
|
|
9
8
|
import { BOX_RANGE, BOX_SYNC_NAME, OUTLIERS_VIEW_ID } from './constant';
|
|
9
|
+
import { BoxOptions } from './types';
|
|
10
10
|
import { transformData } from './utils';
|
|
11
11
|
|
|
12
12
|
/**
|
package/src/plots/box/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 } from './adaptor';
|
|
5
|
-
import { transformData } from './utils';
|
|
6
4
|
import { DEFAULT_OPTIONS, OUTLIERS_VIEW_ID } from './constant';
|
|
5
|
+
import { BoxOptions } from './types';
|
|
6
|
+
import { transformData } from './utils';
|
|
7
7
|
export type { BoxOptions };
|
|
8
8
|
|
|
9
9
|
export class Box extends Plot<BoxOptions> {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { get, isFunction } from '@antv/util';
|
|
2
|
+
import { animation, interaction, scale, theme, tooltip } from '../../adaptor/common';
|
|
3
|
+
import { interval, point } from '../../adaptor/geometries';
|
|
2
4
|
import { Params } from '../../core/adaptor';
|
|
3
|
-
import { interaction, animation, theme, tooltip, scale } from '../../adaptor/common';
|
|
4
|
-
import { flow, transformLabel, deepAssign } from '../../utils';
|
|
5
5
|
import { Datum } from '../../types';
|
|
6
|
-
import {
|
|
6
|
+
import { deepAssign, flow, transformLabel } from '../../utils';
|
|
7
7
|
import { BulletOptions } from './types';
|
|
8
8
|
import { transformData } from './utils';
|
|
9
9
|
|
|
@@ -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
|
-
import { transformData } from './utils';
|
|
6
4
|
import { DEFAULT_OPTIONS } from './constant';
|
|
5
|
+
import { BulletOptions } from './types';
|
|
6
|
+
import { transformData } from './utils';
|
|
7
7
|
|
|
8
8
|
export type { BulletOptions };
|
|
9
9
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Types } from '@antv/g2';
|
|
2
|
-
import {
|
|
2
|
+
import { ColorAttr, Datum, Options, SizeAttr, StyleAttr } from '../../types';
|
|
3
3
|
|
|
4
4
|
type GeometryLabelAttr = Types.GeometryLabelCfg | ((datum: Datum) => Types.GeometryLabelCfg);
|
|
5
5
|
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { interaction,
|
|
1
|
+
import { interaction, state, theme } from '../../adaptor/common';
|
|
2
|
+
import { edge, polygon } from '../../adaptor/geometries';
|
|
2
3
|
import { Params } from '../../core/adaptor';
|
|
3
|
-
import { flow, pick } from '../../utils';
|
|
4
|
-
import { polygon, edge } from '../../adaptor/geometries';
|
|
4
|
+
import { addViewAnimation, flow, getAllGeometriesRecursively, pick, transformDataToNodeLinkData } from '../../utils';
|
|
5
5
|
import { chordLayout } from '../../utils/transform/chord';
|
|
6
|
-
import {
|
|
6
|
+
import { EDGE_COLOR_FIELD, NODE_COLOR_FIELD, X_FIELD, Y_FIELD } from './constant';
|
|
7
7
|
import { ChordOptions } from './types';
|
|
8
|
-
import { X_FIELD, Y_FIELD, NODE_COLOR_FIELD, EDGE_COLOR_FIELD } from './constant';
|
|
9
8
|
|
|
10
9
|
function transformData(params: Params<ChordOptions>): Params<ChordOptions> {
|
|
11
10
|
// 将弦图数据放到ext中,nodeGeometry edgeGeometry使用
|
package/src/plots/chord/index.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { get } from '@antv/util';
|
|
2
1
|
import { Types } from '@antv/g2';
|
|
3
|
-
import {
|
|
4
|
-
import { Params } from '../../core/adaptor';
|
|
2
|
+
import { get } from '@antv/util';
|
|
5
3
|
import {
|
|
6
|
-
interaction as baseInteraction,
|
|
7
4
|
animation,
|
|
8
|
-
theme,
|
|
9
|
-
legend,
|
|
10
5
|
annotation,
|
|
11
|
-
|
|
6
|
+
interaction as baseInteraction,
|
|
7
|
+
legend,
|
|
12
8
|
pattern,
|
|
9
|
+
scale,
|
|
10
|
+
theme,
|
|
13
11
|
} from '../../adaptor/common';
|
|
14
|
-
import {
|
|
12
|
+
import { point } from '../../adaptor/geometries/point';
|
|
13
|
+
import { Params } from '../../core/adaptor';
|
|
14
|
+
import { deepAssign, flow } from '../../utils';
|
|
15
15
|
import { getAdjustAppendPadding, resolveAllPadding } from '../../utils/padding';
|
|
16
|
-
import { transformData, resolvePaddingForCircle } from './utils';
|
|
17
|
-
import { CirclePackingOptions } from './types';
|
|
18
16
|
import { RAW_FIELDS } from './constant';
|
|
17
|
+
import { CirclePackingOptions } from './types';
|
|
18
|
+
import { resolvePaddingForCircle, transformData } from './utils';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* 获取默认 option
|
|
@@ -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 { adaptor } from './adaptor';
|
|
4
4
|
import { DEFAULT_OPTIONS } from './constant';
|
|
5
|
-
import { CirclePackingOptions } from './types';
|
|
6
5
|
import './interactions';
|
|
6
|
+
import { CirclePackingOptions } from './types';
|
|
7
7
|
|
|
8
8
|
export type { CirclePackingOptions };
|
|
9
9
|
|