@antv/g2 5.2.9 → 5.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/g2.lite.min.js +22 -22
- package/dist/g2.min.js +22 -22
- package/esm/animation/scaleInY.js +1 -1
- package/esm/animation/scaleInY.js.map +1 -1
- package/esm/animation/waveIn.js +1 -1
- package/esm/animation/waveIn.js.map +1 -1
- package/esm/api/runtime.js +0 -1
- package/esm/api/runtime.js.map +1 -1
- package/esm/component/axis.js +2 -2
- package/esm/component/axis.js.map +1 -1
- package/esm/component/legendCategory.js +1 -1
- package/esm/component/legendCategory.js.map +1 -1
- package/esm/component/legendContinuous.js +1 -1
- package/esm/component/legendContinuous.js.map +1 -1
- package/esm/component/slider.js +1 -1
- package/esm/component/slider.js.map +1 -1
- package/esm/composition/d3Projection.d.ts +1 -1
- package/esm/composition/d3Projection.js +1 -1
- package/esm/composition/d3Projection.js.map +1 -1
- package/esm/composition/facetRect.js +1 -1
- package/esm/composition/facetRect.js.map +1 -1
- package/esm/composition/geoView.js +1 -1
- package/esm/composition/geoView.js.map +1 -1
- package/esm/data/cluster.d.ts +1 -1
- package/esm/data/cluster.js +1 -1
- package/esm/data/cluster.js.map +1 -1
- package/esm/data/fetch.js +1 -1
- package/esm/data/fetch.js.map +1 -1
- package/esm/data/join.js +1 -1
- package/esm/data/join.js.map +1 -1
- package/esm/data/kde.js +1 -1
- package/esm/data/kde.js.map +1 -1
- package/esm/data/tree.js +1 -1
- package/esm/data/tree.js.map +1 -1
- package/esm/data/utils/arc/arc.js +1 -1
- package/esm/data/utils/arc/arc.js.map +1 -1
- package/esm/data/utils/d3-sankey/align.js +1 -1
- package/esm/data/utils/d3-sankey/align.js.map +1 -1
- package/esm/data/utils/d3-sankey/sankey.js +1 -1
- package/esm/data/utils/d3-sankey/sankey.js.map +1 -1
- package/esm/data/wordCloud.js +1 -1
- package/esm/data/wordCloud.js.map +1 -1
- package/esm/index.d.ts +2 -0
- package/esm/interaction/chartIndex.js +1 -1
- package/esm/interaction/chartIndex.js.map +1 -1
- package/esm/interaction/elementHighlight.js +1 -1
- package/esm/interaction/elementHighlight.js.map +1 -1
- package/esm/interaction/elementSelect.js +1 -1
- package/esm/interaction/elementSelect.js.map +1 -1
- package/esm/interaction/legendHighlight.js +1 -1
- package/esm/interaction/legendHighlight.js.map +1 -1
- package/esm/interaction/tooltip.js +3 -7
- package/esm/interaction/tooltip.js.map +1 -1
- package/esm/interaction/treemapDrillDown.d.ts +2 -2
- package/esm/interaction/treemapDrillDown.js.map +1 -1
- package/esm/interaction/utils.js +2 -2
- package/esm/interaction/utils.js.map +1 -1
- package/esm/label-transform/contrastReverse.js +1 -1
- package/esm/label-transform/contrastReverse.js.map +1 -1
- package/esm/label-transform/overlapDodgeY.js +1 -1
- package/esm/label-transform/overlapDodgeY.js.map +1 -1
- package/esm/lib/core.d.ts +1 -0
- package/esm/lib/core.js +2 -1
- package/esm/lib/core.js.map +1 -1
- package/esm/lib/std.d.ts +1 -0
- package/esm/mark/area.js +1 -1
- package/esm/mark/area.js.map +1 -1
- package/esm/mark/boxplot.js +1 -1
- package/esm/mark/boxplot.js.map +1 -1
- package/esm/mark/forceGraph.js +1 -1
- package/esm/mark/forceGraph.js.map +1 -1
- package/esm/mark/line.js +1 -1
- package/esm/mark/line.js.map +1 -1
- package/esm/mark/pack.js +1 -1
- package/esm/mark/pack.js.map +1 -1
- package/esm/mark/utils.d.ts +1 -1
- package/esm/runtime/component.js +2 -2
- package/esm/runtime/component.js.map +1 -1
- package/esm/runtime/layout.js +1 -1
- package/esm/runtime/layout.js.map +1 -1
- package/esm/runtime/mark.js +1 -1
- package/esm/runtime/mark.js.map +1 -1
- package/esm/runtime/plot.js +2 -2
- package/esm/runtime/plot.js.map +1 -1
- package/esm/runtime/scale.js +2 -2
- package/esm/runtime/scale.js.map +1 -1
- package/esm/runtime/transform.js +1 -1
- package/esm/runtime/transform.js.map +1 -1
- package/esm/runtime/types/mark.d.ts +1 -1
- package/esm/shape/area/area.js +1 -1
- package/esm/shape/area/area.js.map +1 -1
- package/esm/shape/area/curve.d.ts +1 -1
- package/esm/shape/area/curve.js +1 -1
- package/esm/shape/area/curve.js.map +1 -1
- package/esm/shape/area/hv.js +1 -1
- package/esm/shape/area/hv.js.map +1 -1
- package/esm/shape/area/hvh.js +1 -1
- package/esm/shape/area/hvh.js.map +1 -1
- package/esm/shape/area/smooth.js +1 -1
- package/esm/shape/area/smooth.js.map +1 -1
- package/esm/shape/area/vh.js +1 -1
- package/esm/shape/area/vh.js.map +1 -1
- package/esm/shape/box/box.js +1 -1
- package/esm/shape/box/box.js.map +1 -1
- package/esm/shape/box/violin.js +1 -1
- package/esm/shape/box/violin.js.map +1 -1
- package/esm/shape/connector/connector.js +1 -1
- package/esm/shape/connector/connector.js.map +1 -1
- package/esm/shape/density/density.js +1 -1
- package/esm/shape/density/density.js.map +1 -1
- package/esm/shape/heatmap/heatmap.js +2 -2
- package/esm/shape/heatmap/heatmap.js.map +1 -1
- package/esm/shape/interval/color.js +1 -1
- package/esm/shape/interval/color.js.map +1 -1
- package/esm/shape/interval/funnel.js +1 -1
- package/esm/shape/interval/funnel.js.map +1 -1
- package/esm/shape/label/position/area.js +1 -1
- package/esm/shape/label/position/area.js.map +1 -1
- package/esm/shape/label/position/utils.js +1 -1
- package/esm/shape/label/position/utils.js.map +1 -1
- package/esm/shape/line/curve.d.ts +1 -1
- package/esm/shape/line/curve.js +1 -1
- package/esm/shape/line/curve.js.map +1 -1
- package/esm/shape/line/hv.js +1 -1
- package/esm/shape/line/hv.js.map +1 -1
- package/esm/shape/line/hvh.js +1 -1
- package/esm/shape/line/hvh.js.map +1 -1
- package/esm/shape/line/line.js +1 -1
- package/esm/shape/line/line.js.map +1 -1
- package/esm/shape/line/smooth.js +1 -1
- package/esm/shape/line/smooth.js.map +1 -1
- package/esm/shape/line/trail.js +1 -1
- package/esm/shape/line/trail.js.map +1 -1
- package/esm/shape/line/vh.js +1 -1
- package/esm/shape/line/vh.js.map +1 -1
- package/esm/shape/lineXY/line.js +1 -1
- package/esm/shape/lineXY/line.js.map +1 -1
- package/esm/shape/link/arc.js +1 -1
- package/esm/shape/link/arc.js.map +1 -1
- package/esm/shape/link/smooth.js +1 -1
- package/esm/shape/link/smooth.js.map +1 -1
- package/esm/shape/link/vhv.js +1 -1
- package/esm/shape/link/vhv.js.map +1 -1
- package/esm/shape/polygon/polygon.js +1 -1
- package/esm/shape/polygon/polygon.js.map +1 -1
- package/esm/shape/polygon/ribbon.js +1 -1
- package/esm/shape/polygon/ribbon.js.map +1 -1
- package/esm/shape/text/advance.js +1 -1
- package/esm/shape/text/advance.js.map +1 -1
- package/esm/shape/utils.d.ts +1 -1
- package/esm/shape/utils.js +1 -1
- package/esm/shape/utils.js.map +1 -1
- package/esm/shape/vector/vector.js +1 -1
- package/esm/shape/vector/vector.js.map +1 -1
- package/esm/transform/bin.js +1 -1
- package/esm/transform/bin.js.map +1 -1
- package/esm/transform/flexX.js +1 -1
- package/esm/transform/flexX.js.map +1 -1
- package/esm/transform/groupN.js +1 -1
- package/esm/transform/groupN.js.map +1 -1
- package/esm/transform/normalizeY.js +1 -1
- package/esm/transform/normalizeY.js.map +1 -1
- package/esm/transform/sample.js +1 -1
- package/esm/transform/sample.js.map +1 -1
- package/esm/transform/select.js +1 -1
- package/esm/transform/select.js.map +1 -1
- package/esm/transform/sort.d.ts +1 -1
- package/esm/transform/sort.js +1 -1
- package/esm/transform/sort.js.map +1 -1
- package/esm/transform/stackEnter.js +1 -1
- package/esm/transform/stackEnter.js.map +1 -1
- package/esm/transform/symmetryY.js +1 -1
- package/esm/transform/symmetryY.js.map +1 -1
- package/esm/transform/utils/order.d.ts +1 -1
- package/esm/transform/utils/order.js +1 -1
- package/esm/transform/utils/order.js.map +1 -1
- package/esm/utils/bounds.d.ts +4 -2
- package/esm/utils/bounds.js +11 -4
- package/esm/utils/bounds.js.map +1 -1
- package/esm/utils/scale.js +1 -1
- package/esm/utils/scale.js.map +1 -1
- package/esm/utils/selection.js +1 -1
- package/esm/utils/selection.js.map +1 -1
- package/esm/utils/treeDataTransform.d.ts +9 -2
- package/esm/utils/treeDataTransform.js +6 -2
- package/esm/utils/treeDataTransform.js.map +1 -1
- package/lib/animation/scaleInY.js +1 -1
- package/lib/animation/scaleInY.js.map +1 -1
- package/lib/animation/waveIn.js +1 -1
- package/lib/animation/waveIn.js.map +1 -1
- package/lib/api/runtime.js +0 -1
- package/lib/api/runtime.js.map +1 -1
- package/lib/component/axis.js +2 -2
- package/lib/component/axis.js.map +1 -1
- package/lib/component/legendCategory.js +1 -1
- package/lib/component/legendCategory.js.map +1 -1
- package/lib/component/legendContinuous.js +1 -1
- package/lib/component/legendContinuous.js.map +1 -1
- package/lib/component/slider.js +1 -1
- package/lib/component/slider.js.map +1 -1
- package/lib/composition/d3Projection.d.ts +1 -1
- package/lib/composition/d3Projection.js +1 -1
- package/lib/composition/d3Projection.js.map +1 -1
- package/lib/composition/facetRect.js +1 -1
- package/lib/composition/facetRect.js.map +1 -1
- package/lib/composition/geoView.js +1 -1
- package/lib/composition/geoView.js.map +1 -1
- package/lib/data/cluster.d.ts +1 -1
- package/lib/data/cluster.js +1 -1
- package/lib/data/cluster.js.map +1 -1
- package/lib/data/fetch.js +1 -1
- package/lib/data/fetch.js.map +1 -1
- package/lib/data/join.js +1 -1
- package/lib/data/join.js.map +1 -1
- package/lib/data/kde.js +1 -1
- package/lib/data/kde.js.map +1 -1
- package/lib/data/tree.js +1 -1
- package/lib/data/tree.js.map +1 -1
- package/lib/data/utils/arc/arc.js +1 -1
- package/lib/data/utils/arc/arc.js.map +1 -1
- package/lib/data/utils/d3-sankey/align.js +1 -1
- package/lib/data/utils/d3-sankey/align.js.map +1 -1
- package/lib/data/utils/d3-sankey/sankey.js +1 -1
- package/lib/data/utils/d3-sankey/sankey.js.map +1 -1
- package/lib/data/wordCloud.js +1 -1
- package/lib/data/wordCloud.js.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/interaction/chartIndex.js +1 -1
- package/lib/interaction/chartIndex.js.map +1 -1
- package/lib/interaction/elementHighlight.js +1 -1
- package/lib/interaction/elementHighlight.js.map +1 -1
- package/lib/interaction/elementSelect.js +1 -1
- package/lib/interaction/elementSelect.js.map +1 -1
- package/lib/interaction/legendHighlight.js +1 -1
- package/lib/interaction/legendHighlight.js.map +1 -1
- package/lib/interaction/tooltip.js +3 -7
- package/lib/interaction/tooltip.js.map +1 -1
- package/lib/interaction/treemapDrillDown.d.ts +2 -2
- package/lib/interaction/treemapDrillDown.js.map +1 -1
- package/lib/interaction/utils.js +2 -2
- package/lib/interaction/utils.js.map +1 -1
- package/lib/label-transform/contrastReverse.js +1 -1
- package/lib/label-transform/contrastReverse.js.map +1 -1
- package/lib/label-transform/overlapDodgeY.js +1 -1
- package/lib/label-transform/overlapDodgeY.js.map +1 -1
- package/lib/lib/core.d.ts +1 -0
- package/lib/lib/core.js +1 -0
- package/lib/lib/core.js.map +1 -1
- package/lib/lib/std.d.ts +1 -0
- package/lib/mark/area.js +1 -1
- package/lib/mark/area.js.map +1 -1
- package/lib/mark/boxplot.js +1 -1
- package/lib/mark/boxplot.js.map +1 -1
- package/lib/mark/forceGraph.js +1 -1
- package/lib/mark/forceGraph.js.map +1 -1
- package/lib/mark/line.js +1 -1
- package/lib/mark/line.js.map +1 -1
- package/lib/mark/pack.js +1 -1
- package/lib/mark/pack.js.map +1 -1
- package/lib/mark/utils.d.ts +1 -1
- package/lib/runtime/component.js +2 -2
- package/lib/runtime/component.js.map +1 -1
- package/lib/runtime/layout.js +1 -1
- package/lib/runtime/layout.js.map +1 -1
- package/lib/runtime/mark.js +1 -1
- package/lib/runtime/mark.js.map +1 -1
- package/lib/runtime/plot.js +2 -2
- package/lib/runtime/plot.js.map +1 -1
- package/lib/runtime/scale.js +2 -2
- package/lib/runtime/scale.js.map +1 -1
- package/lib/runtime/transform.js +1 -1
- package/lib/runtime/transform.js.map +1 -1
- package/lib/runtime/types/mark.d.ts +1 -1
- package/lib/shape/area/area.js +1 -1
- package/lib/shape/area/area.js.map +1 -1
- package/lib/shape/area/curve.d.ts +1 -1
- package/lib/shape/area/curve.js +1 -1
- package/lib/shape/area/curve.js.map +1 -1
- package/lib/shape/area/hv.js +1 -1
- package/lib/shape/area/hv.js.map +1 -1
- package/lib/shape/area/hvh.js +1 -1
- package/lib/shape/area/hvh.js.map +1 -1
- package/lib/shape/area/smooth.js +1 -1
- package/lib/shape/area/smooth.js.map +1 -1
- package/lib/shape/area/vh.js +1 -1
- package/lib/shape/area/vh.js.map +1 -1
- package/lib/shape/box/box.js +1 -1
- package/lib/shape/box/box.js.map +1 -1
- package/lib/shape/box/violin.js +1 -1
- package/lib/shape/box/violin.js.map +1 -1
- package/lib/shape/connector/connector.js +1 -1
- package/lib/shape/connector/connector.js.map +1 -1
- package/lib/shape/density/density.js +1 -1
- package/lib/shape/density/density.js.map +1 -1
- package/lib/shape/heatmap/heatmap.js +2 -2
- package/lib/shape/heatmap/heatmap.js.map +1 -1
- package/lib/shape/interval/color.js +1 -1
- package/lib/shape/interval/color.js.map +1 -1
- package/lib/shape/interval/funnel.js +1 -1
- package/lib/shape/interval/funnel.js.map +1 -1
- package/lib/shape/label/position/area.js +1 -1
- package/lib/shape/label/position/area.js.map +1 -1
- package/lib/shape/label/position/utils.js +1 -1
- package/lib/shape/label/position/utils.js.map +1 -1
- package/lib/shape/line/curve.d.ts +1 -1
- package/lib/shape/line/curve.js +1 -1
- package/lib/shape/line/curve.js.map +1 -1
- package/lib/shape/line/hv.js +1 -1
- package/lib/shape/line/hv.js.map +1 -1
- package/lib/shape/line/hvh.js +1 -1
- package/lib/shape/line/hvh.js.map +1 -1
- package/lib/shape/line/line.js +1 -1
- package/lib/shape/line/line.js.map +1 -1
- package/lib/shape/line/smooth.js +1 -1
- package/lib/shape/line/smooth.js.map +1 -1
- package/lib/shape/line/trail.js +1 -1
- package/lib/shape/line/trail.js.map +1 -1
- package/lib/shape/line/vh.js +1 -1
- package/lib/shape/line/vh.js.map +1 -1
- package/lib/shape/lineXY/line.js +1 -1
- package/lib/shape/lineXY/line.js.map +1 -1
- package/lib/shape/link/arc.js +1 -1
- package/lib/shape/link/arc.js.map +1 -1
- package/lib/shape/link/smooth.js +1 -1
- package/lib/shape/link/smooth.js.map +1 -1
- package/lib/shape/link/vhv.js +1 -1
- package/lib/shape/link/vhv.js.map +1 -1
- package/lib/shape/polygon/polygon.js +1 -1
- package/lib/shape/polygon/polygon.js.map +1 -1
- package/lib/shape/polygon/ribbon.js +1 -1
- package/lib/shape/polygon/ribbon.js.map +1 -1
- package/lib/shape/text/advance.js +1 -1
- package/lib/shape/text/advance.js.map +1 -1
- package/lib/shape/utils.d.ts +1 -1
- package/lib/shape/utils.js +1 -1
- package/lib/shape/utils.js.map +1 -1
- package/lib/shape/vector/vector.js +1 -1
- package/lib/shape/vector/vector.js.map +1 -1
- package/lib/transform/bin.js +1 -1
- package/lib/transform/bin.js.map +1 -1
- package/lib/transform/flexX.js +1 -1
- package/lib/transform/flexX.js.map +1 -1
- package/lib/transform/groupN.js +1 -1
- package/lib/transform/groupN.js.map +1 -1
- package/lib/transform/normalizeY.js +1 -1
- package/lib/transform/normalizeY.js.map +1 -1
- package/lib/transform/sample.js +1 -1
- package/lib/transform/sample.js.map +1 -1
- package/lib/transform/select.js +1 -1
- package/lib/transform/select.js.map +1 -1
- package/lib/transform/sort.d.ts +1 -1
- package/lib/transform/sort.js +1 -1
- package/lib/transform/sort.js.map +1 -1
- package/lib/transform/stackEnter.js +1 -1
- package/lib/transform/stackEnter.js.map +1 -1
- package/lib/transform/symmetryY.js +1 -1
- package/lib/transform/symmetryY.js.map +1 -1
- package/lib/transform/utils/order.d.ts +1 -1
- package/lib/transform/utils/order.js +1 -1
- package/lib/transform/utils/order.js.map +1 -1
- package/lib/utils/bounds.d.ts +4 -2
- package/lib/utils/bounds.js +11 -4
- package/lib/utils/bounds.js.map +1 -1
- package/lib/utils/scale.js +1 -1
- package/lib/utils/scale.js.map +1 -1
- package/lib/utils/selection.js +1 -1
- package/lib/utils/selection.js.map +1 -1
- package/lib/utils/treeDataTransform.d.ts +9 -2
- package/lib/utils/treeDataTransform.js +6 -2
- package/lib/utils/treeDataTransform.js.map +1 -1
- package/package.json +7 -22
- package/src/animation/scaleInY.ts +1 -1
- package/src/animation/waveIn.ts +1 -1
- package/src/api/runtime.ts +0 -1
- package/src/component/axis.ts +2 -2
- package/src/component/legendCategory.ts +1 -1
- package/src/component/legendContinuous.ts +1 -1
- package/src/component/slider.ts +1 -1
- package/src/composition/d3Projection.ts +1 -1
- package/src/composition/facetRect.ts +1 -1
- package/src/composition/geoView.ts +1 -1
- package/src/data/cluster.ts +1 -1
- package/src/data/fetch.ts +1 -1
- package/src/data/join.ts +1 -1
- package/src/data/kde.ts +1 -1
- package/src/data/tree.ts +1 -1
- package/src/data/utils/arc/arc.ts +1 -1
- package/src/data/utils/d3-sankey/align.ts +1 -1
- package/src/data/utils/d3-sankey/sankey.ts +1 -1
- package/src/data/wordCloud.ts +1 -1
- package/src/interaction/chartIndex.ts +1 -1
- package/src/interaction/elementHighlight.ts +1 -1
- package/src/interaction/elementSelect.ts +1 -1
- package/src/interaction/legendHighlight.ts +1 -1
- package/src/interaction/tooltip.ts +3 -1
- package/src/interaction/treemapDrillDown.ts +2 -3
- package/src/interaction/utils.ts +2 -2
- package/src/label-transform/contrastReverse.ts +1 -1
- package/src/label-transform/overlapDodgeY.ts +1 -1
- package/src/lib/core.ts +2 -0
- package/src/mark/area.ts +1 -1
- package/src/mark/boxplot.ts +6 -1
- package/src/mark/forceGraph.ts +1 -1
- package/src/mark/line.ts +1 -1
- package/src/mark/pack.ts +5 -1
- package/src/mark/utils.ts +1 -1
- package/src/runtime/component.ts +2 -2
- package/src/runtime/layout.ts +1 -1
- package/src/runtime/mark.ts +1 -1
- package/src/runtime/plot.ts +2 -2
- package/src/runtime/scale.ts +2 -2
- package/src/runtime/transform.ts +2 -2
- package/src/runtime/types/mark.ts +1 -1
- package/src/shape/area/area.ts +1 -1
- package/src/shape/area/curve.ts +1 -1
- package/src/shape/area/hv.ts +1 -1
- package/src/shape/area/hvh.ts +1 -1
- package/src/shape/area/smooth.ts +1 -1
- package/src/shape/area/vh.ts +1 -1
- package/src/shape/box/box.ts +1 -1
- package/src/shape/box/violin.ts +1 -1
- package/src/shape/connector/connector.ts +1 -1
- package/src/shape/density/density.ts +1 -1
- package/src/shape/heatmap/heatmap.ts +2 -2
- package/src/shape/interval/color.ts +1 -1
- package/src/shape/interval/funnel.ts +1 -1
- package/src/shape/label/position/area.ts +1 -1
- package/src/shape/label/position/utils.ts +1 -1
- package/src/shape/line/curve.ts +6 -1
- package/src/shape/line/hv.ts +1 -1
- package/src/shape/line/hvh.ts +1 -1
- package/src/shape/line/line.ts +1 -1
- package/src/shape/line/smooth.ts +1 -1
- package/src/shape/line/trail.ts +1 -1
- package/src/shape/line/vh.ts +1 -1
- package/src/shape/lineXY/line.ts +1 -1
- package/src/shape/link/arc.ts +1 -1
- package/src/shape/link/smooth.ts +1 -1
- package/src/shape/link/vhv.ts +1 -1
- package/src/shape/polygon/polygon.ts +1 -1
- package/src/shape/polygon/ribbon.ts +1 -1
- package/src/shape/text/advance.ts +1 -1
- package/src/shape/utils.ts +2 -2
- package/src/shape/vector/vector.ts +1 -1
- package/src/transform/bin.ts +6 -1
- package/src/transform/flexX.ts +1 -1
- package/src/transform/groupN.ts +1 -1
- package/src/transform/normalizeY.ts +1 -1
- package/src/transform/sample.ts +1 -1
- package/src/transform/select.ts +1 -1
- package/src/transform/sort.ts +1 -1
- package/src/transform/stackEnter.ts +1 -1
- package/src/transform/symmetryY.ts +1 -1
- package/src/transform/utils/order.ts +1 -1
- package/src/utils/bounds.ts +22 -4
- package/src/utils/scale.ts +1 -1
- package/src/utils/selection.ts +1 -1
- package/src/utils/treeDataTransform.ts +26 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Circle, DisplayObject, IElement, Line } from '@antv/g';
|
|
2
|
-
import { sort, group, mean, bisector, minIndex } from 'd3-array';
|
|
2
|
+
import { sort, group, mean, bisector, minIndex } from '@antv/vendor/d3-array';
|
|
3
3
|
import { deepMix, lowerFirst, throttle } from '@antv/util';
|
|
4
4
|
import { Tooltip as TooltipComponent } from '@antv/component';
|
|
5
5
|
import { Constant, Band } from '@antv/scale';
|
|
@@ -872,6 +872,7 @@ export function seriesTooltip(
|
|
|
872
872
|
...event,
|
|
873
873
|
nativeEvent: true,
|
|
874
874
|
data: {
|
|
875
|
+
...tooltipData,
|
|
875
876
|
data: { x: invert(scale.x, transformedX, true) },
|
|
876
877
|
},
|
|
877
878
|
});
|
|
@@ -1095,6 +1096,7 @@ export function tooltip(
|
|
|
1095
1096
|
...event,
|
|
1096
1097
|
nativeEvent: true,
|
|
1097
1098
|
data: {
|
|
1099
|
+
...data,
|
|
1098
1100
|
data: dataOf(element, view),
|
|
1099
1101
|
},
|
|
1100
1102
|
});
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Text, Group } from '@antv/g';
|
|
2
2
|
import { get, deepMix, pick, keys, find, size, last } from '@antv/util';
|
|
3
|
-
import type { Node } from 'd3-hierarchy';
|
|
4
3
|
import type { DisplayObject } from '@antv/g';
|
|
5
4
|
import { subObject } from '../utils/helper';
|
|
6
5
|
import { PLOT_CLASS_NAME } from '../runtime';
|
|
7
6
|
import { select } from '../utils/selection';
|
|
8
|
-
import { treeDataTransform } from '../utils/treeDataTransform';
|
|
7
|
+
import { Node, treeDataTransform } from '../utils/treeDataTransform';
|
|
9
8
|
import { legendClearSetState } from './legendFilter';
|
|
10
9
|
import { getElements } from './utils';
|
|
11
10
|
|
|
@@ -14,7 +13,7 @@ function selectPlotArea(root: DisplayObject): DisplayObject {
|
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
export type DrillDownOptions = {
|
|
17
|
-
originData?: Node[];
|
|
16
|
+
originData?: Node<any>[];
|
|
18
17
|
layout?: any;
|
|
19
18
|
[key: string]: any;
|
|
20
19
|
};
|
package/src/interaction/utils.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DisplayObject, Path, AABB } from '@antv/g';
|
|
2
|
-
import { path as d3Path } from 'd3-path';
|
|
3
|
-
import { sort } from 'd3-array';
|
|
2
|
+
import { path as d3Path } from '@antv/vendor/d3-path';
|
|
3
|
+
import { sort } from '@antv/vendor/d3-array';
|
|
4
4
|
import { Vector2 } from '@antv/coord';
|
|
5
5
|
import { filter } from '@antv/util';
|
|
6
6
|
import type { PathArray } from '@antv/util';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DisplayObject } from '@antv/g';
|
|
2
|
-
import { maxIndex } from 'd3-array';
|
|
2
|
+
import { maxIndex } from '@antv/vendor/d3-array';
|
|
3
3
|
import { ContrastReverseLabelTransform } from '../spec';
|
|
4
4
|
import { LabelTransformComponent as LLC } from '../runtime';
|
|
5
5
|
import { parseToRGB } from '../utils/color';
|
package/src/lib/core.ts
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
Fisheye,
|
|
8
8
|
Radial,
|
|
9
9
|
Radar,
|
|
10
|
+
Helix,
|
|
10
11
|
} from '../coordinate';
|
|
11
12
|
import { Constant, Field, Transform, Column } from '../encode';
|
|
12
13
|
import {
|
|
@@ -216,6 +217,7 @@ export function corelib() {
|
|
|
216
217
|
'coordinate.fisheye': Fisheye,
|
|
217
218
|
'coordinate.radial': Radial,
|
|
218
219
|
'coordinate.radar': Radar,
|
|
220
|
+
'coordinate.helix': Helix,
|
|
219
221
|
'encode.constant': Constant,
|
|
220
222
|
'encode.field': Field,
|
|
221
223
|
'encode.transform': Transform,
|
package/src/mark/area.ts
CHANGED
package/src/mark/boxplot.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
min as d3Min,
|
|
3
|
+
max as d3Max,
|
|
4
|
+
quantile,
|
|
5
|
+
group,
|
|
6
|
+
} from '@antv/vendor/d3-array';
|
|
2
7
|
import { CompositeMarkComponent as CC } from '../runtime';
|
|
3
8
|
import { BoxPlotMark } from '../spec';
|
|
4
9
|
import { subObject } from '../utils/helper';
|
package/src/mark/forceGraph.ts
CHANGED
package/src/mark/line.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Vector } from '@antv/coord';
|
|
2
|
-
import { group } from 'd3-array';
|
|
2
|
+
import { group } from '@antv/vendor/d3-array';
|
|
3
3
|
import { isParallel } from '../utils/coordinate';
|
|
4
4
|
import { Mark, MarkComponent as MC, SingleMark, Vector2 } from '../runtime';
|
|
5
5
|
import { LineMark } from '../spec';
|
package/src/mark/pack.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { deepMix, isArray } from '@antv/util';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
stratify,
|
|
4
|
+
hierarchy,
|
|
5
|
+
pack as packLayout,
|
|
6
|
+
} from '@antv/vendor/d3-hierarchy';
|
|
3
7
|
import { CompositionComponent as CC } from '../runtime';
|
|
4
8
|
import { subObject } from '../utils/helper';
|
|
5
9
|
import { PackMark } from '../spec';
|
package/src/mark/utils.ts
CHANGED
package/src/runtime/component.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { Coordinate } from '@antv/coord';
|
|
5
5
|
import { deepMix, isEqual } from '@antv/util';
|
|
6
|
-
import { groups, max, sum } from 'd3-array';
|
|
7
|
-
import { format } from 'd3-format';
|
|
6
|
+
import { groups, max, sum } from '@antv/vendor/d3-array';
|
|
7
|
+
import { format } from '@antv/vendor/d3-format';
|
|
8
8
|
import { DisplayObject, Text } from '@antv/g';
|
|
9
9
|
import {
|
|
10
10
|
getPolarOptions,
|
package/src/runtime/layout.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Coordinate } from '@antv/coord';
|
|
2
|
-
import { ascending, group, max, min, sum } from 'd3-array';
|
|
2
|
+
import { ascending, group, max, min, sum } from '@antv/vendor/d3-array';
|
|
3
3
|
import { deepMix } from '@antv/util';
|
|
4
4
|
import { isParallel, isPolar, isRadar, radiusOf } from '../utils/coordinate';
|
|
5
5
|
import { capitalizeFirst, defined } from '../utils/helper';
|
package/src/runtime/mark.ts
CHANGED
package/src/runtime/plot.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Vector2 } from '@antv/coord';
|
|
2
2
|
import { DisplayObject, IAnimation as GAnimation, Rect } from '@antv/g';
|
|
3
3
|
import { deepMix, upperFirst, isArray } from '@antv/util';
|
|
4
|
-
import { group, groups } from 'd3-array';
|
|
5
|
-
import { format } from 'd3-format';
|
|
4
|
+
import { group, groups } from '@antv/vendor/d3-array';
|
|
5
|
+
import { format } from '@antv/vendor/d3-format';
|
|
6
6
|
import { mapObject } from '../utils/array';
|
|
7
7
|
import { ChartEvent } from '../utils/event';
|
|
8
8
|
import {
|
package/src/runtime/scale.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Linear, createInterpolateValue } from '@antv/scale';
|
|
2
|
-
import { extent, max, rollups } from 'd3-array';
|
|
3
|
-
import * as d3ScaleChromatic from 'd3-scale-chromatic';
|
|
2
|
+
import { extent, max, rollups } from '@antv/vendor/d3-array';
|
|
3
|
+
import * as d3ScaleChromatic from '@antv/vendor/d3-scale-chromatic';
|
|
4
4
|
import { deepMix, omit, upperFirst } from '@antv/util';
|
|
5
5
|
import { firstOf, lastOf, unique } from '../utils/array';
|
|
6
6
|
import { defined, identity, isStrictObject } from '../utils/helper';
|
package/src/runtime/transform.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Primitive } from 'd3-array';
|
|
1
|
+
import { Primitive } from '@antv/vendor/d3-array';
|
|
2
2
|
import { deepMix, isNumber } from '@antv/util';
|
|
3
|
-
import { format } from 'd3-format';
|
|
3
|
+
import { format } from '@antv/vendor/d3-format';
|
|
4
4
|
import { indexOf, mapObject } from '../utils/array';
|
|
5
5
|
import {
|
|
6
6
|
composeAsync,
|
package/src/shape/area/area.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { curveLinearClosed, curveLinear } from 'd3-shape';
|
|
1
|
+
import { curveLinearClosed, curveLinear } from '@antv/vendor/d3-shape';
|
|
2
2
|
import { isPolar } from '../../utils/coordinate';
|
|
3
3
|
import { ShapeComponent as SC } from '../../runtime';
|
|
4
4
|
import { Curve } from './curve';
|
package/src/shape/area/curve.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { area, areaRadial, CurveFactory } from 'd3-shape';
|
|
1
|
+
import { area, areaRadial, CurveFactory } from '@antv/vendor/d3-shape';
|
|
2
2
|
import { select } from '../../utils/selection';
|
|
3
3
|
import { isPolar, isTranspose } from '../../utils/coordinate';
|
|
4
4
|
import { Vector2, ShapeComponent as SC } from '../../runtime';
|
package/src/shape/area/hv.ts
CHANGED
package/src/shape/area/hvh.ts
CHANGED
package/src/shape/area/smooth.ts
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
curveCatmullRomClosed,
|
|
3
3
|
curveMonotoneX,
|
|
4
4
|
curveMonotoneY,
|
|
5
|
-
} from 'd3-shape';
|
|
5
|
+
} from '@antv/vendor/d3-shape';
|
|
6
6
|
import { isPolar, isTranspose } from '../../utils/coordinate';
|
|
7
7
|
import { ShapeComponent as SC } from '../../runtime';
|
|
8
8
|
import { Curve } from './curve';
|
package/src/shape/area/vh.ts
CHANGED
package/src/shape/box/box.ts
CHANGED
package/src/shape/box/violin.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Coordinate } from '@antv/coord';
|
|
|
2
2
|
import type { PathArray } from '@antv/util';
|
|
3
3
|
import { PathStyleProps, Path } from '@antv/g';
|
|
4
4
|
import { Marker } from '@antv/component';
|
|
5
|
-
import { line as d3line } from 'd3-shape';
|
|
5
|
+
import { line as d3line } from '@antv/vendor/d3-shape';
|
|
6
6
|
import { ShapeComponent as SC, Vector2, WithPrefix } from '../../runtime';
|
|
7
7
|
import { isTranspose } from '../../utils/coordinate';
|
|
8
8
|
import { subObject } from '../../utils/helper';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { max as d3max, min as d3min } from 'd3-array';
|
|
1
|
+
import { max as d3max, min as d3min } from '@antv/vendor/d3-array';
|
|
2
2
|
import { applyStyle } from '../utils';
|
|
3
3
|
import { select } from '../../utils/selection';
|
|
4
4
|
import { ShapeComponent as SC } from '../../runtime';
|
|
@@ -66,7 +66,7 @@ export const Heatmap: SC<HeatmapOptions> = (options, context) => {
|
|
|
66
66
|
.style('y', 0)
|
|
67
67
|
.style('width', width)
|
|
68
68
|
.style('height', height)
|
|
69
|
-
.style('src', ctx.canvas)
|
|
69
|
+
.style('src', ctx.canvas.toDataURL())
|
|
70
70
|
.style('transform', transform)
|
|
71
71
|
.call(applyStyle, style)
|
|
72
72
|
.node();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { line, curveLinearClosed } from 'd3-shape';
|
|
1
|
+
import { line, curveLinearClosed } from '@antv/vendor/d3-shape';
|
|
2
2
|
import { Coordinate } from '@antv/coord';
|
|
3
3
|
import { isTranspose } from '../../utils/coordinate';
|
|
4
4
|
import { ShapeComponent as SC, Vector2 } from '../../runtime';
|
package/src/shape/line/curve.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
line,
|
|
3
|
+
lineRadial,
|
|
4
|
+
CurveFactory,
|
|
5
|
+
CurveFactoryLineOnly,
|
|
6
|
+
} from '@antv/vendor/d3-shape';
|
|
2
7
|
import { Vector2 } from '@antv/coord';
|
|
3
8
|
import { isPolar, isTranspose } from '../../utils/coordinate';
|
|
4
9
|
import { select } from '../../utils/selection';
|
package/src/shape/line/hv.ts
CHANGED
package/src/shape/line/hvh.ts
CHANGED
package/src/shape/line/line.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { curveLinear, curveLinearClosed } from 'd3-shape';
|
|
1
|
+
import { curveLinear, curveLinearClosed } from '@antv/vendor/d3-shape';
|
|
2
2
|
import { isPolar } from '../../utils/coordinate';
|
|
3
3
|
import { ShapeComponent as SC } from '../../runtime';
|
|
4
4
|
import { Curve } from './curve';
|
package/src/shape/line/smooth.ts
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
curveMonotoneX,
|
|
3
3
|
curveMonotoneY,
|
|
4
4
|
curveCatmullRomClosed,
|
|
5
|
-
} from 'd3-shape';
|
|
5
|
+
} from '@antv/vendor/d3-shape';
|
|
6
6
|
import { isPolar, isTranspose } from '../../utils/coordinate';
|
|
7
7
|
import { ShapeComponent as SC } from '../../runtime';
|
|
8
8
|
import { Curve } from './curve';
|
package/src/shape/line/trail.ts
CHANGED
package/src/shape/line/vh.ts
CHANGED
package/src/shape/lineXY/line.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IDocument } from '@antv/g';
|
|
2
2
|
import { Coordinate } from '@antv/coord';
|
|
3
|
-
import { arc, line } from 'd3-shape';
|
|
3
|
+
import { arc, line } from '@antv/vendor/d3-shape';
|
|
4
4
|
import { isPolar } from '../../utils/coordinate';
|
|
5
5
|
import { select } from '../../utils/selection';
|
|
6
6
|
import { dist } from '../../utils/vector';
|
package/src/shape/link/arc.ts
CHANGED
package/src/shape/link/smooth.ts
CHANGED
package/src/shape/link/vhv.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Coordinate } from '@antv/coord';
|
|
2
|
-
import { path as d3path } from 'd3-path';
|
|
2
|
+
import { path as d3path } from '@antv/vendor/d3-path';
|
|
3
3
|
import { isPolar } from '../../utils/coordinate';
|
|
4
4
|
import { applyStyle, appendPolygon, appendArc } from '../utils';
|
|
5
5
|
import { select } from '../../utils/selection';
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from '@antv/g';
|
|
10
10
|
import { isNumber } from '@antv/util';
|
|
11
11
|
import { Marker } from '@antv/component';
|
|
12
|
-
import { line } from 'd3-shape';
|
|
12
|
+
import { line } from '@antv/vendor/d3-shape';
|
|
13
13
|
import { WithPrefix } from '../../runtime';
|
|
14
14
|
import { createElement } from '../../utils/createElement';
|
|
15
15
|
import { applyStyle } from '../utils';
|
package/src/shape/utils.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Coordinate } from '@antv/coord';
|
|
2
2
|
import { Linear } from '@antv/scale';
|
|
3
3
|
import { isNumber, lowerFirst } from '@antv/util';
|
|
4
|
-
import { extent } from 'd3-array';
|
|
5
|
-
import { Path as D3Path } from 'd3-path';
|
|
4
|
+
import { extent } from '@antv/vendor/d3-array';
|
|
5
|
+
import { Path as D3Path } from '@antv/vendor/d3-path';
|
|
6
6
|
import { Primitive, Vector2, Vector3 } from '../runtime';
|
|
7
7
|
import { indexOf } from '../utils/array';
|
|
8
8
|
import { isPolar, isTranspose } from '../utils/coordinate';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { path as d3path } from 'd3-path';
|
|
1
|
+
import { path as d3path } from '@antv/vendor/d3-path';
|
|
2
2
|
import { applyStyle, arrowPoints, ArrowOptions } from '../utils';
|
|
3
3
|
import { select } from '../../utils/selection';
|
|
4
4
|
import { ShapeComponent as SC } from '../../runtime';
|
package/src/transform/bin.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
bin as d3Bin,
|
|
3
|
+
group,
|
|
4
|
+
thresholdScott,
|
|
5
|
+
extent,
|
|
6
|
+
} from '@antv/vendor/d3-array';
|
|
2
7
|
import { defined, subObject } from '../utils/helper';
|
|
3
8
|
import { TransformComponent as TC } from '../runtime';
|
|
4
9
|
import { BinTransform } from '../spec';
|
package/src/transform/flexX.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { deepMix } from '@antv/util';
|
|
2
|
-
import { rollups, sum, Primitive } from 'd3-array';
|
|
2
|
+
import { rollups, sum, Primitive } from '@antv/vendor/d3-array';
|
|
3
3
|
import { TransformComponent as TC } from '../runtime';
|
|
4
4
|
import { FlexXTransform } from '../spec';
|
|
5
5
|
import { columnOf } from './utils/helper';
|
package/src/transform/groupN.ts
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
sum as d3Sum,
|
|
6
6
|
min as d3Min,
|
|
7
7
|
median as d3Median,
|
|
8
|
-
} from 'd3-array';
|
|
8
|
+
} from '@antv/vendor/d3-array';
|
|
9
9
|
import { TransformComponent as TC, Primitive, G2Mark } from '../runtime';
|
|
10
10
|
import { GroupTransform, Reducer } from '../spec';
|
|
11
11
|
import { indexOf } from '../utils/array';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { deepMix } from '@antv/util';
|
|
2
|
-
import { mean, deviation, median, sum, max, min } from 'd3-array';
|
|
2
|
+
import { mean, deviation, median, sum, max, min } from '@antv/vendor/d3-array';
|
|
3
3
|
import { isUnset } from '../utils/helper';
|
|
4
4
|
import { TransformComponent as TC } from '../runtime';
|
|
5
5
|
import { NormalizeYTransform } from '../spec';
|
package/src/transform/sample.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @ts-ignore medianIndex exist in d3-array@3.2.0, but @types/d3-array Expired.
|
|
2
|
-
import { maxIndex, minIndex, medianIndex } from 'd3-array';
|
|
2
|
+
import { maxIndex, minIndex, medianIndex } from '@antv/vendor/d3-array';
|
|
3
3
|
import { TransformComponent as TC, Primitive } from '../runtime';
|
|
4
4
|
import { SampleTransform, SampleFunction } from '../spec';
|
|
5
5
|
import { createGroups } from './utils/order';
|
package/src/transform/select.ts
CHANGED
package/src/transform/sort.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { deepMix } from '@antv/util';
|
|
2
|
-
import { extent } from 'd3-array';
|
|
2
|
+
import { extent } from '@antv/vendor/d3-array';
|
|
3
3
|
import { TransformComponent as TC } from '../runtime';
|
|
4
4
|
import { SymmetryYTransform } from '../spec';
|
|
5
5
|
import { columnOf, column } from './utils/helper';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { group, ascending, maxIndex, Primitive } from 'd3-array';
|
|
1
|
+
import { group, ascending, maxIndex, Primitive } from '@antv/vendor/d3-array';
|
|
2
2
|
import { defined } from '../../utils/helper';
|
|
3
3
|
import { TabularData, G2Mark } from '../../runtime';
|
|
4
4
|
import { indexOf } from '../../utils/array';
|