@antv/g2 5.0.17 → 5.0.19
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 +3 -3
- package/dist/g2.min.js +3 -3
- package/esm/api/chart.d.ts +1017 -85
- package/esm/api/chart.js +3 -259
- package/esm/api/chart.js.map +1 -1
- package/esm/api/composition.d.ts +37 -0
- package/esm/api/{composition/base.js → composition.js} +17 -5
- package/esm/api/composition.js.map +1 -0
- package/esm/api/define.d.ts +14 -0
- package/esm/api/define.js +92 -0
- package/esm/api/define.js.map +1 -0
- package/esm/api/extend.d.ts +9 -0
- package/esm/api/extend.js +9 -0
- package/esm/api/extend.js.map +1 -0
- package/esm/api/index.d.ts +2 -0
- package/esm/api/index.js +2 -0
- package/esm/api/index.js.map +1 -1
- package/esm/api/library.d.ts +170 -1
- package/esm/api/library.js +2 -2
- package/esm/api/library.js.map +1 -1
- package/esm/api/mark.d.ts +29 -0
- package/esm/api/{mark/base.js → mark.js} +16 -4
- package/esm/api/mark.js.map +1 -0
- package/esm/api/node.d.ts +2 -2
- package/esm/api/node.js.map +1 -1
- package/esm/api/props.d.ts +170 -12
- package/esm/api/props.js +21 -102
- package/esm/api/props.js.map +1 -1
- package/esm/api/runtime.d.ts +66 -0
- package/esm/api/runtime.js +294 -0
- package/esm/api/runtime.js.map +1 -0
- package/esm/api/types.d.ts +60 -5
- package/esm/api/utils.d.ts +1 -1
- package/esm/api/utils.js +11 -13
- package/esm/api/utils.js.map +1 -1
- package/esm/component/axis.js +7 -4
- package/esm/component/axis.js.map +1 -1
- package/esm/component/legendCategory.js +4 -5
- package/esm/component/legendCategory.js.map +1 -1
- package/esm/component/legendContinuous.js +6 -5
- package/esm/component/legendContinuous.js.map +1 -1
- package/esm/composition/d3Projection.js.map +1 -0
- package/esm/composition/geoPath.js.map +1 -0
- package/esm/{geo → composition}/geoView.js +1 -1
- package/esm/composition/geoView.js.map +1 -0
- package/esm/composition/index.d.ts +2 -0
- package/esm/composition/index.js +2 -0
- package/esm/composition/index.js.map +1 -1
- package/esm/index.d.ts +4 -3
- package/esm/index.js +3 -2
- package/esm/index.js.map +1 -1
- package/esm/interaction/legendFilter.d.ts +2 -0
- package/esm/interaction/legendFilter.js +66 -37
- package/esm/interaction/legendFilter.js.map +1 -1
- package/esm/label-transform/overlapDodgeY.js.map +1 -1
- package/esm/lib/core.d.ts +158 -0
- package/esm/lib/core.js +174 -0
- package/esm/lib/core.js.map +1 -0
- package/esm/lib/geo.d.ts +4 -0
- package/esm/lib/geo.js +9 -0
- package/esm/lib/geo.js.map +1 -0
- package/esm/lib/graph.d.ts +4 -0
- package/esm/lib/graph.js +8 -0
- package/esm/lib/graph.js.map +1 -0
- package/esm/lib/index.d.ts +6 -0
- package/esm/lib/index.js +7 -0
- package/esm/lib/index.js.map +1 -0
- package/esm/lib/lite.d.ts +64 -0
- package/esm/lib/lite.js +78 -0
- package/esm/lib/lite.js.map +1 -0
- package/esm/lib/plot.d.ts +11 -0
- package/esm/lib/plot.js +16 -0
- package/esm/lib/plot.js.map +1 -0
- package/esm/lib/std.d.ts +170 -0
- package/esm/lib/std.js +8 -0
- package/esm/lib/std.js.map +1 -0
- package/esm/mark/area.js +14 -5
- package/esm/mark/area.js.map +1 -1
- package/esm/mark/box.js +9 -2
- package/esm/mark/box.js.map +1 -1
- package/esm/mark/cell.js +11 -5
- package/esm/mark/cell.js.map +1 -1
- package/esm/mark/connector.js +6 -2
- package/esm/mark/connector.js.map +1 -1
- package/esm/mark/density.js +10 -7
- package/esm/mark/density.js.map +1 -1
- package/esm/mark/forceGraph.js +0 -3
- package/esm/mark/forceGraph.js.map +1 -1
- package/esm/mark/heatmap.js +9 -4
- package/esm/mark/heatmap.js.map +1 -1
- package/esm/mark/image.js +9 -4
- package/esm/mark/image.js.map +1 -1
- package/esm/mark/interval.js +13 -7
- package/esm/mark/interval.js.map +1 -1
- package/esm/mark/line.js +15 -4
- package/esm/mark/line.js.map +1 -1
- package/esm/mark/lineX.js +13 -6
- package/esm/mark/lineX.js.map +1 -1
- package/esm/mark/lineY.js +13 -6
- package/esm/mark/lineY.js.map +1 -1
- package/esm/mark/link.js +12 -4
- package/esm/mark/link.js.map +1 -1
- package/esm/mark/path.js +7 -2
- package/esm/mark/path.js.map +1 -1
- package/esm/mark/point.js +28 -29
- package/esm/mark/point.js.map +1 -1
- package/esm/mark/polygon.js +7 -2
- package/esm/mark/polygon.js.map +1 -1
- package/esm/mark/range.js +4 -2
- package/esm/mark/range.js.map +1 -1
- package/esm/mark/rangeX.js +6 -2
- package/esm/mark/rangeX.js.map +1 -1
- package/esm/mark/rangeY.js +6 -2
- package/esm/mark/rangeY.js.map +1 -1
- package/esm/mark/rect.js +9 -3
- package/esm/mark/rect.js.map +1 -1
- package/esm/mark/shape.js +9 -3
- package/esm/mark/shape.js.map +1 -1
- package/esm/mark/text.js +10 -4
- package/esm/mark/text.js.map +1 -1
- package/esm/mark/treemap.js.map +1 -1
- package/esm/mark/utils.d.ts +11 -8
- package/esm/mark/utils.js +8 -7
- package/esm/mark/utils.js.map +1 -1
- package/esm/mark/vector.js +6 -2
- package/esm/mark/vector.js.map +1 -1
- package/esm/runtime/index.d.ts +1 -1
- package/esm/runtime/index.js +1 -1
- package/esm/runtime/index.js.map +1 -1
- package/esm/runtime/plot.js +14 -10
- package/esm/runtime/plot.js.map +1 -1
- package/esm/runtime/render.js +3 -6
- package/esm/runtime/render.js.map +1 -1
- package/esm/runtime/types/component.d.ts +1 -1
- package/esm/runtime/types/mark.d.ts +4 -0
- package/esm/runtime/types/options.d.ts +4 -1
- package/esm/runtime/types/theme.d.ts +1 -0
- package/esm/shape/index.d.ts +106 -101
- package/esm/shape/index.js +58 -53
- package/esm/shape/index.js.map +1 -1
- package/esm/shape/label/label.d.ts +7 -1
- package/esm/shape/label/label.js +11 -2
- package/esm/shape/label/label.js.map +1 -1
- package/esm/shape/text/advance.js +24 -11
- package/esm/shape/text/advance.js.map +1 -1
- package/esm/spec/composition.d.ts +7 -0
- package/esm/spec/index.d.ts +1 -0
- package/esm/spec/index.js.map +1 -1
- package/esm/spec/interaction.d.ts +2 -0
- package/esm/theme/academy.js +12 -6
- package/esm/theme/academy.js.map +1 -1
- package/esm/theme/classic.js +12 -7
- package/esm/theme/classic.js.map +1 -1
- package/esm/theme/classicDark.js +12 -6
- package/esm/theme/classicDark.js.map +1 -1
- package/esm/transform/filter.js +19 -6
- package/esm/transform/filter.js.map +1 -1
- package/esm/utils/coordinate.d.ts +2 -2
- package/esm/utils/scale.d.ts +1 -1
- package/esm/utils/scale.js +1 -1
- package/esm/utils/scale.js.map +1 -1
- package/esm/utils/selection.d.ts +1 -1
- package/esm/utils/selection.js +3 -1
- package/esm/utils/selection.js.map +1 -1
- package/lib/api/chart.d.ts +1017 -85
- package/lib/api/chart.js +4 -263
- package/lib/api/chart.js.map +1 -1
- package/lib/api/composition.d.ts +37 -0
- package/lib/api/{composition/base.js → composition.js} +16 -5
- package/lib/api/composition.js.map +1 -0
- package/lib/api/define.d.ts +14 -0
- package/lib/api/define.js +97 -0
- package/lib/api/define.js.map +1 -0
- package/lib/api/extend.d.ts +9 -0
- package/lib/api/extend.js +13 -0
- package/lib/api/extend.js.map +1 -0
- package/lib/api/index.d.ts +2 -0
- package/lib/api/index.js +5 -1
- package/lib/api/index.js.map +1 -1
- package/lib/api/library.d.ts +170 -1
- package/lib/api/library.js +2 -2
- package/lib/api/library.js.map +1 -1
- package/lib/api/mark.d.ts +29 -0
- package/lib/api/{mark/base.js → mark.js} +15 -4
- package/lib/api/mark.js.map +1 -0
- package/lib/api/node.d.ts +2 -2
- package/lib/api/node.js.map +1 -1
- package/lib/api/props.d.ts +170 -12
- package/lib/api/props.js +22 -106
- package/lib/api/props.js.map +1 -1
- package/lib/api/runtime.d.ts +66 -0
- package/lib/api/runtime.js +301 -0
- package/lib/api/runtime.js.map +1 -0
- package/lib/api/types.d.ts +60 -5
- package/lib/api/utils.d.ts +1 -1
- package/lib/api/utils.js +14 -16
- package/lib/api/utils.js.map +1 -1
- package/lib/component/axis.js +7 -4
- package/lib/component/axis.js.map +1 -1
- package/lib/component/legendCategory.js +4 -5
- package/lib/component/legendCategory.js.map +1 -1
- package/lib/component/legendContinuous.js +5 -4
- package/lib/component/legendContinuous.js.map +1 -1
- package/lib/composition/d3Projection.js.map +1 -0
- package/lib/composition/geoPath.js.map +1 -0
- package/lib/{geo → composition}/geoView.js +1 -1
- package/lib/composition/geoView.js.map +1 -0
- package/lib/composition/index.d.ts +2 -0
- package/lib/composition/index.js +5 -1
- package/lib/composition/index.js.map +1 -1
- package/lib/index.d.ts +4 -3
- package/lib/index.js +8 -3
- package/lib/index.js.map +1 -1
- package/lib/interaction/legendFilter.d.ts +2 -0
- package/lib/interaction/legendFilter.js +67 -37
- package/lib/interaction/legendFilter.js.map +1 -1
- package/lib/label-transform/overlapDodgeY.js.map +1 -1
- package/lib/lib/core.d.ts +158 -0
- package/lib/lib/core.js +178 -0
- package/lib/lib/core.js.map +1 -0
- package/lib/lib/geo.d.ts +4 -0
- package/lib/lib/geo.js +13 -0
- package/lib/lib/geo.js.map +1 -0
- package/lib/lib/graph.d.ts +4 -0
- package/lib/lib/graph.js +12 -0
- package/lib/lib/graph.js.map +1 -0
- package/lib/lib/index.d.ts +6 -0
- package/lib/lib/index.js +16 -0
- package/lib/lib/index.js.map +1 -0
- package/lib/lib/lite.d.ts +64 -0
- package/lib/lib/lite.js +82 -0
- package/lib/lib/lite.js.map +1 -0
- package/lib/lib/plot.d.ts +11 -0
- package/lib/lib/plot.js +20 -0
- package/lib/lib/plot.js.map +1 -0
- package/lib/lib/std.d.ts +170 -0
- package/lib/lib/std.js +12 -0
- package/lib/lib/std.js.map +1 -0
- package/lib/mark/area.js +14 -5
- package/lib/mark/area.js.map +1 -1
- package/lib/mark/box.js +9 -2
- package/lib/mark/box.js.map +1 -1
- package/lib/mark/cell.js +11 -5
- package/lib/mark/cell.js.map +1 -1
- package/lib/mark/connector.js +6 -2
- package/lib/mark/connector.js.map +1 -1
- package/lib/mark/density.js +10 -7
- package/lib/mark/density.js.map +1 -1
- package/lib/mark/forceGraph.js +0 -3
- package/lib/mark/forceGraph.js.map +1 -1
- package/lib/mark/heatmap.js +9 -4
- package/lib/mark/heatmap.js.map +1 -1
- package/lib/mark/image.js +9 -4
- package/lib/mark/image.js.map +1 -1
- package/lib/mark/interval.js +13 -7
- package/lib/mark/interval.js.map +1 -1
- package/lib/mark/line.js +15 -4
- package/lib/mark/line.js.map +1 -1
- package/lib/mark/lineX.js +12 -5
- package/lib/mark/lineX.js.map +1 -1
- package/lib/mark/lineY.js +12 -5
- package/lib/mark/lineY.js.map +1 -1
- package/lib/mark/link.js +12 -4
- package/lib/mark/link.js.map +1 -1
- package/lib/mark/path.js +7 -2
- package/lib/mark/path.js.map +1 -1
- package/lib/mark/point.js +28 -29
- package/lib/mark/point.js.map +1 -1
- package/lib/mark/polygon.js +7 -2
- package/lib/mark/polygon.js.map +1 -1
- package/lib/mark/range.js +4 -2
- package/lib/mark/range.js.map +1 -1
- package/lib/mark/rangeX.js +6 -2
- package/lib/mark/rangeX.js.map +1 -1
- package/lib/mark/rangeY.js +6 -2
- package/lib/mark/rangeY.js.map +1 -1
- package/lib/mark/rect.js +9 -3
- package/lib/mark/rect.js.map +1 -1
- package/lib/mark/shape.js +9 -3
- package/lib/mark/shape.js.map +1 -1
- package/lib/mark/text.js +10 -4
- package/lib/mark/text.js.map +1 -1
- package/lib/mark/treemap.js.map +1 -1
- package/lib/mark/utils.d.ts +11 -8
- package/lib/mark/utils.js +8 -7
- package/lib/mark/utils.js.map +1 -1
- package/lib/mark/vector.js +6 -2
- package/lib/mark/vector.js.map +1 -1
- package/lib/runtime/index.d.ts +1 -1
- package/lib/runtime/index.js +4 -4
- package/lib/runtime/index.js.map +1 -1
- package/lib/runtime/plot.js +14 -10
- package/lib/runtime/plot.js.map +1 -1
- package/lib/runtime/render.js +3 -6
- package/lib/runtime/render.js.map +1 -1
- package/lib/runtime/types/component.d.ts +1 -1
- package/lib/runtime/types/mark.d.ts +4 -0
- package/lib/runtime/types/options.d.ts +4 -1
- package/lib/runtime/types/theme.d.ts +1 -0
- package/lib/shape/index.d.ts +106 -101
- package/lib/shape/index.js +71 -61
- package/lib/shape/index.js.map +1 -1
- package/lib/shape/label/label.d.ts +7 -1
- package/lib/shape/label/label.js +11 -2
- package/lib/shape/label/label.js.map +1 -1
- package/lib/shape/text/advance.js +24 -11
- package/lib/shape/text/advance.js.map +1 -1
- package/lib/spec/composition.d.ts +7 -0
- package/lib/spec/index.d.ts +1 -0
- package/lib/spec/index.js.map +1 -1
- package/lib/spec/interaction.d.ts +2 -0
- package/lib/theme/academy.js +12 -6
- package/lib/theme/academy.js.map +1 -1
- package/lib/theme/classic.js +12 -7
- package/lib/theme/classic.js.map +1 -1
- package/lib/theme/classicDark.js +12 -6
- package/lib/theme/classicDark.js.map +1 -1
- package/lib/transform/filter.js +19 -6
- package/lib/transform/filter.js.map +1 -1
- package/lib/utils/coordinate.d.ts +2 -2
- package/lib/utils/scale.d.ts +1 -1
- package/lib/utils/scale.js +1 -1
- package/lib/utils/scale.js.map +1 -1
- package/lib/utils/selection.d.ts +1 -1
- package/lib/utils/selection.js +3 -1
- package/lib/utils/selection.js.map +1 -1
- package/package.json +11 -10
- package/src/api/chart.ts +5 -341
- package/src/api/{composition/base.ts → composition.ts} +16 -8
- package/src/api/define.ts +128 -0
- package/src/api/extend.ts +34 -0
- package/src/api/index.ts +2 -0
- package/src/api/library.ts +2 -2
- package/src/api/{mark/base.ts → mark.ts} +10 -7
- package/src/api/node.ts +3 -3
- package/src/api/props.ts +30 -114
- package/src/api/runtime.ts +366 -0
- package/src/api/types.ts +95 -17
- package/src/api/utils.ts +28 -11
- package/src/component/axis.ts +10 -5
- package/src/component/legendCategory.ts +4 -6
- package/src/component/legendContinuous.ts +9 -5
- package/src/{geo → composition}/geoView.ts +1 -1
- package/src/composition/index.ts +2 -0
- package/src/index.ts +12 -3
- package/src/interaction/legendFilter.ts +96 -49
- package/src/label-transform/overlapDodgeY.ts +0 -1
- package/src/{stdlib/index.ts → lib/core.ts} +74 -258
- package/src/lib/geo.ts +9 -0
- package/src/lib/graph.ts +8 -0
- package/src/lib/index.ts +6 -0
- package/src/lib/lite.ts +127 -0
- package/src/lib/plot.ts +16 -0
- package/src/lib/std.ts +13 -0
- package/src/mark/area.ts +15 -6
- package/src/mark/box.ts +10 -2
- package/src/mark/cell.ts +12 -6
- package/src/mark/connector.ts +7 -3
- package/src/mark/density.ts +11 -8
- package/src/mark/forceGraph.ts +0 -3
- package/src/mark/heatmap.ts +10 -5
- package/src/mark/image.ts +10 -5
- package/src/mark/interval.ts +22 -10
- package/src/mark/line.ts +23 -5
- package/src/mark/lineX.ts +20 -9
- package/src/mark/lineY.ts +20 -9
- package/src/mark/link.ts +13 -5
- package/src/mark/path.ts +8 -3
- package/src/mark/point.ts +49 -30
- package/src/mark/polygon.ts +8 -3
- package/src/mark/range.ts +5 -3
- package/src/mark/rangeX.ts +7 -3
- package/src/mark/rangeY.ts +7 -3
- package/src/mark/rect.ts +10 -4
- package/src/mark/shape.ts +14 -3
- package/src/mark/text.ts +11 -5
- package/src/mark/treemap.ts +0 -1
- package/src/mark/utils.ts +9 -8
- package/src/mark/vector.ts +7 -3
- package/src/runtime/index.ts +1 -1
- package/src/runtime/plot.ts +26 -12
- package/src/runtime/render.ts +3 -6
- package/src/runtime/types/component.ts +1 -2
- package/src/runtime/types/mark.ts +4 -0
- package/src/runtime/types/options.ts +4 -1
- package/src/runtime/types/theme.ts +1 -0
- package/src/shape/index.ts +106 -110
- package/src/shape/label/label.ts +21 -2
- package/src/shape/text/advance.ts +38 -14
- package/src/spec/composition.ts +7 -0
- package/src/spec/index.ts +1 -0
- package/src/spec/interaction.ts +2 -0
- package/src/theme/academy.ts +12 -6
- package/src/theme/classic.ts +12 -7
- package/src/theme/classicDark.ts +12 -6
- package/src/transform/filter.ts +16 -5
- package/src/utils/scale.ts +1 -1
- package/src/utils/selection.ts +6 -1
- package/CHANGELOG.md +0 -251
- package/esm/api/composition/base.d.ts +0 -28
- package/esm/api/composition/base.js.map +0 -1
- package/esm/api/composition/facetCircle.d.ts +0 -17
- package/esm/api/composition/facetCircle.js +0 -27
- package/esm/api/composition/facetCircle.js.map +0 -1
- package/esm/api/composition/facetRect.d.ts +0 -17
- package/esm/api/composition/facetRect.js +0 -27
- package/esm/api/composition/facetRect.js.map +0 -1
- package/esm/api/composition/geoPath.d.ts +0 -20
- package/esm/api/composition/geoPath.js +0 -30
- package/esm/api/composition/geoPath.js.map +0 -1
- package/esm/api/composition/geoView.d.ts +0 -19
- package/esm/api/composition/geoView.js +0 -28
- package/esm/api/composition/geoView.js.map +0 -1
- package/esm/api/composition/index.d.ts +0 -33
- package/esm/api/composition/index.js +0 -32
- package/esm/api/composition/index.js.map +0 -1
- package/esm/api/composition/repeatMatrix.d.ts +0 -17
- package/esm/api/composition/repeatMatrix.js +0 -27
- package/esm/api/composition/repeatMatrix.js.map +0 -1
- package/esm/api/composition/spaceFlex.d.ts +0 -12
- package/esm/api/composition/spaceFlex.js +0 -19
- package/esm/api/composition/spaceFlex.js.map +0 -1
- package/esm/api/composition/spaceLayer.d.ts +0 -12
- package/esm/api/composition/spaceLayer.js +0 -19
- package/esm/api/composition/spaceLayer.js.map +0 -1
- package/esm/api/composition/timingKeyframe.d.ts +0 -11
- package/esm/api/composition/timingKeyframe.js +0 -19
- package/esm/api/composition/timingKeyframe.js.map +0 -1
- package/esm/api/composition/view.d.ts +0 -19
- package/esm/api/composition/view.js +0 -29
- package/esm/api/composition/view.js.map +0 -1
- package/esm/api/mark/base.d.ts +0 -22
- package/esm/api/mark/base.js.map +0 -1
- package/esm/api/mark/index.d.ts +0 -75
- package/esm/api/mark/index.js +0 -39
- package/esm/api/mark/index.js.map +0 -1
- package/esm/api/mark/mark.d.ts +0 -212
- package/esm/api/mark/mark.js +0 -339
- package/esm/api/mark/mark.js.map +0 -1
- package/esm/api/mark/types.d.ts +0 -26
- package/esm/api/mark/types.js +0 -2
- package/esm/api/mark/types.js.map +0 -1
- package/esm/geo/d3Projection.js.map +0 -1
- package/esm/geo/geoPath.js.map +0 -1
- package/esm/geo/geoView.js.map +0 -1
- package/esm/geo/index.d.ts +0 -9
- package/esm/geo/index.js +0 -8
- package/esm/geo/index.js.map +0 -1
- package/esm/stdlib/index.d.ts +0 -2
- package/esm/stdlib/index.js +0 -21
- package/esm/stdlib/index.js.map +0 -1
- package/lib/api/composition/base.d.ts +0 -28
- package/lib/api/composition/base.js.map +0 -1
- package/lib/api/composition/facetCircle.d.ts +0 -17
- package/lib/api/composition/facetCircle.js +0 -30
- package/lib/api/composition/facetCircle.js.map +0 -1
- package/lib/api/composition/facetRect.d.ts +0 -17
- package/lib/api/composition/facetRect.js +0 -30
- package/lib/api/composition/facetRect.js.map +0 -1
- package/lib/api/composition/geoPath.d.ts +0 -20
- package/lib/api/composition/geoPath.js +0 -33
- package/lib/api/composition/geoPath.js.map +0 -1
- package/lib/api/composition/geoView.d.ts +0 -19
- package/lib/api/composition/geoView.js +0 -31
- package/lib/api/composition/geoView.js.map +0 -1
- package/lib/api/composition/index.d.ts +0 -33
- package/lib/api/composition/index.js +0 -44
- package/lib/api/composition/index.js.map +0 -1
- package/lib/api/composition/repeatMatrix.d.ts +0 -17
- package/lib/api/composition/repeatMatrix.js +0 -30
- package/lib/api/composition/repeatMatrix.js.map +0 -1
- package/lib/api/composition/spaceFlex.d.ts +0 -12
- package/lib/api/composition/spaceFlex.js +0 -22
- package/lib/api/composition/spaceFlex.js.map +0 -1
- package/lib/api/composition/spaceLayer.d.ts +0 -12
- package/lib/api/composition/spaceLayer.js +0 -22
- package/lib/api/composition/spaceLayer.js.map +0 -1
- package/lib/api/composition/timingKeyframe.d.ts +0 -11
- package/lib/api/composition/timingKeyframe.js +0 -22
- package/lib/api/composition/timingKeyframe.js.map +0 -1
- package/lib/api/composition/view.d.ts +0 -19
- package/lib/api/composition/view.js +0 -32
- package/lib/api/composition/view.js.map +0 -1
- package/lib/api/mark/base.d.ts +0 -22
- package/lib/api/mark/base.js.map +0 -1
- package/lib/api/mark/index.d.ts +0 -75
- package/lib/api/mark/index.js +0 -43
- package/lib/api/mark/index.js.map +0 -1
- package/lib/api/mark/mark.d.ts +0 -212
- package/lib/api/mark/mark.js +0 -342
- package/lib/api/mark/mark.js.map +0 -1
- package/lib/api/mark/types.d.ts +0 -26
- package/lib/api/mark/types.js +0 -3
- package/lib/api/mark/types.js.map +0 -1
- package/lib/geo/d3Projection.js.map +0 -1
- package/lib/geo/geoPath.js.map +0 -1
- package/lib/geo/geoView.js.map +0 -1
- package/lib/geo/index.d.ts +0 -9
- package/lib/geo/index.js +0 -12
- package/lib/geo/index.js.map +0 -1
- package/lib/stdlib/index.d.ts +0 -2
- package/lib/stdlib/index.js +0 -25
- package/lib/stdlib/index.js.map +0 -1
- package/src/api/composition/facetCircle.ts +0 -36
- package/src/api/composition/facetRect.ts +0 -36
- package/src/api/composition/geoPath.ts +0 -37
- package/src/api/composition/geoView.ts +0 -39
- package/src/api/composition/index.ts +0 -57
- package/src/api/composition/repeatMatrix.ts +0 -36
- package/src/api/composition/spaceFlex.ts +0 -18
- package/src/api/composition/spaceLayer.ts +0 -18
- package/src/api/composition/timingKeyframe.ts +0 -16
- package/src/api/composition/view.ts +0 -42
- package/src/api/mark/index.ts +0 -113
- package/src/api/mark/mark.ts +0 -439
- package/src/api/mark/types.ts +0 -31
- package/src/geo/index.ts +0 -12
- /package/esm/{geo → composition}/d3Projection.d.ts +0 -0
- /package/esm/{geo → composition}/d3Projection.js +0 -0
- /package/esm/{geo → composition}/geoPath.d.ts +0 -0
- /package/esm/{geo → composition}/geoPath.js +0 -0
- /package/esm/{geo → composition}/geoView.d.ts +0 -0
- /package/lib/{geo → composition}/d3Projection.d.ts +0 -0
- /package/lib/{geo → composition}/d3Projection.js +0 -0
- /package/lib/{geo → composition}/geoPath.d.ts +0 -0
- /package/lib/{geo → composition}/geoPath.js +0 -0
- /package/lib/{geo → composition}/geoView.d.ts +0 -0
- /package/src/{geo → composition}/d3Projection.ts +0 -0
- /package/src/{geo → composition}/geoPath.ts +0 -0
package/esm/shape/index.d.ts
CHANGED
|
@@ -1,102 +1,107 @@
|
|
|
1
|
-
export { Rect } from './interval/rect';
|
|
2
|
-
export { Hollow as
|
|
3
|
-
export { Funnel } from './interval/funnel';
|
|
4
|
-
export { Pyramid } from './interval/pyramid';
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
1
|
+
export { Rect as IntervalShape } from './interval/rect';
|
|
2
|
+
export { Hollow as IntervalHollow } from './interval/hollow';
|
|
3
|
+
export { Funnel as IntervalFunnel } from './interval/funnel';
|
|
4
|
+
export { Pyramid as IntervalPyramid } from './interval/pyramid';
|
|
5
|
+
export { Rect as CellShape } from './interval/rect';
|
|
6
|
+
export { Hollow as CellHollow } from './interval/hollow';
|
|
7
|
+
export { Line as LineShape } from './line/line';
|
|
8
|
+
export { Smooth as LineSmooth } from './line/smooth';
|
|
9
|
+
export { HV as LineHV } from './line/hv';
|
|
10
|
+
export { VH as LineVH } from './line/vh';
|
|
11
|
+
export { HVH as LineHVH } from './line/hvh';
|
|
12
|
+
export { Trail as LineTrail } from './line/trail';
|
|
13
|
+
export { HollowBowtie as PointHollowBowtie } from './point/hollowBowtie';
|
|
14
|
+
export { HollowDiamond as PointHollowDiamond } from './point/hollowDiamond';
|
|
15
|
+
export { HollowHexagon as PointHollowHexagon } from './point/hollowHexagon';
|
|
16
|
+
export { HollowPoint as PointHollow } from './point/hollow';
|
|
17
|
+
export { HollowSquare as PointHollowSquare } from './point/hollowSquare';
|
|
18
|
+
export { HollowTriangle as PointHollowTriangle } from './point/hollowTriangle';
|
|
19
|
+
export { HollowTriangleDown as PointHollowTriangleDown } from './point/hollowTriangleDown';
|
|
20
|
+
export { Bowtie as PointBowtie } from './point/bowtie';
|
|
21
|
+
export { Cross as PointCross } from './point/cross';
|
|
22
|
+
export { Diamond as PointDiamond } from './point/diamond';
|
|
23
|
+
export { Hexagon as PointHexagon } from './point/hexagon';
|
|
24
|
+
export { Hyphen as PointHyphen } from './point/hyphen';
|
|
25
|
+
export { Line as PointLine } from './point/line';
|
|
26
|
+
export { Plus as PointPlus } from './point/plus';
|
|
27
|
+
export { Point as PointShape } from './point/point';
|
|
28
|
+
export { Square as PointSquare } from './point/square';
|
|
29
|
+
export { Tick as PointTick } from './point/tick';
|
|
30
|
+
export { Triangle as PointTriangle } from './point/triangle';
|
|
31
|
+
export { TriangleDown as PointTriangleDown } from './point/triangleDown';
|
|
32
|
+
export { Vector as VectorShape } from './vector/vector';
|
|
33
|
+
export { Text as TextShape } from './text/text';
|
|
34
|
+
export { Badge as TextBadge } from './text/badge';
|
|
35
|
+
export { Area as AreaShape } from './area/area';
|
|
36
|
+
export { Smooth as AreaSmooth } from './area/smooth';
|
|
37
|
+
export { HVH as AreaHVH } from './area/hvh';
|
|
38
|
+
export { VH as AreaVH } from './area/vh';
|
|
39
|
+
export { HV as AreaHV } from './area/hv';
|
|
40
|
+
export { Link as LinkShape } from './link/link';
|
|
41
|
+
export { Smooth as LinkSmooth } from './link/smooth';
|
|
42
|
+
export { VHV as LinkVHV } from './link/vhv';
|
|
43
|
+
export { Arc as LinkArc } from './link/arc';
|
|
44
|
+
export { Image as ImageShape } from './image/image';
|
|
45
|
+
export { Polygon as PolygonShape } from './polygon/polygon';
|
|
46
|
+
export { Ribbon as PolygonRibbon } from './polygon/ribbon';
|
|
47
|
+
export { Box as BoxShape } from './box/box';
|
|
48
|
+
export { Violin as BoxViolin } from './box/violin';
|
|
47
49
|
export { Line as LineXY } from './lineXY/line';
|
|
48
|
-
export { Connector } from './connector/connector';
|
|
49
|
-
export { Label } from './label/label';
|
|
50
|
-
export { Path } from './path/path';
|
|
51
|
-
export { Hollow as
|
|
52
|
-
export { Density } from './density/density';
|
|
53
|
-
export { Heatmap } from './heatmap/heatmap';
|
|
54
|
-
export {
|
|
55
|
-
export
|
|
56
|
-
export
|
|
57
|
-
export
|
|
58
|
-
export type {
|
|
59
|
-
export type {
|
|
60
|
-
export type {
|
|
61
|
-
export type {
|
|
62
|
-
export type {
|
|
63
|
-
export type {
|
|
64
|
-
export type {
|
|
65
|
-
export type {
|
|
66
|
-
export type {
|
|
67
|
-
export type {
|
|
68
|
-
export type {
|
|
69
|
-
export type {
|
|
70
|
-
export type {
|
|
71
|
-
export type {
|
|
72
|
-
export type {
|
|
73
|
-
export type {
|
|
74
|
-
export type {
|
|
75
|
-
export type {
|
|
76
|
-
export type {
|
|
77
|
-
export type {
|
|
78
|
-
export type {
|
|
79
|
-
export type {
|
|
80
|
-
export type {
|
|
81
|
-
export type {
|
|
82
|
-
export type {
|
|
83
|
-
export type {
|
|
84
|
-
export type {
|
|
85
|
-
export type {
|
|
86
|
-
export type {
|
|
87
|
-
export type {
|
|
88
|
-
export type {
|
|
89
|
-
export type {
|
|
90
|
-
export type {
|
|
91
|
-
export type {
|
|
92
|
-
export type {
|
|
93
|
-
export type {
|
|
94
|
-
export type {
|
|
95
|
-
export type {
|
|
96
|
-
export type {
|
|
97
|
-
export type {
|
|
98
|
-
export type {
|
|
99
|
-
export type {
|
|
100
|
-
export type {
|
|
101
|
-
export type {
|
|
102
|
-
export type {
|
|
50
|
+
export { Connector as ConnectorShape } from './connector/connector';
|
|
51
|
+
export { Label as LabelShape } from './label/label';
|
|
52
|
+
export { Path as PathShape } from './path/path';
|
|
53
|
+
export { Hollow as PathHollow } from './path/hollow';
|
|
54
|
+
export { Density as DensityShape } from './density/density';
|
|
55
|
+
export { Heatmap as HeatmapShape } from './heatmap/heatmap';
|
|
56
|
+
export { Rect as RangeShape } from './interval/rect';
|
|
57
|
+
export { Rect as RectShape } from './interval/rect';
|
|
58
|
+
export { Hollow as RectHollow } from './interval/hollow';
|
|
59
|
+
export { Shape as ShapeShape } from './shape/shape';
|
|
60
|
+
export type { RectOptions as IntervalShapeOptions } from './interval/rect';
|
|
61
|
+
export type { HollowOptions as IntervalHollowOptions } from './interval/hollow';
|
|
62
|
+
export type { FunnelOptions as IntervalFunnelOptions } from './interval/funnel';
|
|
63
|
+
export type { PyramidOptions as IntervalPyramidOptions } from './interval/pyramid';
|
|
64
|
+
export type { LineOptions as LineShapeOptions } from './line/line';
|
|
65
|
+
export type { SmoothOptions as LineSmoothOptions } from './line/smooth';
|
|
66
|
+
export type { HVOptions as LineHVOptions } from './line/hv';
|
|
67
|
+
export type { VHOptions as LineVHOptions } from './line/vh';
|
|
68
|
+
export type { HVHOptions as LineHVHOptions } from './line/hvh';
|
|
69
|
+
export type { TrailOptions as LineTrailOptions } from './line/trail';
|
|
70
|
+
export type { BowtieOptions as PointBowtieOptions } from './point/bowtie';
|
|
71
|
+
export type { CrossOptions as PointCrossOptions } from './point/cross';
|
|
72
|
+
export type { DiamondOptions as PointDiamondOptions } from './point/diamond';
|
|
73
|
+
export type { HexagonOptions as PointHexagonOptions } from './point/hexagon';
|
|
74
|
+
export type { HollowBowtieOptions as PointHollowBowtieOptions } from './point/hollowBowtie';
|
|
75
|
+
export type { HollowDiamondOptions as PointHollowDiamondOptions } from './point/hollowDiamond';
|
|
76
|
+
export type { HollowHexagonOptions as PointHollowHexagonOptions } from './point/hollowHexagon';
|
|
77
|
+
export type { HollowPointOptions as PointHollowPointOptions } from './point/hollow';
|
|
78
|
+
export type { HollowSquareOptions as PointHollowSquareOptions } from './point/hollowSquare';
|
|
79
|
+
export type { HollowTriangleOptions as PointHollowTriangleOptions } from './point/hollowTriangle';
|
|
80
|
+
export type { HollowTriangleDownOptions as PointHollowTriangleDownOptions } from './point/hollowTriangleDown';
|
|
81
|
+
export type { HyphenOptions as PointHyphenOptions } from './point/hyphen';
|
|
82
|
+
export type { LineOptions as PointLineOptions } from './point/line';
|
|
83
|
+
export type { PlusOptions as PointPlusOptions } from './point/plus';
|
|
84
|
+
export type { PointOptions as PointShapeOptions } from './point/point';
|
|
85
|
+
export type { SquareOptions as PointSquareOptions } from './point/square';
|
|
86
|
+
export type { TickOptions as PointTickOptions } from './point/tick';
|
|
87
|
+
export type { TriangleOptions as PointTriangleOptions } from './point/triangle';
|
|
88
|
+
export type { TriangleDownOptions as PointTriangleDownOptions } from './point/triangleDown';
|
|
89
|
+
export type { VectorOptions as VectorShapeOptions } from './vector/vector';
|
|
90
|
+
export type { TextOptions as TextShapeOptions } from './text/text';
|
|
91
|
+
export type { BadgeOptions as TextBadgeOptions } from './text/badge';
|
|
92
|
+
export type { AreaOptions as AreaShapeOptions } from './area/area';
|
|
93
|
+
export type { SmoothOptions as AreaSmoothOptions } from './area/smooth';
|
|
94
|
+
export type { HVHOptions as AreaHVHAreaOptions } from './area/hvh';
|
|
95
|
+
export type { VHOptions as AreaVHAreaOptions } from './area/vh';
|
|
96
|
+
export type { HVOptions as AreaHVAreaOptions } from './area/hv';
|
|
97
|
+
export type { LinkOptions as LinkShapeOptions } from './link/link';
|
|
98
|
+
export type { ImageOptions as ImageShapeOptions } from './image/image';
|
|
99
|
+
export type { PolygonOptions as PolygonShapeOptions } from './polygon/polygon';
|
|
100
|
+
export type { BoxOptions as BoxShapeOptions } from './box/box';
|
|
101
|
+
export type { ViolinOptions as BoxViolinOptions } from './box/violin';
|
|
102
|
+
export type { HeatmapOptions as HeatmapOptions } from './heatmap/heatmap';
|
|
103
|
+
export type { LineOptions as LineLineXYOptions } from './lineXY/line';
|
|
104
|
+
export type { ConnectorOptions as ConnectorShapeOptions } from './connector/connector';
|
|
105
|
+
export type { LabelOptions as LabelShapeOptions } from './label/label';
|
|
106
|
+
export type { DensityOptions as DensityShapeOptions } from './density/density';
|
|
107
|
+
export type { ShapeOptions as ShapeShapeOptions } from './shape/shape';
|
package/esm/shape/index.js
CHANGED
|
@@ -1,55 +1,60 @@
|
|
|
1
|
-
export { Rect } from './interval/rect';
|
|
2
|
-
export { Hollow as
|
|
3
|
-
export { Funnel } from './interval/funnel';
|
|
4
|
-
export { Pyramid } from './interval/pyramid';
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
1
|
+
export { Rect as IntervalShape } from './interval/rect';
|
|
2
|
+
export { Hollow as IntervalHollow } from './interval/hollow';
|
|
3
|
+
export { Funnel as IntervalFunnel } from './interval/funnel';
|
|
4
|
+
export { Pyramid as IntervalPyramid } from './interval/pyramid';
|
|
5
|
+
export { Rect as CellShape } from './interval/rect';
|
|
6
|
+
export { Hollow as CellHollow } from './interval/hollow';
|
|
7
|
+
export { Line as LineShape } from './line/line';
|
|
8
|
+
export { Smooth as LineSmooth } from './line/smooth';
|
|
9
|
+
export { HV as LineHV } from './line/hv';
|
|
10
|
+
export { VH as LineVH } from './line/vh';
|
|
11
|
+
export { HVH as LineHVH } from './line/hvh';
|
|
12
|
+
export { Trail as LineTrail } from './line/trail';
|
|
13
|
+
export { HollowBowtie as PointHollowBowtie } from './point/hollowBowtie';
|
|
14
|
+
export { HollowDiamond as PointHollowDiamond } from './point/hollowDiamond';
|
|
15
|
+
export { HollowHexagon as PointHollowHexagon } from './point/hollowHexagon';
|
|
16
|
+
export { HollowPoint as PointHollow } from './point/hollow';
|
|
17
|
+
export { HollowSquare as PointHollowSquare } from './point/hollowSquare';
|
|
18
|
+
export { HollowTriangle as PointHollowTriangle } from './point/hollowTriangle';
|
|
19
|
+
export { HollowTriangleDown as PointHollowTriangleDown } from './point/hollowTriangleDown';
|
|
20
|
+
export { Bowtie as PointBowtie } from './point/bowtie';
|
|
21
|
+
export { Cross as PointCross } from './point/cross';
|
|
22
|
+
export { Diamond as PointDiamond } from './point/diamond';
|
|
23
|
+
export { Hexagon as PointHexagon } from './point/hexagon';
|
|
24
|
+
export { Hyphen as PointHyphen } from './point/hyphen';
|
|
25
|
+
export { Line as PointLine } from './point/line';
|
|
26
|
+
export { Plus as PointPlus } from './point/plus';
|
|
27
|
+
export { Point as PointShape } from './point/point';
|
|
28
|
+
export { Square as PointSquare } from './point/square';
|
|
29
|
+
export { Tick as PointTick } from './point/tick';
|
|
30
|
+
export { Triangle as PointTriangle } from './point/triangle';
|
|
31
|
+
export { TriangleDown as PointTriangleDown } from './point/triangleDown';
|
|
32
|
+
export { Vector as VectorShape } from './vector/vector';
|
|
33
|
+
export { Text as TextShape } from './text/text';
|
|
34
|
+
export { Badge as TextBadge } from './text/badge';
|
|
35
|
+
export { Area as AreaShape } from './area/area';
|
|
36
|
+
export { Smooth as AreaSmooth } from './area/smooth';
|
|
37
|
+
export { HVH as AreaHVH } from './area/hvh';
|
|
38
|
+
export { VH as AreaVH } from './area/vh';
|
|
39
|
+
export { HV as AreaHV } from './area/hv';
|
|
40
|
+
export { Link as LinkShape } from './link/link';
|
|
41
|
+
export { Smooth as LinkSmooth } from './link/smooth';
|
|
42
|
+
export { VHV as LinkVHV } from './link/vhv';
|
|
43
|
+
export { Arc as LinkArc } from './link/arc';
|
|
44
|
+
export { Image as ImageShape } from './image/image';
|
|
45
|
+
export { Polygon as PolygonShape } from './polygon/polygon';
|
|
46
|
+
export { Ribbon as PolygonRibbon } from './polygon/ribbon';
|
|
47
|
+
export { Box as BoxShape } from './box/box';
|
|
48
|
+
export { Violin as BoxViolin } from './box/violin';
|
|
47
49
|
export { Line as LineXY } from './lineXY/line';
|
|
48
|
-
export { Connector } from './connector/connector';
|
|
49
|
-
export { Label } from './label/label';
|
|
50
|
-
export { Path } from './path/path';
|
|
51
|
-
export { Hollow as
|
|
52
|
-
export { Density } from './density/density';
|
|
53
|
-
export { Heatmap } from './heatmap/heatmap';
|
|
54
|
-
export {
|
|
50
|
+
export { Connector as ConnectorShape } from './connector/connector';
|
|
51
|
+
export { Label as LabelShape } from './label/label';
|
|
52
|
+
export { Path as PathShape } from './path/path';
|
|
53
|
+
export { Hollow as PathHollow } from './path/hollow';
|
|
54
|
+
export { Density as DensityShape } from './density/density';
|
|
55
|
+
export { Heatmap as HeatmapShape } from './heatmap/heatmap';
|
|
56
|
+
export { Rect as RangeShape } from './interval/rect';
|
|
57
|
+
export { Rect as RectShape } from './interval/rect';
|
|
58
|
+
export { Hollow as RectHollow } from './interval/hollow';
|
|
59
|
+
export { Shape as ShapeShape } from './shape/shape';
|
|
55
60
|
//# sourceMappingURL=index.js.map
|
package/esm/shape/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["shape/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["shape/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,YAAY,IAAI,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,aAAa,IAAI,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAE,aAAa,IAAI,kBAAkB,EAAE,MAAM,uBAAuB,CAA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AM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,KAAK,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { ShapeComponent as SC } from '../../runtime';
|
|
2
|
-
export type LabelOptions =
|
|
2
|
+
export type LabelOptions = {
|
|
3
|
+
/**
|
|
4
|
+
* Customize label with html string or element.
|
|
5
|
+
*/
|
|
6
|
+
render: (text: string, datum: any, index: number) => string | HTMLElement;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
3
9
|
/**
|
|
4
10
|
* Render normal label for each mark.
|
|
5
11
|
* @todo Support position option: middle...
|
package/esm/shape/label/label.js
CHANGED
|
@@ -28,8 +28,14 @@ function getDefaultStyle(points, value, coordinate, theme, options) {
|
|
|
28
28
|
// For non-series mark, calc position for label based on
|
|
29
29
|
// position and the bounds of shape.
|
|
30
30
|
const { position } = value;
|
|
31
|
+
const { render } = options;
|
|
31
32
|
const p = inferPosition(position, coordinate);
|
|
32
|
-
const
|
|
33
|
+
const labelType = render
|
|
34
|
+
? 'htmlLabel'
|
|
35
|
+
: p === 'inside'
|
|
36
|
+
? 'innerLabel'
|
|
37
|
+
: 'label';
|
|
38
|
+
const t = theme[labelType];
|
|
33
39
|
const v = Object.assign({}, t, value);
|
|
34
40
|
const processor = PositionProcessor[camelCase(p)];
|
|
35
41
|
if (!processor) {
|
|
@@ -43,12 +49,15 @@ function getDefaultStyle(points, value, coordinate, theme, options) {
|
|
|
43
49
|
*/
|
|
44
50
|
export const Label = (options, context) => {
|
|
45
51
|
const { coordinate, theme } = context;
|
|
52
|
+
const { render } = options;
|
|
46
53
|
return (points, value) => {
|
|
47
|
-
const { text, x, y, transform: specifiedTS = '', transformOrigin } = value, overrideStyle = __rest(value, ["text", "x", "y", "transform", "transformOrigin"]);
|
|
54
|
+
const { text, x, y, transform: specifiedTS = '', transformOrigin, className = '' } = value, overrideStyle = __rest(value, ["text", "x", "y", "transform", "transformOrigin", "className"]);
|
|
48
55
|
const _a = getDefaultStyle(points, value, coordinate, theme, options), { rotate = 0, transform = '' } = _a, defaultStyle = __rest(_a, ["rotate", "transform"]);
|
|
49
56
|
return select(new Advance())
|
|
50
57
|
.call(applyStyle, defaultStyle)
|
|
51
58
|
.style('text', `${text}`)
|
|
59
|
+
.style('className', `${className} g2-label`)
|
|
60
|
+
.style('innerHTML', render ? render(text, value.datum, value.index) : undefined)
|
|
52
61
|
.style('labelTransform', `${transform} rotate(${+rotate}) ${specifiedTS}`.trim())
|
|
53
62
|
.style('labelTransformOrigin', transformOrigin)
|
|
54
63
|
.style('coordCenter', coordinate.getCenter())
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.js","sourceRoot":"src/","sources":["shape/label/label.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,OAAO,KAAK,iBAAiB,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"label.js","sourceRoot":"src/","sources":["shape/label/label.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,UAAU,EA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AC;aAC5C,IAAI,CAAC,UAAU,EAAE,aAAa,CAAC;aAC/B,IAAI,EAAE,CAAC;IACZ,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,KAAK,CAAC,KAAK,GAAG;IACZ,aAAa,EAAE,OAAO;CACvB,CAAC"}
|
|
@@ -81,9 +81,9 @@ function inferConnectorPath(shape, points, controlPoints, coordCenter) {
|
|
|
81
81
|
return line()(P);
|
|
82
82
|
}
|
|
83
83
|
export const Advance = createElement((g) => {
|
|
84
|
-
const _a = g.attributes, {
|
|
84
|
+
const _a = g.attributes, { className,
|
|
85
85
|
// Do not pass className
|
|
86
|
-
class:
|
|
86
|
+
class: _c, transform, rotate, labelTransform, labelTransformOrigin, x, y, x0 = x, y0 = y, text, background, connector, startMarker, endMarker, coordCenter, innerHTML } = _a, rest = __rest(_a, ["className", "class", "transform", "rotate", "labelTransform", "labelTransformOrigin", "x", "y", "x0", "y0", "text", "background", "connector", "startMarker", "endMarker", "coordCenter", "innerHTML"]);
|
|
87
87
|
// Position is invalid, do not render the UI,
|
|
88
88
|
// or clear previous elements.
|
|
89
89
|
if ([x, y, x0, y0].some((v) => !isNumber(v))) {
|
|
@@ -91,23 +91,36 @@ export const Advance = createElement((g) => {
|
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
93
|
const _b = subObject(rest, 'background'), { padding } = _b, backgroundStyle = __rest(_b, ["padding"]);
|
|
94
|
-
const
|
|
94
|
+
const _d = subObject(rest, 'connector'), { points = [] } = _d, connectorStyle = __rest(_d, ["points"]);
|
|
95
95
|
const endPoints = [
|
|
96
96
|
[+x0, +y0],
|
|
97
97
|
[+x, +y],
|
|
98
98
|
];
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
99
|
+
let textShape;
|
|
100
|
+
// Use html to customize advance text.
|
|
101
|
+
if (innerHTML) {
|
|
102
|
+
textShape = select(g)
|
|
103
|
+
.maybeAppend('html', 'html', className)
|
|
104
|
+
.style('zIndex', 0)
|
|
105
|
+
.style('innerHTML', innerHTML)
|
|
106
|
+
.call(applyStyle, Object.assign({ transform: labelTransform, transformOrigin: labelTransformOrigin }, rest))
|
|
107
|
+
.node();
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
textShape = select(g)
|
|
111
|
+
.maybeAppend('text', 'text')
|
|
112
|
+
.style('zIndex', 0)
|
|
113
|
+
.style('text', text)
|
|
114
|
+
.call(applyStyle, Object.assign({ textBaseline: 'middle', transform: labelTransform, transformOrigin: labelTransformOrigin }, rest))
|
|
115
|
+
.node();
|
|
116
|
+
}
|
|
117
|
+
const rect = select(g)
|
|
105
118
|
.maybeAppend('background', 'rect')
|
|
106
119
|
.style('zIndex', -1)
|
|
107
|
-
.call(applyStyle, inferBackgroundBounds(
|
|
120
|
+
.call(applyStyle, inferBackgroundBounds(textShape, padding))
|
|
108
121
|
.call(applyStyle, background ? backgroundStyle : {})
|
|
109
122
|
.node();
|
|
110
|
-
const connectorPath = inferConnectorPath(
|
|
123
|
+
const connectorPath = inferConnectorPath(rect, endPoints, points, coordCenter);
|
|
111
124
|
const markerStart = startMarker &&
|
|
112
125
|
new Marker({
|
|
113
126
|
id: 'startMarker',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advance.js","sourceRoot":"src/","sources":["shape/text/advance.ts"],"names":[],"mappings":";;;;;;;;;;;AASA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE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3D,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;SACnD,IAAI,EAAE,CAAC;IAEV,MAAM,aAAa,GAAG,kBAAkB,CACtC,IAAI,EACJ,SAAS,EACT,MAAM,EACN,WAAW,CACZ,CAAC;IACF,MAAM,WAAW,GACf,WAAW;QACX,IAAI,MAAM,CAAC;YACT,EAAE,EAAE,aAAa;YACjB,KAAK,kBAAI,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,IAAM,SAAS,CAAC,IAAI,EAAE,aAAa,CAAS,CAAE;SAClE,CAAC,CAAC;IACL,MAAM,SAAS,GACb,SAAS;QACT,IAAI,MAAM,CAAC;YACT,EAAE,EAAE,WAAW;YACf,KAAK,kBAAI,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,IAAM,SAAS,CAAC,IAAI,EAAE,WAAW,CAAS,CAAE;SAChE,CAAC,CAAC;IACL,MAAM,CAAC,CAAC,CAAC;SACN,WAAW,CAAC,WAAW,EAAE,MAAM,CAAC;SAChC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;SAClB,KAAK,CAAC,MAAM,EAAE,aAAa,CAAC;SAC5B,KAAK,CAAC,aAAa,EAAE,WAAW,CAAC;SACjC,KAAK,CAAC,WAAW,EAAE,SAAS,CAAC;SAC7B,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AACvD,CAAC,CAAC,CAAC"}
|
|
@@ -54,6 +54,7 @@ export type ViewComposition = {
|
|
|
54
54
|
export type GeoViewComposition = Omit<ViewComposition, 'type'> & {
|
|
55
55
|
type?: 'geoView';
|
|
56
56
|
coordinate?: Record<string, any>;
|
|
57
|
+
[key: string]: any;
|
|
57
58
|
};
|
|
58
59
|
export type GeoPathComposition = Omit<ViewComposition, 'type'> & {
|
|
59
60
|
type?: 'geoPath';
|
|
@@ -65,6 +66,7 @@ export type SpaceLayerComposition = {
|
|
|
65
66
|
key?: string;
|
|
66
67
|
data?: any;
|
|
67
68
|
children?: Node[];
|
|
69
|
+
[key: string]: any;
|
|
68
70
|
};
|
|
69
71
|
export type SpaceFlexComposition = {
|
|
70
72
|
type?: 'spaceFlex';
|
|
@@ -74,6 +76,7 @@ export type SpaceFlexComposition = {
|
|
|
74
76
|
ratio?: number[];
|
|
75
77
|
padding?: Padding;
|
|
76
78
|
children?: Node[];
|
|
79
|
+
[key: string]: any;
|
|
77
80
|
};
|
|
78
81
|
export type FacetContext = {
|
|
79
82
|
columnField?: string | number;
|
|
@@ -115,6 +118,7 @@ export type FacetRectComposition = {
|
|
|
115
118
|
children?: Node[] | ((facet: FacetContext) => Node);
|
|
116
119
|
axis?: Record<string, any> | boolean;
|
|
117
120
|
legend?: Record<string, any> | boolean;
|
|
121
|
+
[key: string]: any;
|
|
118
122
|
};
|
|
119
123
|
export type RepeatMatrixComposition = {
|
|
120
124
|
type?: 'repeatMatrix';
|
|
@@ -145,6 +149,7 @@ export type RepeatMatrixComposition = {
|
|
|
145
149
|
axis?: Record<string, any> | boolean;
|
|
146
150
|
legend?: Record<string, any> | boolean;
|
|
147
151
|
children?: Node[] | ((facet: FacetContext) => Node);
|
|
152
|
+
[key: string]: any;
|
|
148
153
|
};
|
|
149
154
|
export type FacetCircleComposition = {
|
|
150
155
|
type?: 'facetCircle';
|
|
@@ -173,6 +178,7 @@ export type FacetCircleComposition = {
|
|
|
173
178
|
children?: Node[] | ((facet: FacetContext) => Node);
|
|
174
179
|
axis?: Record<string, any> | boolean;
|
|
175
180
|
legend?: Record<string, any> | boolean;
|
|
181
|
+
[key: string]: any;
|
|
176
182
|
};
|
|
177
183
|
export type TimingKeyframeComposition = {
|
|
178
184
|
type?: 'timingKeyframe';
|
|
@@ -182,6 +188,7 @@ export type TimingKeyframeComposition = {
|
|
|
182
188
|
iterationCount?: 'infinite' | number;
|
|
183
189
|
direction?: 'normal' | 'reverse' | 'alternate' | 'reverse-alternate';
|
|
184
190
|
children?: Node[];
|
|
191
|
+
[key: string]: any;
|
|
185
192
|
};
|
|
186
193
|
type Node = Mark | Composition;
|
|
187
194
|
export {};
|
package/esm/spec/index.d.ts
CHANGED
package/esm/spec/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["spec/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["spec/index.ts"],"names":[],"mappings":"AAUA,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
|
|
@@ -71,6 +71,7 @@ export type ElementHighlightByXInteraction = {
|
|
|
71
71
|
link?: boolean;
|
|
72
72
|
background?: boolean;
|
|
73
73
|
offset?: number;
|
|
74
|
+
delay?: number;
|
|
74
75
|
} & Record<`${'link' | 'background'}${any}`, any>;
|
|
75
76
|
export type ElementHighlightByColorInteraction = {
|
|
76
77
|
type?: 'elementHighlightByColor';
|
|
@@ -78,6 +79,7 @@ export type ElementHighlightByColorInteraction = {
|
|
|
78
79
|
background?: boolean;
|
|
79
80
|
link?: boolean;
|
|
80
81
|
offset?: number;
|
|
82
|
+
delay?: number;
|
|
81
83
|
} & Record<`${'link' | 'background'}${any}`, any>;
|
|
82
84
|
export type PoptipInteraction = {
|
|
83
85
|
type?: 'poptip';
|