@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.js","sourceRoot":"src/","sources":["lib/core.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,KAAK,EACL,KAAK,EACL,SAAS,EACT,KAAK,EACL,QAAQ,EACR,OAAO,EACP,MAAM,EACN,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,OAAO,EACP,GAAG,EACH,MAAM,EACN,IAAI,EACJ,KAAK,EACL,KAAK,EACL,SAAS,EACT,KAAK,EACL,MAAM,EACN,MAAM,EACN,IAAI,EACJ,KAAK,EACL,OAAO,EACP,OAAO,GACR,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EACL,MAAM,IAAI,WAAW,EACrB,OAAO,IAAI,YAAY,EACvB,IAAI,IAAI,SAAS,EACjB,QAAQ,IAAI,YAAY,EACxB,KAAK,IAAI,UAAU,EACnB,IAAI,IAAI,SAAS,EACjB,GAAG,IAAI,QAAQ,EACf,GAAG,IAAI,QAAQ,EACf,SAAS,IAAI,cAAc,EAC3B,QAAQ,IAAI,aAAa,EACzB,QAAQ,IAAI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AoB,EAAE,QAAQ;QAC9B,mBAAmB,EAAE,OAAO;QAC5B,mBAAmB,EAAE,OAAO;QAC5B,8BAA8B,EAAE,gBAAgB;QAChD,iCAAiC,EAAE,mBAAmB;QACtD,qCAAqC,EAAE,uBAAuB;QAC9D,2BAA2B,EAAE,aAAa;QAC1C,8BAA8B,EAAE,gBAAgB;QAChD,kCAAkC,EAAE,oBAAoB;QACxD,qBAAqB,EAAE,YAAY;QACnC,wBAAwB,EAAE,UAAU;QACpC,qBAAqB,EAAE,OAAO;QAC9B,0BAA0B,EAAE,YAAY;QACxC,6BAA6B,EAAE,eAAe;QAC9C,4BAA4B,EAAE,cAAc;QAC5C,6BAA6B,EAAE,eAAe;QAC9C,6BAA6B,EAAE,eAAe;QAC9C,gCAAgC,EAAE,kBAAkB;QACpD,yBAAyB,EAAE,WAAW;QACtC,0BAA0B,EAAE,YAAY;QACxC,0BAA0B,EAAE,YAAY;QACxC,0BAA0B,EAAE,YAAY;QACxC,6BAA6B,EAAE,eAAe;QAC9C,oBAAoB,EAAE,MAAM;QAC5B,mBAAmB,EAAE,KAAK;QAC1B,wBAAwB,EAAE,UAAU;QACpC,uBAAuB,EAAE,SAAS;QAClC,kBAAkB,EAAE,IAAI;QACxB,kBAAkB,EAAE,IAAI;QACxB,uBAAuB,EAAE,SAAS;QAClC,0BAA0B,EAAE,YAAY;QACxC,yBAAyB,EAAE,WAAW;QACtC,4BAA4B,EAAE,cAAc;QAC5C,4BAA4B,EAAE,WAAW;QACzC,8BAA8B,EAAE,aAAa;QAC7C,6BAA6B,EAAE,YAAY;QAC3C,gCAAgC,EAAE,eAAe;KACzC,CAAC;AACb,CAAC"}
|
package/esm/lib/geo.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function geolib(): {
|
|
2
|
+
readonly 'composition.geoView': import("../runtime").CompositionComponent<import("../composition/geoView").GeoViewOptions>;
|
|
3
|
+
readonly 'composition.geoPath': import("../runtime").CompositionComponent<import("../composition/geoPath").GeoPathOptions>;
|
|
4
|
+
};
|
package/esm/lib/geo.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geo.js","sourceRoot":"src/","sources":["lib/geo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,MAAM,UAAU,MAAM;IACpB,OAAO;QACL,qBAAqB,EAAE,OAAO;QAC9B,qBAAqB,EAAE,OAAO;KACtB,CAAC;AACb,CAAC"}
|
package/esm/lib/graph.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph.js","sourceRoot":"src/","sources":["lib/graph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,UAAU,QAAQ;IACtB,OAAO;QACL,iBAAiB,EAAE,UAAU;QAC7B,WAAW,EAAE,IAAI;KACT,CAAC;AACb,CAAC"}
|
package/esm/lib/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Tooltip, LegendFilter, LegendHighlight, SliderFilter, Poptip, Event, ScrollbarFilter } from '../interaction';
|
|
2
|
+
/**
|
|
3
|
+
* In test stage, don't use it.
|
|
4
|
+
*/
|
|
5
|
+
export declare function litelib(): {
|
|
6
|
+
readonly 'data.inline': import("../runtime").DataComponent<import("../data").InlineOptions>;
|
|
7
|
+
readonly 'coordinate.cartesian': import("../runtime").CoordinateComponent<import("../coordinate").CartesianOptions>;
|
|
8
|
+
readonly 'encode.constant': import("../runtime").EncodeComponent<import("../encode").ConstantOptions>;
|
|
9
|
+
readonly 'encode.field': import("../runtime").EncodeComponent<import("../encode").FieldOptions>;
|
|
10
|
+
readonly 'encode.transform': import("../runtime").EncodeComponent<import("../encode").TransformOptions>;
|
|
11
|
+
readonly 'encode.column': import("../runtime").EncodeComponent<import("../encode").ColumnOptions>;
|
|
12
|
+
readonly 'mark.interval': import("../runtime").MarkComponent<import("../mark").IntervalOptions>;
|
|
13
|
+
readonly 'shape.label.label': import("../runtime").ShapeComponent<import("../shape").LabelShapeOptions>;
|
|
14
|
+
readonly 'palette.category10': import("../runtime").PaletteComponent<import("../palette").Category10Options>;
|
|
15
|
+
readonly 'palette.category20': import("../runtime").PaletteComponent<import("../palette").Category20Options>;
|
|
16
|
+
readonly 'scale.linear': import("../runtime").ScaleComponent<import("../scale").LinearOptions>;
|
|
17
|
+
readonly 'scale.ordinal': import("../runtime").ScaleComponent<import("../scale").OrdinalOptions>;
|
|
18
|
+
readonly 'scale.band': import("../runtime").ScaleComponent<import("../scale").BandOptions>;
|
|
19
|
+
readonly 'scale.identity': import("../runtime").ScaleComponent<import("../scale").IdentityOptions>;
|
|
20
|
+
readonly 'scale.point': import("../runtime").ScaleComponent<import("../scale").PointOptions>;
|
|
21
|
+
readonly 'scale.time': import("../runtime").ScaleComponent<import("../scale").TimeOptions>;
|
|
22
|
+
readonly 'scale.log': import("../runtime").ScaleComponent<import("../scale").LogOptions>;
|
|
23
|
+
readonly 'scale.pow': import("../runtime").ScaleComponent<import("../scale").PowOptions>;
|
|
24
|
+
readonly 'scale.sqrt': import("../runtime").ScaleComponent<import("../scale").SqrtOptions>;
|
|
25
|
+
readonly 'scale.threshold': import("../runtime").ScaleComponent<import("../scale").ThresholdOptions>;
|
|
26
|
+
readonly 'scale.quantile': import("../runtime").ScaleComponent<import("../scale").QuantileOptions>;
|
|
27
|
+
readonly 'scale.quantize': import("../runtime").ScaleComponent<import("../scale").QuantizeOptions>;
|
|
28
|
+
readonly 'scale.sequential': import("../runtime").ScaleComponent<import("../scale").SequentialOptions>;
|
|
29
|
+
readonly 'scale.constant': import("../runtime").ScaleComponent<import("../scale").ConstantOptions>;
|
|
30
|
+
readonly 'theme.classic': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
|
|
31
|
+
readonly 'component.axisX': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
|
|
32
|
+
readonly 'component.axisY': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
|
|
33
|
+
readonly 'component.axisRadar': import("../runtime").GuideComponentComponent<import("../component/axisRadar").AxisRadarOptions>;
|
|
34
|
+
readonly 'component.axisLinear': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
|
|
35
|
+
readonly 'component.axisArc': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
|
|
36
|
+
readonly 'component.legendCategory': import("../runtime").GuideComponentComponent<import("../component").LegendCategoryOptions>;
|
|
37
|
+
readonly 'component.legendContinuous': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
|
|
38
|
+
readonly 'component.legendContinuousBlock': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
|
|
39
|
+
readonly 'component.legendContinuousBlockSize': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
|
|
40
|
+
readonly 'component.legendContinuousSize': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
|
|
41
|
+
readonly 'component.legends': import("../runtime").GuideComponentComponent<import("../component").LegendsOptions>;
|
|
42
|
+
readonly 'component.title': import("../runtime").GuideComponentComponent<import("../runtime").G2Title>;
|
|
43
|
+
readonly 'component.sliderX': import("../runtime").GuideComponentComponent<import("../component/slider").SliderOptions>;
|
|
44
|
+
readonly 'component.sliderY': import("../runtime").GuideComponentComponent<import("../component/slider").SliderOptions>;
|
|
45
|
+
readonly 'component.scrollbarX': import("../runtime").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
|
|
46
|
+
readonly 'component.scrollbarY': import("../runtime").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
|
|
47
|
+
readonly 'animation.scaleInX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
48
|
+
readonly 'animation.scaleOutX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
49
|
+
readonly 'animation.scaleInY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
50
|
+
readonly 'animation.scaleOutY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
51
|
+
readonly 'animation.waveIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
52
|
+
readonly 'animation.fadeIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
53
|
+
readonly 'animation.fadeOut': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
54
|
+
readonly 'animation.morphing': import("../runtime").AnimationComponent<import("../animation").MorphingOptions>;
|
|
55
|
+
readonly 'interaction.tooltip': typeof Tooltip;
|
|
56
|
+
readonly 'interaction.legendFilter': typeof LegendFilter;
|
|
57
|
+
readonly 'interaction.legendHighlight': typeof LegendHighlight;
|
|
58
|
+
readonly 'interaction.sliderFilter': typeof SliderFilter;
|
|
59
|
+
readonly 'interaction.scrollbarFilter': typeof ScrollbarFilter;
|
|
60
|
+
readonly 'interaction.poptip': typeof Poptip;
|
|
61
|
+
readonly 'interaction.event': typeof Event;
|
|
62
|
+
readonly 'composition.mark': import("../runtime").CompositionComponent<import("../composition").MarkOptions>;
|
|
63
|
+
readonly 'composition.view': import("../runtime").CompositionComponent<import("../composition").ViewOptions>;
|
|
64
|
+
};
|
package/esm/lib/lite.js
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Cartesian } from '../coordinate';
|
|
2
|
+
import { Constant, Field, Transform, Column } from '../encode';
|
|
3
|
+
import { Interval } from '../mark';
|
|
4
|
+
import { Category10, Category20 } from '../palette';
|
|
5
|
+
import { Linear as ScaleLinear, Ordinal as ScaleOrdinal, Band as ScaleBand, Identity as ScaleIdenity, Point as ScalePoint, Time as ScaleTime, Log as ScaleLog, Pow as ScalePow, Threshold as ScaleThreshold, Quantile as ScaleQuantile, Quantize as ScaleQuantize, Sqrt as ScaleSqrt, Sequential as ScaleSequential, Constant as ScaleConstant, } from '../scale';
|
|
6
|
+
import { Classic } from '../theme';
|
|
7
|
+
import { AxisLinear, AxisArc, AxisX, AxisY, AxisRadar, LegendCategory, LegendContinuous, LegendContinuousBlock, LegendContinuousBlockSize, LegendContinuousSize, TitleComponent, SliderX, SliderY, ScrollbarX, ScrollbarY, Legends, } from '../component';
|
|
8
|
+
import { ScaleInX, ScaleOutX, ScaleInY, ScaleOutY, WaveIn, FadeIn, FadeOut, Morphing, } from '../animation';
|
|
9
|
+
import { Tooltip, LegendFilter, LegendHighlight, SliderFilter, Poptip, Event, ScrollbarFilter, } from '../interaction';
|
|
10
|
+
import { Mark, View } from '../composition';
|
|
11
|
+
import { LabelShape } from '../shape';
|
|
12
|
+
import { Inline } from '../data';
|
|
13
|
+
/**
|
|
14
|
+
* In test stage, don't use it.
|
|
15
|
+
*/
|
|
16
|
+
export function litelib() {
|
|
17
|
+
return {
|
|
18
|
+
'data.inline': Inline,
|
|
19
|
+
'coordinate.cartesian': Cartesian,
|
|
20
|
+
'encode.constant': Constant,
|
|
21
|
+
'encode.field': Field,
|
|
22
|
+
'encode.transform': Transform,
|
|
23
|
+
'encode.column': Column,
|
|
24
|
+
'mark.interval': Interval,
|
|
25
|
+
'shape.label.label': LabelShape,
|
|
26
|
+
'palette.category10': Category10,
|
|
27
|
+
'palette.category20': Category20,
|
|
28
|
+
'scale.linear': ScaleLinear,
|
|
29
|
+
'scale.ordinal': ScaleOrdinal,
|
|
30
|
+
'scale.band': ScaleBand,
|
|
31
|
+
'scale.identity': ScaleIdenity,
|
|
32
|
+
'scale.point': ScalePoint,
|
|
33
|
+
'scale.time': ScaleTime,
|
|
34
|
+
'scale.log': ScaleLog,
|
|
35
|
+
'scale.pow': ScalePow,
|
|
36
|
+
'scale.sqrt': ScaleSqrt,
|
|
37
|
+
'scale.threshold': ScaleThreshold,
|
|
38
|
+
'scale.quantile': ScaleQuantile,
|
|
39
|
+
'scale.quantize': ScaleQuantize,
|
|
40
|
+
'scale.sequential': ScaleSequential,
|
|
41
|
+
'scale.constant': ScaleConstant,
|
|
42
|
+
'theme.classic': Classic,
|
|
43
|
+
'component.axisX': AxisX,
|
|
44
|
+
'component.axisY': AxisY,
|
|
45
|
+
'component.axisRadar': AxisRadar,
|
|
46
|
+
'component.axisLinear': AxisLinear,
|
|
47
|
+
'component.axisArc': AxisArc,
|
|
48
|
+
'component.legendCategory': LegendCategory,
|
|
49
|
+
'component.legendContinuous': LegendContinuous,
|
|
50
|
+
'component.legendContinuousBlock': LegendContinuousBlock,
|
|
51
|
+
'component.legendContinuousBlockSize': LegendContinuousBlockSize,
|
|
52
|
+
'component.legendContinuousSize': LegendContinuousSize,
|
|
53
|
+
'component.legends': Legends,
|
|
54
|
+
'component.title': TitleComponent,
|
|
55
|
+
'component.sliderX': SliderX,
|
|
56
|
+
'component.sliderY': SliderY,
|
|
57
|
+
'component.scrollbarX': ScrollbarX,
|
|
58
|
+
'component.scrollbarY': ScrollbarY,
|
|
59
|
+
'animation.scaleInX': ScaleInX,
|
|
60
|
+
'animation.scaleOutX': ScaleOutX,
|
|
61
|
+
'animation.scaleInY': ScaleInY,
|
|
62
|
+
'animation.scaleOutY': ScaleOutY,
|
|
63
|
+
'animation.waveIn': WaveIn,
|
|
64
|
+
'animation.fadeIn': FadeIn,
|
|
65
|
+
'animation.fadeOut': FadeOut,
|
|
66
|
+
'animation.morphing': Morphing,
|
|
67
|
+
'interaction.tooltip': Tooltip,
|
|
68
|
+
'interaction.legendFilter': LegendFilter,
|
|
69
|
+
'interaction.legendHighlight': LegendHighlight,
|
|
70
|
+
'interaction.sliderFilter': SliderFilter,
|
|
71
|
+
'interaction.scrollbarFilter': ScrollbarFilter,
|
|
72
|
+
'interaction.poptip': Poptip,
|
|
73
|
+
'interaction.event': Event,
|
|
74
|
+
'composition.mark': Mark,
|
|
75
|
+
'composition.view': View,
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=lite.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lite.js","sourceRoot":"src/","sources":["lib/lite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EACL,MAAM,IAAI,WAAW,EACrB,OAAO,IAAI,YAAY,EACvB,IAAI,IAAI,SAAS,EACjB,QAAQ,IAAI,YAAY,EACxB,KAAK,IAAI,UAAU,EACnB,IAAI,IAAI,SAAS,EACjB,GAAG,IAAI,QAAQ,EACf,GAAG,IAAI,QAAQ,EACf,SAAS,IAAI,cAAc,EAC3B,QAAQ,IAAI,aAAa,EACzB,QAAQ,IAAI,aAAa,EACzB,IAAI,IAAI,SAAS,EACjB,UAAU,IAAI,eAAe,EAC7B,QAAQ,IAAI,aAAa,GAC1B,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EACL,UAAU,EACV,OAAO,EACP,KAAK,EACL,KAAK,EACL,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACrB,yBAAyB,EACzB,oBAAoB,E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AAK;QACxB,qBAAqB,EAAE,SAAS;QAChC,sBAAsB,EAAE,UAAU;QAClC,mBAAmB,EAAE,OAAO;QAC5B,0BAA0B,EAAE,cAAc;QAC1C,4BAA4B,EAAE,gBAAgB;QAC9C,iCAAiC,EAAE,qBAAqB;QACxD,qCAAqC,EAAE,yBAAyB;QAChE,gCAAgC,EAAE,oBAAoB;QACtD,mBAAmB,EAAE,OAAO;QAC5B,iBAAiB,EAAE,cAAc;QACjC,mBAAmB,EAAE,OAAO;QAC5B,mBAAmB,EAAE,OAAO;QAC5B,sBAAsB,EAAE,UAAU;QAClC,sBAAsB,EAAE,UAAU;QAClC,oBAAoB,EAAE,QAAQ;QAC9B,qBAAqB,EAAE,SAAS;QAChC,oBAAoB,EAAE,QAAQ;QAC9B,qBAAqB,EAAE,SAAS;QAChC,kBAAkB,EAAE,MAAM;QAC1B,kBAAkB,EAAE,MAAM;QAC1B,mBAAmB,EAAE,OAAO;QAC5B,oBAAoB,EAAE,QAAQ;QAC9B,qBAAqB,EAAE,OAAO;QAC9B,0BAA0B,EAAE,YAAY;QACxC,6BAA6B,EAAE,eAAe;QAC9C,0BAA0B,EAAE,YAAY;QACxC,6BAA6B,EAAE,eAAe;QAC9C,oBAAoB,EAAE,MAAM;QAC5B,mBAAmB,EAAE,KAAK;QAC1B,kBAAkB,EAAE,IAAI;QACxB,kBAAkB,EAAE,IAAI;KAChB,CAAC;AACb,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare function plotlib(): {
|
|
2
|
+
readonly 'data.venn': import("../runtime").DataComponent<import("../data").VennOptions>;
|
|
3
|
+
readonly 'data.arc': import("../runtime").DataComponent<import("../data").ArcOptions>;
|
|
4
|
+
readonly 'data.cluster': import("../runtime").DataComponent<import("../data").ClusterOptions>;
|
|
5
|
+
readonly 'mark.sankey': import("../runtime").CompositeMarkComponent<import("../mark").SankeyOptions>;
|
|
6
|
+
readonly 'mark.treemap': import("../runtime").CompositionComponent<import("../mark").TreemapOptions>;
|
|
7
|
+
readonly 'mark.boxplot': import("../runtime").CompositeMarkComponent<import("../mark/boxplot").BoxPlotOptions>;
|
|
8
|
+
readonly 'mark.pack': import("../runtime").CompositionComponent<import("../mark").PackOptions>;
|
|
9
|
+
readonly 'mark.gauge': import("../runtime").CompositeMarkComponent<import("../mark").GaugeOptions>;
|
|
10
|
+
readonly 'mark.wordCloud': import("../runtime").CompositeMarkComponent<import("../mark").WordCloudOptions>;
|
|
11
|
+
};
|
package/esm/lib/plot.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Sankey, Treemap, Pack, Boxplot, WordCloud, Gauge } from '../mark';
|
|
2
|
+
import { Arc, Cluster, Venn } from '../data';
|
|
3
|
+
export function plotlib() {
|
|
4
|
+
return {
|
|
5
|
+
'data.venn': Venn,
|
|
6
|
+
'data.arc': Arc,
|
|
7
|
+
'data.cluster': Cluster,
|
|
8
|
+
'mark.sankey': Sankey,
|
|
9
|
+
'mark.treemap': Treemap,
|
|
10
|
+
'mark.boxplot': Boxplot,
|
|
11
|
+
'mark.pack': Pack,
|
|
12
|
+
'mark.gauge': Gauge,
|
|
13
|
+
'mark.wordCloud': WordCloud,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=plot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plot.js","sourceRoot":"src/","sources":["lib/plot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3E,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,UAAU,OAAO;IACrB,OAAO;QACL,WAAW,EAAE,IAAI;QACjB,UAAU,EAAE,GAAG;QACf,cAAc,EAAE,OAAO;QACvB,aAAa,EAAE,MAAM;QACrB,cAAc,EAAE,OAAO;QACvB,cAAc,EAAE,OAAO;QACvB,WAAW,EAAE,IAAI;QACjB,YAAY,EAAE,KAAK;QACnB,gBAAgB,EAAE,SAAS;KACnB,CAAC;AACb,CAAC"}
|
package/esm/lib/std.d.ts
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
export declare function stdlib(): {
|
|
2
|
+
readonly 'data.fetch': import("../runtime").DataComponent<import("../data").FetchOptions>;
|
|
3
|
+
readonly 'data.inline': import("../runtime").DataComponent<import("../data").InlineOptions>;
|
|
4
|
+
readonly 'data.sortBy': import("../runtime").DataComponent<import("../data").SortByOptions>;
|
|
5
|
+
readonly 'data.sort': import("../runtime").DataComponent<import("../data").SortOptions>;
|
|
6
|
+
readonly 'data.filter': import("../runtime").DataComponent<import("../data").FilterDataOptions>;
|
|
7
|
+
readonly 'data.pick': import("../runtime").DataComponent<import("../data").PickOptions>;
|
|
8
|
+
readonly 'data.rename': import("../runtime").DataComponent<import("../data").RenameOptions>;
|
|
9
|
+
readonly 'data.fold': import("../runtime").DataComponent<import("../data").FoldOptions>;
|
|
10
|
+
readonly 'data.slice': import("../runtime").DataComponent<import("../data").SliceOptions>;
|
|
11
|
+
readonly 'data.custom': import("../runtime").DataComponent<import("../data").CustomOptions>;
|
|
12
|
+
readonly 'data.map': import("../runtime").DataComponent<import("../data").MapOptions>;
|
|
13
|
+
readonly 'data.join': import("../runtime").DataComponent<import("../data").JoinOptions>;
|
|
14
|
+
readonly 'data.kde': import("../runtime").DataComponent<import("../data").KDEOptions>;
|
|
15
|
+
readonly 'transform.stackY': import("../runtime").TransformComponent<import("../transform").StackYOptions>;
|
|
16
|
+
readonly 'transform.binX': import("../runtime").TransformComponent<import("../transform").BinXOptions>;
|
|
17
|
+
readonly 'transform.bin': import("../runtime").TransformComponent<import("../transform").BinOptions>;
|
|
18
|
+
readonly 'transform.dodgeX': import("../runtime").TransformComponent<import("../transform").DodgeXOptions>;
|
|
19
|
+
readonly 'transform.jitter': import("../runtime").TransformComponent<import("../transform").JitterOptions>;
|
|
20
|
+
readonly 'transform.jitterX': import("../runtime").TransformComponent<import("../transform").JitterXOptions>;
|
|
21
|
+
readonly 'transform.symmetryY': import("../runtime").TransformComponent<import("../transform").SymmetryYOptions>;
|
|
22
|
+
readonly 'transform.diffY': import("../runtime").TransformComponent<import("../transform").DiffYOptions>;
|
|
23
|
+
readonly 'transform.stackEnter': import("../runtime").TransformComponent<import("../transform").StackEnterOptions>;
|
|
24
|
+
readonly 'transform.normalizeY': import("../runtime").TransformComponent<import("../transform").NormalizeYOptions>;
|
|
25
|
+
readonly 'transform.select': import("../runtime").TransformComponent<import("../transform").SelectOptions>;
|
|
26
|
+
readonly 'transform.selectX': import("../runtime").TransformComponent<import("../transform").SelectXOptions>;
|
|
27
|
+
readonly 'transform.selectY': import("../runtime").TransformComponent<import("../transform").SelectYOptions>;
|
|
28
|
+
readonly 'transform.groupX': import("../runtime").TransformComponent<import("../transform").GroupXOptions>;
|
|
29
|
+
readonly 'transform.groupY': import("../runtime").TransformComponent<import("../transform").GroupYOptions>;
|
|
30
|
+
readonly 'transform.groupColor': import("../runtime").TransformComponent<import("../transform").GroupColorOptions>;
|
|
31
|
+
readonly 'transform.group': import("../runtime").TransformComponent<import("../transform").GroupOptions>;
|
|
32
|
+
readonly 'transform.sortX': import("../runtime").TransformComponent<import("../transform").SortXOptions>;
|
|
33
|
+
readonly 'transform.sortY': import("../runtime").TransformComponent<import("../transform").SortYOptions>;
|
|
34
|
+
readonly 'transform.sortColor': import("../runtime").TransformComponent<import("../transform").SortColorOptions>;
|
|
35
|
+
readonly 'transform.flexX': import("../runtime").TransformComponent<import("../transform").FlexXOptions>;
|
|
36
|
+
readonly 'transform.pack': import("../runtime").TransformComponent<import("../transform").PackOptions>;
|
|
37
|
+
readonly 'transform.sample': import("../runtime").TransformComponent<import("../transform").SampleOptions>;
|
|
38
|
+
readonly 'transform.filter': import("../runtime").TransformComponent<import("../transform").FilterOptions>;
|
|
39
|
+
readonly 'coordinate.cartesian': import("../runtime").CoordinateComponent<import("../coordinate").CartesianOptions>;
|
|
40
|
+
readonly 'coordinate.polar': import("../runtime").CoordinateComponent<import("../coordinate").PolarOptions>;
|
|
41
|
+
readonly 'coordinate.helix': import("../runtime").CoordinateComponent<import("..").HelixCoordinate>;
|
|
42
|
+
readonly 'coordinate.transpose': import("../runtime").CoordinateComponent<import("../coordinate").TransposeOptions>;
|
|
43
|
+
readonly 'coordinate.theta': import("../runtime").CoordinateComponent<import("..").ThetaCoordinate>;
|
|
44
|
+
readonly 'coordinate.parallel': import("../runtime").CoordinateComponent<import("../coordinate").ParallelOptions>;
|
|
45
|
+
readonly 'coordinate.fisheye': import("../runtime").CoordinateComponent<import("..").FisheyeCoordinate>;
|
|
46
|
+
readonly 'coordinate.radial': import("../runtime").CoordinateComponent<import("../coordinate").RadialOptions>;
|
|
47
|
+
readonly 'coordinate.radar': import("../runtime").CoordinateComponent<import("..").RadarCoordinate>;
|
|
48
|
+
readonly 'encode.constant': import("../runtime").EncodeComponent<import("../encode").ConstantOptions>;
|
|
49
|
+
readonly 'encode.field': import("../runtime").EncodeComponent<import("../encode").FieldOptions>;
|
|
50
|
+
readonly 'encode.transform': import("../runtime").EncodeComponent<import("../encode").TransformOptions>;
|
|
51
|
+
readonly 'encode.column': import("../runtime").EncodeComponent<import("../encode").ColumnOptions>;
|
|
52
|
+
readonly 'mark.interval': import("../runtime").MarkComponent<import("..").IntervalOptions>;
|
|
53
|
+
readonly 'mark.rect': import("../runtime").MarkComponent<import("..").RectOptions>;
|
|
54
|
+
readonly 'mark.line': import("../runtime").MarkComponent<import("..").LineOptions>;
|
|
55
|
+
readonly 'mark.point': import("../runtime").MarkComponent<import("..").PointOptions>;
|
|
56
|
+
readonly 'mark.text': import("../runtime").MarkComponent<import("..").TextOptions>;
|
|
57
|
+
readonly 'mark.cell': import("../runtime").MarkComponent<import("..").CellOptions>;
|
|
58
|
+
readonly 'mark.area': import("../runtime").MarkComponent<import("..").AreaOptions>;
|
|
59
|
+
readonly 'mark.link': import("../runtime").MarkComponent<import("..").LinkOptions>;
|
|
60
|
+
readonly 'mark.image': import("../runtime").MarkComponent<import("..").ImageOptions>;
|
|
61
|
+
readonly 'mark.polygon': import("../runtime").MarkComponent<import("..").PolygonOptions>;
|
|
62
|
+
readonly 'mark.box': import("../runtime").MarkComponent<import("..").BoxOptions>;
|
|
63
|
+
readonly 'mark.vector': import("../runtime").MarkComponent<import("..").VectorOptions>;
|
|
64
|
+
readonly 'mark.lineX': import("../runtime").MarkComponent<import("..").LineXOptions>;
|
|
65
|
+
readonly 'mark.lineY': import("../runtime").MarkComponent<import("..").LineYOptions>;
|
|
66
|
+
readonly 'mark.connector': import("../runtime").MarkComponent<import("..").ConnectorOptions>;
|
|
67
|
+
readonly 'mark.range': import("../runtime").MarkComponent<import("..").RangeOptions>;
|
|
68
|
+
readonly 'mark.rangeX': import("../runtime").MarkComponent<import("..").RangeXOptions>;
|
|
69
|
+
readonly 'mark.rangeY': import("../runtime").MarkComponent<import("..").RangeYOptions>;
|
|
70
|
+
readonly 'mark.path': import("../runtime").MarkComponent<import("../mark/path").PathOptions>;
|
|
71
|
+
readonly 'mark.shape': import("../runtime").MarkComponent<import("..").ShapeOptions>;
|
|
72
|
+
readonly 'mark.density': import("../runtime").MarkComponent<import("..").DensityOptions>;
|
|
73
|
+
readonly 'mark.heatmap': import("../runtime").MarkComponent<import("..").HeatmapOptions>;
|
|
74
|
+
readonly 'shape.label.label': import("../runtime").ShapeComponent<import("../shape").LabelShapeOptions>;
|
|
75
|
+
readonly 'palette.category10': import("../runtime").PaletteComponent<import("../palette").Category10Options>;
|
|
76
|
+
readonly 'palette.category20': import("../runtime").PaletteComponent<import("../palette").Category20Options>;
|
|
77
|
+
readonly 'scale.linear': import("../runtime").ScaleComponent<import("../scale").LinearOptions>;
|
|
78
|
+
readonly 'scale.ordinal': import("../runtime").ScaleComponent<import("../scale").OrdinalOptions>;
|
|
79
|
+
readonly 'scale.band': import("../runtime").ScaleComponent<import("../scale").BandOptions>;
|
|
80
|
+
readonly 'scale.identity': import("../runtime").ScaleComponent<import("../scale").IdentityOptions>;
|
|
81
|
+
readonly 'scale.point': import("../runtime").ScaleComponent<import("../scale").PointOptions>;
|
|
82
|
+
readonly 'scale.time': import("../runtime").ScaleComponent<import("../scale").TimeOptions>;
|
|
83
|
+
readonly 'scale.log': import("../runtime").ScaleComponent<import("../scale").LogOptions>;
|
|
84
|
+
readonly 'scale.pow': import("../runtime").ScaleComponent<import("../scale").PowOptions>;
|
|
85
|
+
readonly 'scale.sqrt': import("../runtime").ScaleComponent<import("../scale").SqrtOptions>;
|
|
86
|
+
readonly 'scale.threshold': import("../runtime").ScaleComponent<import("../scale").ThresholdOptions>;
|
|
87
|
+
readonly 'scale.quantile': import("../runtime").ScaleComponent<import("../scale").QuantileOptions>;
|
|
88
|
+
readonly 'scale.quantize': import("../runtime").ScaleComponent<import("../scale").QuantizeOptions>;
|
|
89
|
+
readonly 'scale.sequential': import("../runtime").ScaleComponent<import("../scale").SequentialOptions>;
|
|
90
|
+
readonly 'scale.constant': import("../runtime").ScaleComponent<import("../scale").ConstantOptions>;
|
|
91
|
+
readonly 'theme.classic': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
|
|
92
|
+
readonly 'theme.classicDark': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
|
|
93
|
+
readonly 'theme.academy': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
|
|
94
|
+
readonly 'component.axisX': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
|
|
95
|
+
readonly 'component.axisY': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
|
|
96
|
+
readonly 'component.axisRadar': import("../runtime").GuideComponentComponent<import("../component/axisRadar").AxisRadarOptions>;
|
|
97
|
+
readonly 'component.axisLinear': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
|
|
98
|
+
readonly 'component.axisArc': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
|
|
99
|
+
readonly 'component.legendCategory': import("../runtime").GuideComponentComponent<import("../component").LegendCategoryOptions>;
|
|
100
|
+
readonly 'component.legendContinuous': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
|
|
101
|
+
readonly 'component.legendContinuousBlock': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
|
|
102
|
+
readonly 'component.legendContinuousBlockSize': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
|
|
103
|
+
readonly 'component.legendContinuousSize': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
|
|
104
|
+
readonly 'component.legends': import("../runtime").GuideComponentComponent<import("../component").LegendsOptions>;
|
|
105
|
+
readonly 'component.title': import("../runtime").GuideComponentComponent<import("../runtime").G2Title>;
|
|
106
|
+
readonly 'component.sliderX': import("../runtime").GuideComponentComponent<import("../component/slider").SliderOptions>;
|
|
107
|
+
readonly 'component.sliderY': import("../runtime").GuideComponentComponent<import("../component/slider").SliderOptions>;
|
|
108
|
+
readonly 'component.scrollbarX': import("../runtime").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
|
|
109
|
+
readonly 'component.scrollbarY': import("../runtime").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
|
|
110
|
+
readonly 'animation.scaleInX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
111
|
+
readonly 'animation.scaleOutX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
112
|
+
readonly 'animation.scaleInY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
113
|
+
readonly 'animation.scaleOutY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
114
|
+
readonly 'animation.waveIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
115
|
+
readonly 'animation.fadeIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
116
|
+
readonly 'animation.fadeOut': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
117
|
+
readonly 'animation.zoomIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
118
|
+
readonly 'animation.zoomOut': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
119
|
+
readonly 'animation.pathIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
120
|
+
readonly 'animation.morphing': import("../runtime").AnimationComponent<import("../animation").MorphingOptions>;
|
|
121
|
+
readonly 'animation.growInX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
122
|
+
readonly 'animation.growInY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
123
|
+
readonly 'interaction.elementHighlight': typeof import("../interaction").ElementHighlight;
|
|
124
|
+
readonly 'interaction.elementHighlightByX': typeof import("../interaction").ElementHighlightByX;
|
|
125
|
+
readonly 'interaction.elementHighlightByColor': typeof import("../interaction").ElementHighlightByColor;
|
|
126
|
+
readonly 'interaction.elementSelect': typeof import("../interaction").ElementSelect;
|
|
127
|
+
readonly 'interaction.elementSelectByX': typeof import("../interaction").ElementSelectByX;
|
|
128
|
+
readonly 'interaction.elementSelectByColor': typeof import("../interaction").ElementSelectByColor;
|
|
129
|
+
readonly 'interaction.fisheye': typeof import("../interaction").Fisheye;
|
|
130
|
+
readonly 'interaction.chartIndex': typeof import("../interaction").ChartIndex;
|
|
131
|
+
readonly 'interaction.tooltip': typeof import("../interaction").Tooltip;
|
|
132
|
+
readonly 'interaction.legendFilter': typeof import("../interaction").LegendFilter;
|
|
133
|
+
readonly 'interaction.legendHighlight': typeof import("../interaction").LegendHighlight;
|
|
134
|
+
readonly 'interaction.brushHighlight': typeof import("../interaction").BrushHighlight;
|
|
135
|
+
readonly 'interaction.brushXHighlight': typeof import("../interaction").BrushXHighlight;
|
|
136
|
+
readonly 'interaction.brushYHighlight': typeof import("../interaction").BrushYHighlight;
|
|
137
|
+
readonly 'interaction.brushAxisHighlight': typeof import("../interaction").BrushAxisHighlight;
|
|
138
|
+
readonly 'interaction.brushFilter': typeof import("../interaction").BrushFilter;
|
|
139
|
+
readonly 'interaction.brushXFilter': typeof import("../interaction").BrushXFilter;
|
|
140
|
+
readonly 'interaction.brushYFilter': typeof import("../interaction").BrushYFilter;
|
|
141
|
+
readonly 'interaction.sliderFilter': typeof import("../interaction").SliderFilter;
|
|
142
|
+
readonly 'interaction.scrollbarFilter': typeof import("../interaction").ScrollbarFilter;
|
|
143
|
+
readonly 'interaction.poptip': typeof import("../interaction").Poptip;
|
|
144
|
+
readonly 'interaction.event': typeof import("../interaction").Event;
|
|
145
|
+
readonly 'composition.spaceLayer': import("../runtime").CompositionComponent<import("../composition").SpaceLayerOptions>;
|
|
146
|
+
readonly 'composition.spaceFlex': import("../runtime").CompositionComponent<import("../composition").SpaceFlexOptions>;
|
|
147
|
+
readonly 'composition.mark': import("../runtime").CompositionComponent<import("../composition").MarkOptions>;
|
|
148
|
+
readonly 'composition.view': import("../runtime").CompositionComponent<import("../composition").ViewOptions>;
|
|
149
|
+
readonly 'composition.facetRect': import("../runtime").CompositionComponent<import("../composition").FacetRectOptions>;
|
|
150
|
+
readonly 'composition.repeatMatrix': import("../runtime").CompositionComponent<import("..").RepeatMatrixComposition>;
|
|
151
|
+
readonly 'composition.facetCircle': import("../runtime").CompositionComponent<import("..").FacetCircleComposition>;
|
|
152
|
+
readonly 'composition.timingKeyframe': import("../runtime").CompositionComponent<import("../composition").TimingKeyframeOptions>;
|
|
153
|
+
readonly 'labelTransform.overlapHide': import("../runtime").LabelTransformComponent<import("../label-transform").OverlapHideOptions>;
|
|
154
|
+
readonly 'labelTransform.overlapDodgeY': import("../runtime").LabelTransformComponent<import("../label-transform").OverlapDodgeYOptions>;
|
|
155
|
+
readonly 'labelTransform.overflowHide': import("../runtime").LabelTransformComponent<import("../label-transform").OverflowHideOptions>;
|
|
156
|
+
readonly 'labelTransform.contrastReverse': import("../runtime").LabelTransformComponent<import("../label-transform").ContrastReverseOptions>;
|
|
157
|
+
readonly 'data.venn': import("../runtime").DataComponent<import("../data").VennOptions>;
|
|
158
|
+
readonly 'data.arc': import("../runtime").DataComponent<import("../data").ArcOptions>;
|
|
159
|
+
readonly 'data.cluster': import("../runtime").DataComponent<import("../data").ClusterOptions>;
|
|
160
|
+
readonly 'mark.sankey': import("../runtime").CompositeMarkComponent<import("..").SankeyOptions>;
|
|
161
|
+
readonly 'mark.treemap': import("../runtime").CompositionComponent<import("..").TreemapOptions>;
|
|
162
|
+
readonly 'mark.boxplot': import("../runtime").CompositeMarkComponent<import("../mark/boxplot").BoxPlotOptions>;
|
|
163
|
+
readonly 'mark.pack': import("../runtime").CompositionComponent<import("..").PackOptions>;
|
|
164
|
+
readonly 'mark.gauge': import("../runtime").CompositeMarkComponent<import("..").GaugeOptions>;
|
|
165
|
+
readonly 'mark.wordCloud': import("../runtime").CompositeMarkComponent<import("..").WordCloudOptions>;
|
|
166
|
+
readonly 'mark.forceGraph': import("../runtime").CompositeMarkComponent<import("..").ForceGraphOptions>;
|
|
167
|
+
readonly 'mark.tree': import("../runtime").CompositeMarkComponent<import("..").TreeOptions>;
|
|
168
|
+
readonly 'composition.geoView': import("../runtime").CompositionComponent<import("../composition/geoView").GeoViewOptions>;
|
|
169
|
+
readonly 'composition.geoPath': import("../runtime").CompositionComponent<import("../composition/geoPath").GeoPathOptions>;
|
|
170
|
+
};
|
package/esm/lib/std.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { corelib } from './core';
|
|
2
|
+
import { geolib } from './geo';
|
|
3
|
+
import { graphlib } from './graph';
|
|
4
|
+
import { plotlib } from './plot';
|
|
5
|
+
export function stdlib() {
|
|
6
|
+
return Object.assign(Object.assign(Object.assign(Object.assign({}, geolib()), graphlib()), plotlib()), corelib());
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=std.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"std.js","sourceRoot":"src/","sources":["lib/std.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEjC,MAAM,UAAU,MAAM;IACpB,OAAO,4DACF,MAAM,EAAE,GACR,QAAQ,EAAE,GACV,OAAO,EAAE,GACT,OAAO,EAAE,CACJ,CAAC;AACb,CAAC"}
|
package/esm/mark/area.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { group } from 'd3-array';
|
|
2
|
+
import { AreaShape, AreaHV, AreaHVH, AreaSmooth, AreaVH } from '../shape';
|
|
3
|
+
import { MaybeSeries, MaybeZeroY1, MaybeZeroPadding } from '../transform';
|
|
2
4
|
import { baseGeometryChannels, basePostInference, basePreInference, tooltip1d, } from './utils';
|
|
5
|
+
const shape = {
|
|
6
|
+
area: AreaShape,
|
|
7
|
+
smooth: AreaSmooth,
|
|
8
|
+
hvh: AreaHVH,
|
|
9
|
+
vh: AreaVH,
|
|
10
|
+
hv: AreaHV,
|
|
11
|
+
};
|
|
3
12
|
/*
|
|
4
13
|
* Convert value for each channel to area shapes.
|
|
5
14
|
*
|
|
@@ -49,13 +58,13 @@ export const Area = () => {
|
|
|
49
58
|
return [I, P, series];
|
|
50
59
|
};
|
|
51
60
|
};
|
|
52
|
-
const shapes = ['area', 'smooth', 'hvh', 'hv', 'vh'];
|
|
53
61
|
Area.props = {
|
|
54
62
|
defaultShape: 'area',
|
|
55
63
|
defaultLabelShape: 'label',
|
|
56
64
|
composite: false,
|
|
65
|
+
shape,
|
|
57
66
|
channels: [
|
|
58
|
-
...baseGeometryChannels({ shapes }),
|
|
67
|
+
...baseGeometryChannels({ shapes: Object.keys(shape) }),
|
|
59
68
|
{ name: 'x', required: true },
|
|
60
69
|
{ name: 'y', required: true },
|
|
61
70
|
{ name: 'size' },
|
|
@@ -63,9 +72,9 @@ Area.props = {
|
|
|
63
72
|
],
|
|
64
73
|
preInference: [
|
|
65
74
|
...basePreInference(),
|
|
66
|
-
{ type:
|
|
67
|
-
{ type:
|
|
68
|
-
{ type:
|
|
75
|
+
{ type: MaybeSeries },
|
|
76
|
+
{ type: MaybeZeroY1 },
|
|
77
|
+
{ type: MaybeZeroPadding },
|
|
69
78
|
],
|
|
70
79
|
postInference: [...basePostInference(), ...tooltip1d()],
|
|
71
80
|
interaction: {
|
package/esm/mark/area.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"area.js","sourceRoot":"src/","sources":["mark/area.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGjC,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EAChB,SAAS,GACV,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"area.js","sourceRoot":"src/","sources":["mark/area.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGjC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EAChB,SAAS,GACV,MAAM,SAAS,CAAC;AAEjB,MAAM,KAAK,GAAG;IACZ,IAAI,EAAE,SAAS;IACf,MAAM,EAAE,UAAU;IAClB,GAAG,EAAE,OAAO;IACZ,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,MAAM;CACX,CAAC;AAIF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,MAAM,CAAC,MAAM,IAAI,GAAoB,GAAG,EAAE;IACxC,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE;;QACzC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EAAE,CAAC;IACvD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;QAClB,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,IAAI;KACjB;CACF,CAAC"}
|
package/esm/mark/box.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
import { BoxShape, BoxViolin } from '../shape';
|
|
2
|
+
import { MaybeZeroX } from '../transform';
|
|
1
3
|
import { baseGeometryChannels, basePostInference, basePreInference, tooltip1d, } from './utils';
|
|
4
|
+
const shape = {
|
|
5
|
+
box: BoxShape,
|
|
6
|
+
violin: BoxViolin,
|
|
7
|
+
};
|
|
2
8
|
/**
|
|
3
9
|
* Convert value for each channel to box shapes.
|
|
4
10
|
*
|
|
@@ -74,13 +80,14 @@ Box.props = {
|
|
|
74
80
|
defaultShape: 'box',
|
|
75
81
|
defaultLabelShape: 'label',
|
|
76
82
|
composite: false,
|
|
83
|
+
shape,
|
|
77
84
|
channels: [
|
|
78
|
-
...baseGeometryChannels({ shapes:
|
|
85
|
+
...baseGeometryChannels({ shapes: Object.keys(shape) }),
|
|
79
86
|
{ name: 'x', scale: 'band', required: true },
|
|
80
87
|
{ name: 'y', required: true },
|
|
81
88
|
{ name: 'series', scale: 'band' },
|
|
82
89
|
],
|
|
83
|
-
preInference: [...basePreInference(), { type:
|
|
90
|
+
preInference: [...basePreInference(), { type: MaybeZeroX }],
|
|
84
91
|
postInference: [...basePostInference(), ...tooltip1d()],
|
|
85
92
|
interaction: {
|
|
86
93
|
shareTooltip: true,
|
package/esm/mark/box.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"box.js","sourceRoot":"src/","sources":["mark/box.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EAChB,SAAS,GACV,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"box.js","sourceRoot":"src/","sources":["mark/box.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,Q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AAC,CAAC,GAAG,KAAK,GAAG,CAAC,EAAE,GAAG,CAAC;aACrB,CAAC;YAEF,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAc,CAAC;QACxD,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,GAAG,CAAC,KAAK,GAAG;IACV,YAAY,EAAE,KAAK;IACnB,iBAAiB,EAAE,OAAO;IAC1B,SAAS,EAAE,KAAK;IAChB,KAAK;IACL,QAAQ,EAAE;QACR,GAAG,oBAAoB,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QACvD,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC5C,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC7B,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE;KAClC;IACD,YAAY,EAAE,CAAC,GAAG,gBAAgB,EAAE,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;IAC3D,aAAa,EAAE,CAAC,GAAG,iBAAiB,EAAE,EAAE,GAAG,SAAS,EAAE,CAAC;IACvD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC"}
|
package/esm/mark/cell.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
import { CellShape, CellHollow } from '../shape';
|
|
2
|
+
import { MaybeZeroX, MaybeZeroY, MaybeZeroPadding } from '../transform';
|
|
1
3
|
import { baseGeometryChannels, basePostInference, basePreInference, tooltip2d, } from './utils';
|
|
4
|
+
const shape = {
|
|
5
|
+
cell: CellShape,
|
|
6
|
+
hollow: CellHollow,
|
|
7
|
+
};
|
|
2
8
|
/**
|
|
3
9
|
* Convert value for each channel to Cell shapes.
|
|
4
10
|
* Calc the bbox of each Cell based on x, y and r.
|
|
@@ -23,21 +29,21 @@ export const Cell = () => {
|
|
|
23
29
|
return [index, P];
|
|
24
30
|
};
|
|
25
31
|
};
|
|
26
|
-
const shapes = ['cell', 'hollow'];
|
|
27
32
|
Cell.props = {
|
|
28
33
|
defaultShape: 'cell',
|
|
29
34
|
defaultLabelShape: 'label',
|
|
35
|
+
shape,
|
|
30
36
|
composite: false,
|
|
31
37
|
channels: [
|
|
32
|
-
...baseGeometryChannels({ shapes }),
|
|
38
|
+
...baseGeometryChannels({ shapes: Object.keys(shape) }),
|
|
33
39
|
{ name: 'x', required: true, scale: 'band' },
|
|
34
40
|
{ name: 'y', required: true, scale: 'band' },
|
|
35
41
|
],
|
|
36
42
|
preInference: [
|
|
37
43
|
...basePreInference(),
|
|
38
|
-
{ type:
|
|
39
|
-
{ type:
|
|
40
|
-
{ type:
|
|
44
|
+
{ type: MaybeZeroX },
|
|
45
|
+
{ type: MaybeZeroY },
|
|
46
|
+
{ type: MaybeZeroPadding },
|
|
41
47
|
],
|
|
42
48
|
postInference: [...basePostInference(), ...tooltip2d()],
|
|
43
49
|
};
|