@antv/g2 5.0.18 → 5.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/g2-lite.min.js +3 -3
- package/dist/g2.min.js +3 -3
- package/esm/api/chart.d.ts +175 -85
- package/esm/api/chart.js +3 -259
- package/esm/api/chart.js.map +1 -1
- package/esm/api/composition.d.ts +37 -0
- package/esm/api/{composition/base.js → composition.js} +17 -5
- package/esm/api/composition.js.map +1 -0
- package/esm/api/define.d.ts +14 -0
- package/esm/api/define.js +92 -0
- package/esm/api/define.js.map +1 -0
- package/esm/api/extend.d.ts +10 -0
- package/esm/api/extend.js +9 -0
- package/esm/api/extend.js.map +1 -0
- package/esm/api/index.d.ts +2 -0
- package/esm/api/index.js +2 -0
- package/esm/api/index.js.map +1 -1
- package/esm/api/library.d.ts +171 -1
- package/esm/api/library.js +2 -2
- package/esm/api/library.js.map +1 -1
- package/esm/api/mark.d.ts +29 -0
- package/esm/api/{mark/base.js → mark.js} +16 -4
- package/esm/api/mark.js.map +1 -0
- package/esm/api/node.d.ts +2 -2
- package/esm/api/node.js.map +1 -1
- package/esm/api/props.d.ts +170 -12
- package/esm/api/props.js +21 -102
- package/esm/api/props.js.map +1 -1
- package/esm/api/runtime.d.ts +66 -0
- package/esm/api/runtime.js +294 -0
- package/esm/api/runtime.js.map +1 -0
- package/esm/api/types.d.ts +60 -5
- package/esm/api/utils.d.ts +1 -1
- package/esm/api/utils.js +11 -13
- package/esm/api/utils.js.map +1 -1
- package/esm/component/axis.js +7 -4
- package/esm/component/axis.js.map +1 -1
- package/esm/component/legendCategory.js +4 -5
- package/esm/component/legendCategory.js.map +1 -1
- package/esm/composition/d3Projection.js.map +1 -0
- package/esm/composition/geoPath.js.map +1 -0
- package/esm/{geo → composition}/geoView.js +1 -1
- package/esm/composition/geoView.js.map +1 -0
- package/esm/composition/index.d.ts +2 -0
- package/esm/composition/index.js +2 -0
- package/esm/composition/index.js.map +1 -1
- package/esm/data/index.d.ts +2 -0
- package/esm/data/index.js +1 -0
- package/esm/data/index.js.map +1 -1
- package/esm/data/log.d.ts +7 -0
- package/esm/data/log.js +11 -0
- package/esm/data/log.js.map +1 -0
- package/esm/index.d.ts +4 -3
- package/esm/index.js +3 -2
- package/esm/index.js.map +1 -1
- package/esm/interaction/brushFilter.js +18 -16
- package/esm/interaction/brushFilter.js.map +1 -1
- package/esm/interaction/chartIndex.js +25 -22
- package/esm/interaction/chartIndex.js.map +1 -1
- package/esm/interaction/fisheye.js +17 -13
- package/esm/interaction/fisheye.js.map +1 -1
- package/esm/interaction/legendFilter.js +32 -26
- package/esm/interaction/legendFilter.js.map +1 -1
- package/esm/interaction/sliderFilter.js +8 -9
- package/esm/interaction/sliderFilter.js.map +1 -1
- package/esm/interaction/tooltip.d.ts +1 -1
- package/esm/interaction/tooltip.js +39 -4
- package/esm/interaction/tooltip.js.map +1 -1
- package/esm/label-transform/overlapDodgeY.js.map +1 -1
- package/esm/lib/core.d.ts +159 -0
- package/esm/lib/core.js +175 -0
- package/esm/lib/core.js.map +1 -0
- package/esm/lib/geo.d.ts +4 -0
- package/esm/lib/geo.js +9 -0
- package/esm/lib/geo.js.map +1 -0
- package/esm/lib/graph.d.ts +4 -0
- package/esm/lib/graph.js +8 -0
- package/esm/lib/graph.js.map +1 -0
- package/esm/lib/index.d.ts +6 -0
- package/esm/lib/index.js +7 -0
- package/esm/lib/index.js.map +1 -0
- package/esm/lib/lite.d.ts +64 -0
- package/esm/lib/lite.js +78 -0
- package/esm/lib/lite.js.map +1 -0
- package/esm/lib/plot.d.ts +11 -0
- package/esm/lib/plot.js +16 -0
- package/esm/lib/plot.js.map +1 -0
- package/esm/lib/std.d.ts +171 -0
- package/esm/lib/std.js +8 -0
- package/esm/lib/std.js.map +1 -0
- package/esm/mark/area.js +14 -5
- package/esm/mark/area.js.map +1 -1
- package/esm/mark/box.js +9 -2
- package/esm/mark/box.js.map +1 -1
- package/esm/mark/cell.js +11 -5
- package/esm/mark/cell.js.map +1 -1
- package/esm/mark/connector.js +6 -2
- package/esm/mark/connector.js.map +1 -1
- package/esm/mark/density.js +10 -7
- package/esm/mark/density.js.map +1 -1
- package/esm/mark/forceGraph.js +0 -3
- package/esm/mark/forceGraph.js.map +1 -1
- package/esm/mark/heatmap.js +9 -4
- package/esm/mark/heatmap.js.map +1 -1
- package/esm/mark/image.js +9 -4
- package/esm/mark/image.js.map +1 -1
- package/esm/mark/interval.js +13 -7
- package/esm/mark/interval.js.map +1 -1
- package/esm/mark/line.js +15 -4
- package/esm/mark/line.js.map +1 -1
- package/esm/mark/lineX.js +8 -3
- package/esm/mark/lineX.js.map +1 -1
- package/esm/mark/lineY.js +8 -3
- package/esm/mark/lineY.js.map +1 -1
- package/esm/mark/link.js +12 -4
- package/esm/mark/link.js.map +1 -1
- package/esm/mark/path.js +7 -2
- package/esm/mark/path.js.map +1 -1
- package/esm/mark/point.js +28 -29
- package/esm/mark/point.js.map +1 -1
- package/esm/mark/polygon.js +7 -2
- package/esm/mark/polygon.js.map +1 -1
- package/esm/mark/range.js +4 -2
- package/esm/mark/range.js.map +1 -1
- package/esm/mark/rangeX.js +6 -2
- package/esm/mark/rangeX.js.map +1 -1
- package/esm/mark/rangeY.js +6 -2
- package/esm/mark/rangeY.js.map +1 -1
- package/esm/mark/rect.js +9 -3
- package/esm/mark/rect.js.map +1 -1
- package/esm/mark/shape.js +9 -3
- package/esm/mark/shape.js.map +1 -1
- package/esm/mark/text.js +10 -4
- package/esm/mark/text.js.map +1 -1
- package/esm/mark/treemap.js.map +1 -1
- package/esm/mark/utils.d.ts +11 -8
- package/esm/mark/utils.js +8 -7
- package/esm/mark/utils.js.map +1 -1
- package/esm/mark/vector.js +6 -2
- package/esm/mark/vector.js.map +1 -1
- package/esm/runtime/index.d.ts +1 -1
- package/esm/runtime/index.js +1 -1
- package/esm/runtime/index.js.map +1 -1
- package/esm/runtime/plot.js +32 -13
- package/esm/runtime/plot.js.map +1 -1
- package/esm/runtime/render.js +3 -6
- package/esm/runtime/render.js.map +1 -1
- package/esm/runtime/types/component.d.ts +1 -1
- package/esm/runtime/types/mark.d.ts +4 -0
- package/esm/runtime/types/options.d.ts +4 -1
- package/esm/shape/index.d.ts +106 -101
- package/esm/shape/index.js +58 -53
- package/esm/shape/index.js.map +1 -1
- package/esm/shape/text/advance.js +3 -3
- package/esm/shape/text/advance.js.map +1 -1
- package/esm/spec/composition.d.ts +7 -0
- package/esm/spec/dataTransform.d.ts +3 -2
- package/esm/spec/index.d.ts +1 -0
- package/esm/spec/index.js.map +1 -1
- package/esm/spec/interaction.d.ts +4 -1
- package/esm/theme/academy.js +6 -6
- package/esm/theme/classic.js +6 -7
- package/esm/theme/classic.js.map +1 -1
- package/esm/theme/classicDark.js +6 -6
- package/esm/utils/coordinate.d.ts +2 -2
- package/esm/utils/scale.d.ts +1 -1
- package/esm/utils/scale.js +1 -1
- package/esm/utils/scale.js.map +1 -1
- package/lib/api/chart.d.ts +175 -85
- package/lib/api/chart.js +4 -263
- package/lib/api/chart.js.map +1 -1
- package/lib/api/composition.d.ts +37 -0
- package/lib/api/{composition/base.js → composition.js} +16 -5
- package/lib/api/composition.js.map +1 -0
- package/lib/api/define.d.ts +14 -0
- package/lib/api/define.js +97 -0
- package/lib/api/define.js.map +1 -0
- package/lib/api/extend.d.ts +10 -0
- package/lib/api/extend.js +13 -0
- package/lib/api/extend.js.map +1 -0
- package/lib/api/index.d.ts +2 -0
- package/lib/api/index.js +5 -1
- package/lib/api/index.js.map +1 -1
- package/lib/api/library.d.ts +171 -1
- package/lib/api/library.js +2 -2
- package/lib/api/library.js.map +1 -1
- package/lib/api/mark.d.ts +29 -0
- package/lib/api/{mark/base.js → mark.js} +15 -4
- package/lib/api/mark.js.map +1 -0
- package/lib/api/node.d.ts +2 -2
- package/lib/api/node.js.map +1 -1
- package/lib/api/props.d.ts +170 -12
- package/lib/api/props.js +22 -106
- package/lib/api/props.js.map +1 -1
- package/lib/api/runtime.d.ts +66 -0
- package/lib/api/runtime.js +301 -0
- package/lib/api/runtime.js.map +1 -0
- package/lib/api/types.d.ts +60 -5
- package/lib/api/utils.d.ts +1 -1
- package/lib/api/utils.js +14 -16
- package/lib/api/utils.js.map +1 -1
- package/lib/component/axis.js +7 -4
- package/lib/component/axis.js.map +1 -1
- package/lib/component/legendCategory.js +4 -5
- package/lib/component/legendCategory.js.map +1 -1
- package/lib/composition/d3Projection.js.map +1 -0
- package/lib/composition/geoPath.js.map +1 -0
- package/lib/{geo → composition}/geoView.js +1 -1
- package/lib/composition/geoView.js.map +1 -0
- package/lib/composition/index.d.ts +2 -0
- package/lib/composition/index.js +5 -1
- package/lib/composition/index.js.map +1 -1
- package/lib/data/index.d.ts +2 -0
- package/lib/data/index.js +3 -1
- package/lib/data/index.js.map +1 -1
- package/lib/data/log.d.ts +7 -0
- package/lib/data/log.js +15 -0
- package/lib/data/log.js.map +1 -0
- package/lib/index.d.ts +4 -3
- package/lib/index.js +8 -3
- package/lib/index.js.map +1 -1
- package/lib/interaction/brushFilter.js +18 -16
- package/lib/interaction/brushFilter.js.map +1 -1
- package/lib/interaction/chartIndex.js +25 -22
- package/lib/interaction/chartIndex.js.map +1 -1
- package/lib/interaction/fisheye.js +17 -13
- package/lib/interaction/fisheye.js.map +1 -1
- package/lib/interaction/legendFilter.js +32 -26
- package/lib/interaction/legendFilter.js.map +1 -1
- package/lib/interaction/sliderFilter.js +8 -9
- package/lib/interaction/sliderFilter.js.map +1 -1
- package/lib/interaction/tooltip.d.ts +1 -1
- package/lib/interaction/tooltip.js +38 -3
- package/lib/interaction/tooltip.js.map +1 -1
- package/lib/label-transform/overlapDodgeY.js.map +1 -1
- package/lib/lib/core.d.ts +159 -0
- package/lib/lib/core.js +179 -0
- package/lib/lib/core.js.map +1 -0
- package/lib/lib/geo.d.ts +4 -0
- package/lib/lib/geo.js +13 -0
- package/lib/lib/geo.js.map +1 -0
- package/lib/lib/graph.d.ts +4 -0
- package/lib/lib/graph.js +12 -0
- package/lib/lib/graph.js.map +1 -0
- package/lib/lib/index.d.ts +6 -0
- package/lib/lib/index.js +16 -0
- package/lib/lib/index.js.map +1 -0
- package/lib/lib/lite.d.ts +64 -0
- package/lib/lib/lite.js +82 -0
- package/lib/lib/lite.js.map +1 -0
- package/lib/lib/plot.d.ts +11 -0
- package/lib/lib/plot.js +20 -0
- package/lib/lib/plot.js.map +1 -0
- package/lib/lib/std.d.ts +171 -0
- package/lib/lib/std.js +12 -0
- package/lib/lib/std.js.map +1 -0
- package/lib/mark/area.js +14 -5
- package/lib/mark/area.js.map +1 -1
- package/lib/mark/box.js +9 -2
- package/lib/mark/box.js.map +1 -1
- package/lib/mark/cell.js +11 -5
- package/lib/mark/cell.js.map +1 -1
- package/lib/mark/connector.js +6 -2
- package/lib/mark/connector.js.map +1 -1
- package/lib/mark/density.js +10 -7
- package/lib/mark/density.js.map +1 -1
- package/lib/mark/forceGraph.js +0 -3
- package/lib/mark/forceGraph.js.map +1 -1
- package/lib/mark/heatmap.js +9 -4
- package/lib/mark/heatmap.js.map +1 -1
- package/lib/mark/image.js +9 -4
- package/lib/mark/image.js.map +1 -1
- package/lib/mark/interval.js +13 -7
- package/lib/mark/interval.js.map +1 -1
- package/lib/mark/line.js +15 -4
- package/lib/mark/line.js.map +1 -1
- package/lib/mark/lineX.js +8 -3
- package/lib/mark/lineX.js.map +1 -1
- package/lib/mark/lineY.js +8 -3
- package/lib/mark/lineY.js.map +1 -1
- package/lib/mark/link.js +12 -4
- package/lib/mark/link.js.map +1 -1
- package/lib/mark/path.js +7 -2
- package/lib/mark/path.js.map +1 -1
- package/lib/mark/point.js +28 -29
- package/lib/mark/point.js.map +1 -1
- package/lib/mark/polygon.js +7 -2
- package/lib/mark/polygon.js.map +1 -1
- package/lib/mark/range.js +4 -2
- package/lib/mark/range.js.map +1 -1
- package/lib/mark/rangeX.js +6 -2
- package/lib/mark/rangeX.js.map +1 -1
- package/lib/mark/rangeY.js +6 -2
- package/lib/mark/rangeY.js.map +1 -1
- package/lib/mark/rect.js +9 -3
- package/lib/mark/rect.js.map +1 -1
- package/lib/mark/shape.js +9 -3
- package/lib/mark/shape.js.map +1 -1
- package/lib/mark/text.js +10 -4
- package/lib/mark/text.js.map +1 -1
- package/lib/mark/treemap.js.map +1 -1
- package/lib/mark/utils.d.ts +11 -8
- package/lib/mark/utils.js +8 -7
- package/lib/mark/utils.js.map +1 -1
- package/lib/mark/vector.js +6 -2
- package/lib/mark/vector.js.map +1 -1
- package/lib/runtime/index.d.ts +1 -1
- package/lib/runtime/index.js +4 -4
- package/lib/runtime/index.js.map +1 -1
- package/lib/runtime/plot.js +32 -13
- package/lib/runtime/plot.js.map +1 -1
- package/lib/runtime/render.js +3 -6
- package/lib/runtime/render.js.map +1 -1
- package/lib/runtime/types/component.d.ts +1 -1
- package/lib/runtime/types/mark.d.ts +4 -0
- package/lib/runtime/types/options.d.ts +4 -1
- package/lib/shape/index.d.ts +106 -101
- package/lib/shape/index.js +71 -61
- package/lib/shape/index.js.map +1 -1
- package/lib/shape/text/advance.js +3 -3
- package/lib/shape/text/advance.js.map +1 -1
- package/lib/spec/composition.d.ts +7 -0
- package/lib/spec/dataTransform.d.ts +3 -2
- package/lib/spec/index.d.ts +1 -0
- package/lib/spec/index.js.map +1 -1
- package/lib/spec/interaction.d.ts +4 -1
- package/lib/theme/academy.js +6 -6
- package/lib/theme/classic.js +6 -7
- package/lib/theme/classic.js.map +1 -1
- package/lib/theme/classicDark.js +6 -6
- package/lib/utils/coordinate.d.ts +2 -2
- package/lib/utils/scale.d.ts +1 -1
- package/lib/utils/scale.js +1 -1
- package/lib/utils/scale.js.map +1 -1
- package/package.json +8 -7
- package/src/api/chart.ts +5 -341
- package/src/api/{composition/base.ts → composition.ts} +16 -8
- package/src/api/define.ts +128 -0
- package/src/api/extend.ts +36 -0
- package/src/api/index.ts +2 -0
- package/src/api/library.ts +2 -2
- package/src/api/{mark/base.ts → mark.ts} +10 -7
- package/src/api/node.ts +3 -3
- package/src/api/props.ts +30 -114
- package/src/api/runtime.ts +366 -0
- package/src/api/types.ts +95 -17
- package/src/api/utils.ts +28 -11
- package/src/component/axis.ts +10 -5
- package/src/component/legendCategory.ts +4 -6
- package/src/{geo → composition}/geoView.ts +1 -1
- package/src/composition/index.ts +2 -0
- package/src/data/index.ts +2 -0
- package/src/data/log.ts +16 -0
- package/src/index.ts +12 -3
- package/src/interaction/brushFilter.ts +31 -28
- package/src/interaction/chartIndex.ts +26 -23
- package/src/interaction/fisheye.ts +16 -12
- package/src/interaction/legendFilter.ts +45 -40
- package/src/interaction/sliderFilter.ts +15 -16
- package/src/interaction/tooltip.ts +47 -3
- package/src/label-transform/overlapDodgeY.ts +0 -1
- package/src/{stdlib/index.ts → lib/core.ts} +76 -258
- package/src/lib/geo.ts +9 -0
- package/src/lib/graph.ts +8 -0
- package/src/lib/index.ts +6 -0
- package/src/lib/lite.ts +127 -0
- package/src/lib/plot.ts +16 -0
- package/src/lib/std.ts +13 -0
- package/src/mark/area.ts +15 -6
- package/src/mark/box.ts +10 -2
- package/src/mark/cell.ts +12 -6
- package/src/mark/connector.ts +7 -3
- package/src/mark/density.ts +11 -8
- package/src/mark/forceGraph.ts +0 -3
- package/src/mark/heatmap.ts +10 -5
- package/src/mark/image.ts +10 -5
- package/src/mark/interval.ts +22 -10
- package/src/mark/line.ts +23 -5
- package/src/mark/lineX.ts +9 -4
- package/src/mark/lineY.ts +9 -4
- package/src/mark/link.ts +13 -5
- package/src/mark/path.ts +8 -3
- package/src/mark/point.ts +49 -30
- package/src/mark/polygon.ts +8 -3
- package/src/mark/range.ts +5 -3
- package/src/mark/rangeX.ts +7 -3
- package/src/mark/rangeY.ts +7 -3
- package/src/mark/rect.ts +10 -4
- package/src/mark/shape.ts +14 -3
- package/src/mark/text.ts +11 -5
- package/src/mark/treemap.ts +0 -1
- package/src/mark/utils.ts +9 -8
- package/src/mark/vector.ts +7 -3
- package/src/runtime/index.ts +1 -1
- package/src/runtime/plot.ts +41 -17
- package/src/runtime/render.ts +3 -6
- package/src/runtime/types/component.ts +1 -2
- package/src/runtime/types/mark.ts +4 -0
- package/src/runtime/types/options.ts +4 -1
- package/src/shape/index.ts +106 -110
- package/src/shape/text/advance.ts +1 -2
- package/src/spec/composition.ts +7 -0
- package/src/spec/dataTransform.ts +5 -0
- package/src/spec/index.ts +1 -0
- package/src/spec/interaction.ts +5 -1
- package/src/theme/academy.ts +6 -6
- package/src/theme/classic.ts +6 -7
- package/src/theme/classicDark.ts +6 -6
- package/src/utils/scale.ts +1 -1
- package/esm/api/composition/base.d.ts +0 -28
- package/esm/api/composition/base.js.map +0 -1
- package/esm/api/composition/facetCircle.d.ts +0 -17
- package/esm/api/composition/facetCircle.js +0 -27
- package/esm/api/composition/facetCircle.js.map +0 -1
- package/esm/api/composition/facetRect.d.ts +0 -17
- package/esm/api/composition/facetRect.js +0 -27
- package/esm/api/composition/facetRect.js.map +0 -1
- package/esm/api/composition/geoPath.d.ts +0 -20
- package/esm/api/composition/geoPath.js +0 -30
- package/esm/api/composition/geoPath.js.map +0 -1
- package/esm/api/composition/geoView.d.ts +0 -19
- package/esm/api/composition/geoView.js +0 -28
- package/esm/api/composition/geoView.js.map +0 -1
- package/esm/api/composition/index.d.ts +0 -33
- package/esm/api/composition/index.js +0 -32
- package/esm/api/composition/index.js.map +0 -1
- package/esm/api/composition/repeatMatrix.d.ts +0 -17
- package/esm/api/composition/repeatMatrix.js +0 -27
- package/esm/api/composition/repeatMatrix.js.map +0 -1
- package/esm/api/composition/spaceFlex.d.ts +0 -12
- package/esm/api/composition/spaceFlex.js +0 -19
- package/esm/api/composition/spaceFlex.js.map +0 -1
- package/esm/api/composition/spaceLayer.d.ts +0 -12
- package/esm/api/composition/spaceLayer.js +0 -19
- package/esm/api/composition/spaceLayer.js.map +0 -1
- package/esm/api/composition/timingKeyframe.d.ts +0 -11
- package/esm/api/composition/timingKeyframe.js +0 -19
- package/esm/api/composition/timingKeyframe.js.map +0 -1
- package/esm/api/composition/view.d.ts +0 -19
- package/esm/api/composition/view.js +0 -29
- package/esm/api/composition/view.js.map +0 -1
- package/esm/api/mark/base.d.ts +0 -22
- package/esm/api/mark/base.js.map +0 -1
- package/esm/api/mark/index.d.ts +0 -75
- package/esm/api/mark/index.js +0 -39
- package/esm/api/mark/index.js.map +0 -1
- package/esm/api/mark/mark.d.ts +0 -212
- package/esm/api/mark/mark.js +0 -339
- package/esm/api/mark/mark.js.map +0 -1
- package/esm/api/mark/types.d.ts +0 -26
- package/esm/api/mark/types.js +0 -2
- package/esm/api/mark/types.js.map +0 -1
- package/esm/geo/d3Projection.js.map +0 -1
- package/esm/geo/geoPath.js.map +0 -1
- package/esm/geo/geoView.js.map +0 -1
- package/esm/geo/index.d.ts +0 -9
- package/esm/geo/index.js +0 -8
- package/esm/geo/index.js.map +0 -1
- package/esm/stdlib/index.d.ts +0 -2
- package/esm/stdlib/index.js +0 -21
- package/esm/stdlib/index.js.map +0 -1
- package/lib/api/composition/base.d.ts +0 -28
- package/lib/api/composition/base.js.map +0 -1
- package/lib/api/composition/facetCircle.d.ts +0 -17
- package/lib/api/composition/facetCircle.js +0 -30
- package/lib/api/composition/facetCircle.js.map +0 -1
- package/lib/api/composition/facetRect.d.ts +0 -17
- package/lib/api/composition/facetRect.js +0 -30
- package/lib/api/composition/facetRect.js.map +0 -1
- package/lib/api/composition/geoPath.d.ts +0 -20
- package/lib/api/composition/geoPath.js +0 -33
- package/lib/api/composition/geoPath.js.map +0 -1
- package/lib/api/composition/geoView.d.ts +0 -19
- package/lib/api/composition/geoView.js +0 -31
- package/lib/api/composition/geoView.js.map +0 -1
- package/lib/api/composition/index.d.ts +0 -33
- package/lib/api/composition/index.js +0 -44
- package/lib/api/composition/index.js.map +0 -1
- package/lib/api/composition/repeatMatrix.d.ts +0 -17
- package/lib/api/composition/repeatMatrix.js +0 -30
- package/lib/api/composition/repeatMatrix.js.map +0 -1
- package/lib/api/composition/spaceFlex.d.ts +0 -12
- package/lib/api/composition/spaceFlex.js +0 -22
- package/lib/api/composition/spaceFlex.js.map +0 -1
- package/lib/api/composition/spaceLayer.d.ts +0 -12
- package/lib/api/composition/spaceLayer.js +0 -22
- package/lib/api/composition/spaceLayer.js.map +0 -1
- package/lib/api/composition/timingKeyframe.d.ts +0 -11
- package/lib/api/composition/timingKeyframe.js +0 -22
- package/lib/api/composition/timingKeyframe.js.map +0 -1
- package/lib/api/composition/view.d.ts +0 -19
- package/lib/api/composition/view.js +0 -32
- package/lib/api/composition/view.js.map +0 -1
- package/lib/api/mark/base.d.ts +0 -22
- package/lib/api/mark/base.js.map +0 -1
- package/lib/api/mark/index.d.ts +0 -75
- package/lib/api/mark/index.js +0 -43
- package/lib/api/mark/index.js.map +0 -1
- package/lib/api/mark/mark.d.ts +0 -212
- package/lib/api/mark/mark.js +0 -342
- package/lib/api/mark/mark.js.map +0 -1
- package/lib/api/mark/types.d.ts +0 -26
- package/lib/api/mark/types.js +0 -3
- package/lib/api/mark/types.js.map +0 -1
- package/lib/geo/d3Projection.js.map +0 -1
- package/lib/geo/geoPath.js.map +0 -1
- package/lib/geo/geoView.js.map +0 -1
- package/lib/geo/index.d.ts +0 -9
- package/lib/geo/index.js +0 -12
- package/lib/geo/index.js.map +0 -1
- package/lib/stdlib/index.d.ts +0 -2
- package/lib/stdlib/index.js +0 -25
- package/lib/stdlib/index.js.map +0 -1
- package/src/api/composition/facetCircle.ts +0 -36
- package/src/api/composition/facetRect.ts +0 -36
- package/src/api/composition/geoPath.ts +0 -37
- package/src/api/composition/geoView.ts +0 -39
- package/src/api/composition/index.ts +0 -57
- package/src/api/composition/repeatMatrix.ts +0 -36
- package/src/api/composition/spaceFlex.ts +0 -18
- package/src/api/composition/spaceLayer.ts +0 -18
- package/src/api/composition/timingKeyframe.ts +0 -16
- package/src/api/composition/view.ts +0 -42
- package/src/api/mark/index.ts +0 -113
- package/src/api/mark/mark.ts +0 -439
- package/src/api/mark/types.ts +0 -31
- package/src/geo/index.ts +0 -12
- /package/esm/{geo → composition}/d3Projection.d.ts +0 -0
- /package/esm/{geo → composition}/d3Projection.js +0 -0
- /package/esm/{geo → composition}/geoPath.d.ts +0 -0
- /package/esm/{geo → composition}/geoPath.js +0 -0
- /package/esm/{geo → composition}/geoView.d.ts +0 -0
- /package/lib/{geo → composition}/d3Projection.d.ts +0 -0
- /package/lib/{geo → composition}/d3Projection.js +0 -0
- /package/lib/{geo → composition}/geoPath.d.ts +0 -0
- /package/lib/{geo → composition}/geoPath.js +0 -0
- /package/lib/{geo → composition}/geoView.d.ts +0 -0
- /package/src/{geo → composition}/d3Projection.ts +0 -0
- /package/src/{geo → composition}/geoPath.ts +0 -0
package/src/shape/index.ts
CHANGED
|
@@ -1,112 +1,108 @@
|
|
|
1
|
-
export { Rect } from './interval/rect';
|
|
2
|
-
export { Hollow as
|
|
3
|
-
export { Funnel } from './interval/funnel';
|
|
4
|
-
export { Pyramid } from './interval/pyramid';
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export { Hyphen } from './point/hyphen';
|
|
25
|
-
export { Line as
|
|
26
|
-
export { Plus } from './point/plus';
|
|
27
|
-
export { Point } from './point/point';
|
|
28
|
-
export { Square } from './point/square';
|
|
29
|
-
export { Tick } from './point/tick';
|
|
30
|
-
export { Triangle } from './point/triangle';
|
|
31
|
-
export { TriangleDown } from './point/triangleDown';
|
|
32
|
-
export { Vector } from './vector/vector';
|
|
33
|
-
export { Text } from './text/text';
|
|
34
|
-
export { Badge } from './text/badge';
|
|
35
|
-
export { Area } from './area/area';
|
|
36
|
-
export { Smooth as
|
|
37
|
-
export { HVH as
|
|
38
|
-
export { VH as
|
|
39
|
-
export { HV as
|
|
40
|
-
export { Link } from './link/link';
|
|
41
|
-
export { Smooth as
|
|
42
|
-
export { VHV as
|
|
43
|
-
export { Arc } from './link/arc';
|
|
44
|
-
export { Image } from './image/image';
|
|
45
|
-
export { Polygon } from './polygon/polygon';
|
|
46
|
-
export { Ribbon } from './polygon/ribbon';
|
|
47
|
-
export { Box } from './box/box';
|
|
48
|
-
export { Violin } from './box/violin';
|
|
1
|
+
export { Rect as IntervalShape } from './interval/rect';
|
|
2
|
+
export { Hollow as IntervalHollow } from './interval/hollow';
|
|
3
|
+
export { Funnel as IntervalFunnel } from './interval/funnel';
|
|
4
|
+
export { Pyramid as IntervalPyramid } from './interval/pyramid';
|
|
5
|
+
export { Rect as CellShape } from './interval/rect';
|
|
6
|
+
export { Hollow as CellHollow } from './interval/hollow';
|
|
7
|
+
export { Line as LineShape } from './line/line';
|
|
8
|
+
export { Smooth as LineSmooth } from './line/smooth';
|
|
9
|
+
export { HV as LineHV } from './line/hv';
|
|
10
|
+
export { VH as LineVH } from './line/vh';
|
|
11
|
+
export { HVH as LineHVH } from './line/hvh';
|
|
12
|
+
export { Trail as LineTrail } from './line/trail';
|
|
13
|
+
export { HollowBowtie as PointHollowBowtie } from './point/hollowBowtie';
|
|
14
|
+
export { HollowDiamond as PointHollowDiamond } from './point/hollowDiamond';
|
|
15
|
+
export { HollowHexagon as PointHollowHexagon } from './point/hollowHexagon';
|
|
16
|
+
export { HollowPoint as PointHollow } from './point/hollow';
|
|
17
|
+
export { HollowSquare as PointHollowSquare } from './point/hollowSquare';
|
|
18
|
+
export { HollowTriangle as PointHollowTriangle } from './point/hollowTriangle';
|
|
19
|
+
export { HollowTriangleDown as PointHollowTriangleDown } from './point/hollowTriangleDown';
|
|
20
|
+
export { Bowtie as PointBowtie } from './point/bowtie';
|
|
21
|
+
export { Cross as PointCross } from './point/cross';
|
|
22
|
+
export { Diamond as PointDiamond } from './point/diamond';
|
|
23
|
+
export { Hexagon as PointHexagon } from './point/hexagon';
|
|
24
|
+
export { Hyphen as PointHyphen } from './point/hyphen';
|
|
25
|
+
export { Line as PointLine } from './point/line';
|
|
26
|
+
export { Plus as PointPlus } from './point/plus';
|
|
27
|
+
export { Point as PointShape } from './point/point';
|
|
28
|
+
export { Square as PointSquare } from './point/square';
|
|
29
|
+
export { Tick as PointTick } from './point/tick';
|
|
30
|
+
export { Triangle as PointTriangle } from './point/triangle';
|
|
31
|
+
export { TriangleDown as PointTriangleDown } from './point/triangleDown';
|
|
32
|
+
export { Vector as VectorShape } from './vector/vector';
|
|
33
|
+
export { Text as TextShape } from './text/text';
|
|
34
|
+
export { Badge as TextBadge } from './text/badge';
|
|
35
|
+
export { Area as AreaShape } from './area/area';
|
|
36
|
+
export { Smooth as AreaSmooth } from './area/smooth';
|
|
37
|
+
export { HVH as AreaHVH } from './area/hvh';
|
|
38
|
+
export { VH as AreaVH } from './area/vh';
|
|
39
|
+
export { HV as AreaHV } from './area/hv';
|
|
40
|
+
export { Link as LinkShape } from './link/link';
|
|
41
|
+
export { Smooth as LinkSmooth } from './link/smooth';
|
|
42
|
+
export { VHV as LinkVHV } from './link/vhv';
|
|
43
|
+
export { Arc as LinkArc } from './link/arc';
|
|
44
|
+
export { Image as ImageShape } from './image/image';
|
|
45
|
+
export { Polygon as PolygonShape } from './polygon/polygon';
|
|
46
|
+
export { Ribbon as PolygonRibbon } from './polygon/ribbon';
|
|
47
|
+
export { Box as BoxShape } from './box/box';
|
|
48
|
+
export { Violin as BoxViolin } from './box/violin';
|
|
49
49
|
export { Line as LineXY } from './lineXY/line';
|
|
50
|
-
export { Connector } from './connector/connector';
|
|
51
|
-
export { Label } from './label/label';
|
|
52
|
-
export { Path } from './path/path';
|
|
53
|
-
export { Hollow as
|
|
54
|
-
export { Density } from './density/density';
|
|
55
|
-
export { Heatmap } from './heatmap/heatmap';
|
|
56
|
-
export {
|
|
57
|
-
|
|
58
|
-
export
|
|
59
|
-
export
|
|
60
|
-
export type { FunnelOptions } from './interval/funnel';
|
|
61
|
-
export type { PyramidOptions } from './interval/pyramid';
|
|
62
|
-
export type { LineOptions } from './line/line';
|
|
63
|
-
export type { SmoothOptions } from './line/smooth';
|
|
64
|
-
export type { HVOptions } from './line/hv';
|
|
65
|
-
export type { VHOptions } from './line/vh';
|
|
66
|
-
export type { HVHOptions } from './line/hvh';
|
|
67
|
-
export type { TrailOptions } from './line/trail';
|
|
68
|
-
|
|
69
|
-
export type { BowtieOptions } from './point/bowtie';
|
|
70
|
-
export type { CrossOptions } from './point/cross';
|
|
71
|
-
export type { DiamondOptions } from './point/diamond';
|
|
72
|
-
export type { HexagonOptions } from './point/hexagon';
|
|
73
|
-
export type { HollowBowtieOptions } from './point/hollowBowtie';
|
|
74
|
-
export type { HollowDiamondOptions } from './point/hollowDiamond';
|
|
75
|
-
export type { HollowHexagonOptions } from './point/hollowHexagon';
|
|
76
|
-
export type { HollowPointOptions } from './point/hollow';
|
|
77
|
-
export type { HollowSquareOptions } from './point/hollowSquare';
|
|
78
|
-
export type { HollowTriangleOptions } from './point/hollowTriangle';
|
|
79
|
-
export type { HollowTriangleDownOptions } from './point/hollowTriangleDown';
|
|
80
|
-
export type { HyphenOptions } from './point/hyphen';
|
|
81
|
-
export type { LineOptions as LinePointOptions } from './point/line';
|
|
82
|
-
export type { PlusOptions } from './point/plus';
|
|
83
|
-
export type { PointOptions } from './point/point';
|
|
84
|
-
export type { SquareOptions } from './point/square';
|
|
85
|
-
export type { TickOptions } from './point/tick';
|
|
86
|
-
export type { TriangleOptions } from './point/triangle';
|
|
87
|
-
export type { TriangleDownOptions } from './point/triangleDown';
|
|
88
|
-
|
|
89
|
-
export type { VectorOptions } from './vector/vector';
|
|
90
|
-
|
|
91
|
-
export type { TextOptions } from './text/text';
|
|
92
|
-
export type { BadgeOptions } from './text/badge';
|
|
93
|
-
export type { AreaOptions } from './area/area';
|
|
94
|
-
export type { SmoothOptions as SmoothAreaOptions } from './area/smooth';
|
|
95
|
-
export type { HVHOptions as HVHAreaOptions } from './area/hvh';
|
|
96
|
-
export type { VHOptions as VHAreaOptions } from './area/vh';
|
|
97
|
-
export type { HVOptions as HVAreaOptions } from './area/hv';
|
|
98
|
-
|
|
99
|
-
export type { LinkOptions } from './link/link';
|
|
100
|
-
export type { ImageOptions } from './image/image';
|
|
101
|
-
export type { PolygonOptions } from './polygon/polygon';
|
|
102
|
-
export type { BoxOptions } from './box/box';
|
|
103
|
-
export type { ViolinOptions } from './box/violin';
|
|
104
|
-
export type { HeatmapOptions } from './heatmap/heatmap';
|
|
105
|
-
|
|
106
|
-
export type { LineOptions as LineXYOptions } from './lineXY/line';
|
|
107
|
-
export type { ConnectorOptions } from './connector/connector';
|
|
108
|
-
|
|
109
|
-
export type { LabelOptions } from './label/label';
|
|
110
|
-
export type { DensityOptions } from './density/density';
|
|
50
|
+
export { Connector as ConnectorShape } from './connector/connector';
|
|
51
|
+
export { Label as LabelShape } from './label/label';
|
|
52
|
+
export { Path as PathShape } from './path/path';
|
|
53
|
+
export { Hollow as PathHollow } from './path/hollow';
|
|
54
|
+
export { Density as DensityShape } from './density/density';
|
|
55
|
+
export { Heatmap as HeatmapShape } from './heatmap/heatmap';
|
|
56
|
+
export { Rect as RangeShape } from './interval/rect';
|
|
57
|
+
export { Rect as RectShape } from './interval/rect';
|
|
58
|
+
export { Hollow as RectHollow } from './interval/hollow';
|
|
59
|
+
export { Shape as ShapeShape } from './shape/shape';
|
|
111
60
|
|
|
112
|
-
export type {
|
|
61
|
+
export type { RectOptions as IntervalShapeOptions } from './interval/rect';
|
|
62
|
+
export type { HollowOptions as IntervalHollowOptions } from './interval/hollow';
|
|
63
|
+
export type { FunnelOptions as IntervalFunnelOptions } from './interval/funnel';
|
|
64
|
+
export type { PyramidOptions as IntervalPyramidOptions } from './interval/pyramid';
|
|
65
|
+
export type { LineOptions as LineShapeOptions } from './line/line';
|
|
66
|
+
export type { SmoothOptions as LineSmoothOptions } from './line/smooth';
|
|
67
|
+
export type { HVOptions as LineHVOptions } from './line/hv';
|
|
68
|
+
export type { VHOptions as LineVHOptions } from './line/vh';
|
|
69
|
+
export type { HVHOptions as LineHVHOptions } from './line/hvh';
|
|
70
|
+
export type { TrailOptions as LineTrailOptions } from './line/trail';
|
|
71
|
+
export type { BowtieOptions as PointBowtieOptions } from './point/bowtie';
|
|
72
|
+
export type { CrossOptions as PointCrossOptions } from './point/cross';
|
|
73
|
+
export type { DiamondOptions as PointDiamondOptions } from './point/diamond';
|
|
74
|
+
export type { HexagonOptions as PointHexagonOptions } from './point/hexagon';
|
|
75
|
+
export type { HollowBowtieOptions as PointHollowBowtieOptions } from './point/hollowBowtie';
|
|
76
|
+
export type { HollowDiamondOptions as PointHollowDiamondOptions } from './point/hollowDiamond';
|
|
77
|
+
export type { HollowHexagonOptions as PointHollowHexagonOptions } from './point/hollowHexagon';
|
|
78
|
+
export type { HollowPointOptions as PointHollowPointOptions } from './point/hollow';
|
|
79
|
+
export type { HollowSquareOptions as PointHollowSquareOptions } from './point/hollowSquare';
|
|
80
|
+
export type { HollowTriangleOptions as PointHollowTriangleOptions } from './point/hollowTriangle';
|
|
81
|
+
export type { HollowTriangleDownOptions as PointHollowTriangleDownOptions } from './point/hollowTriangleDown';
|
|
82
|
+
export type { HyphenOptions as PointHyphenOptions } from './point/hyphen';
|
|
83
|
+
export type { LineOptions as PointLineOptions } from './point/line';
|
|
84
|
+
export type { PlusOptions as PointPlusOptions } from './point/plus';
|
|
85
|
+
export type { PointOptions as PointShapeOptions } from './point/point';
|
|
86
|
+
export type { SquareOptions as PointSquareOptions } from './point/square';
|
|
87
|
+
export type { TickOptions as PointTickOptions } from './point/tick';
|
|
88
|
+
export type { TriangleOptions as PointTriangleOptions } from './point/triangle';
|
|
89
|
+
export type { TriangleDownOptions as PointTriangleDownOptions } from './point/triangleDown';
|
|
90
|
+
export type { VectorOptions as VectorShapeOptions } from './vector/vector';
|
|
91
|
+
export type { TextOptions as TextShapeOptions } from './text/text';
|
|
92
|
+
export type { BadgeOptions as TextBadgeOptions } from './text/badge';
|
|
93
|
+
export type { AreaOptions as AreaShapeOptions } from './area/area';
|
|
94
|
+
export type { SmoothOptions as AreaSmoothOptions } from './area/smooth';
|
|
95
|
+
export type { HVHOptions as AreaHVHAreaOptions } from './area/hvh';
|
|
96
|
+
export type { VHOptions as AreaVHAreaOptions } from './area/vh';
|
|
97
|
+
export type { HVOptions as AreaHVAreaOptions } from './area/hv';
|
|
98
|
+
export type { LinkOptions as LinkShapeOptions } from './link/link';
|
|
99
|
+
export type { ImageOptions as ImageShapeOptions } from './image/image';
|
|
100
|
+
export type { PolygonOptions as PolygonShapeOptions } from './polygon/polygon';
|
|
101
|
+
export type { BoxOptions as BoxShapeOptions } from './box/box';
|
|
102
|
+
export type { ViolinOptions as BoxViolinOptions } from './box/violin';
|
|
103
|
+
export type { HeatmapOptions as HeatmapOptions } from './heatmap/heatmap';
|
|
104
|
+
export type { LineOptions as LineLineXYOptions } from './lineXY/line';
|
|
105
|
+
export type { ConnectorOptions as ConnectorShapeOptions } from './connector/connector';
|
|
106
|
+
export type { LabelOptions as LabelShapeOptions } from './label/label';
|
|
107
|
+
export type { DensityOptions as DensityShapeOptions } from './density/density';
|
|
108
|
+
export type { ShapeOptions as ShapeShapeOptions } from './shape/shape';
|
|
@@ -130,7 +130,6 @@ function inferConnectorPath(
|
|
|
130
130
|
|
|
131
131
|
export const Advance = createElement((g) => {
|
|
132
132
|
const {
|
|
133
|
-
id,
|
|
134
133
|
className,
|
|
135
134
|
// Do not pass className
|
|
136
135
|
class: _c,
|
|
@@ -170,7 +169,7 @@ export const Advance = createElement((g) => {
|
|
|
170
169
|
// Use html to customize advance text.
|
|
171
170
|
if (innerHTML) {
|
|
172
171
|
textShape = select(g)
|
|
173
|
-
.maybeAppend(
|
|
172
|
+
.maybeAppend('html', 'html', className)
|
|
174
173
|
.style('zIndex', 0)
|
|
175
174
|
.style('innerHTML', innerHTML)
|
|
176
175
|
.call(applyStyle, {
|
package/src/spec/composition.ts
CHANGED
|
@@ -93,6 +93,7 @@ export type GeoViewComposition = Omit<ViewComposition, 'type'> & {
|
|
|
93
93
|
type?: 'geoView';
|
|
94
94
|
// @todo
|
|
95
95
|
coordinate?: Record<string, any>;
|
|
96
|
+
[key: string]: any; // @todo
|
|
96
97
|
};
|
|
97
98
|
|
|
98
99
|
export type GeoPathComposition = Omit<ViewComposition, 'type'> & {
|
|
@@ -107,6 +108,7 @@ export type SpaceLayerComposition = {
|
|
|
107
108
|
key?: string;
|
|
108
109
|
data?: any;
|
|
109
110
|
children?: Node[];
|
|
111
|
+
[key: string]: any; // @todo
|
|
110
112
|
};
|
|
111
113
|
|
|
112
114
|
export type SpaceFlexComposition = {
|
|
@@ -117,6 +119,7 @@ export type SpaceFlexComposition = {
|
|
|
117
119
|
ratio?: number[];
|
|
118
120
|
padding?: Padding;
|
|
119
121
|
children?: Node[];
|
|
122
|
+
[key: string]: any; // @todo
|
|
120
123
|
};
|
|
121
124
|
|
|
122
125
|
export type FacetContext = {
|
|
@@ -162,6 +165,7 @@ export type FacetRectComposition = {
|
|
|
162
165
|
axis?: Record<string, any> | boolean;
|
|
163
166
|
// @todo
|
|
164
167
|
legend?: Record<string, any> | boolean;
|
|
168
|
+
[key: string]: any; // @todo
|
|
165
169
|
};
|
|
166
170
|
|
|
167
171
|
export type RepeatMatrixComposition = {
|
|
@@ -195,6 +199,7 @@ export type RepeatMatrixComposition = {
|
|
|
195
199
|
// @todo
|
|
196
200
|
legend?: Record<string, any> | boolean;
|
|
197
201
|
children?: Node[] | ((facet: FacetContext) => Node);
|
|
202
|
+
[key: string]: any; // @todo
|
|
198
203
|
};
|
|
199
204
|
|
|
200
205
|
export type FacetCircleComposition = {
|
|
@@ -226,6 +231,7 @@ export type FacetCircleComposition = {
|
|
|
226
231
|
axis?: Record<string, any> | boolean;
|
|
227
232
|
// @todo
|
|
228
233
|
legend?: Record<string, any> | boolean;
|
|
234
|
+
[key: string]: any; // @todo
|
|
229
235
|
};
|
|
230
236
|
|
|
231
237
|
export type TimingKeyframeComposition = {
|
|
@@ -236,6 +242,7 @@ export type TimingKeyframeComposition = {
|
|
|
236
242
|
iterationCount?: 'infinite' | number;
|
|
237
243
|
direction?: 'normal' | 'reverse' | 'alternate' | 'reverse-alternate';
|
|
238
244
|
children?: Node[];
|
|
245
|
+
[key: string]: any; // @todo
|
|
239
246
|
};
|
|
240
247
|
|
|
241
248
|
type Node = Mark | Composition;
|
|
@@ -12,6 +12,7 @@ export type DataTransform =
|
|
|
12
12
|
| SliceTransform
|
|
13
13
|
| KDEDataTransform
|
|
14
14
|
| VennDataTransform
|
|
15
|
+
| LogDataTransform
|
|
15
16
|
| CustomTransform;
|
|
16
17
|
|
|
17
18
|
export type DataTransformTypes =
|
|
@@ -26,6 +27,7 @@ export type DataTransformTypes =
|
|
|
26
27
|
| 'slice'
|
|
27
28
|
| 'kde'
|
|
28
29
|
| 'venn'
|
|
30
|
+
| 'log'
|
|
29
31
|
| 'custom'
|
|
30
32
|
| DataComponent;
|
|
31
33
|
|
|
@@ -179,6 +181,9 @@ export type VennDataTransform = {
|
|
|
179
181
|
as?: [string, string];
|
|
180
182
|
};
|
|
181
183
|
|
|
184
|
+
// eslint-disable-next-line
|
|
185
|
+
export type LogDataTransform = {};
|
|
186
|
+
|
|
182
187
|
export type CustomTransform = {
|
|
183
188
|
type?: DataComponent;
|
|
184
189
|
[key: string]: any;
|
package/src/spec/index.ts
CHANGED
package/src/spec/interaction.ts
CHANGED
|
@@ -128,6 +128,7 @@ export type ElementHighlightByXInteraction = {
|
|
|
128
128
|
link?: boolean;
|
|
129
129
|
background?: boolean;
|
|
130
130
|
offset?: number;
|
|
131
|
+
delay?: number;
|
|
131
132
|
} & Record<`${'link' | 'background'}${any}`, any>;
|
|
132
133
|
|
|
133
134
|
export type ElementHighlightByColorInteraction = {
|
|
@@ -136,6 +137,7 @@ export type ElementHighlightByColorInteraction = {
|
|
|
136
137
|
background?: boolean;
|
|
137
138
|
link?: boolean;
|
|
138
139
|
offset?: number;
|
|
140
|
+
delay?: number;
|
|
139
141
|
} & Record<`${'link' | 'background'}${any}`, any>;
|
|
140
142
|
|
|
141
143
|
export type PoptipInteraction = {
|
|
@@ -173,6 +175,7 @@ export type TooltipInteraction = {
|
|
|
173
175
|
facet?: boolean;
|
|
174
176
|
body?: boolean;
|
|
175
177
|
crosshairs?: boolean;
|
|
178
|
+
marker?: boolean;
|
|
176
179
|
groupName?: boolean;
|
|
177
180
|
position?: TooltipStyleProps['position'];
|
|
178
181
|
bounding?: BBox;
|
|
@@ -184,7 +187,8 @@ export type TooltipInteraction = {
|
|
|
184
187
|
event, // @todo
|
|
185
188
|
options: { title: 'string'; items: TooltipItemValue[] },
|
|
186
189
|
) => HTMLElement | string;
|
|
187
|
-
} & Record<`crosshairs${any}`, any
|
|
190
|
+
} & Record<`crosshairs${any}`, any> &
|
|
191
|
+
Record<`marker${any}`, any>;
|
|
188
192
|
|
|
189
193
|
export type FisheyeInteraction = {
|
|
190
194
|
type?: 'fisheye';
|
package/src/theme/academy.ts
CHANGED
|
@@ -245,10 +245,10 @@ export const Academy: TC<AcademyOptions> = (options) => {
|
|
|
245
245
|
titleTextBaseline: 'bottom',
|
|
246
246
|
},
|
|
247
247
|
axisLeft: {
|
|
248
|
-
gridDirection: '
|
|
249
|
-
labelDirection: '
|
|
248
|
+
gridDirection: 'positive',
|
|
249
|
+
labelDirection: 'negative',
|
|
250
250
|
labelSpacing: 4,
|
|
251
|
-
tickDirection: '
|
|
251
|
+
tickDirection: 'negative',
|
|
252
252
|
titlePosition: 'left',
|
|
253
253
|
titleSpacing: 4,
|
|
254
254
|
titleTextBaseline: 'middle',
|
|
@@ -256,10 +256,10 @@ export const Academy: TC<AcademyOptions> = (options) => {
|
|
|
256
256
|
titleTransformOrigin: 'center',
|
|
257
257
|
},
|
|
258
258
|
axisRight: {
|
|
259
|
-
gridDirection: '
|
|
260
|
-
labelDirection: '
|
|
259
|
+
gridDirection: 'negative',
|
|
260
|
+
labelDirection: 'positive',
|
|
261
261
|
labelSpacing: 4,
|
|
262
|
-
tickDirection: '
|
|
262
|
+
tickDirection: 'positive',
|
|
263
263
|
titlePosition: 'right',
|
|
264
264
|
titleSpacing: 0,
|
|
265
265
|
titleTextBaseline: 'top',
|
package/src/theme/classic.ts
CHANGED
|
@@ -245,11 +245,11 @@ export const Classic: TC<ClassicOptions> = (options) => {
|
|
|
245
245
|
titleTextBaseline: 'bottom',
|
|
246
246
|
},
|
|
247
247
|
axisLeft: {
|
|
248
|
-
gridDirection: '
|
|
248
|
+
gridDirection: 'positive',
|
|
249
249
|
labelAutoRotate: false,
|
|
250
|
-
labelDirection: '
|
|
250
|
+
labelDirection: 'negative',
|
|
251
251
|
labelSpacing: 4,
|
|
252
|
-
tickDirection: '
|
|
252
|
+
tickDirection: 'negative',
|
|
253
253
|
titlePosition: 'left',
|
|
254
254
|
titleSpacing: 10,
|
|
255
255
|
titleTextBaseline: 'middle',
|
|
@@ -257,11 +257,10 @@ export const Classic: TC<ClassicOptions> = (options) => {
|
|
|
257
257
|
titleTransformOrigin: 'center',
|
|
258
258
|
},
|
|
259
259
|
axisRight: {
|
|
260
|
-
gridDirection: '
|
|
261
|
-
labelDirection: '
|
|
260
|
+
gridDirection: 'negative',
|
|
261
|
+
labelDirection: 'positive',
|
|
262
262
|
labelSpacing: 4,
|
|
263
|
-
|
|
264
|
-
tickDirection: 'negative',
|
|
263
|
+
tickDirection: 'positive',
|
|
265
264
|
titlePosition: 'right',
|
|
266
265
|
titleSpacing: 0,
|
|
267
266
|
titleTextBaseline: 'top',
|
package/src/theme/classicDark.ts
CHANGED
|
@@ -244,11 +244,11 @@ export const ClassicDark: TC<ClassicDarkOptions> = (options) => {
|
|
|
244
244
|
titleTextBaseline: 'bottom',
|
|
245
245
|
},
|
|
246
246
|
axisLeft: {
|
|
247
|
-
gridDirection: '
|
|
247
|
+
gridDirection: 'positive',
|
|
248
248
|
labelAutoRotate: false,
|
|
249
|
-
labelDirection: '
|
|
249
|
+
labelDirection: 'negative',
|
|
250
250
|
labelSpacing: 4,
|
|
251
|
-
tickDirection: '
|
|
251
|
+
tickDirection: 'negative',
|
|
252
252
|
titlePosition: 'left',
|
|
253
253
|
titleSpacing: 10,
|
|
254
254
|
titleTextBaseline: 'middle',
|
|
@@ -256,10 +256,10 @@ export const ClassicDark: TC<ClassicDarkOptions> = (options) => {
|
|
|
256
256
|
titleTransformOrigin: 'center',
|
|
257
257
|
},
|
|
258
258
|
axisRight: {
|
|
259
|
-
gridDirection: '
|
|
260
|
-
labelDirection: '
|
|
259
|
+
gridDirection: 'negative',
|
|
260
|
+
labelDirection: 'positive',
|
|
261
261
|
labelSpacing: 4,
|
|
262
|
-
tickDirection: '
|
|
262
|
+
tickDirection: 'positive',
|
|
263
263
|
titlePosition: 'right',
|
|
264
264
|
titleSpacing: 0,
|
|
265
265
|
titleTextBaseline: 'top',
|
package/src/utils/scale.ts
CHANGED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Coordinate } from '@antv/coord';
|
|
2
|
-
import { DisplayObject } from '@antv/g';
|
|
3
|
-
import { Scale, G2Theme, G2ViewDescriptor } from '../../runtime';
|
|
4
|
-
import { Node } from '../node';
|
|
5
|
-
export declare class CompositionNode<Value extends Record<string, any> = Record<string, any>, ParentValue extends Record<string, any> = Record<string, any>, ChildValue extends Record<string, any> = Record<string, any>> extends Node<Value, ParentValue, ChildValue> {
|
|
6
|
-
protected _key: string;
|
|
7
|
-
/**
|
|
8
|
-
* Change current node data and its children data.
|
|
9
|
-
*/
|
|
10
|
-
changeData(data: any): Promise<import("..").Chart>;
|
|
11
|
-
/**
|
|
12
|
-
* Get view instance by key.
|
|
13
|
-
*/
|
|
14
|
-
getView(): G2ViewDescriptor;
|
|
15
|
-
getScale(): Record<string, Scale>;
|
|
16
|
-
getScaleByChannel(channel: string): Scale;
|
|
17
|
-
getCoordinate(): Coordinate;
|
|
18
|
-
getTheme(): G2Theme;
|
|
19
|
-
getGroup(): DisplayObject;
|
|
20
|
-
/**
|
|
21
|
-
* Show the view.
|
|
22
|
-
*/
|
|
23
|
-
show(): void;
|
|
24
|
-
/**
|
|
25
|
-
* Hide the view.
|
|
26
|
-
*/
|
|
27
|
-
hide(): void;
|
|
28
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"src/","sources":["api/composition/base.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,MAAM,OAAO,eAIX,SAAQ,IAAoC;IAG5C;;OAEG;IACH,UAAU,CAAC,IAAS;;QAClB,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;QAC7B,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACxB,IAAI,MAAA,IAAI,CAAC,QAAQ,0CAAE,MAAM,EAAE;YACzB,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;gBAC9B,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;YAC3B,CAAC,CAAC,CAAC;SACJ;QACD,OAAO,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,EAAE,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,OAAO;QACL,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;QAC7B,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC,UAAU,EAAE,CAAC;QACrC,IAAI,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,CAAA;YAAE,OAAO,SAAS,CAAC;QACrC,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,KAAK,IAAI,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;IAED,QAAQ;;QACN,OAAO,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,KAAK,CAAC;IAC/B,CAAC;IAED,iBAAiB,CAAC,OAAe;QAC/B,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC9B,IAAI,KAAK;YAAE,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC;QACjC,OAAO;IACT,CAAC;IAED,aAAa;;QACX,OAAO,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,UAAU,CAAC;IACpC,CAAC;IAED,QAAQ;;QACN,OAAO,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,KAAK,CAAC;IAC/B,CAAC;IAED,QAAQ;QACN,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,GAAG;YAAE,OAAO,SAAS,CAAC;QAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;QAC7B,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACvD,OAAO,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IACxC,CAAC;IAED;;OAEG;IACH,IAAI;QACF,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC9B,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,CAAC,KAAK,CAAC,SAAS,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC;IAED;;OAEG;IACH,IAAI;QACF,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC9B,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,KAAK,CAAC,SAAS,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC;CACF"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { FacetCircleComposition } from '../../spec';
|
|
2
|
-
import { ValueAttribute, Concrete, ArrayAttribute, ObjectAttribute } from '../types';
|
|
3
|
-
import { Mark } from '../mark';
|
|
4
|
-
import { Composition, CompositionNode } from './index';
|
|
5
|
-
type FacetCircleSpec = Concrete<FacetCircleComposition>;
|
|
6
|
-
export interface FacetCircle extends Composition, Mark {
|
|
7
|
-
data: ValueAttribute<FacetCircleSpec['data'], FacetCircle>;
|
|
8
|
-
transform: ArrayAttribute<FacetCircleSpec['transform'], FacetCircle>;
|
|
9
|
-
encode: ObjectAttribute<FacetCircleSpec['encode'], FacetCircle>;
|
|
10
|
-
scale: ObjectAttribute<FacetCircleSpec['scale'], FacetCircle>;
|
|
11
|
-
legend: ObjectAttribute<FacetCircleSpec['legend'], FacetCircle>;
|
|
12
|
-
axis: ObjectAttribute<FacetCircleSpec['axis'], FacetCircle>;
|
|
13
|
-
}
|
|
14
|
-
export declare class FacetCircle extends CompositionNode<FacetCircleComposition> {
|
|
15
|
-
constructor();
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { defineProps, nodeProps } from '../props';
|
|
8
|
-
import { mark } from '../mark';
|
|
9
|
-
import { CompositionNode } from './index';
|
|
10
|
-
let FacetCircle = class FacetCircle extends CompositionNode {
|
|
11
|
-
constructor() {
|
|
12
|
-
super({}, 'facetCircle');
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
FacetCircle = __decorate([
|
|
16
|
-
defineProps([
|
|
17
|
-
{ type: 'value', name: 'data' },
|
|
18
|
-
{ type: 'array', name: 'transform' },
|
|
19
|
-
{ type: 'object', name: 'scale' },
|
|
20
|
-
{ type: 'object', name: 'encode' },
|
|
21
|
-
{ type: 'object', name: 'legend' },
|
|
22
|
-
{ type: 'object', name: 'axis' },
|
|
23
|
-
...nodeProps(mark),
|
|
24
|
-
])
|
|
25
|
-
], FacetCircle);
|
|
26
|
-
export { FacetCircle };
|
|
27
|
-
//# sourceMappingURL=facetCircle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"facetCircle.js","sourceRoot":"src/","sources":["api/composition/facetCircle.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAOlD,OAAO,EAAE,IAAI,EAAQ,MAAM,SAAS,CAAC;AACrC,OAAO,EAAe,eAAe,EAAE,MAAM,SAAS,CAAC;AAsBhD,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,eAAuC;IACtE;QACE,KAAK,CAAC,EAAE,EAAE,aAAa,CAAC,CAAC;IAC3B,CAAC;CACF,CAAA;AAJY,WAAW;IATvB,WAAW,CAAC;QACX,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE;QAC/B,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE;QACpC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE;QACjC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;QAChC,GAAG,SAAS,CAAC,IAAI,CAAC;KACnB,CAAC;GACW,WAAW,CAIvB;SAJY,WAAW"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { FacetRectComposition } from '../../spec';
|
|
2
|
-
import { ValueAttribute, Concrete, ArrayAttribute, ObjectAttribute } from '../types';
|
|
3
|
-
import { Mark } from '../mark';
|
|
4
|
-
import { Composition, CompositionNode } from './index';
|
|
5
|
-
type FacetRectSpec = Concrete<FacetRectComposition>;
|
|
6
|
-
export interface FacetRect extends Composition, Mark {
|
|
7
|
-
data: ValueAttribute<FacetRectSpec['data'], FacetRect>;
|
|
8
|
-
transform: ArrayAttribute<FacetRectSpec['transform'], FacetRect>;
|
|
9
|
-
encode: ObjectAttribute<FacetRectSpec['encode'], FacetRect>;
|
|
10
|
-
scale: ObjectAttribute<FacetRectSpec['scale'], FacetRect>;
|
|
11
|
-
legend: ObjectAttribute<FacetRectSpec['legend'], FacetRect>;
|
|
12
|
-
axis: ObjectAttribute<FacetRectSpec['axis'], FacetRect>;
|
|
13
|
-
}
|
|
14
|
-
export declare class FacetRect extends CompositionNode<FacetRectComposition> {
|
|
15
|
-
constructor();
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { defineProps, nodeProps } from '../props';
|
|
8
|
-
import { mark } from '../mark';
|
|
9
|
-
import { CompositionNode } from './index';
|
|
10
|
-
let FacetRect = class FacetRect extends CompositionNode {
|
|
11
|
-
constructor() {
|
|
12
|
-
super({}, 'facetRect');
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
FacetRect = __decorate([
|
|
16
|
-
defineProps([
|
|
17
|
-
{ type: 'value', name: 'data' },
|
|
18
|
-
{ type: 'array', name: 'transform' },
|
|
19
|
-
{ type: 'object', name: 'scale' },
|
|
20
|
-
{ type: 'object', name: 'encode' },
|
|
21
|
-
{ type: 'object', name: 'legend' },
|
|
22
|
-
{ type: 'object', name: 'axis' },
|
|
23
|
-
...nodeProps(mark),
|
|
24
|
-
])
|
|
25
|
-
], FacetRect);
|
|
26
|
-
export { FacetRect };
|
|
27
|
-
//# sourceMappingURL=facetRect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"facetRect.js","sourceRoot":"src/","sources":["api/composition/facetRect.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAOlD,OAAO,EAAE,IAAI,EAAQ,MAAM,SAAS,CAAC;AACrC,OAAO,EAAe,eAAe,EAAE,MAAM,SAAS,CAAC;AAsBhD,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,eAAqC;IAClE;QACE,KAAK,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC;IACzB,CAAC;CACF,CAAA;AAJY,SAAS;IATrB,WAAW,CAAC;QACX,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE;QAC/B,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE;QACpC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE;QACjC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;QAChC,GAAG,SAAS,CAAC,IAAI,CAAC;KACnB,CAAC;GACW,SAAS,CAIrB;SAJY,SAAS"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { GeoPathComposition } from '../../spec';
|
|
2
|
-
import { ValueAttribute, ObjectAttribute, Concrete } from '../types';
|
|
3
|
-
import { Mark } from '../mark';
|
|
4
|
-
import { Composition, CompositionNode } from './index';
|
|
5
|
-
type GeoPathSpec = Concrete<GeoPathComposition>;
|
|
6
|
-
export interface GeoPath extends Mark, Composition {
|
|
7
|
-
data: ValueAttribute<GeoPathSpec['data'], GeoPath>;
|
|
8
|
-
coordinate: ValueAttribute<GeoPathSpec['coordinate'], GeoPath>;
|
|
9
|
-
interaction: ObjectAttribute<GeoPathSpec['interaction'], GeoPath>;
|
|
10
|
-
style: ObjectAttribute<GeoPathSpec['style'], GeoPath>;
|
|
11
|
-
theme: ObjectAttribute<GeoPathSpec['theme'], GeoPath>;
|
|
12
|
-
scale: ObjectAttribute<GeoPathSpec['scale'], GeoPath>;
|
|
13
|
-
encode: ObjectAttribute<GeoPathSpec['encode'], GeoPath>;
|
|
14
|
-
legend: ObjectAttribute<GeoPathSpec['legend'], GeoPath>;
|
|
15
|
-
state: ObjectAttribute<GeoPathSpec['state'], GeoPath>;
|
|
16
|
-
}
|
|
17
|
-
export declare class GeoPath extends CompositionNode<GeoPathComposition> {
|
|
18
|
-
constructor();
|
|
19
|
-
}
|
|
20
|
-
export {};
|