@antv/g2 5.0.18 → 5.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/g2-lite.min.js +3 -3
- package/dist/g2.min.js +3 -3
- package/esm/api/chart.d.ts +1017 -85
- package/esm/api/chart.js +3 -259
- package/esm/api/chart.js.map +1 -1
- package/esm/api/composition.d.ts +37 -0
- package/esm/api/{composition/base.js → composition.js} +17 -5
- package/esm/api/composition.js.map +1 -0
- package/esm/api/define.d.ts +14 -0
- package/esm/api/define.js +92 -0
- package/esm/api/define.js.map +1 -0
- package/esm/api/extend.d.ts +9 -0
- package/esm/api/extend.js +9 -0
- package/esm/api/extend.js.map +1 -0
- package/esm/api/index.d.ts +2 -0
- package/esm/api/index.js +2 -0
- package/esm/api/index.js.map +1 -1
- package/esm/api/library.d.ts +170 -1
- package/esm/api/library.js +2 -2
- package/esm/api/library.js.map +1 -1
- package/esm/api/mark.d.ts +29 -0
- package/esm/api/{mark/base.js → mark.js} +16 -4
- package/esm/api/mark.js.map +1 -0
- package/esm/api/node.d.ts +2 -2
- package/esm/api/node.js.map +1 -1
- package/esm/api/props.d.ts +170 -12
- package/esm/api/props.js +21 -102
- package/esm/api/props.js.map +1 -1
- package/esm/api/runtime.d.ts +66 -0
- package/esm/api/runtime.js +294 -0
- package/esm/api/runtime.js.map +1 -0
- package/esm/api/types.d.ts +60 -5
- package/esm/api/utils.d.ts +1 -1
- package/esm/api/utils.js +11 -13
- package/esm/api/utils.js.map +1 -1
- package/esm/component/axis.js +7 -4
- package/esm/component/axis.js.map +1 -1
- package/esm/component/legendCategory.js +4 -5
- package/esm/component/legendCategory.js.map +1 -1
- package/esm/composition/d3Projection.js.map +1 -0
- package/esm/composition/geoPath.js.map +1 -0
- package/esm/{geo → composition}/geoView.js +1 -1
- package/esm/composition/geoView.js.map +1 -0
- package/esm/composition/index.d.ts +2 -0
- package/esm/composition/index.js +2 -0
- package/esm/composition/index.js.map +1 -1
- package/esm/index.d.ts +4 -3
- package/esm/index.js +3 -2
- package/esm/index.js.map +1 -1
- package/esm/label-transform/overlapDodgeY.js.map +1 -1
- package/esm/lib/core.d.ts +158 -0
- package/esm/lib/core.js +174 -0
- package/esm/lib/core.js.map +1 -0
- package/esm/lib/geo.d.ts +4 -0
- package/esm/lib/geo.js +9 -0
- package/esm/lib/geo.js.map +1 -0
- package/esm/lib/graph.d.ts +4 -0
- package/esm/lib/graph.js +8 -0
- package/esm/lib/graph.js.map +1 -0
- package/esm/lib/index.d.ts +6 -0
- package/esm/lib/index.js +7 -0
- package/esm/lib/index.js.map +1 -0
- package/esm/lib/lite.d.ts +64 -0
- package/esm/lib/lite.js +78 -0
- package/esm/lib/lite.js.map +1 -0
- package/esm/lib/plot.d.ts +11 -0
- package/esm/lib/plot.js +16 -0
- package/esm/lib/plot.js.map +1 -0
- package/esm/lib/std.d.ts +170 -0
- package/esm/lib/std.js +8 -0
- package/esm/lib/std.js.map +1 -0
- package/esm/mark/area.js +14 -5
- package/esm/mark/area.js.map +1 -1
- package/esm/mark/box.js +9 -2
- package/esm/mark/box.js.map +1 -1
- package/esm/mark/cell.js +11 -5
- package/esm/mark/cell.js.map +1 -1
- package/esm/mark/connector.js +6 -2
- package/esm/mark/connector.js.map +1 -1
- package/esm/mark/density.js +10 -7
- package/esm/mark/density.js.map +1 -1
- package/esm/mark/forceGraph.js +0 -3
- package/esm/mark/forceGraph.js.map +1 -1
- package/esm/mark/heatmap.js +9 -4
- package/esm/mark/heatmap.js.map +1 -1
- package/esm/mark/image.js +9 -4
- package/esm/mark/image.js.map +1 -1
- package/esm/mark/interval.js +13 -7
- package/esm/mark/interval.js.map +1 -1
- package/esm/mark/line.js +15 -4
- package/esm/mark/line.js.map +1 -1
- package/esm/mark/lineX.js +8 -3
- package/esm/mark/lineX.js.map +1 -1
- package/esm/mark/lineY.js +8 -3
- package/esm/mark/lineY.js.map +1 -1
- package/esm/mark/link.js +12 -4
- package/esm/mark/link.js.map +1 -1
- package/esm/mark/path.js +7 -2
- package/esm/mark/path.js.map +1 -1
- package/esm/mark/point.js +28 -29
- package/esm/mark/point.js.map +1 -1
- package/esm/mark/polygon.js +7 -2
- package/esm/mark/polygon.js.map +1 -1
- package/esm/mark/range.js +4 -2
- package/esm/mark/range.js.map +1 -1
- package/esm/mark/rangeX.js +6 -2
- package/esm/mark/rangeX.js.map +1 -1
- package/esm/mark/rangeY.js +6 -2
- package/esm/mark/rangeY.js.map +1 -1
- package/esm/mark/rect.js +9 -3
- package/esm/mark/rect.js.map +1 -1
- package/esm/mark/shape.js +9 -3
- package/esm/mark/shape.js.map +1 -1
- package/esm/mark/text.js +10 -4
- package/esm/mark/text.js.map +1 -1
- package/esm/mark/treemap.js.map +1 -1
- package/esm/mark/utils.d.ts +11 -8
- package/esm/mark/utils.js +8 -7
- package/esm/mark/utils.js.map +1 -1
- package/esm/mark/vector.js +6 -2
- package/esm/mark/vector.js.map +1 -1
- package/esm/runtime/index.d.ts +1 -1
- package/esm/runtime/index.js +1 -1
- package/esm/runtime/index.js.map +1 -1
- package/esm/runtime/plot.js +11 -7
- package/esm/runtime/plot.js.map +1 -1
- package/esm/runtime/render.js +3 -6
- package/esm/runtime/render.js.map +1 -1
- package/esm/runtime/types/component.d.ts +1 -1
- package/esm/runtime/types/mark.d.ts +4 -0
- package/esm/runtime/types/options.d.ts +4 -1
- package/esm/shape/index.d.ts +106 -101
- package/esm/shape/index.js +58 -53
- package/esm/shape/index.js.map +1 -1
- package/esm/shape/text/advance.js +3 -3
- package/esm/shape/text/advance.js.map +1 -1
- package/esm/spec/composition.d.ts +7 -0
- package/esm/spec/index.d.ts +1 -0
- package/esm/spec/index.js.map +1 -1
- package/esm/spec/interaction.d.ts +2 -0
- package/esm/theme/academy.js +6 -6
- package/esm/theme/classic.js +6 -7
- package/esm/theme/classic.js.map +1 -1
- package/esm/theme/classicDark.js +6 -6
- package/esm/utils/coordinate.d.ts +2 -2
- package/esm/utils/scale.d.ts +1 -1
- package/esm/utils/scale.js +1 -1
- package/esm/utils/scale.js.map +1 -1
- package/lib/api/chart.d.ts +1017 -85
- package/lib/api/chart.js +4 -263
- package/lib/api/chart.js.map +1 -1
- package/lib/api/composition.d.ts +37 -0
- package/lib/api/{composition/base.js → composition.js} +16 -5
- package/lib/api/composition.js.map +1 -0
- package/lib/api/define.d.ts +14 -0
- package/lib/api/define.js +97 -0
- package/lib/api/define.js.map +1 -0
- package/lib/api/extend.d.ts +9 -0
- package/lib/api/extend.js +13 -0
- package/lib/api/extend.js.map +1 -0
- package/lib/api/index.d.ts +2 -0
- package/lib/api/index.js +5 -1
- package/lib/api/index.js.map +1 -1
- package/lib/api/library.d.ts +170 -1
- package/lib/api/library.js +2 -2
- package/lib/api/library.js.map +1 -1
- package/lib/api/mark.d.ts +29 -0
- package/lib/api/{mark/base.js → mark.js} +15 -4
- package/lib/api/mark.js.map +1 -0
- package/lib/api/node.d.ts +2 -2
- package/lib/api/node.js.map +1 -1
- package/lib/api/props.d.ts +170 -12
- package/lib/api/props.js +22 -106
- package/lib/api/props.js.map +1 -1
- package/lib/api/runtime.d.ts +66 -0
- package/lib/api/runtime.js +301 -0
- package/lib/api/runtime.js.map +1 -0
- package/lib/api/types.d.ts +60 -5
- package/lib/api/utils.d.ts +1 -1
- package/lib/api/utils.js +14 -16
- package/lib/api/utils.js.map +1 -1
- package/lib/component/axis.js +7 -4
- package/lib/component/axis.js.map +1 -1
- package/lib/component/legendCategory.js +4 -5
- package/lib/component/legendCategory.js.map +1 -1
- package/lib/composition/d3Projection.js.map +1 -0
- package/lib/composition/geoPath.js.map +1 -0
- package/lib/{geo → composition}/geoView.js +1 -1
- package/lib/composition/geoView.js.map +1 -0
- package/lib/composition/index.d.ts +2 -0
- package/lib/composition/index.js +5 -1
- package/lib/composition/index.js.map +1 -1
- package/lib/index.d.ts +4 -3
- package/lib/index.js +8 -3
- package/lib/index.js.map +1 -1
- package/lib/label-transform/overlapDodgeY.js.map +1 -1
- package/lib/lib/core.d.ts +158 -0
- package/lib/lib/core.js +178 -0
- package/lib/lib/core.js.map +1 -0
- package/lib/lib/geo.d.ts +4 -0
- package/lib/lib/geo.js +13 -0
- package/lib/lib/geo.js.map +1 -0
- package/lib/lib/graph.d.ts +4 -0
- package/lib/lib/graph.js +12 -0
- package/lib/lib/graph.js.map +1 -0
- package/lib/lib/index.d.ts +6 -0
- package/lib/lib/index.js +16 -0
- package/lib/lib/index.js.map +1 -0
- package/lib/lib/lite.d.ts +64 -0
- package/lib/lib/lite.js +82 -0
- package/lib/lib/lite.js.map +1 -0
- package/lib/lib/plot.d.ts +11 -0
- package/lib/lib/plot.js +20 -0
- package/lib/lib/plot.js.map +1 -0
- package/lib/lib/std.d.ts +170 -0
- package/lib/lib/std.js +12 -0
- package/lib/lib/std.js.map +1 -0
- package/lib/mark/area.js +14 -5
- package/lib/mark/area.js.map +1 -1
- package/lib/mark/box.js +9 -2
- package/lib/mark/box.js.map +1 -1
- package/lib/mark/cell.js +11 -5
- package/lib/mark/cell.js.map +1 -1
- package/lib/mark/connector.js +6 -2
- package/lib/mark/connector.js.map +1 -1
- package/lib/mark/density.js +10 -7
- package/lib/mark/density.js.map +1 -1
- package/lib/mark/forceGraph.js +0 -3
- package/lib/mark/forceGraph.js.map +1 -1
- package/lib/mark/heatmap.js +9 -4
- package/lib/mark/heatmap.js.map +1 -1
- package/lib/mark/image.js +9 -4
- package/lib/mark/image.js.map +1 -1
- package/lib/mark/interval.js +13 -7
- package/lib/mark/interval.js.map +1 -1
- package/lib/mark/line.js +15 -4
- package/lib/mark/line.js.map +1 -1
- package/lib/mark/lineX.js +8 -3
- package/lib/mark/lineX.js.map +1 -1
- package/lib/mark/lineY.js +8 -3
- package/lib/mark/lineY.js.map +1 -1
- package/lib/mark/link.js +12 -4
- package/lib/mark/link.js.map +1 -1
- package/lib/mark/path.js +7 -2
- package/lib/mark/path.js.map +1 -1
- package/lib/mark/point.js +28 -29
- package/lib/mark/point.js.map +1 -1
- package/lib/mark/polygon.js +7 -2
- package/lib/mark/polygon.js.map +1 -1
- package/lib/mark/range.js +4 -2
- package/lib/mark/range.js.map +1 -1
- package/lib/mark/rangeX.js +6 -2
- package/lib/mark/rangeX.js.map +1 -1
- package/lib/mark/rangeY.js +6 -2
- package/lib/mark/rangeY.js.map +1 -1
- package/lib/mark/rect.js +9 -3
- package/lib/mark/rect.js.map +1 -1
- package/lib/mark/shape.js +9 -3
- package/lib/mark/shape.js.map +1 -1
- package/lib/mark/text.js +10 -4
- package/lib/mark/text.js.map +1 -1
- package/lib/mark/treemap.js.map +1 -1
- package/lib/mark/utils.d.ts +11 -8
- package/lib/mark/utils.js +8 -7
- package/lib/mark/utils.js.map +1 -1
- package/lib/mark/vector.js +6 -2
- package/lib/mark/vector.js.map +1 -1
- package/lib/runtime/index.d.ts +1 -1
- package/lib/runtime/index.js +4 -4
- package/lib/runtime/index.js.map +1 -1
- package/lib/runtime/plot.js +11 -7
- package/lib/runtime/plot.js.map +1 -1
- package/lib/runtime/render.js +3 -6
- package/lib/runtime/render.js.map +1 -1
- package/lib/runtime/types/component.d.ts +1 -1
- package/lib/runtime/types/mark.d.ts +4 -0
- package/lib/runtime/types/options.d.ts +4 -1
- package/lib/shape/index.d.ts +106 -101
- package/lib/shape/index.js +71 -61
- package/lib/shape/index.js.map +1 -1
- package/lib/shape/text/advance.js +3 -3
- package/lib/shape/text/advance.js.map +1 -1
- package/lib/spec/composition.d.ts +7 -0
- package/lib/spec/index.d.ts +1 -0
- package/lib/spec/index.js.map +1 -1
- package/lib/spec/interaction.d.ts +2 -0
- package/lib/theme/academy.js +6 -6
- package/lib/theme/classic.js +6 -7
- package/lib/theme/classic.js.map +1 -1
- package/lib/theme/classicDark.js +6 -6
- package/lib/utils/coordinate.d.ts +2 -2
- package/lib/utils/scale.d.ts +1 -1
- package/lib/utils/scale.js +1 -1
- package/lib/utils/scale.js.map +1 -1
- package/package.json +8 -7
- package/src/api/chart.ts +5 -341
- package/src/api/{composition/base.ts → composition.ts} +16 -8
- package/src/api/define.ts +128 -0
- package/src/api/extend.ts +34 -0
- package/src/api/index.ts +2 -0
- package/src/api/library.ts +2 -2
- package/src/api/{mark/base.ts → mark.ts} +10 -7
- package/src/api/node.ts +3 -3
- package/src/api/props.ts +30 -114
- package/src/api/runtime.ts +366 -0
- package/src/api/types.ts +95 -17
- package/src/api/utils.ts +28 -11
- package/src/component/axis.ts +10 -5
- package/src/component/legendCategory.ts +4 -6
- package/src/{geo → composition}/geoView.ts +1 -1
- package/src/composition/index.ts +2 -0
- package/src/index.ts +12 -3
- package/src/label-transform/overlapDodgeY.ts +0 -1
- package/src/{stdlib/index.ts → lib/core.ts} +74 -258
- package/src/lib/geo.ts +9 -0
- package/src/lib/graph.ts +8 -0
- package/src/lib/index.ts +6 -0
- package/src/lib/lite.ts +127 -0
- package/src/lib/plot.ts +16 -0
- package/src/lib/std.ts +13 -0
- package/src/mark/area.ts +15 -6
- package/src/mark/box.ts +10 -2
- package/src/mark/cell.ts +12 -6
- package/src/mark/connector.ts +7 -3
- package/src/mark/density.ts +11 -8
- package/src/mark/forceGraph.ts +0 -3
- package/src/mark/heatmap.ts +10 -5
- package/src/mark/image.ts +10 -5
- package/src/mark/interval.ts +22 -10
- package/src/mark/line.ts +23 -5
- package/src/mark/lineX.ts +9 -4
- package/src/mark/lineY.ts +9 -4
- package/src/mark/link.ts +13 -5
- package/src/mark/path.ts +8 -3
- package/src/mark/point.ts +49 -30
- package/src/mark/polygon.ts +8 -3
- package/src/mark/range.ts +5 -3
- package/src/mark/rangeX.ts +7 -3
- package/src/mark/rangeY.ts +7 -3
- package/src/mark/rect.ts +10 -4
- package/src/mark/shape.ts +14 -3
- package/src/mark/text.ts +11 -5
- package/src/mark/treemap.ts +0 -1
- package/src/mark/utils.ts +9 -8
- package/src/mark/vector.ts +7 -3
- package/src/runtime/index.ts +1 -1
- package/src/runtime/plot.ts +19 -10
- package/src/runtime/render.ts +3 -6
- package/src/runtime/types/component.ts +1 -2
- package/src/runtime/types/mark.ts +4 -0
- package/src/runtime/types/options.ts +4 -1
- package/src/shape/index.ts +106 -110
- package/src/shape/text/advance.ts +1 -2
- package/src/spec/composition.ts +7 -0
- package/src/spec/index.ts +1 -0
- package/src/spec/interaction.ts +2 -0
- package/src/theme/academy.ts +6 -6
- package/src/theme/classic.ts +6 -7
- package/src/theme/classicDark.ts +6 -6
- package/src/utils/scale.ts +1 -1
- package/esm/api/composition/base.d.ts +0 -28
- package/esm/api/composition/base.js.map +0 -1
- package/esm/api/composition/facetCircle.d.ts +0 -17
- package/esm/api/composition/facetCircle.js +0 -27
- package/esm/api/composition/facetCircle.js.map +0 -1
- package/esm/api/composition/facetRect.d.ts +0 -17
- package/esm/api/composition/facetRect.js +0 -27
- package/esm/api/composition/facetRect.js.map +0 -1
- package/esm/api/composition/geoPath.d.ts +0 -20
- package/esm/api/composition/geoPath.js +0 -30
- package/esm/api/composition/geoPath.js.map +0 -1
- package/esm/api/composition/geoView.d.ts +0 -19
- package/esm/api/composition/geoView.js +0 -28
- package/esm/api/composition/geoView.js.map +0 -1
- package/esm/api/composition/index.d.ts +0 -33
- package/esm/api/composition/index.js +0 -32
- package/esm/api/composition/index.js.map +0 -1
- package/esm/api/composition/repeatMatrix.d.ts +0 -17
- package/esm/api/composition/repeatMatrix.js +0 -27
- package/esm/api/composition/repeatMatrix.js.map +0 -1
- package/esm/api/composition/spaceFlex.d.ts +0 -12
- package/esm/api/composition/spaceFlex.js +0 -19
- package/esm/api/composition/spaceFlex.js.map +0 -1
- package/esm/api/composition/spaceLayer.d.ts +0 -12
- package/esm/api/composition/spaceLayer.js +0 -19
- package/esm/api/composition/spaceLayer.js.map +0 -1
- package/esm/api/composition/timingKeyframe.d.ts +0 -11
- package/esm/api/composition/timingKeyframe.js +0 -19
- package/esm/api/composition/timingKeyframe.js.map +0 -1
- package/esm/api/composition/view.d.ts +0 -19
- package/esm/api/composition/view.js +0 -29
- package/esm/api/composition/view.js.map +0 -1
- package/esm/api/mark/base.d.ts +0 -22
- package/esm/api/mark/base.js.map +0 -1
- package/esm/api/mark/index.d.ts +0 -75
- package/esm/api/mark/index.js +0 -39
- package/esm/api/mark/index.js.map +0 -1
- package/esm/api/mark/mark.d.ts +0 -212
- package/esm/api/mark/mark.js +0 -339
- package/esm/api/mark/mark.js.map +0 -1
- package/esm/api/mark/types.d.ts +0 -26
- package/esm/api/mark/types.js +0 -2
- package/esm/api/mark/types.js.map +0 -1
- package/esm/geo/d3Projection.js.map +0 -1
- package/esm/geo/geoPath.js.map +0 -1
- package/esm/geo/geoView.js.map +0 -1
- package/esm/geo/index.d.ts +0 -9
- package/esm/geo/index.js +0 -8
- package/esm/geo/index.js.map +0 -1
- package/esm/stdlib/index.d.ts +0 -2
- package/esm/stdlib/index.js +0 -21
- package/esm/stdlib/index.js.map +0 -1
- package/lib/api/composition/base.d.ts +0 -28
- package/lib/api/composition/base.js.map +0 -1
- package/lib/api/composition/facetCircle.d.ts +0 -17
- package/lib/api/composition/facetCircle.js +0 -30
- package/lib/api/composition/facetCircle.js.map +0 -1
- package/lib/api/composition/facetRect.d.ts +0 -17
- package/lib/api/composition/facetRect.js +0 -30
- package/lib/api/composition/facetRect.js.map +0 -1
- package/lib/api/composition/geoPath.d.ts +0 -20
- package/lib/api/composition/geoPath.js +0 -33
- package/lib/api/composition/geoPath.js.map +0 -1
- package/lib/api/composition/geoView.d.ts +0 -19
- package/lib/api/composition/geoView.js +0 -31
- package/lib/api/composition/geoView.js.map +0 -1
- package/lib/api/composition/index.d.ts +0 -33
- package/lib/api/composition/index.js +0 -44
- package/lib/api/composition/index.js.map +0 -1
- package/lib/api/composition/repeatMatrix.d.ts +0 -17
- package/lib/api/composition/repeatMatrix.js +0 -30
- package/lib/api/composition/repeatMatrix.js.map +0 -1
- package/lib/api/composition/spaceFlex.d.ts +0 -12
- package/lib/api/composition/spaceFlex.js +0 -22
- package/lib/api/composition/spaceFlex.js.map +0 -1
- package/lib/api/composition/spaceLayer.d.ts +0 -12
- package/lib/api/composition/spaceLayer.js +0 -22
- package/lib/api/composition/spaceLayer.js.map +0 -1
- package/lib/api/composition/timingKeyframe.d.ts +0 -11
- package/lib/api/composition/timingKeyframe.js +0 -22
- package/lib/api/composition/timingKeyframe.js.map +0 -1
- package/lib/api/composition/view.d.ts +0 -19
- package/lib/api/composition/view.js +0 -32
- package/lib/api/composition/view.js.map +0 -1
- package/lib/api/mark/base.d.ts +0 -22
- package/lib/api/mark/base.js.map +0 -1
- package/lib/api/mark/index.d.ts +0 -75
- package/lib/api/mark/index.js +0 -43
- package/lib/api/mark/index.js.map +0 -1
- package/lib/api/mark/mark.d.ts +0 -212
- package/lib/api/mark/mark.js +0 -342
- package/lib/api/mark/mark.js.map +0 -1
- package/lib/api/mark/types.d.ts +0 -26
- package/lib/api/mark/types.js +0 -3
- package/lib/api/mark/types.js.map +0 -1
- package/lib/geo/d3Projection.js.map +0 -1
- package/lib/geo/geoPath.js.map +0 -1
- package/lib/geo/geoView.js.map +0 -1
- package/lib/geo/index.d.ts +0 -9
- package/lib/geo/index.js +0 -12
- package/lib/geo/index.js.map +0 -1
- package/lib/stdlib/index.d.ts +0 -2
- package/lib/stdlib/index.js +0 -25
- package/lib/stdlib/index.js.map +0 -1
- package/src/api/composition/facetCircle.ts +0 -36
- package/src/api/composition/facetRect.ts +0 -36
- package/src/api/composition/geoPath.ts +0 -37
- package/src/api/composition/geoView.ts +0 -39
- package/src/api/composition/index.ts +0 -57
- package/src/api/composition/repeatMatrix.ts +0 -36
- package/src/api/composition/spaceFlex.ts +0 -18
- package/src/api/composition/spaceLayer.ts +0 -18
- package/src/api/composition/timingKeyframe.ts +0 -16
- package/src/api/composition/view.ts +0 -42
- package/src/api/mark/index.ts +0 -113
- package/src/api/mark/mark.ts +0 -439
- package/src/api/mark/types.ts +0 -31
- package/src/geo/index.ts +0 -12
- /package/esm/{geo → composition}/d3Projection.d.ts +0 -0
- /package/esm/{geo → composition}/d3Projection.js +0 -0
- /package/esm/{geo → composition}/geoPath.d.ts +0 -0
- /package/esm/{geo → composition}/geoPath.js +0 -0
- /package/esm/{geo → composition}/geoView.d.ts +0 -0
- /package/lib/{geo → composition}/d3Projection.d.ts +0 -0
- /package/lib/{geo → composition}/d3Projection.js +0 -0
- /package/lib/{geo → composition}/geoPath.d.ts +0 -0
- /package/lib/{geo → composition}/geoPath.js +0 -0
- /package/lib/{geo → composition}/geoView.d.ts +0 -0
- /package/src/{geo → composition}/d3Projection.ts +0 -0
- /package/src/{geo → composition}/geoPath.ts +0 -0
package/lib/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/lib/lib/std.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stdlib = void 0;
|
|
4
|
+
const core_1 = require("./core");
|
|
5
|
+
const geo_1 = require("./geo");
|
|
6
|
+
const graph_1 = require("./graph");
|
|
7
|
+
const plot_1 = require("./plot");
|
|
8
|
+
function stdlib() {
|
|
9
|
+
return Object.assign(Object.assign(Object.assign(Object.assign({}, (0, geo_1.geolib)()), (0, graph_1.graphlib)()), (0, plot_1.plotlib)()), (0, core_1.corelib)());
|
|
10
|
+
}
|
|
11
|
+
exports.stdlib = stdlib;
|
|
12
|
+
//# sourceMappingURL=std.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"std.js","sourceRoot":"src/","sources":["lib/std.ts"],"names":[],"mappings":";;;AAAA,iCAAiC;AACjC,+BAA+B;AAC/B,mCAAmC;AACnC,iCAAiC;AAEjC,SAAgB,MAAM;IACpB,OAAO,4DACF,IAAA,YAAM,GAAE,GACR,IAAA,gBAAQ,GAAE,GACV,IAAA,cAAO,GAAE,GACT,IAAA,cAAO,GAAE,CACJ,CAAC;AACb,CAAC;AAPD,wBAOC"}
|
package/lib/mark/area.js
CHANGED
|
@@ -2,7 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Area = void 0;
|
|
4
4
|
const d3_array_1 = require("d3-array");
|
|
5
|
+
const shape_1 = require("../shape");
|
|
6
|
+
const transform_1 = require("../transform");
|
|
5
7
|
const utils_1 = require("./utils");
|
|
8
|
+
const shape = {
|
|
9
|
+
area: shape_1.AreaShape,
|
|
10
|
+
smooth: shape_1.AreaSmooth,
|
|
11
|
+
hvh: shape_1.AreaHVH,
|
|
12
|
+
vh: shape_1.AreaVH,
|
|
13
|
+
hv: shape_1.AreaHV,
|
|
14
|
+
};
|
|
6
15
|
/*
|
|
7
16
|
* Convert value for each channel to area shapes.
|
|
8
17
|
*
|
|
@@ -53,13 +62,13 @@ const Area = () => {
|
|
|
53
62
|
};
|
|
54
63
|
};
|
|
55
64
|
exports.Area = Area;
|
|
56
|
-
const shapes = ['area', 'smooth', 'hvh', 'hv', 'vh'];
|
|
57
65
|
exports.Area.props = {
|
|
58
66
|
defaultShape: 'area',
|
|
59
67
|
defaultLabelShape: 'label',
|
|
60
68
|
composite: false,
|
|
69
|
+
shape,
|
|
61
70
|
channels: [
|
|
62
|
-
...(0, utils_1.baseGeometryChannels)({ shapes }),
|
|
71
|
+
...(0, utils_1.baseGeometryChannels)({ shapes: Object.keys(shape) }),
|
|
63
72
|
{ name: 'x', required: true },
|
|
64
73
|
{ name: 'y', required: true },
|
|
65
74
|
{ name: 'size' },
|
|
@@ -67,9 +76,9 @@ exports.Area.props = {
|
|
|
67
76
|
],
|
|
68
77
|
preInference: [
|
|
69
78
|
...(0, utils_1.basePreInference)(),
|
|
70
|
-
{ type:
|
|
71
|
-
{ type:
|
|
72
|
-
{ type:
|
|
79
|
+
{ type: transform_1.MaybeSeries },
|
|
80
|
+
{ type: transform_1.MaybeZeroY1 },
|
|
81
|
+
{ type: transform_1.MaybeZeroPadding },
|
|
73
82
|
],
|
|
74
83
|
postInference: [...(0, utils_1.basePostInference)(), ...(0, utils_1.tooltip1d)()],
|
|
75
84
|
interaction: {
|
package/lib/mark/area.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"area.js","sourceRoot":"src/","sources":["mark/area.ts"],"names":[],"mappings":";;;AAAA,uCAAiC;AAGjC,mCAKiB;
|
|
1
|
+
{"version":3,"file":"area.js","sourceRoot":"src/","sources":["mark/area.ts"],"names":[],"mappings":";;;AAAA,uCAAiC;AAGjC,oCAA0E;AAC1E,4CAA0E;AAC1E,mCAKiB;AAEjB,MAAM,KAAK,GAAG;IACZ,IAAI,EAAE,iBAAS;IACf,MAAM,EAAE,kBAAU;IAClB,GAAG,EAAE,eAAO;IACZ,EAAE,EAAE,cAAM;IACV,EAAE,EAAE,cAAM;CACX,CAAC;AAIF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEI,MAAM,IAAI,GAAoB,GAAG,EAAE;IACxC,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE;;QACzC,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,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EAAE,GAAG,IAAA,iBAAS,GAAE,CAAC;IACvD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;QAClB,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,IAAI;KACjB;CACF,CAAC"}
|
package/lib/mark/box.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Box = void 0;
|
|
4
|
+
const shape_1 = require("../shape");
|
|
5
|
+
const transform_1 = require("../transform");
|
|
4
6
|
const utils_1 = require("./utils");
|
|
7
|
+
const shape = {
|
|
8
|
+
box: shape_1.BoxShape,
|
|
9
|
+
violin: shape_1.BoxViolin,
|
|
10
|
+
};
|
|
5
11
|
/**
|
|
6
12
|
* Convert value for each channel to box shapes.
|
|
7
13
|
*
|
|
@@ -78,13 +84,14 @@ exports.Box.props = {
|
|
|
78
84
|
defaultShape: 'box',
|
|
79
85
|
defaultLabelShape: 'label',
|
|
80
86
|
composite: false,
|
|
87
|
+
shape,
|
|
81
88
|
channels: [
|
|
82
|
-
...(0, utils_1.baseGeometryChannels)({ shapes:
|
|
89
|
+
...(0, utils_1.baseGeometryChannels)({ shapes: Object.keys(shape) }),
|
|
83
90
|
{ name: 'x', scale: 'band', required: true },
|
|
84
91
|
{ name: 'y', required: true },
|
|
85
92
|
{ name: 'series', scale: 'band' },
|
|
86
93
|
],
|
|
87
|
-
preInference: [...(0, utils_1.basePreInference)(), { type:
|
|
94
|
+
preInference: [...(0, utils_1.basePreInference)(), { type: transform_1.MaybeZeroX }],
|
|
88
95
|
postInference: [...(0, utils_1.basePostInference)(), ...(0, utils_1.tooltip1d)()],
|
|
89
96
|
interaction: {
|
|
90
97
|
shareTooltip: true,
|
package/lib/mark/box.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"box.js","sourceRoot":"src/","sources":["mark/box.ts"],"names":[],"mappings":";;;AAGA,mCAKiB;
|
|
1
|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G,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;AA7CW,QAAA,GAAG,OA6Cd;AAEF,WAAG,CAAC,KAAK,GAAG;IACV,YAAY,EAAE,KAAK;IACnB,iBAAiB,EAAE,OAAO;IAC1B,SAAS,EAAE,KAAK;IAChB,KAAK;IACL,QAAQ,EAAE;QACR,GAAG,IAAA,4BAAoB,EAAC,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,IAAA,wBAAgB,GAAE,EAAE,EAAE,IAAI,EAAE,sBAAU,EAAE,CAAC;IAC3D,aAAa,EAAE,CAAC,GAAG,IAAA,yBAAiB,GAAE,EAAE,GAAG,IAAA,iBAAS,GAAE,CAAC;IACvD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC"}
|
package/lib/mark/cell.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Cell = void 0;
|
|
4
|
+
const shape_1 = require("../shape");
|
|
5
|
+
const transform_1 = require("../transform");
|
|
4
6
|
const utils_1 = require("./utils");
|
|
7
|
+
const shape = {
|
|
8
|
+
cell: shape_1.CellShape,
|
|
9
|
+
hollow: shape_1.CellHollow,
|
|
10
|
+
};
|
|
5
11
|
/**
|
|
6
12
|
* Convert value for each channel to Cell shapes.
|
|
7
13
|
* Calc the bbox of each Cell based on x, y and r.
|
|
@@ -27,21 +33,21 @@ const Cell = () => {
|
|
|
27
33
|
};
|
|
28
34
|
};
|
|
29
35
|
exports.Cell = Cell;
|
|
30
|
-
const shapes = ['cell', 'hollow'];
|
|
31
36
|
exports.Cell.props = {
|
|
32
37
|
defaultShape: 'cell',
|
|
33
38
|
defaultLabelShape: 'label',
|
|
39
|
+
shape,
|
|
34
40
|
composite: false,
|
|
35
41
|
channels: [
|
|
36
|
-
...(0, utils_1.baseGeometryChannels)({ shapes }),
|
|
42
|
+
...(0, utils_1.baseGeometryChannels)({ shapes: Object.keys(shape) }),
|
|
37
43
|
{ name: 'x', required: true, scale: 'band' },
|
|
38
44
|
{ name: 'y', required: true, scale: 'band' },
|
|
39
45
|
],
|
|
40
46
|
preInference: [
|
|
41
47
|
...(0, utils_1.basePreInference)(),
|
|
42
|
-
{ type:
|
|
43
|
-
{ type:
|
|
44
|
-
{ type:
|
|
48
|
+
{ type: transform_1.MaybeZeroX },
|
|
49
|
+
{ type: transform_1.MaybeZeroY },
|
|
50
|
+
{ type: transform_1.MaybeZeroPadding },
|
|
45
51
|
],
|
|
46
52
|
postInference: [...(0, utils_1.basePostInference)(), ...(0, utils_1.tooltip2d)()],
|
|
47
53
|
};
|
package/lib/mark/cell.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell.js","sourceRoot":"src/","sources":["mark/cell.ts"],"names":[],"mappings":";;;AAGA,mCAKiB;
|
|
1
|
+
{"version":3,"file":"cell.js","sourceRoot":"src/","sources":["mark/cell.ts"],"names":[],"mappings":";;;AAGA,oCAAiD;AACjD,4CAAwE;AACxE,mCAKiB;AAEjB,MAAM,KAAK,GAAG;IACZ,IAAI,EAAE,iBAAS;IACf,MAAM,EAAE,kBAAU;CACnB,CAAC;AAIF;;;;GAIG;AACI,MAAM,IAAI,GA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,CAAC,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AAlBW,QAAA,IAAI,QAkBf;AAEF,YAAI,CAAC,KAAK,GAAG;IACX,YAAY,EAAE,MAAM;IACpB,iBAAiB,EAAE,OAAO;IAC1B,KAAK;IACL,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE;QACR,GAAG,IAAA,4BAAoB,EAAC,EAAE,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QACvD,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE;QAC5C,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE;KAC7C;IACD,YAAY,EAAE;QACZ,GAAG,IAAA,wBAAgB,GAAE;QACrB,EAAE,IAAI,EAAE,sBAAU,EAAE;QACpB,EAAE,IAAI,EAAE,sBAAU,EAAE;QACpB,EAAE,IAAI,EAAE,4BAAgB,EAAE;KAC3B;IACD,aAAa,EAAE,CAAC,GAAG,IAAA,yBAAiB,GAAE,EAAE,GAAG,IAAA,iBAAS,GAAE,CAAC;CACxD,CAAC"}
|
package/lib/mark/connector.js
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Connector = void 0;
|
|
4
|
+
const shape_1 = require("../shape");
|
|
4
5
|
const utils_1 = require("./utils");
|
|
5
6
|
const link_1 = require("./link");
|
|
7
|
+
const shape = {
|
|
8
|
+
connector: shape_1.ConnectorShape,
|
|
9
|
+
};
|
|
6
10
|
const Connector = (...args) => {
|
|
7
11
|
return (0, link_1.Link)(...args);
|
|
8
12
|
};
|
|
9
13
|
exports.Connector = Connector;
|
|
10
|
-
const shapes = ['connector'];
|
|
11
14
|
exports.Connector.props = {
|
|
12
15
|
defaultShape: 'connector',
|
|
13
16
|
defaultLabelShape: 'label',
|
|
14
17
|
composite: false,
|
|
18
|
+
shape,
|
|
15
19
|
channels: [
|
|
16
|
-
...(0, utils_1.baseAnnotationChannels)({ shapes }),
|
|
20
|
+
...(0, utils_1.baseAnnotationChannels)({ shapes: Object.keys(shape) }),
|
|
17
21
|
{ name: 'x', required: true },
|
|
18
22
|
{ name: 'y', required: true },
|
|
19
23
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector.js","sourceRoot":"src/","sources":["mark/connector.ts"],"names":[],"mappings":";;;AAEA,mCAIiB;AACjB,iCAA8B;
|
|
1
|
+
{"version":3,"file":"connector.js","sourceRoot":"src/","sources":["mark/connector.ts"],"names":[],"mappings":";;;AAEA,oCAA0C;AAC1C,mCAIiB;AACjB,iCAA8B;AAE9B,MAAM,KAAK,GAAG;IACZ,SAAS,EAAE,sBAAc;CAC1B,CAAC;AAIK,MAAM,SAAS,GAAyB,CAAC,GAAG,IAAI,EAAE,EAAE;IACzD,OAAO,IAAA,WAAI,EAAC,GAAG,IAAI,CAAC,CAAC;AACvB,CAAC,CAAC;AAFW,QAAA,SAAS,aAEpB;AAEF,iBAAS,CAAC,KAAK,GAAG;IAChB,YAAY,EAAE,WAAW;IACzB,iBAAiB,EAAE,OAAO;IAC1B,SAAS,EAAE,KAAK;IAChB,KAAK;IACL,QAAQ,EAAE;QACR,GAAG,IAAA,8BAAsB,EAAC,EAAE,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QACzD,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC7B,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE;KAC9B;IACD,YAAY,EAAE,CAAC,GAAG,IAAA,wBAAgB,GAAE,CAAC;IACrC,aAAa,EAAE,CAAC,GAAG,IAAA,yBAAiB,GAAE,CAAC;CACxC,CAAC"}
|
package/lib/mark/density.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Density = void 0;
|
|
4
|
+
const shape_1 = require("../shape");
|
|
5
|
+
const transform_1 = require("../transform");
|
|
4
6
|
const utils_1 = require("./utils");
|
|
7
|
+
const shape = {
|
|
8
|
+
density: shape_1.DensityShape,
|
|
9
|
+
};
|
|
5
10
|
const Density = () => {
|
|
6
11
|
return (index, scale, value, coordinate) => {
|
|
7
12
|
const { x: X, series: S } = value;
|
|
@@ -39,13 +44,13 @@ const Density = () => {
|
|
|
39
44
|
};
|
|
40
45
|
};
|
|
41
46
|
exports.Density = Density;
|
|
42
|
-
const shapes = ['density'];
|
|
43
47
|
exports.Density.props = {
|
|
44
48
|
defaultShape: 'density',
|
|
45
49
|
defaultLabelShape: 'label',
|
|
46
50
|
composite: false,
|
|
51
|
+
shape,
|
|
47
52
|
channels: [
|
|
48
|
-
...(0, utils_1.baseGeometryChannels)({ shapes }),
|
|
53
|
+
...(0, utils_1.baseGeometryChannels)({ shapes: Object.keys(shape) }),
|
|
49
54
|
{ name: 'x', scale: 'band', required: true },
|
|
50
55
|
{ name: 'y', required: true },
|
|
51
56
|
{ name: 'size', required: true },
|
|
@@ -54,12 +59,10 @@ exports.Density.props = {
|
|
|
54
59
|
],
|
|
55
60
|
preInference: [
|
|
56
61
|
...(0, utils_1.basePreInference)(),
|
|
57
|
-
{ type:
|
|
58
|
-
{ type:
|
|
62
|
+
{ type: transform_1.MaybeZeroY1 },
|
|
63
|
+
{ type: transform_1.MaybeZeroX },
|
|
59
64
|
],
|
|
60
65
|
postInference: [...(0, utils_1.basePostInference)(), ...(0, utils_1.tooltip1d)()],
|
|
61
|
-
interaction: {
|
|
62
|
-
shareTooltip: true,
|
|
63
|
-
},
|
|
66
|
+
interaction: { shareTooltip: true },
|
|
64
67
|
};
|
|
65
68
|
//# sourceMappingURL=density.js.map
|
package/lib/mark/density.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"density.js","sourceRoot":"src/","sources":["mark/density.ts"],"names":[],"mappings":";;;AAGA,mCAKiB;
|
|
1
|
+
{"version":3,"file":"density.js","sourceRoot":"src/","sources":["mark/density.ts"],"names":[],"mappings":";;;AAGA,oCAAwC;AACxC,4CAAuD;AACvD,mCAKiB;AAEjB,MAAM,KAAK,GAAG;IACZ,OAAO,EAAE,oBAAY;CACtB,CAAC;AAIK,MAAM,OAAO,GAAuB,GAAG,EAAE;IAC9C,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE;QACzC,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,KAAK,CAAC;QAElC,MAAM,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;aAC7B,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;aACtC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC;QAE7B,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;aAC9B,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;aACzC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC;QAE7B,kEAAkE;QAClE,oDAAoD;QACpD,IAAI,CAAC,KAAK,SAAS,IAAI,EAAE,KAAK,SAAS,IAAI,GAAG,KAAK,SAAS,EAAE;YAC5D,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;SAC/D;QAED,2BAA2B;QAC3B,2DAA2D;QAC3D,MAAM,MAAM,GAAG,KAAK,CAAC,CAAS,CAAC;QAC/B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":3,"file":"forceGraph.js","sourceRoot":"src/","sources":["mark/forceGraph.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,uCAOkB;AAClB,qCAAqC;AACrC,4CAA4C;AAG5C,wCAA2D;AAC3D,mCAAgD;AAWhD,MAAM,sBAAsB,GAAgB;IAC1C,KAAK,EAAE,IAAI;CACZ,CAAC;AAEF,MAAM,oBAAoB,GAAG;IAC3B,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,KAAK;IACX,MAAM,EAAE,KAAK;IACb,MAAM,EAAE;QACN,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;QACzC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;KAC1C;IACD,KAAK,EAAE;QACL,MAAM,EAAE,MAAM;QACd,aAAa,EAAE,GAAG;KACnB;CACF,CAAC;AAEF,MAAM,oBAAoB,GAAG;IAC3B,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,KAAK;IACX,MAAM,EAAE,KAAK;IACb,MAAM,EAAE;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,OAAO;QACd,KAAK,EAAE,OAAO;KACf;IACD,KAAK,EAAE;QACL,
|
|
1
|
+
{"version":3,"file":"forceGraph.js","sourceRoot":"src/","sources":["mark/forceGraph.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,uCAOkB;AAClB,qCAAqC;AACrC,4CAA4C;AAG5C,wCAA2D;AAC3D,mCAAgD;AAWhD,MAAM,sBAAsB,GAAgB;IAC1C,KAAK,EAAE,IAAI;CACZ,CAAC;AAE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|
|
4
|
+
const shape_1 = require("../shape");
|
|
5
|
+
const transform_1 = require("../transform");
|
|
4
6
|
const utils_1 = require("./utils");
|
|
7
|
+
const shape = {
|
|
8
|
+
heatmap: shape_1.HeatmapShape,
|
|
9
|
+
};
|
|
5
10
|
/**
|
|
6
11
|
* Draw heatmap with gradient.
|
|
7
12
|
*/
|
|
@@ -18,13 +23,13 @@ const Heatmap = (options) => {
|
|
|
18
23
|
};
|
|
19
24
|
};
|
|
20
25
|
exports.Heatmap = Heatmap;
|
|
21
|
-
const shapes = ['heatmap'];
|
|
22
26
|
exports.Heatmap.props = {
|
|
23
27
|
defaultShape: 'heatmap',
|
|
24
28
|
defaultLabelShape: 'label',
|
|
25
29
|
composite: false,
|
|
30
|
+
shape,
|
|
26
31
|
channels: [
|
|
27
|
-
...(0, utils_1.baseGeometryChannels)({ shapes }),
|
|
32
|
+
...(0, utils_1.baseGeometryChannels)({ shapes: Object.keys(shape) }),
|
|
28
33
|
{ name: 'x', required: true },
|
|
29
34
|
{ name: 'y', required: true },
|
|
30
35
|
{ name: 'color', scale: 'identity', required: true },
|
|
@@ -32,8 +37,8 @@ exports.Heatmap.props = {
|
|
|
32
37
|
],
|
|
33
38
|
preInference: [
|
|
34
39
|
...(0, utils_1.basePreInference)(),
|
|
35
|
-
{ type:
|
|
36
|
-
{ type:
|
|
40
|
+
{ type: transform_1.MaybeZeroX },
|
|
41
|
+
{ type: transform_1.MaybeZeroY },
|
|
37
42
|
],
|
|
38
43
|
postInference: [...(0, utils_1.basePostInference)(), ...(0, utils_1.tooltip2d)()],
|
|
39
44
|
};
|
package/lib/mark/heatmap.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heatmap.js","sourceRoot":"src/","sources":["mark/heatmap.ts"],"names":[],"mappings":";;;AAEA,mCAKiB;
|
|
1
|
+
{"version":3,"file":"heatmap.js","sourceRoot":"src/","sources":["mark/heatmap.ts"],"names":[],"mappings":";;;AAEA,oCAAwC;AACxC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,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC7B,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE;QACpD,EAAE,IAAI,EAAE,MAAM,EAAE;KACjB;IACD,YAAY,EAAE;QACZ,GAAG,IAAA,wBAAgB,GAAE;QACrB,EAAE,IAAI,EAAE,sBAAU,EAAE;QACpB,EAAE,IAAI,EAAE,sBAAU,EAAE;KACrB;IACD,aAAa,EAAE,CAAC,GAAG,IAAA,yBAAiB,GAAE,EAAE,GAAG,IAAA,iBAAS,GAAE,CAAC;CACxD,CAAC"}
|
package/lib/mark/image.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Image = void 0;
|
|
4
|
+
const transform_1 = require("../transform");
|
|
5
|
+
const shape_1 = require("../shape");
|
|
4
6
|
const utils_1 = require("./utils");
|
|
7
|
+
const shape = {
|
|
8
|
+
image: shape_1.ImageShape,
|
|
9
|
+
};
|
|
5
10
|
const Image = (options) => {
|
|
6
11
|
const { cartesian } = options;
|
|
7
12
|
if (cartesian)
|
|
@@ -17,13 +22,13 @@ const Image = (options) => {
|
|
|
17
22
|
};
|
|
18
23
|
};
|
|
19
24
|
exports.Image = Image;
|
|
20
|
-
const shapes = ['image'];
|
|
21
25
|
exports.Image.props = {
|
|
22
26
|
defaultShape: 'image',
|
|
23
27
|
defaultLabelShape: 'label',
|
|
24
28
|
composite: false,
|
|
29
|
+
shape,
|
|
25
30
|
channels: [
|
|
26
|
-
...(0, utils_1.baseGeometryChannels)({ shapes }),
|
|
31
|
+
...(0, utils_1.baseGeometryChannels)({ shapes: Object.keys(shape) }),
|
|
27
32
|
{ name: 'x', required: true },
|
|
28
33
|
{ name: 'y', required: true },
|
|
29
34
|
{ name: 'src', scale: 'identity' },
|
|
@@ -31,8 +36,8 @@ exports.Image.props = {
|
|
|
31
36
|
],
|
|
32
37
|
preInference: [
|
|
33
38
|
...(0, utils_1.basePreInference)(),
|
|
34
|
-
{ type:
|
|
35
|
-
{ type:
|
|
39
|
+
{ type: transform_1.MaybeTuple },
|
|
40
|
+
{ type: transform_1.MaybeVisualPosition },
|
|
36
41
|
],
|
|
37
42
|
postInference: [...(0, utils_1.basePostInference)(), ...(0, utils_1.tooltip2d)()],
|
|
38
43
|
};
|
package/lib/mark/image.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.js","sourceRoot":"src/","sources":["mark/image.ts"],"names":[],"mappings":";;;AAEA,mCAOiB;
|
|
1
|
+
{"version":3,"file":"image.js","sourceRoot":"src/","sources":["mark/image.ts"],"names":[],"mappings":";;;AAEA,4CAA+D;AAC/D,oCAAsC;AACtC,mCAOiB;AAEjB,MAAM,KAAK,GAAG;IACZ,KAAK,EAAE,kBAAU;CAClB,CAAC;AAIK,MAAM,KAAK,GAAqB,CAAC,OAAO,EAAE,EAAE;IACjD,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;IAC9B,IAAI,SAAS;QAAE,OAAO,kBAAkB,CAAC;IACzC,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE;QACzC,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,KAAK,CAAC;QAC7B,MAAM,MAAM,GAAG,IAAA,wBAAgB,EAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QACvD,MAAM,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,EAAE;YAChC,MAAM,CAAC,GAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAClC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,C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