@antv/g2 5.0.18 → 5.0.20
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 +175 -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 +10 -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 +171 -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/data/index.d.ts +2 -0
- package/esm/data/index.js +1 -0
- package/esm/data/index.js.map +1 -1
- package/esm/data/log.d.ts +7 -0
- package/esm/data/log.js +11 -0
- package/esm/data/log.js.map +1 -0
- package/esm/index.d.ts +4 -3
- package/esm/index.js +3 -2
- package/esm/index.js.map +1 -1
- package/esm/interaction/brushFilter.js +18 -16
- package/esm/interaction/brushFilter.js.map +1 -1
- package/esm/interaction/chartIndex.js +25 -22
- package/esm/interaction/chartIndex.js.map +1 -1
- package/esm/interaction/fisheye.js +17 -13
- package/esm/interaction/fisheye.js.map +1 -1
- package/esm/interaction/legendFilter.js +32 -26
- package/esm/interaction/legendFilter.js.map +1 -1
- package/esm/interaction/sliderFilter.js +8 -9
- package/esm/interaction/sliderFilter.js.map +1 -1
- package/esm/interaction/tooltip.d.ts +1 -1
- package/esm/interaction/tooltip.js +39 -4
- package/esm/interaction/tooltip.js.map +1 -1
- package/esm/label-transform/overlapDodgeY.js.map +1 -1
- package/esm/lib/core.d.ts +159 -0
- package/esm/lib/core.js +175 -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 +171 -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 +32 -13
- 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/dataTransform.d.ts +3 -2
- package/esm/spec/index.d.ts +1 -0
- package/esm/spec/index.js.map +1 -1
- package/esm/spec/interaction.d.ts +4 -1
- 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 +175 -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 +10 -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 +171 -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/data/index.d.ts +2 -0
- package/lib/data/index.js +3 -1
- package/lib/data/index.js.map +1 -1
- package/lib/data/log.d.ts +7 -0
- package/lib/data/log.js +15 -0
- package/lib/data/log.js.map +1 -0
- package/lib/index.d.ts +4 -3
- package/lib/index.js +8 -3
- package/lib/index.js.map +1 -1
- package/lib/interaction/brushFilter.js +18 -16
- package/lib/interaction/brushFilter.js.map +1 -1
- package/lib/interaction/chartIndex.js +25 -22
- package/lib/interaction/chartIndex.js.map +1 -1
- package/lib/interaction/fisheye.js +17 -13
- package/lib/interaction/fisheye.js.map +1 -1
- package/lib/interaction/legendFilter.js +32 -26
- package/lib/interaction/legendFilter.js.map +1 -1
- package/lib/interaction/sliderFilter.js +8 -9
- package/lib/interaction/sliderFilter.js.map +1 -1
- package/lib/interaction/tooltip.d.ts +1 -1
- package/lib/interaction/tooltip.js +38 -3
- package/lib/interaction/tooltip.js.map +1 -1
- package/lib/label-transform/overlapDodgeY.js.map +1 -1
- package/lib/lib/core.d.ts +159 -0
- package/lib/lib/core.js +179 -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 +171 -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 +32 -13
- 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/dataTransform.d.ts +3 -2
- package/lib/spec/index.d.ts +1 -0
- package/lib/spec/index.js.map +1 -1
- package/lib/spec/interaction.d.ts +4 -1
- 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 +36 -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/data/index.ts +2 -0
- package/src/data/log.ts +16 -0
- package/src/index.ts +12 -3
- package/src/interaction/brushFilter.ts +31 -28
- package/src/interaction/chartIndex.ts +26 -23
- package/src/interaction/fisheye.ts +16 -12
- package/src/interaction/legendFilter.ts +45 -40
- package/src/interaction/sliderFilter.ts +15 -16
- package/src/interaction/tooltip.ts +47 -3
- package/src/label-transform/overlapDodgeY.ts +0 -1
- package/src/{stdlib/index.ts → lib/core.ts} +76 -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 +41 -17
- 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/dataTransform.ts +5 -0
- package/src/spec/index.ts +1 -0
- package/src/spec/interaction.ts +5 -1
- 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
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { GeoViewComposition } from '../../spec';
|
|
2
|
-
import { defineProps, nodeProps } from '../props';
|
|
3
|
-
import {
|
|
4
|
-
ValueAttribute,
|
|
5
|
-
ObjectAttribute,
|
|
6
|
-
ArrayAttribute,
|
|
7
|
-
Concrete,
|
|
8
|
-
} from '../types';
|
|
9
|
-
import { mark, Mark } from '../mark';
|
|
10
|
-
import { Composition, CompositionNode } from './index';
|
|
11
|
-
|
|
12
|
-
type GeoViewSpec = Concrete<GeoViewComposition>;
|
|
13
|
-
|
|
14
|
-
export interface GeoView extends Mark, Composition {
|
|
15
|
-
data: ValueAttribute<GeoViewSpec['data'], GeoView>;
|
|
16
|
-
key: ValueAttribute<GeoViewSpec['key'], GeoView>;
|
|
17
|
-
coordinate: ArrayAttribute<GeoViewSpec['coordinate'], GeoView>;
|
|
18
|
-
interaction: ObjectAttribute<GeoViewSpec['interaction'], GeoView>;
|
|
19
|
-
style: ObjectAttribute<GeoViewSpec['style'], GeoView>;
|
|
20
|
-
theme: ObjectAttribute<GeoViewSpec['theme'], GeoView>;
|
|
21
|
-
scale: ObjectAttribute<GeoViewSpec['scale'], GeoView>;
|
|
22
|
-
legend: ObjectAttribute<GeoViewSpec['legend'], GeoView>;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@defineProps([
|
|
26
|
-
{ type: 'value', name: 'data' },
|
|
27
|
-
{ type: 'value', name: 'coordinate' },
|
|
28
|
-
{ type: 'object', name: 'interaction' },
|
|
29
|
-
{ type: 'object', name: 'theme' },
|
|
30
|
-
{ type: 'object', name: 'style' },
|
|
31
|
-
{ type: 'object', name: 'scale' },
|
|
32
|
-
{ type: 'object', name: 'legend' },
|
|
33
|
-
...nodeProps(mark),
|
|
34
|
-
])
|
|
35
|
-
export class GeoView extends CompositionNode<GeoViewComposition> {
|
|
36
|
-
constructor() {
|
|
37
|
-
super({}, 'geoView');
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { defineProps, nodeProps } from '../props';
|
|
2
|
-
import { CompositionNode } from './base';
|
|
3
|
-
import { View } from './view';
|
|
4
|
-
import { SpaceLayer } from './spaceLayer';
|
|
5
|
-
import { SpaceFlex } from './spaceFlex';
|
|
6
|
-
import { FacetRect } from './facetRect';
|
|
7
|
-
import { FacetCircle } from './facetCircle';
|
|
8
|
-
import { RepeatMatrix } from './repeatMatrix';
|
|
9
|
-
import { TimingKeyframe } from './timingKeyframe';
|
|
10
|
-
import { GeoView } from './geoView';
|
|
11
|
-
import { GeoPath } from './geoPath';
|
|
12
|
-
|
|
13
|
-
export const composition = {
|
|
14
|
-
view: View,
|
|
15
|
-
spaceLayer: SpaceLayer,
|
|
16
|
-
spaceFlex: SpaceFlex,
|
|
17
|
-
facetRect: FacetRect,
|
|
18
|
-
facetCircle: FacetCircle,
|
|
19
|
-
repeatMatrix: RepeatMatrix,
|
|
20
|
-
timingKeyframe: TimingKeyframe,
|
|
21
|
-
geoView: GeoView,
|
|
22
|
-
geoPath: GeoPath,
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export interface Composition {
|
|
26
|
-
view(): View;
|
|
27
|
-
spaceLayer(): SpaceLayer;
|
|
28
|
-
spaceFlex(): SpaceFlex;
|
|
29
|
-
facetRect(): FacetRect;
|
|
30
|
-
facetCircle(): FacetCircle;
|
|
31
|
-
repeatMatrix(): RepeatMatrix;
|
|
32
|
-
timingKeyframe(): TimingKeyframe;
|
|
33
|
-
geoView(): GeoView;
|
|
34
|
-
geoPath(): GeoPath;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export {
|
|
38
|
-
CompositionNode,
|
|
39
|
-
View,
|
|
40
|
-
SpaceLayer,
|
|
41
|
-
SpaceFlex,
|
|
42
|
-
FacetRect,
|
|
43
|
-
FacetCircle,
|
|
44
|
-
RepeatMatrix,
|
|
45
|
-
TimingKeyframe,
|
|
46
|
-
GeoView,
|
|
47
|
-
GeoPath,
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Define composition node api for composition node dynamically,
|
|
52
|
-
* which can avoid circular dependency.
|
|
53
|
-
* @todo Remove view as composition.
|
|
54
|
-
*/
|
|
55
|
-
for (const Ctor of Object.values(composition)) {
|
|
56
|
-
defineProps(nodeProps(composition))(Ctor);
|
|
57
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { RepeatMatrixComposition } from '../../spec';
|
|
2
|
-
import { defineProps, nodeProps } from '../props';
|
|
3
|
-
import {
|
|
4
|
-
ValueAttribute,
|
|
5
|
-
Concrete,
|
|
6
|
-
ArrayAttribute,
|
|
7
|
-
ObjectAttribute,
|
|
8
|
-
} from '../types';
|
|
9
|
-
import { mark, Mark } from '../mark';
|
|
10
|
-
import { Composition, CompositionNode } from './index';
|
|
11
|
-
|
|
12
|
-
type RepeatMatrixSpec = Concrete<RepeatMatrixComposition>;
|
|
13
|
-
|
|
14
|
-
export interface RepeatMatrix extends Composition, Mark {
|
|
15
|
-
data: ValueAttribute<RepeatMatrixSpec['data'], RepeatMatrix>;
|
|
16
|
-
transform: ArrayAttribute<RepeatMatrixSpec['transform'], RepeatMatrix>;
|
|
17
|
-
encode: ObjectAttribute<RepeatMatrixSpec['encode'], RepeatMatrix>;
|
|
18
|
-
scale: ObjectAttribute<RepeatMatrixSpec['scale'], RepeatMatrix>;
|
|
19
|
-
legend: ObjectAttribute<RepeatMatrixSpec['legend'], RepeatMatrix>;
|
|
20
|
-
axis: ObjectAttribute<RepeatMatrixSpec['axis'], RepeatMatrix>;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@defineProps([
|
|
24
|
-
{ type: 'value', name: 'data' },
|
|
25
|
-
{ type: 'array', name: 'transform' },
|
|
26
|
-
{ type: 'object', name: 'scale' },
|
|
27
|
-
{ type: 'object', name: 'encode' },
|
|
28
|
-
{ type: 'object', name: 'encode' },
|
|
29
|
-
{ type: 'object', name: 'legend' },
|
|
30
|
-
...nodeProps(mark),
|
|
31
|
-
])
|
|
32
|
-
export class RepeatMatrix extends CompositionNode<RepeatMatrixComposition> {
|
|
33
|
-
constructor() {
|
|
34
|
-
super({}, 'repeatMatrix');
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { SpaceFlexComposition } from '../../spec';
|
|
2
|
-
import { defineProps, nodeProps } from '../props';
|
|
3
|
-
import { ValueAttribute, Concrete } from '../types';
|
|
4
|
-
import { mark, Mark } from '../mark';
|
|
5
|
-
import { Composition, CompositionNode } from './index';
|
|
6
|
-
|
|
7
|
-
type SpaceFlexSpec = Concrete<SpaceFlexComposition>;
|
|
8
|
-
|
|
9
|
-
export interface SpaceFlex extends Composition, Mark {
|
|
10
|
-
data: ValueAttribute<SpaceFlexSpec['data'], SpaceFlex>;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@defineProps([{ type: 'value', name: 'data' }, ...nodeProps(mark)])
|
|
14
|
-
export class SpaceFlex extends CompositionNode<SpaceFlexSpec> {
|
|
15
|
-
constructor() {
|
|
16
|
-
super({}, 'spaceFlex');
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { SpaceLayerComposition } from '../../spec';
|
|
2
|
-
import { defineProps, nodeProps } from '../props';
|
|
3
|
-
import { ValueAttribute, Concrete } from '../types';
|
|
4
|
-
import { mark, Mark } from '../mark';
|
|
5
|
-
import { Composition, CompositionNode } from './index';
|
|
6
|
-
|
|
7
|
-
type SpaceLayerSpec = Concrete<SpaceLayerComposition>;
|
|
8
|
-
|
|
9
|
-
export interface SpaceLayer extends Composition, Mark {
|
|
10
|
-
data: ValueAttribute<SpaceLayerSpec['data'], SpaceLayer>;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@defineProps([{ type: 'value', name: 'data' }, ...nodeProps(mark)])
|
|
14
|
-
export class SpaceLayer extends CompositionNode<SpaceLayerComposition> {
|
|
15
|
-
constructor() {
|
|
16
|
-
super({}, 'spaceLayer');
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { TimingKeyframeComposition } from '../../spec';
|
|
2
|
-
import { defineProps, nodeProps } from '../props';
|
|
3
|
-
import { Concrete } from '../types';
|
|
4
|
-
import { mark, Mark } from '../mark';
|
|
5
|
-
import { Composition, CompositionNode } from './index';
|
|
6
|
-
|
|
7
|
-
type TimingKeyframeSpec = Concrete<TimingKeyframeComposition>;
|
|
8
|
-
|
|
9
|
-
export interface TimingKeyframe extends Composition, Mark {}
|
|
10
|
-
|
|
11
|
-
@defineProps([...nodeProps(mark)])
|
|
12
|
-
export class TimingKeyframe extends CompositionNode<TimingKeyframeSpec> {
|
|
13
|
-
constructor() {
|
|
14
|
-
super({}, 'timingKeyframe');
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { ViewComposition } from '../../spec';
|
|
2
|
-
import { defineProps, nodeProps } from '../props';
|
|
3
|
-
import {
|
|
4
|
-
ValueAttribute,
|
|
5
|
-
ObjectAttribute,
|
|
6
|
-
ArrayAttribute,
|
|
7
|
-
Concrete,
|
|
8
|
-
} from '../types';
|
|
9
|
-
import { mark, Mark } from '../mark';
|
|
10
|
-
import { CompositionNode } from './base';
|
|
11
|
-
|
|
12
|
-
type ViewSpec = Concrete<ViewComposition>;
|
|
13
|
-
|
|
14
|
-
export interface View extends Mark {
|
|
15
|
-
data: ValueAttribute<ViewSpec['data'], View>;
|
|
16
|
-
coordinate: ArrayAttribute<ViewSpec['coordinate'], View>;
|
|
17
|
-
interaction: ObjectAttribute<ViewSpec['interaction'], View>;
|
|
18
|
-
theme: ObjectAttribute<ViewSpec['theme'], View>;
|
|
19
|
-
style: ObjectAttribute<ViewSpec['style'], View>;
|
|
20
|
-
scale: ObjectAttribute<ViewSpec['scale'], View>;
|
|
21
|
-
axis: ObjectAttribute<ViewSpec['axis'], View>;
|
|
22
|
-
legend: ObjectAttribute<ViewSpec['legend'], View>;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@defineProps([
|
|
26
|
-
{ type: 'value', name: 'data' },
|
|
27
|
-
{ type: 'value', name: 'coordinate' },
|
|
28
|
-
{ type: 'object', name: 'interaction' },
|
|
29
|
-
{ type: 'object', name: 'theme' },
|
|
30
|
-
{ type: 'object', name: 'style' },
|
|
31
|
-
{ type: 'object', name: 'scale' },
|
|
32
|
-
{ type: 'object', name: 'axis' },
|
|
33
|
-
{ type: 'object', name: 'legend' },
|
|
34
|
-
...nodeProps(mark),
|
|
35
|
-
])
|
|
36
|
-
export class View<
|
|
37
|
-
ViewProps extends ViewComposition = ViewComposition,
|
|
38
|
-
> extends CompositionNode<ViewProps> {
|
|
39
|
-
constructor(options = {}, type = 'view') {
|
|
40
|
-
super(options, type);
|
|
41
|
-
}
|
|
42
|
-
}
|
package/src/api/mark/index.ts
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { CompositeMarkType } from '../../spec';
|
|
2
|
-
import {
|
|
3
|
-
Interval,
|
|
4
|
-
Rect,
|
|
5
|
-
Point,
|
|
6
|
-
Area,
|
|
7
|
-
Line,
|
|
8
|
-
Cell,
|
|
9
|
-
Vector,
|
|
10
|
-
Link,
|
|
11
|
-
Polygon,
|
|
12
|
-
Image,
|
|
13
|
-
Text,
|
|
14
|
-
Box,
|
|
15
|
-
LineX,
|
|
16
|
-
LineY,
|
|
17
|
-
Range,
|
|
18
|
-
RangeX,
|
|
19
|
-
RangeY,
|
|
20
|
-
Connector,
|
|
21
|
-
Sankey,
|
|
22
|
-
Treemap,
|
|
23
|
-
Boxplot,
|
|
24
|
-
Density,
|
|
25
|
-
Heatmap,
|
|
26
|
-
Path,
|
|
27
|
-
Shape,
|
|
28
|
-
Pack,
|
|
29
|
-
ForceGraph,
|
|
30
|
-
Tree,
|
|
31
|
-
WordCloud,
|
|
32
|
-
Composite,
|
|
33
|
-
Gauge,
|
|
34
|
-
AxisX,
|
|
35
|
-
AxisY,
|
|
36
|
-
Legends,
|
|
37
|
-
} from './mark';
|
|
38
|
-
|
|
39
|
-
export interface Mark {
|
|
40
|
-
mark(Composite: CompositeMarkType): Composite;
|
|
41
|
-
interval(): Interval;
|
|
42
|
-
rect(): Rect;
|
|
43
|
-
point(): Point;
|
|
44
|
-
area(): Area;
|
|
45
|
-
line(): Line;
|
|
46
|
-
cell(): Cell;
|
|
47
|
-
vector(): Vector;
|
|
48
|
-
link(): Link;
|
|
49
|
-
polygon(): Polygon;
|
|
50
|
-
image(): Image;
|
|
51
|
-
text(): Text;
|
|
52
|
-
box(): Box;
|
|
53
|
-
lineX(): LineX;
|
|
54
|
-
lineY(): LineY;
|
|
55
|
-
range(): Range;
|
|
56
|
-
rangeX(): RangeX;
|
|
57
|
-
rangeY(): RangeY;
|
|
58
|
-
connector(): Connector;
|
|
59
|
-
sankey(): Sankey;
|
|
60
|
-
treemap(): Treemap;
|
|
61
|
-
boxplot(): Boxplot;
|
|
62
|
-
density(): Density;
|
|
63
|
-
heatmap(): Heatmap;
|
|
64
|
-
path(): Path;
|
|
65
|
-
shape(): Shape;
|
|
66
|
-
pack(): Pack;
|
|
67
|
-
forceGraph(): ForceGraph;
|
|
68
|
-
tree(): Tree;
|
|
69
|
-
wordCloud(): WordCloud;
|
|
70
|
-
gauge(): Gauge;
|
|
71
|
-
axisX(): AxisX;
|
|
72
|
-
axisY(): AxisY;
|
|
73
|
-
legends(): Legends;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export { MarkNode } from './base';
|
|
77
|
-
|
|
78
|
-
export const mark = {
|
|
79
|
-
mark: Composite,
|
|
80
|
-
interval: Interval,
|
|
81
|
-
rect: Rect,
|
|
82
|
-
point: Point,
|
|
83
|
-
area: Area,
|
|
84
|
-
line: Line,
|
|
85
|
-
cell: Cell,
|
|
86
|
-
vector: Vector,
|
|
87
|
-
link: Link,
|
|
88
|
-
polygon: Polygon,
|
|
89
|
-
image: Image,
|
|
90
|
-
text: Text,
|
|
91
|
-
box: Box,
|
|
92
|
-
lineX: LineX,
|
|
93
|
-
lineY: LineY,
|
|
94
|
-
range: Range,
|
|
95
|
-
rangeX: RangeX,
|
|
96
|
-
rangeY: RangeY,
|
|
97
|
-
connector: Connector,
|
|
98
|
-
sankey: Sankey,
|
|
99
|
-
treemap: Treemap,
|
|
100
|
-
boxplot: Boxplot,
|
|
101
|
-
density: Density,
|
|
102
|
-
heatmap: Heatmap,
|
|
103
|
-
path: Path,
|
|
104
|
-
shape: Shape,
|
|
105
|
-
pack: Pack,
|
|
106
|
-
forceGraph: ForceGraph,
|
|
107
|
-
tree: Tree,
|
|
108
|
-
wordCloud: WordCloud,
|
|
109
|
-
gauge: Gauge,
|
|
110
|
-
axisX: AxisX,
|
|
111
|
-
axisY: AxisY,
|
|
112
|
-
legends: Legends,
|
|
113
|
-
};
|