@antv/g2 5.0.18 → 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/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/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 +8 -3
- package/esm/mark/lineX.js.map +1 -1
- package/esm/mark/lineY.js +8 -3
- 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 +11 -7
- 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/shape/index.d.ts +106 -101
- package/esm/shape/index.js +58 -53
- package/esm/shape/index.js.map +1 -1
- package/esm/shape/text/advance.js +3 -3
- 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 +6 -6
- package/esm/theme/classic.js +6 -7
- package/esm/theme/classic.js.map +1 -1
- package/esm/theme/classicDark.js +6 -6
- 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/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/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/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 +8 -3
- package/lib/mark/lineX.js.map +1 -1
- package/lib/mark/lineY.js +8 -3
- 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 +11 -7
- 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/shape/index.d.ts +106 -101
- package/lib/shape/index.js +71 -61
- package/lib/shape/index.js.map +1 -1
- package/lib/shape/text/advance.js +3 -3
- 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 +6 -6
- package/lib/theme/classic.js +6 -7
- package/lib/theme/classic.js.map +1 -1
- package/lib/theme/classicDark.js +6 -6
- 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/package.json +8 -7
- 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/{geo → composition}/geoView.ts +1 -1
- package/src/composition/index.ts +2 -0
- package/src/index.ts +12 -3
- 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 +9 -4
- package/src/mark/lineY.ts +9 -4
- 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 +19 -10
- 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/shape/index.ts +106 -110
- package/src/shape/text/advance.ts +1 -2
- 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 +6 -6
- package/src/theme/classic.ts +6 -7
- package/src/theme/classicDark.ts +6 -6
- package/src/utils/scale.ts +1 -1
- 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/src/api/mark/mark.ts
DELETED
|
@@ -1,439 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IntervalMark,
|
|
3
|
-
RectMark,
|
|
4
|
-
AreaMark,
|
|
5
|
-
PointMark,
|
|
6
|
-
CellMark,
|
|
7
|
-
VectorMark,
|
|
8
|
-
LinkMark,
|
|
9
|
-
PolygonMark,
|
|
10
|
-
ImageMark,
|
|
11
|
-
TextMark,
|
|
12
|
-
BoxMark,
|
|
13
|
-
LineMark,
|
|
14
|
-
LineXMark,
|
|
15
|
-
LineYMark,
|
|
16
|
-
RangeMark,
|
|
17
|
-
RangeXMark,
|
|
18
|
-
RangeYMark,
|
|
19
|
-
ConnectorMark,
|
|
20
|
-
SankeyMark,
|
|
21
|
-
BoxPlotMark,
|
|
22
|
-
DensityMark,
|
|
23
|
-
HeatmapMark,
|
|
24
|
-
PathMark,
|
|
25
|
-
ShapeMark,
|
|
26
|
-
TreemapMark,
|
|
27
|
-
ForceGraphMark,
|
|
28
|
-
PackMark,
|
|
29
|
-
TreeMark,
|
|
30
|
-
WordCloudMark,
|
|
31
|
-
CompositeMark,
|
|
32
|
-
GaugeMark,
|
|
33
|
-
AxisComponent,
|
|
34
|
-
LegendComponent,
|
|
35
|
-
} from '../../spec';
|
|
36
|
-
import { NodePropertyDescriptor, defineProps } from '../props';
|
|
37
|
-
import { Concrete } from '../types';
|
|
38
|
-
import { MarkNode } from './base';
|
|
39
|
-
import { API, StaticAPI } from './types';
|
|
40
|
-
|
|
41
|
-
export interface Interval extends API<Concrete<IntervalMark>, Interval> {
|
|
42
|
-
type: 'interval';
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export interface Rect extends API<Concrete<RectMark>, Rect> {
|
|
46
|
-
type: 'rect';
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface Point extends API<Concrete<PointMark>, Point> {
|
|
50
|
-
type: 'point';
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface Area extends API<Concrete<AreaMark>, Area> {
|
|
54
|
-
type: 'area';
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export interface Line extends API<Concrete<LinkMark>, Line> {
|
|
58
|
-
type: 'line';
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export interface Cell extends API<Concrete<CellMark>, Cell> {
|
|
62
|
-
type: 'cell';
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export interface Vector extends API<Concrete<VectorMark>, Vector> {
|
|
66
|
-
type: 'cell';
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export interface Link extends API<Concrete<LinkMark>, Link> {
|
|
70
|
-
type: 'link';
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export interface Polygon extends API<Concrete<PolygonMark>, Polygon> {
|
|
74
|
-
type: 'polygon';
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export interface Image extends API<Concrete<ImageMark>, Image> {
|
|
78
|
-
type: 'image';
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export interface Text extends API<Concrete<TextMark>, Text> {
|
|
82
|
-
type: 'text';
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export interface Box extends API<Concrete<BoxMark>, Box> {
|
|
86
|
-
type: 'box';
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export interface LineX extends API<Concrete<LineXMark>, LineX> {
|
|
90
|
-
type: 'annotation.lineX';
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export interface LineY extends API<Concrete<LineYMark>, LineY> {
|
|
94
|
-
type: 'annotation.lineY';
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export interface Range extends API<Concrete<RangeMark>, Range> {
|
|
98
|
-
type: 'annotation.range';
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export interface RangeX extends API<Concrete<RangeXMark>, RangeX> {
|
|
102
|
-
type: 'annotation.rangeX';
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export interface RangeY extends API<Concrete<RangeYMark>, RangeY> {
|
|
106
|
-
type: 'annotation.rangeY';
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export interface Connector extends API<Concrete<ConnectorMark>, Connector> {
|
|
110
|
-
type: 'connector';
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export interface Sankey extends API<Concrete<SankeyMark>, Sankey> {
|
|
114
|
-
type: 'sankey';
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export interface Boxplot extends API<Concrete<BoxPlotMark>, Boxplot> {
|
|
118
|
-
type: 'boxplot';
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export interface Density extends API<Concrete<DensityMark>, Density> {
|
|
122
|
-
type: 'density';
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export interface Heatmap extends API<Concrete<HeatmapMark>, Heatmap> {
|
|
126
|
-
type: 'heatmap';
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export interface Path extends API<Concrete<PathMark>, Path> {
|
|
130
|
-
type: 'path';
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
export interface Shape extends API<Concrete<ShapeMark>, Shape> {
|
|
134
|
-
type: 'shape';
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export interface Treemap extends API<Concrete<TreemapMark>, Treemap> {
|
|
138
|
-
type: 'treemap';
|
|
139
|
-
}
|
|
140
|
-
export interface Pack extends API<Concrete<PackMark>, Pack> {
|
|
141
|
-
type: 'pack';
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
export interface ForceGraph extends API<Concrete<ForceGraphMark>, ForceGraph> {
|
|
145
|
-
type: 'forceGraph';
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export interface Tree extends API<Concrete<TreeMark>, Tree> {
|
|
149
|
-
type: 'tree';
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export interface WordCloud extends API<Concrete<WordCloudMark>, WordCloud> {
|
|
153
|
-
type: 'wordCloud';
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
export interface Gauge extends API<Concrete<GaugeMark>, Gauge> {
|
|
157
|
-
type: 'gauge';
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
export interface Composite extends API<Concrete<CompositeMark>, Composite> {
|
|
161
|
-
type: 'interval';
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
export interface AxisX extends StaticAPI<Concrete<AxisComponent>, AxisX> {
|
|
165
|
-
type: 'axisX';
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
export interface AxisY extends StaticAPI<Concrete<AxisComponent>, AxisY> {
|
|
169
|
-
type: 'axisY';
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
export interface Legends extends StaticAPI<Concrete<LegendComponent>, Legends> {
|
|
173
|
-
type: 'legends';
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
export const props: NodePropertyDescriptor[] = [
|
|
177
|
-
{ name: 'encode', type: 'object' },
|
|
178
|
-
{ name: 'scale', type: 'object' },
|
|
179
|
-
{ name: 'data', type: 'value' },
|
|
180
|
-
{ name: 'transform', type: 'array' },
|
|
181
|
-
{ name: 'style', type: 'object' },
|
|
182
|
-
{ name: 'animate', type: 'object' },
|
|
183
|
-
{ name: 'coordinate', type: 'object' },
|
|
184
|
-
{ name: 'interaction', type: 'object' },
|
|
185
|
-
{ name: 'label', type: 'array', key: 'labels' },
|
|
186
|
-
{ name: 'axis', type: 'object' },
|
|
187
|
-
{ name: 'legend', type: 'object' },
|
|
188
|
-
{ name: 'slider', type: 'object' },
|
|
189
|
-
{ name: 'scrollbar', type: 'object' },
|
|
190
|
-
{ name: 'state', type: 'object' },
|
|
191
|
-
{ name: 'tooltip', type: 'mix' },
|
|
192
|
-
];
|
|
193
|
-
|
|
194
|
-
export const axisProps: NodePropertyDescriptor[] = [
|
|
195
|
-
{ name: 'scale', type: 'object' },
|
|
196
|
-
{ name: 'transform', type: 'array' },
|
|
197
|
-
{ name: 'style', type: 'object' },
|
|
198
|
-
{ name: 'state', type: 'object' },
|
|
199
|
-
];
|
|
200
|
-
|
|
201
|
-
export const legendProps = axisProps;
|
|
202
|
-
|
|
203
|
-
@defineProps(props)
|
|
204
|
-
export class Composite extends MarkNode<Composite> {
|
|
205
|
-
constructor() {
|
|
206
|
-
super({});
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
@defineProps(props)
|
|
211
|
-
export class Interval extends MarkNode<IntervalMark> {
|
|
212
|
-
constructor() {
|
|
213
|
-
super({}, 'interval');
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
@defineProps(props)
|
|
218
|
-
export class Rect extends MarkNode<RectMark> {
|
|
219
|
-
constructor() {
|
|
220
|
-
super({}, 'rect');
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
@defineProps(props)
|
|
225
|
-
export class Point extends MarkNode<PointMark> {
|
|
226
|
-
constructor() {
|
|
227
|
-
super({}, 'point');
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
@defineProps(props)
|
|
232
|
-
export class Area extends MarkNode<AreaMark> {
|
|
233
|
-
constructor() {
|
|
234
|
-
super({}, 'area');
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
@defineProps(props)
|
|
239
|
-
export class Line extends MarkNode<LineMark> {
|
|
240
|
-
constructor() {
|
|
241
|
-
super({}, 'line');
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
@defineProps(props)
|
|
246
|
-
export class Cell extends MarkNode<CellMark> {
|
|
247
|
-
constructor() {
|
|
248
|
-
super({}, 'cell');
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
@defineProps(props)
|
|
253
|
-
export class Vector extends MarkNode<VectorMark> {
|
|
254
|
-
constructor() {
|
|
255
|
-
super({}, 'vector');
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
@defineProps(props)
|
|
260
|
-
export class Link extends MarkNode<LinkMark> {
|
|
261
|
-
constructor() {
|
|
262
|
-
super({}, 'link');
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
@defineProps(props)
|
|
267
|
-
export class Polygon extends MarkNode<PolygonMark> {
|
|
268
|
-
constructor() {
|
|
269
|
-
super({}, 'polygon');
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
@defineProps(props)
|
|
274
|
-
export class Image extends MarkNode<ImageMark> {
|
|
275
|
-
constructor() {
|
|
276
|
-
super({}, 'image');
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
@defineProps(props)
|
|
281
|
-
export class Text extends MarkNode<TextMark> {
|
|
282
|
-
constructor() {
|
|
283
|
-
super({}, 'text');
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
@defineProps(props)
|
|
288
|
-
export class Box extends MarkNode<BoxMark> {
|
|
289
|
-
constructor() {
|
|
290
|
-
super({}, 'box');
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
@defineProps(props)
|
|
295
|
-
export class LineX extends MarkNode<LineXMark> {
|
|
296
|
-
constructor() {
|
|
297
|
-
super({}, 'lineX');
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
@defineProps(props)
|
|
302
|
-
export class LineY extends MarkNode<LineYMark> {
|
|
303
|
-
constructor() {
|
|
304
|
-
super({}, 'lineY');
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
@defineProps(props)
|
|
309
|
-
export class Range extends MarkNode<RangeMark> {
|
|
310
|
-
constructor() {
|
|
311
|
-
super({}, 'range');
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
@defineProps(props)
|
|
316
|
-
export class RangeX extends MarkNode<RangeXMark> {
|
|
317
|
-
constructor() {
|
|
318
|
-
super({}, 'rangeX');
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
@defineProps(props)
|
|
323
|
-
export class RangeY extends MarkNode<RangeYMark> {
|
|
324
|
-
constructor() {
|
|
325
|
-
super({}, 'rangeY');
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
@defineProps(props)
|
|
330
|
-
export class Connector extends MarkNode<ConnectorMark> {
|
|
331
|
-
constructor() {
|
|
332
|
-
super({}, 'connector');
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
@defineProps(props)
|
|
337
|
-
export class Shape extends MarkNode<ShapeMark> {
|
|
338
|
-
constructor() {
|
|
339
|
-
super({}, 'shape');
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
@defineProps([...props, { name: 'layout', type: 'value' }])
|
|
344
|
-
export class Sankey extends MarkNode<SankeyMark> {
|
|
345
|
-
constructor() {
|
|
346
|
-
super({}, 'sankey');
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
@defineProps([...props, { name: 'layout', type: 'value' }])
|
|
351
|
-
export class Treemap extends MarkNode<TreemapMark> {
|
|
352
|
-
constructor() {
|
|
353
|
-
super({}, 'treemap');
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
@defineProps(props)
|
|
358
|
-
export class Boxplot extends MarkNode<BoxPlotMark> {
|
|
359
|
-
constructor() {
|
|
360
|
-
super({}, 'boxplot');
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
@defineProps(props)
|
|
365
|
-
export class Density extends MarkNode<DensityMark> {
|
|
366
|
-
constructor() {
|
|
367
|
-
super({}, 'density');
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
@defineProps(props)
|
|
372
|
-
export class Heatmap extends MarkNode<HeatmapMark> {
|
|
373
|
-
constructor() {
|
|
374
|
-
super({}, 'heatmap');
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
@defineProps(props)
|
|
379
|
-
export class Path extends MarkNode<PathMark> {
|
|
380
|
-
constructor() {
|
|
381
|
-
super({}, 'path');
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
@defineProps([...props, { name: 'layout', type: 'value' }])
|
|
386
|
-
export class Pack extends MarkNode<PackMark> {
|
|
387
|
-
constructor() {
|
|
388
|
-
super({}, 'pack');
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
@defineProps([...props, { name: 'layout', type: 'value' }])
|
|
393
|
-
export class ForceGraph extends MarkNode<ForceGraphMark> {
|
|
394
|
-
constructor() {
|
|
395
|
-
super({}, 'forceGraph');
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
@defineProps([...props, { name: 'layout', type: 'value' }])
|
|
400
|
-
export class Tree extends MarkNode<TreeMark> {
|
|
401
|
-
constructor() {
|
|
402
|
-
super({}, 'tree');
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
@defineProps([...props, { name: 'layout', type: 'object' }])
|
|
407
|
-
export class WordCloud extends MarkNode<WordCloudMark> {
|
|
408
|
-
constructor() {
|
|
409
|
-
super({}, 'wordCloud');
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
@defineProps(props)
|
|
414
|
-
export class Gauge extends MarkNode<GaugeMark> {
|
|
415
|
-
constructor() {
|
|
416
|
-
super({}, 'gauge');
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
@defineProps(axisProps)
|
|
421
|
-
export class AxisX extends MarkNode<AxisComponent> {
|
|
422
|
-
constructor() {
|
|
423
|
-
super({}, 'axisX');
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
@defineProps(axisProps)
|
|
428
|
-
export class AxisY extends MarkNode<AxisComponent> {
|
|
429
|
-
constructor() {
|
|
430
|
-
super({}, 'axisY');
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
@defineProps(legendProps)
|
|
435
|
-
export class Legends extends MarkNode<LegendComponent> {
|
|
436
|
-
constructor() {
|
|
437
|
-
super({}, 'legends');
|
|
438
|
-
}
|
|
439
|
-
}
|
package/src/api/mark/types.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ValueAttribute, ObjectAttribute, ArrayAttribute } from '../types';
|
|
2
|
-
import { Mark as MarkProps, AxisComponent, LegendComponent } from '../../spec';
|
|
3
|
-
|
|
4
|
-
export type API<Props extends MarkProps, Mark> = {
|
|
5
|
-
data: ValueAttribute<Props['data'], Mark>;
|
|
6
|
-
encode: ObjectAttribute<Props['encode'], Mark>;
|
|
7
|
-
scale: ObjectAttribute<Props['scale'], Mark>;
|
|
8
|
-
transform: ArrayAttribute<Props['transform'], Mark>;
|
|
9
|
-
animate: ObjectAttribute<Props['animate'], Mark>;
|
|
10
|
-
label: ArrayAttribute<Props['labels'], Mark>;
|
|
11
|
-
style: ObjectAttribute<Props['style'], Mark>;
|
|
12
|
-
state: ObjectAttribute<Props['state'], Mark>;
|
|
13
|
-
axis: ObjectAttribute<Props['axis'], Mark>;
|
|
14
|
-
coordinate: ValueAttribute<Props['coordinate'], Mark>;
|
|
15
|
-
interaction: ObjectAttribute<Props['interaction'], Mark>;
|
|
16
|
-
slider: ObjectAttribute<Props['slider'], Mark>;
|
|
17
|
-
scrollbar: ObjectAttribute<Props['scrollbar'], Mark>;
|
|
18
|
-
legend: ObjectAttribute<Props['legend'], Mark>;
|
|
19
|
-
layout: ValueAttribute<Props['layout'], Mark>;
|
|
20
|
-
tooltip: ValueAttribute<Props['tooltip'], Mark>;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export type StaticAPI<
|
|
24
|
-
Props extends AxisComponent | LegendComponent,
|
|
25
|
-
StaticMark,
|
|
26
|
-
> = {
|
|
27
|
-
scale: ObjectAttribute<Props['scale'], StaticMark>;
|
|
28
|
-
transform: ArrayAttribute<Props['transform'], StaticMark>;
|
|
29
|
-
style: ObjectAttribute<Props['style'], StaticMark>;
|
|
30
|
-
state: ObjectAttribute<Props['state'], StaticMark>;
|
|
31
|
-
};
|
package/src/geo/index.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { GeoView } from './geoView';
|
|
2
|
-
import { GeoPath } from './geoPath';
|
|
3
|
-
|
|
4
|
-
export { GeoView, GeoPath };
|
|
5
|
-
|
|
6
|
-
export type { GeoViewOptions } from './geoView';
|
|
7
|
-
export type { GeoPathOptions } from './geoPath';
|
|
8
|
-
|
|
9
|
-
export const geoLibrary = {
|
|
10
|
-
'composition.geoView': GeoView,
|
|
11
|
-
'composition.geoPath': GeoPath,
|
|
12
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|