@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/lib/stdlib/index.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createLibrary = void 0;
|
|
4
|
-
const coordinate_1 = require("../coordinate");
|
|
5
|
-
const encode_1 = require("../encode");
|
|
6
|
-
const mark_1 = require("../mark");
|
|
7
|
-
const palette_1 = require("../palette");
|
|
8
|
-
const scale_1 = require("../scale");
|
|
9
|
-
const shape_1 = require("../shape");
|
|
10
|
-
const theme_1 = require("../theme");
|
|
11
|
-
const component_1 = require("../component");
|
|
12
|
-
const animation_1 = require("../animation");
|
|
13
|
-
const interaction_1 = require("../interaction");
|
|
14
|
-
const composition_1 = require("../composition");
|
|
15
|
-
const transform_1 = require("../transform");
|
|
16
|
-
const data_1 = require("../data");
|
|
17
|
-
const label_transform_1 = require("../label-transform");
|
|
18
|
-
const geo_1 = require("../geo");
|
|
19
|
-
function createLibrary() {
|
|
20
|
-
return Object.assign({ 'data.fetch': data_1.Fetch, 'data.inline': data_1.Inline, 'data.sortBy': data_1.SortBy, 'data.sort': data_1.Sort, 'data.filter': data_1.Filter, 'data.pick': data_1.Pick, 'data.rename': data_1.Rename, 'data.fold': data_1.Fold, 'data.slice': data_1.Slice, 'data.custom': data_1.Custom, 'data.map': data_1.Map, 'data.cluster': data_1.Cluster, 'data.tree': data_1.Tree, 'data.sankey': data_1.Sankey, 'data.arc': data_1.Arc, 'data.wordCloud': data_1.WordCloud, 'data.join': data_1.Join, 'data.kde': data_1.KDE, 'data.venn': data_1.Venn,
|
|
21
|
-
// 'transform.voronoi': Voronoi,
|
|
22
|
-
'transform.maybeZeroY1': transform_1.MaybeZeroY1, 'transform.maybeZeroX': transform_1.MaybeZeroX, 'transform.maybeStackY': transform_1.MaybeStackY, 'transform.maybeTitle': transform_1.MaybeTitle, 'transform.maybeSeries': transform_1.MaybeSeries, 'transform.maybeZeroPadding': transform_1.MaybeZeroPadding, 'transform.stackY': transform_1.StackY, 'transform.binX': transform_1.BinX, 'transform.bin': transform_1.Bin, 'transform.dodgeX': transform_1.DodgeX, 'transform.jitter': transform_1.Jitter, 'transform.jitterX': transform_1.JitterX, 'transform.symmetryY': transform_1.SymmetryY, 'transform.diffY': transform_1.DiffY, 'transform.stackEnter': transform_1.StackEnter, 'transform.normalizeY': transform_1.NormalizeY, 'transform.select': transform_1.Select, 'transform.selectX': transform_1.SelectX, 'transform.selectY': transform_1.SelectY, 'transform.groupX': transform_1.GroupX, 'transform.groupY': transform_1.GroupY, 'transform.groupColor': transform_1.GroupColor, 'transform.group': transform_1.Group, 'transform.maybeSize': transform_1.MaybeSize, 'transform.maybeZeroY': transform_1.MaybeZeroY, 'transform.maybeKey': transform_1.MaybeKey, 'transform.sortX': transform_1.SortX, 'transform.sortY': transform_1.SortY, 'transform.sortColor': transform_1.SortColor, 'transform.flexX': transform_1.FlexX, 'transform.maybeTupleY': transform_1.MaybeTupleY, 'transform.maybeTupleX': transform_1.MaybeTupleX, 'transform.maybeIdentityY': transform_1.MaybeIdentityY, 'transform.maybeIdentityX': transform_1.MaybeIdentityX, 'transform.maybeTuple': transform_1.MaybeTuple, 'transform.maybeVisualPosition': transform_1.MaybeVisualPosition, 'transform.maybeFunctionAttribute': transform_1.MaybeFunctionAttribute, 'transform.maybeGradient': transform_1.MaybeGradient, 'transform.maybeTooltip': transform_1.MaybeTooltip, 'transform.pack': transform_1.Pack, 'transform.sample': transform_1.Sample, 'transform.filter': transform_1.Filter, 'coordinate.cartesian': coordinate_1.Cartesian, 'coordinate.polar': coordinate_1.Polar, 'coordinate.helix': coordinate_1.Helix, 'coordinate.transpose': coordinate_1.Transpose, 'coordinate.theta': coordinate_1.Theta, 'coordinate.parallel': coordinate_1.Parallel, 'coordinate.fisheye': coordinate_1.Fisheye, 'coordinate.radial': coordinate_1.Radial, 'coordinate.radar': coordinate_1.Radar, 'encode.constant': encode_1.Constant, 'encode.field': encode_1.Field, 'encode.transform': encode_1.Transform, 'encode.column': encode_1.Column, 'mark.interval': mark_1.Interval, 'mark.rect': mark_1.Rect, 'mark.line': mark_1.Line, 'mark.point': mark_1.Point, 'mark.text': mark_1.Text, 'mark.cell': mark_1.Cell, 'mark.area': mark_1.Area, 'mark.link': mark_1.Link, 'mark.image': mark_1.Image, 'mark.polygon': mark_1.Polygon, 'mark.box': mark_1.Box, 'mark.vector': mark_1.Vector, 'mark.lineX': mark_1.LineX, 'mark.lineY': mark_1.LineY, 'mark.connector': mark_1.Connector, 'mark.range': mark_1.Range, 'mark.rangeX': mark_1.RangeX, 'mark.rangeY': mark_1.RangeY, 'mark.sankey': mark_1.Sankey, 'mark.path': mark_1.Path, 'mark.treemap': mark_1.Treemap, 'mark.pack': mark_1.Pack, 'mark.boxplot': mark_1.Boxplot, 'mark.shape': mark_1.Shape, 'mark.forceGraph': mark_1.ForceGraph, 'mark.gauge': mark_1.Gauge, 'mark.tree': mark_1.Tree, 'mark.wordCloud': mark_1.WordCloud, 'mark.density': mark_1.Density, 'mark.heatmap': mark_1.Heatmap, 'palette.category10': palette_1.Category10, 'palette.category20': palette_1.Category20, 'scale.linear': scale_1.Linear, 'scale.ordinal': scale_1.Ordinal, 'scale.band': scale_1.Band, 'scale.identity': scale_1.Identity, 'scale.point': scale_1.Point, 'scale.time': scale_1.Time, 'scale.log': scale_1.Log, 'scale.pow': scale_1.Pow, 'scale.sqrt': scale_1.Sqrt, 'scale.threshold': scale_1.Threshold, 'scale.quantile': scale_1.Quantile, 'scale.quantize': scale_1.Quantize, 'scale.sequential': scale_1.Sequential, 'scale.constant': scale_1.Constant, 'shape.interval.rect': shape_1.Rect, 'shape.interval.hollow': shape_1.HollowRect, 'shape.interval.funnel': shape_1.Funnel, 'shape.interval.pyramid': shape_1.Pyramid, 'shape.rect.rect': shape_1.Rect, 'shape.rect.hollow': shape_1.HollowRect, 'shape.cell.cell': shape_1.Rect, 'shape.cell.hollow': shape_1.HollowRect, 'shape.line.line': shape_1.Line, 'shape.line.hv': shape_1.HV, 'shape.line.vh': shape_1.VH, 'shape.line.hvh': shape_1.HVH, 'shape.line.trail': shape_1.Trail, 'shape.line.smooth': shape_1.Smooth, 'shape.point.bowtie': shape_1.Bowtie, 'shape.point.cross': shape_1.Cross, 'shape.point.diamond': shape_1.Diamond, 'shape.point.hexagon': shape_1.Hexagon, 'shape.point.hollowBowtie': shape_1.HollowBowtie, 'shape.point.hollowDiamond': shape_1.HollowDiamond, 'shape.point.hollowHexagon': shape_1.HollowHexagon, 'shape.point.hollow': shape_1.HollowPoint, 'shape.point.hollowSquare': shape_1.HollowSquare, 'shape.point.hollowTriangle': shape_1.HollowTriangle, 'shape.point.hollowTriangleDown': shape_1.HollowTriangleDown, 'shape.point.hyphen': shape_1.Hyphen, 'shape.point.line': shape_1.LinePoint, 'shape.point.plus': shape_1.Plus, 'shape.point.point': shape_1.Point, 'shape.point.square': shape_1.Square, 'shape.point.tick': shape_1.Tick, 'shape.point.triangle': shape_1.Triangle, 'shape.point.triangleDown': shape_1.TriangleDown, 'shape.text.text': shape_1.Text, 'shape.area.area': shape_1.Area, 'shape.area.smooth': shape_1.SmoothArea, 'shape.area.hvh': shape_1.HVHArea, 'shape.area.vh': shape_1.VHArea, 'shape.area.hv': shape_1.HVArea, 'shape.link.smooth': shape_1.SmoothEdge, 'shape.link.vhv': shape_1.VHVEdge, 'shape.link.arc': shape_1.Arc, 'shape.link.link': shape_1.Link, 'shape.image.image': shape_1.Image, 'shape.polygon.polygon': shape_1.Polygon, 'shape.polygon.ribbon': shape_1.Ribbon, 'shape.box.box': shape_1.Box, 'shape.box.violin': shape_1.Violin, 'shape.vector.vector': shape_1.Vector, 'shape.label.label': shape_1.Label, 'shape.text.badge': shape_1.Badge, 'shape.lineX.line': shape_1.LineXY, 'shape.lineY.line': shape_1.LineXY, 'shape.shape.shape': shape_1.Shape, 'shape.connector.connector': shape_1.Connector, 'shape.range.range': shape_1.Rect, 'shape.rangeX.range': shape_1.Rect, 'shape.rangeY.range': shape_1.Rect, 'shape.path.path': shape_1.Path, 'shape.path.hollow': shape_1.HollowPath, 'shape.density.density': shape_1.Density, 'shape.heatmap.heatmap': shape_1.Heatmap, 'theme.classic': theme_1.Classic, 'theme.classicDark': theme_1.ClassicDark, 'theme.academy': theme_1.Academy, 'component.axisX': component_1.AxisX, 'component.axisY': component_1.AxisY, 'component.axisRadar': component_1.AxisRadar, 'component.axisLinear': component_1.AxisLinear, 'component.axisArc': component_1.AxisArc, 'component.legendCategory': component_1.LegendCategory, 'component.legendContinuous': component_1.LegendContinuous, 'component.legendContinuousBlock': component_1.LegendContinuousBlock, 'component.legendContinuousBlockSize': component_1.LegendContinuousBlockSize, 'component.legendContinuousSize': component_1.LegendContinuousSize, 'component.legends': component_1.Legends, 'component.title': component_1.TitleComponent, 'component.sliderX': component_1.SliderX, 'component.sliderY': component_1.SliderY, 'component.scrollbarX': component_1.ScrollbarX, 'component.scrollbarY': component_1.ScrollbarY, 'animation.scaleInX': animation_1.ScaleInX, 'animation.scaleOutX': animation_1.ScaleOutX, 'animation.scaleInY': animation_1.ScaleInY, 'animation.scaleOutY': animation_1.ScaleOutY, 'animation.waveIn': animation_1.WaveIn, 'animation.fadeIn': animation_1.FadeIn, 'animation.fadeOut': animation_1.FadeOut, 'animation.zoomIn': animation_1.ZoomIn, 'animation.zoomOut': animation_1.ZoomOut, 'animation.pathIn': animation_1.PathIn, 'animation.morphing': animation_1.Morphing, 'animation.growInX': animation_1.GrowInX, 'animation.growInY': animation_1.GrowInY, 'interaction.elementHighlight': interaction_1.ElementHighlight, 'interaction.elementHighlightByX': interaction_1.ElementHighlightByX, 'interaction.elementHighlightByColor': interaction_1.ElementHighlightByColor, 'interaction.elementSelect': interaction_1.ElementSelect, 'interaction.elementSelectByX': interaction_1.ElementSelectByX, 'interaction.elementSelectByColor': interaction_1.ElementSelectByColor, 'interaction.fisheye': interaction_1.Fisheye, 'interaction.chartIndex': interaction_1.ChartIndex, 'interaction.tooltip': interaction_1.Tooltip, 'interaction.legendFilter': interaction_1.LegendFilter, 'interaction.legendHighlight': interaction_1.LegendHighlight, 'interaction.brushHighlight': interaction_1.BrushHighlight, 'interaction.brushXHighlight': interaction_1.BrushXHighlight, 'interaction.brushYHighlight': interaction_1.BrushYHighlight, 'interaction.brushAxisHighlight': interaction_1.BrushAxisHighlight, 'interaction.brushFilter': interaction_1.BrushFilter, 'interaction.brushXFilter': interaction_1.BrushXFilter, 'interaction.brushYFilter': interaction_1.BrushYFilter, 'interaction.sliderFilter': interaction_1.SliderFilter, 'interaction.scrollbarFilter': interaction_1.ScrollbarFilter, 'interaction.poptip': interaction_1.Poptip, 'interaction.event': interaction_1.Event, 'composition.spaceLayer': composition_1.SpaceLayer, 'composition.spaceFlex': composition_1.SpaceFlex, 'composition.mark': composition_1.Mark, 'composition.view': composition_1.View, 'composition.facetRect': composition_1.FacetRect, 'composition.repeatMatrix': composition_1.RepeatMatrix, 'composition.facetCircle': composition_1.FacetCircle, 'composition.timingKeyframe': composition_1.TimingKeyframe, 'labelTransform.overlapHide': label_transform_1.OverlapHide, 'labelTransform.overlapDodgeY': label_transform_1.OverlapDodgeY, 'labelTransform.overflowHide': label_transform_1.OverflowHide, 'labelTransform.contrastReverse': label_transform_1.ContrastReverse }, geo_1.geoLibrary);
|
|
23
|
-
}
|
|
24
|
-
exports.createLibrary = createLibrary;
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
package/lib/stdlib/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["stdlib/index.ts"],"names":[],"mappings":";;;AACA,8CAUuB;AACvB,sCAA+D;AAC/D,kCA+BiB;AACjB,wCAAoD;AACpD,oCAekB;AAClB,oCAuDkB;AAClB,oCAAyD;AACzD,4CAiBsB;AACtB,4CAcsB;AACtB,gDAuBwB;AACxB,gDAS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AAY,EACxC,6BAA6B,EAAE,6BAAe,EAC9C,4BAA4B,EAAE,4BAAc,EAC5C,6BAA6B,EAAE,6BAAe,EAC9C,6BAA6B,EAAE,6BAAe,EAC9C,gCAAgC,EAAE,gCAAkB,EACpD,yBAAyB,EAAE,yBAAW,EACtC,0BAA0B,EAAE,0BAAY,EACxC,0BAA0B,EAAE,0BAAY,EACxC,0BAA0B,EAAE,0BAAY,EACxC,6BAA6B,EAAE,6BAAe,EAC9C,oBAAoB,EAAE,oBAAM,EAC5B,mBAAmB,EAAE,mBAAK,EAC1B,wBAAwB,EAAE,wBAAU,EACpC,uBAAuB,EAAE,uBAAS,EAClC,kBAAkB,EAAE,kBAAI,EACxB,kBAAkB,EAAE,kBAAI,EACxB,uBAAuB,EAAE,uBAAS,EAClC,0BAA0B,EAAE,0BAAY,EACxC,yBAAyB,EAAE,yBAAW,EACtC,4BAA4B,EAAE,4BAAc,EAC5C,4BAA4B,EAAE,6BAAW,EACzC,8BAA8B,EAAE,+BAAa,EAC7C,6BAA6B,EAAE,8BAAY,EAC3C,gCAAgC,EAAE,iCAAe,IAC9C,gBAAU,EACb;AACJ,CAAC;AA7PD,sCA6PC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { FacetCircleComposition } 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 FacetCircleSpec = Concrete<FacetCircleComposition>;
|
|
13
|
-
|
|
14
|
-
export interface FacetCircle extends Composition, Mark {
|
|
15
|
-
data: ValueAttribute<FacetCircleSpec['data'], FacetCircle>;
|
|
16
|
-
transform: ArrayAttribute<FacetCircleSpec['transform'], FacetCircle>;
|
|
17
|
-
encode: ObjectAttribute<FacetCircleSpec['encode'], FacetCircle>;
|
|
18
|
-
scale: ObjectAttribute<FacetCircleSpec['scale'], FacetCircle>;
|
|
19
|
-
legend: ObjectAttribute<FacetCircleSpec['legend'], FacetCircle>;
|
|
20
|
-
axis: ObjectAttribute<FacetCircleSpec['axis'], FacetCircle>;
|
|
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: 'legend' },
|
|
29
|
-
{ type: 'object', name: 'axis' },
|
|
30
|
-
...nodeProps(mark),
|
|
31
|
-
])
|
|
32
|
-
export class FacetCircle extends CompositionNode<FacetCircleComposition> {
|
|
33
|
-
constructor() {
|
|
34
|
-
super({}, 'facetCircle');
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { FacetRectComposition } 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 FacetRectSpec = Concrete<FacetRectComposition>;
|
|
13
|
-
|
|
14
|
-
export interface FacetRect extends Composition, Mark {
|
|
15
|
-
data: ValueAttribute<FacetRectSpec['data'], FacetRect>;
|
|
16
|
-
transform: ArrayAttribute<FacetRectSpec['transform'], FacetRect>;
|
|
17
|
-
encode: ObjectAttribute<FacetRectSpec['encode'], FacetRect>;
|
|
18
|
-
scale: ObjectAttribute<FacetRectSpec['scale'], FacetRect>;
|
|
19
|
-
legend: ObjectAttribute<FacetRectSpec['legend'], FacetRect>;
|
|
20
|
-
axis: ObjectAttribute<FacetRectSpec['axis'], FacetRect>;
|
|
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: 'legend' },
|
|
29
|
-
{ type: 'object', name: 'axis' },
|
|
30
|
-
...nodeProps(mark),
|
|
31
|
-
])
|
|
32
|
-
export class FacetRect extends CompositionNode<FacetRectComposition> {
|
|
33
|
-
constructor() {
|
|
34
|
-
super({}, 'facetRect');
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { GeoPathComposition } from '../../spec';
|
|
2
|
-
import { defineProps, nodeProps } from '../props';
|
|
3
|
-
import { ValueAttribute, ObjectAttribute, Concrete } from '../types';
|
|
4
|
-
import { mark, Mark } from '../mark';
|
|
5
|
-
import { Composition, CompositionNode } from './index';
|
|
6
|
-
|
|
7
|
-
type GeoPathSpec = Concrete<GeoPathComposition>;
|
|
8
|
-
|
|
9
|
-
export interface GeoPath extends Mark, Composition {
|
|
10
|
-
data: ValueAttribute<GeoPathSpec['data'], GeoPath>;
|
|
11
|
-
coordinate: ValueAttribute<GeoPathSpec['coordinate'], GeoPath>;
|
|
12
|
-
interaction: ObjectAttribute<GeoPathSpec['interaction'], GeoPath>;
|
|
13
|
-
style: ObjectAttribute<GeoPathSpec['style'], GeoPath>;
|
|
14
|
-
theme: ObjectAttribute<GeoPathSpec['theme'], GeoPath>;
|
|
15
|
-
scale: ObjectAttribute<GeoPathSpec['scale'], GeoPath>;
|
|
16
|
-
encode: ObjectAttribute<GeoPathSpec['encode'], GeoPath>;
|
|
17
|
-
legend: ObjectAttribute<GeoPathSpec['legend'], GeoPath>;
|
|
18
|
-
state: ObjectAttribute<GeoPathSpec['state'], GeoPath>;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@defineProps([
|
|
22
|
-
{ type: 'value', name: 'data' },
|
|
23
|
-
{ type: 'value', name: 'coordinate' },
|
|
24
|
-
{ type: 'object', name: 'interaction' },
|
|
25
|
-
{ type: 'object', name: 'theme' },
|
|
26
|
-
{ type: 'object', name: 'style' },
|
|
27
|
-
{ type: 'object', name: 'scale' },
|
|
28
|
-
{ type: 'object', name: 'encode' },
|
|
29
|
-
{ type: 'object', name: 'legend' },
|
|
30
|
-
{ type: 'object', name: 'state' },
|
|
31
|
-
...nodeProps(mark),
|
|
32
|
-
])
|
|
33
|
-
export class GeoPath extends CompositionNode<GeoPathComposition> {
|
|
34
|
-
constructor() {
|
|
35
|
-
super({}, 'geoPath');
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -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
|
-
};
|