@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composition.js","sourceRoot":"src/","sources":["api/composition.ts"],"names":[],"mappings":";;;;;;;;;AAGA,0CAA4C;AAE5C,iCAA8B;AAC9B,qCAAuC;AACvC,mCAA2C;AAWpC,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,WAAmC;IAGtE;;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,I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AE,CAAC;QAC9B,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,KAAK,CAAC,SAAS,EAAE,IAAI,IAAA,YAAI,EAAC,KAAK,CAAC,CAAC;IACnC,CAAC;CACF,CAAA;AAvEY,eAAe;IAD3B,IAAA,oBAAW,EAAC,wBAAgB,CAAC;GACjB,eAAe,CAuE3B;AAvEY,0CAAe"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Node } from './node';
|
|
2
|
+
export type NodePropertyDescriptor = {
|
|
3
|
+
type: 'object' | 'value' | 'array' | 'node' | 'container' | 'mix';
|
|
4
|
+
key?: string;
|
|
5
|
+
ctor?: new (...args: any[]) => any;
|
|
6
|
+
};
|
|
7
|
+
type NodeClass = new (props: any, type?: string) => Node;
|
|
8
|
+
/**
|
|
9
|
+
* A decorator to define different type of attribute setter or
|
|
10
|
+
* getter for current node.
|
|
11
|
+
*/
|
|
12
|
+
export declare function defineProps(descriptors: Record<string, NodePropertyDescriptor>): (Node: NodeClass) => any;
|
|
13
|
+
export declare function nodeProps(node: Record<string, new (...args: any[]) => any>): Record<string, NodePropertyDescriptor>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.nodeProps = exports.defineProps = void 0;
|
|
4
|
+
const helper_1 = require("../utils/helper");
|
|
5
|
+
function defineValueProp(Node, name, { key = name }) {
|
|
6
|
+
Node.prototype[name] = function (value) {
|
|
7
|
+
if (arguments.length === 0)
|
|
8
|
+
return this.attr(key);
|
|
9
|
+
return this.attr(key, value);
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function defineArrayProp(Node, name, { key = name }) {
|
|
13
|
+
Node.prototype[name] = function (value) {
|
|
14
|
+
if (arguments.length === 0)
|
|
15
|
+
return this.attr(key);
|
|
16
|
+
if (Array.isArray(value))
|
|
17
|
+
return this.attr(key, value);
|
|
18
|
+
const array = [...(this.attr(key) || []), value];
|
|
19
|
+
return this.attr(key, array);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function defineObjectProp(Node, name, { key: k = name }) {
|
|
23
|
+
Node.prototype[name] = function (key, value) {
|
|
24
|
+
if (arguments.length === 0)
|
|
25
|
+
return this.attr(k);
|
|
26
|
+
if (arguments.length === 1 && typeof key !== 'string') {
|
|
27
|
+
return this.attr(k, key);
|
|
28
|
+
}
|
|
29
|
+
const obj = this.attr(k) || {};
|
|
30
|
+
obj[key] = arguments.length === 1 ? true : value;
|
|
31
|
+
return this.attr(k, obj);
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function defineMixProp(Node, name, descriptor) {
|
|
35
|
+
Node.prototype[name] = function (key) {
|
|
36
|
+
if (arguments.length === 0)
|
|
37
|
+
return this.attr(name);
|
|
38
|
+
if (Array.isArray(key))
|
|
39
|
+
return this.attr(name, { items: key });
|
|
40
|
+
if ((0, helper_1.isStrictObject)(key) &&
|
|
41
|
+
(key.title !== undefined || key.items !== undefined)) {
|
|
42
|
+
return this.attr(name, key);
|
|
43
|
+
}
|
|
44
|
+
if (key === null || key === false)
|
|
45
|
+
return this.attr(name, key);
|
|
46
|
+
const obj = this.attr(name) || {};
|
|
47
|
+
const { items = [] } = obj;
|
|
48
|
+
items.push(key);
|
|
49
|
+
obj.items = items;
|
|
50
|
+
return this.attr(name, obj);
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function defineNodeProp(Node, name, { ctor }) {
|
|
54
|
+
Node.prototype[name] = function (hocMark) {
|
|
55
|
+
const node = this.append(ctor);
|
|
56
|
+
if (name === 'mark') {
|
|
57
|
+
node.type = hocMark;
|
|
58
|
+
}
|
|
59
|
+
return node;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function defineContainerProp(Node, name, { ctor }) {
|
|
63
|
+
Node.prototype[name] = function () {
|
|
64
|
+
this.type = null;
|
|
65
|
+
return this.append(ctor);
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* A decorator to define different type of attribute setter or
|
|
70
|
+
* getter for current node.
|
|
71
|
+
*/
|
|
72
|
+
function defineProps(descriptors) {
|
|
73
|
+
return (Node) => {
|
|
74
|
+
for (const [name, descriptor] of Object.entries(descriptors)) {
|
|
75
|
+
const { type } = descriptor;
|
|
76
|
+
if (type === 'value')
|
|
77
|
+
defineValueProp(Node, name, descriptor);
|
|
78
|
+
else if (type === 'array')
|
|
79
|
+
defineArrayProp(Node, name, descriptor);
|
|
80
|
+
else if (type === 'object')
|
|
81
|
+
defineObjectProp(Node, name, descriptor);
|
|
82
|
+
else if (type === 'node')
|
|
83
|
+
defineNodeProp(Node, name, descriptor);
|
|
84
|
+
else if (type === 'container')
|
|
85
|
+
defineContainerProp(Node, name, descriptor);
|
|
86
|
+
else if (type === 'mix')
|
|
87
|
+
defineMixProp(Node, name, descriptor);
|
|
88
|
+
}
|
|
89
|
+
return Node;
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
exports.defineProps = defineProps;
|
|
93
|
+
function nodeProps(node) {
|
|
94
|
+
return Object.fromEntries(Object.entries(node).map(([name, ctor]) => [name, { type: 'node', ctor }]));
|
|
95
|
+
}
|
|
96
|
+
exports.nodeProps = nodeProps;
|
|
97
|
+
//# sourceMappingURL=define.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define.js","sourceRoot":"src/","sources":["api/define.ts"],"names":[],"mappings":";;;AAAA,4CAAiD;AAWjD,SAAS,eAAe,CACtB,IAAe,EACf,IAAY,EACZ,EAAE,GAAG,GAAG,IAAI,EAA0B;IAEtC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,UAAU,KAAK;QACpC,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAClD,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,C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ACD,OAAO,IAAW,CAAC;IACrB,CAAC,CAAC;AACJ,CAAC;AAhBD,kCAgBC;AAED,SAAgB,SAAS,CACvB,IAAiD;IAEjD,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAC3E,CAAC;AACJ,CAAC;AAND,8BAMC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { G2Spec } from '../spec';
|
|
2
|
+
import { G2Library } from '../runtime';
|
|
3
|
+
import { Runtime, RuntimeOptions } from './runtime';
|
|
4
|
+
import { MarkOf, CompositionOf as Of } from './types';
|
|
5
|
+
import { MarkNode } from './mark';
|
|
6
|
+
import { CompositionNode } from './composition';
|
|
7
|
+
type CompositionOf<Library> = Of<Library, (composite?: any) => CompositionNode<CompositionOf<Library> & MarkOf<Library, (composite?: any) => MarkNode>> & MarkOf<Library, (composite?: any) => MarkNode> & CompositionOf<Library>>;
|
|
8
|
+
export type API<Spec, Library> = Runtime<Spec> & MarkOf<Library, (composite?: any) => MarkNode> & CompositionOf<Library>;
|
|
9
|
+
export declare function extend<Spec extends G2Spec = G2Spec, Library extends G2Library = G2Library>(Runtime: new (options: RuntimeOptions) => Runtime<Spec>, library: Library): new (options?: RuntimeOptions) => API<Spec, Library>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.extend = void 0;
|
|
4
|
+
function extend(Runtime, library) {
|
|
5
|
+
class Chart extends Runtime {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(Object.assign(Object.assign({}, options), { lib: library }));
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
return Chart;
|
|
11
|
+
}
|
|
12
|
+
exports.extend = extend;
|
|
13
|
+
//# sourceMappingURL=extend.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extend.js","sourceRoot":"src/","sources":["api/extend.ts"],"names":[],"mappings":";;;AAsBA,SAAgB,MAAM,CAIpB,OAAuD,EACvD,OAAgB;IAEhB,MAAM,KAAM,SAAQ,OAAO;QACzB,YAAY,OAAoC;YAC9C,KAAK,iCAAM,OAAO,KAAE,GAAG,EAAE,OAAO,IAAG,CAAC;QACtC,CAAC;KACF;IACD,OAAO,KAAY,CAAC;AACtB,CAAC;AAbD,wBAaC"}
|
package/lib/api/index.d.ts
CHANGED
package/lib/api/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.register = exports.CompositionNode = exports.MarkNode = exports.Chart = void 0;
|
|
3
|
+
exports.extend = exports.Runtime = exports.register = exports.CompositionNode = exports.MarkNode = exports.Chart = void 0;
|
|
4
4
|
var chart_1 = require("./chart");
|
|
5
5
|
Object.defineProperty(exports, "Chart", { enumerable: true, get: function () { return chart_1.Chart; } });
|
|
6
6
|
var mark_1 = require("./mark");
|
|
@@ -9,4 +9,8 @@ var composition_1 = require("./composition");
|
|
|
9
9
|
Object.defineProperty(exports, "CompositionNode", { enumerable: true, get: function () { return composition_1.CompositionNode; } });
|
|
10
10
|
var library_1 = require("./library");
|
|
11
11
|
Object.defineProperty(exports, "register", { enumerable: true, get: function () { return library_1.register; } });
|
|
12
|
+
var runtime_1 = require("./runtime");
|
|
13
|
+
Object.defineProperty(exports, "Runtime", { enumerable: true, get: function () { return runtime_1.Runtime; } });
|
|
14
|
+
var extend_1 = require("./extend");
|
|
15
|
+
Object.defineProperty(exports, "extend", { enumerable: true, get: function () { return extend_1.extend; } });
|
|
12
16
|
//# sourceMappingURL=index.js.map
|
package/lib/api/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["api/index.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,+BAAkC;AAAzB,gGAAA,QAAQ,OAAA;AACjB,6CAAgD;AAAvC,8GAAA,eAAe,OAAA;AACxB,qCAAqC;AAA5B,mGAAA,QAAQ,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["api/index.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,+BAAkC;AAAzB,gGAAA,QAAQ,OAAA;AACjB,6CAAgD;AAAvC,8GAAA,eAAe,OAAA;AACxB,qCAAqC;AAA5B,mGAAA,QAAQ,OAAA;AACjB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,mCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
|
package/lib/api/library.d.ts
CHANGED
|
@@ -1,3 +1,173 @@
|
|
|
1
1
|
import { G2ComponentNamespaces, G2Component } from '../runtime';
|
|
2
|
-
export declare const library:
|
|
2
|
+
export declare const library: {
|
|
3
|
+
readonly 'data.fetch': import("../runtime").DataComponent<import("../data").FetchOptions>;
|
|
4
|
+
readonly 'data.inline': import("../runtime").DataComponent<import("../data").InlineOptions>;
|
|
5
|
+
readonly 'data.sortBy': import("../runtime").DataComponent<import("../data").SortByOptions>;
|
|
6
|
+
readonly 'data.sort': import("../runtime").DataComponent<import("../data").SortOptions>;
|
|
7
|
+
readonly 'data.filter': import("../runtime").DataComponent<import("../data").FilterDataOptions>;
|
|
8
|
+
readonly 'data.pick': import("../runtime").DataComponent<import("../data").PickOptions>;
|
|
9
|
+
readonly 'data.rename': import("../runtime").DataComponent<import("../data").RenameOptions>;
|
|
10
|
+
readonly 'data.fold': import("../runtime").DataComponent<import("../data").FoldOptions>;
|
|
11
|
+
readonly 'data.slice': import("../runtime").DataComponent<import("../data").SliceOptions>;
|
|
12
|
+
readonly 'data.custom': import("../runtime").DataComponent<import("../data").CustomOptions>;
|
|
13
|
+
readonly 'data.map': import("../runtime").DataComponent<import("../data").MapOptions>;
|
|
14
|
+
readonly 'data.join': import("../runtime").DataComponent<import("../data").JoinOptions>;
|
|
15
|
+
readonly 'data.kde': import("../runtime").DataComponent<import("../data").KDEOptions>;
|
|
16
|
+
readonly 'data.log': import("../runtime").DataComponent<import("../data").LogDataOptions>;
|
|
17
|
+
readonly 'transform.stackY': import("../runtime").TransformComponent<import("../transform").StackYOptions>;
|
|
18
|
+
readonly 'transform.binX': import("../runtime").TransformComponent<import("../transform").BinXOptions>;
|
|
19
|
+
readonly 'transform.bin': import("../runtime").TransformComponent<import("../transform").BinOptions>;
|
|
20
|
+
readonly 'transform.dodgeX': import("../runtime").TransformComponent<import("../transform").DodgeXOptions>;
|
|
21
|
+
readonly 'transform.jitter': import("../runtime").TransformComponent<import("../transform").JitterOptions>;
|
|
22
|
+
readonly 'transform.jitterX': import("../runtime").TransformComponent<import("../transform").JitterXOptions>;
|
|
23
|
+
readonly 'transform.symmetryY': import("../runtime").TransformComponent<import("../transform").SymmetryYOptions>;
|
|
24
|
+
readonly 'transform.diffY': import("../runtime").TransformComponent<import("../transform").DiffYOptions>;
|
|
25
|
+
readonly 'transform.stackEnter': import("../runtime").TransformComponent<import("../transform").StackEnterOptions>;
|
|
26
|
+
readonly 'transform.normalizeY': import("../runtime").TransformComponent<import("../transform").NormalizeYOptions>;
|
|
27
|
+
readonly 'transform.select': import("../runtime").TransformComponent<import("../transform").SelectOptions>;
|
|
28
|
+
readonly 'transform.selectX': import("../runtime").TransformComponent<import("../transform").SelectXOptions>;
|
|
29
|
+
readonly 'transform.selectY': import("../runtime").TransformComponent<import("../transform").SelectYOptions>;
|
|
30
|
+
readonly 'transform.groupX': import("../runtime").TransformComponent<import("../transform").GroupXOptions>;
|
|
31
|
+
readonly 'transform.groupY': import("../runtime").TransformComponent<import("../transform").GroupYOptions>;
|
|
32
|
+
readonly 'transform.groupColor': import("../runtime").TransformComponent<import("../transform").GroupColorOptions>;
|
|
33
|
+
readonly 'transform.group': import("../runtime").TransformComponent<import("../transform").GroupOptions>;
|
|
34
|
+
readonly 'transform.sortX': import("../runtime").TransformComponent<import("../transform").SortXOptions>;
|
|
35
|
+
readonly 'transform.sortY': import("../runtime").TransformComponent<import("../transform").SortYOptions>;
|
|
36
|
+
readonly 'transform.sortColor': import("../runtime").TransformComponent<import("../transform").SortColorOptions>;
|
|
37
|
+
readonly 'transform.flexX': import("../runtime").TransformComponent<import("../transform").FlexXOptions>;
|
|
38
|
+
readonly 'transform.pack': import("../runtime").TransformComponent<import("../transform").PackOptions>;
|
|
39
|
+
readonly 'transform.sample': import("../runtime").TransformComponent<import("../transform").SampleOptions>;
|
|
40
|
+
readonly 'transform.filter': import("../runtime").TransformComponent<import("../transform").FilterOptions>;
|
|
41
|
+
readonly 'coordinate.cartesian': import("../runtime").CoordinateComponent<import("../coordinate").CartesianOptions>;
|
|
42
|
+
readonly 'coordinate.polar': import("../runtime").CoordinateComponent<import("../coordinate").PolarOptions>;
|
|
43
|
+
readonly 'coordinate.helix': import("../runtime").CoordinateComponent<import("..").HelixCoordinate>;
|
|
44
|
+
readonly 'coordinate.transpose': import("../runtime").CoordinateComponent<import("../coordinate").TransposeOptions>;
|
|
45
|
+
readonly 'coordinate.theta': import("../runtime").CoordinateComponent<import("..").ThetaCoordinate>;
|
|
46
|
+
readonly 'coordinate.parallel': import("../runtime").CoordinateComponent<import("../coordinate").ParallelOptions>;
|
|
47
|
+
readonly 'coordinate.fisheye': import("../runtime").CoordinateComponent<import("..").FisheyeCoordinate>;
|
|
48
|
+
readonly 'coordinate.radial': import("../runtime").CoordinateComponent<import("../coordinate").RadialOptions>;
|
|
49
|
+
readonly 'coordinate.radar': import("../runtime").CoordinateComponent<import("..").RadarCoordinate>;
|
|
50
|
+
readonly 'encode.constant': import("../runtime").EncodeComponent<import("../encode").ConstantOptions>;
|
|
51
|
+
readonly 'encode.field': import("../runtime").EncodeComponent<import("../encode").FieldOptions>;
|
|
52
|
+
readonly 'encode.transform': import("../runtime").EncodeComponent<import("../encode").TransformOptions>;
|
|
53
|
+
readonly 'encode.column': import("../runtime").EncodeComponent<import("../encode").ColumnOptions>;
|
|
54
|
+
readonly 'mark.interval': import("../runtime").MarkComponent<import("..").IntervalOptions>;
|
|
55
|
+
readonly 'mark.rect': import("../runtime").MarkComponent<import("..").RectOptions>;
|
|
56
|
+
readonly 'mark.line': import("../runtime").MarkComponent<import("..").LineOptions>;
|
|
57
|
+
readonly 'mark.point': import("../runtime").MarkComponent<import("..").PointOptions>;
|
|
58
|
+
readonly 'mark.text': import("../runtime").MarkComponent<import("..").TextOptions>;
|
|
59
|
+
readonly 'mark.cell': import("../runtime").MarkComponent<import("..").CellOptions>;
|
|
60
|
+
readonly 'mark.area': import("../runtime").MarkComponent<import("..").AreaOptions>;
|
|
61
|
+
readonly 'mark.link': import("../runtime").MarkComponent<import("..").LinkOptions>;
|
|
62
|
+
readonly 'mark.image': import("../runtime").MarkComponent<import("..").ImageOptions>;
|
|
63
|
+
readonly 'mark.polygon': import("../runtime").MarkComponent<import("..").PolygonOptions>;
|
|
64
|
+
readonly 'mark.box': import("../runtime").MarkComponent<import("..").BoxOptions>;
|
|
65
|
+
readonly 'mark.vector': import("../runtime").MarkComponent<import("..").VectorOptions>;
|
|
66
|
+
readonly 'mark.lineX': import("../runtime").MarkComponent<import("..").LineXOptions>;
|
|
67
|
+
readonly 'mark.lineY': import("../runtime").MarkComponent<import("..").LineYOptions>;
|
|
68
|
+
readonly 'mark.connector': import("../runtime").MarkComponent<import("..").ConnectorOptions>;
|
|
69
|
+
readonly 'mark.range': import("../runtime").MarkComponent<import("..").RangeOptions>;
|
|
70
|
+
readonly 'mark.rangeX': import("../runtime").MarkComponent<import("..").RangeXOptions>;
|
|
71
|
+
readonly 'mark.rangeY': import("../runtime").MarkComponent<import("..").RangeYOptions>;
|
|
72
|
+
readonly 'mark.path': import("../runtime").MarkComponent<import("../mark/path").PathOptions>;
|
|
73
|
+
readonly 'mark.shape': import("../runtime").MarkComponent<import("..").ShapeOptions>;
|
|
74
|
+
readonly 'mark.density': import("../runtime").MarkComponent<import("..").DensityOptions>;
|
|
75
|
+
readonly 'mark.heatmap': import("../runtime").MarkComponent<import("..").HeatmapOptions>;
|
|
76
|
+
readonly 'shape.label.label': import("../runtime").ShapeComponent<import("../shape").LabelShapeOptions>;
|
|
77
|
+
readonly 'palette.category10': import("../runtime").PaletteComponent<import("../palette").Category10Options>;
|
|
78
|
+
readonly 'palette.category20': import("../runtime").PaletteComponent<import("../palette").Category20Options>;
|
|
79
|
+
readonly 'scale.linear': import("../runtime").ScaleComponent<import("../scale").LinearOptions>;
|
|
80
|
+
readonly 'scale.ordinal': import("../runtime").ScaleComponent<import("../scale").OrdinalOptions>;
|
|
81
|
+
readonly 'scale.band': import("../runtime").ScaleComponent<import("../scale").BandOptions>;
|
|
82
|
+
readonly 'scale.identity': import("../runtime").ScaleComponent<import("../scale").IdentityOptions>;
|
|
83
|
+
readonly 'scale.point': import("../runtime").ScaleComponent<import("../scale").PointOptions>;
|
|
84
|
+
readonly 'scale.time': import("../runtime").ScaleComponent<import("../scale").TimeOptions>;
|
|
85
|
+
readonly 'scale.log': import("../runtime").ScaleComponent<import("../scale").LogOptions>;
|
|
86
|
+
readonly 'scale.pow': import("../runtime").ScaleComponent<import("../scale").PowOptions>;
|
|
87
|
+
readonly 'scale.sqrt': import("../runtime").ScaleComponent<import("../scale").SqrtOptions>;
|
|
88
|
+
readonly 'scale.threshold': import("../runtime").ScaleComponent<import("../scale").ThresholdOptions>;
|
|
89
|
+
readonly 'scale.quantile': import("../runtime").ScaleComponent<import("../scale").QuantileOptions>;
|
|
90
|
+
readonly 'scale.quantize': import("../runtime").ScaleComponent<import("../scale").QuantizeOptions>;
|
|
91
|
+
readonly 'scale.sequential': import("../runtime").ScaleComponent<import("../scale").SequentialOptions>;
|
|
92
|
+
readonly 'scale.constant': import("../runtime").ScaleComponent<import("../scale").ConstantOptions>;
|
|
93
|
+
readonly 'theme.classic': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
|
|
94
|
+
readonly 'theme.classicDark': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
|
|
95
|
+
readonly 'theme.academy': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
|
|
96
|
+
readonly 'component.axisX': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
|
|
97
|
+
readonly 'component.axisY': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
|
|
98
|
+
readonly 'component.axisRadar': import("../runtime").GuideComponentComponent<import("../component/axisRadar").AxisRadarOptions>;
|
|
99
|
+
readonly 'component.axisLinear': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
|
|
100
|
+
readonly 'component.axisArc': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
|
|
101
|
+
readonly 'component.legendCategory': import("../runtime").GuideComponentComponent<import("../component").LegendCategoryOptions>;
|
|
102
|
+
readonly 'component.legendContinuous': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
|
|
103
|
+
readonly 'component.legendContinuousBlock': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
|
|
104
|
+
readonly 'component.legendContinuousBlockSize': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
|
|
105
|
+
readonly 'component.legendContinuousSize': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
|
|
106
|
+
readonly 'component.legends': import("../runtime").GuideComponentComponent<import("../component").LegendsOptions>;
|
|
107
|
+
readonly 'component.title': import("../runtime").GuideComponentComponent<import("../runtime").G2Title>;
|
|
108
|
+
readonly 'component.sliderX': import("../runtime").GuideComponentComponent<import("../component/slider").SliderOptions>;
|
|
109
|
+
readonly 'component.sliderY': import("../runtime").GuideComponentComponent<import("../component/slider").SliderOptions>;
|
|
110
|
+
readonly 'component.scrollbarX': import("../runtime").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
|
|
111
|
+
readonly 'component.scrollbarY': import("../runtime").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
|
|
112
|
+
readonly 'animation.scaleInX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
113
|
+
readonly 'animation.scaleOutX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
114
|
+
readonly 'animation.scaleInY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
115
|
+
readonly 'animation.scaleOutY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
116
|
+
readonly 'animation.waveIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
117
|
+
readonly 'animation.fadeIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
118
|
+
readonly 'animation.fadeOut': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
119
|
+
readonly 'animation.zoomIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
120
|
+
readonly 'animation.zoomOut': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
121
|
+
readonly 'animation.pathIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
122
|
+
readonly 'animation.morphing': import("../runtime").AnimationComponent<import("../animation").MorphingOptions>;
|
|
123
|
+
readonly 'animation.growInX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
124
|
+
readonly 'animation.growInY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
125
|
+
readonly 'interaction.elementHighlight': typeof import("../interaction").ElementHighlight;
|
|
126
|
+
readonly 'interaction.elementHighlightByX': typeof import("../interaction").ElementHighlightByX;
|
|
127
|
+
readonly 'interaction.elementHighlightByColor': typeof import("../interaction").ElementHighlightByColor;
|
|
128
|
+
readonly 'interaction.elementSelect': typeof import("../interaction").ElementSelect;
|
|
129
|
+
readonly 'interaction.elementSelectByX': typeof import("../interaction").ElementSelectByX;
|
|
130
|
+
readonly 'interaction.elementSelectByColor': typeof import("../interaction").ElementSelectByColor;
|
|
131
|
+
readonly 'interaction.fisheye': typeof import("../interaction").Fisheye;
|
|
132
|
+
readonly 'interaction.chartIndex': typeof import("../interaction").ChartIndex;
|
|
133
|
+
readonly 'interaction.tooltip': typeof import("../interaction").Tooltip;
|
|
134
|
+
readonly 'interaction.legendFilter': typeof import("../interaction").LegendFilter;
|
|
135
|
+
readonly 'interaction.legendHighlight': typeof import("../interaction").LegendHighlight;
|
|
136
|
+
readonly 'interaction.brushHighlight': typeof import("../interaction").BrushHighlight;
|
|
137
|
+
readonly 'interaction.brushXHighlight': typeof import("../interaction").BrushXHighlight;
|
|
138
|
+
readonly 'interaction.brushYHighlight': typeof import("../interaction").BrushYHighlight;
|
|
139
|
+
readonly 'interaction.brushAxisHighlight': typeof import("../interaction").BrushAxisHighlight;
|
|
140
|
+
readonly 'interaction.brushFilter': typeof import("../interaction").BrushFilter;
|
|
141
|
+
readonly 'interaction.brushXFilter': typeof import("../interaction").BrushXFilter;
|
|
142
|
+
readonly 'interaction.brushYFilter': typeof import("../interaction").BrushYFilter;
|
|
143
|
+
readonly 'interaction.sliderFilter': typeof import("../interaction").SliderFilter;
|
|
144
|
+
readonly 'interaction.scrollbarFilter': typeof import("../interaction").ScrollbarFilter;
|
|
145
|
+
readonly 'interaction.poptip': typeof import("../interaction").Poptip;
|
|
146
|
+
readonly 'interaction.event': typeof import("../interaction").Event;
|
|
147
|
+
readonly 'composition.spaceLayer': import("../runtime").CompositionComponent<import("../composition").SpaceLayerOptions>;
|
|
148
|
+
readonly 'composition.spaceFlex': import("../runtime").CompositionComponent<import("../composition").SpaceFlexOptions>;
|
|
149
|
+
readonly 'composition.mark': import("../runtime").CompositionComponent<import("../composition").MarkOptions>;
|
|
150
|
+
readonly 'composition.view': import("../runtime").CompositionComponent<import("../composition").ViewOptions>;
|
|
151
|
+
readonly 'composition.facetRect': import("../runtime").CompositionComponent<import("../composition").FacetRectOptions>;
|
|
152
|
+
readonly 'composition.repeatMatrix': import("../runtime").CompositionComponent<import("..").RepeatMatrixComposition>;
|
|
153
|
+
readonly 'composition.facetCircle': import("../runtime").CompositionComponent<import("..").FacetCircleComposition>;
|
|
154
|
+
readonly 'composition.timingKeyframe': import("../runtime").CompositionComponent<import("../composition").TimingKeyframeOptions>;
|
|
155
|
+
readonly 'labelTransform.overlapHide': import("../runtime").LabelTransformComponent<import("../label-transform").OverlapHideOptions>;
|
|
156
|
+
readonly 'labelTransform.overlapDodgeY': import("../runtime").LabelTransformComponent<import("../label-transform").OverlapDodgeYOptions>;
|
|
157
|
+
readonly 'labelTransform.overflowHide': import("../runtime").LabelTransformComponent<import("../label-transform").OverflowHideOptions>;
|
|
158
|
+
readonly 'labelTransform.contrastReverse': import("../runtime").LabelTransformComponent<import("../label-transform").ContrastReverseOptions>;
|
|
159
|
+
readonly 'data.venn': import("../runtime").DataComponent<import("../data").VennOptions>;
|
|
160
|
+
readonly 'data.arc': import("../runtime").DataComponent<import("../data").ArcOptions>;
|
|
161
|
+
readonly 'data.cluster': import("../runtime").DataComponent<import("../data").ClusterOptions>;
|
|
162
|
+
readonly 'mark.sankey': import("../runtime").CompositeMarkComponent<import("..").SankeyOptions>;
|
|
163
|
+
readonly 'mark.treemap': import("../runtime").CompositionComponent<import("..").TreemapOptions>;
|
|
164
|
+
readonly 'mark.boxplot': import("../runtime").CompositeMarkComponent<import("../mark/boxplot").BoxPlotOptions>;
|
|
165
|
+
readonly 'mark.pack': import("../runtime").CompositionComponent<import("..").PackOptions>;
|
|
166
|
+
readonly 'mark.gauge': import("../runtime").CompositeMarkComponent<import("..").GaugeOptions>;
|
|
167
|
+
readonly 'mark.wordCloud': import("../runtime").CompositeMarkComponent<import("..").WordCloudOptions>;
|
|
168
|
+
readonly 'mark.forceGraph': import("../runtime").CompositeMarkComponent<import("..").ForceGraphOptions>;
|
|
169
|
+
readonly 'mark.tree': import("../runtime").CompositeMarkComponent<import("..").TreeOptions>;
|
|
170
|
+
readonly 'composition.geoView': import("../runtime").CompositionComponent<import("../composition/geoView").GeoViewOptions>;
|
|
171
|
+
readonly 'composition.geoPath': import("../runtime").CompositionComponent<import("../composition/geoPath").GeoPathOptions>;
|
|
172
|
+
};
|
|
3
173
|
export declare function register(key: `${G2ComponentNamespaces}.${any}`, component: G2Component): void;
|
package/lib/api/library.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.register = exports.library = void 0;
|
|
4
|
-
const
|
|
5
|
-
exports.library = (0,
|
|
4
|
+
const std_1 = require("../lib/std");
|
|
5
|
+
exports.library = (0, std_1.stdlib)();
|
|
6
6
|
// @todo Warn if override existing key.
|
|
7
7
|
function register(key, component) {
|
|
8
8
|
Object.assign(exports.library, { [key]: component });
|
package/lib/api/library.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"library.js","sourceRoot":"src/","sources":["api/library.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"library.js","sourceRoot":"src/","sources":["api/library.ts"],"names":[],"mappings":";;;AAAA,oCAAoC;AAGvB,QAAA,OAAO,GAAG,IAAA,YAAM,GAAE,CAAC;AAEhC,uCAAuC;AACvC,SAAgB,QAAQ,CACtB,GAAsC,EACtC,SAAsB;IAEtB,MAAM,CAAC,MAAM,CAAC,eAAO,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;AAC/C,CAAC;AALD,4BAKC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DisplayObject } from '@antv/g';
|
|
2
|
+
import { G2MarkState, Scale } from '../runtime';
|
|
3
|
+
import { Mark as Spec } from '../spec';
|
|
4
|
+
import { Node } from './node';
|
|
5
|
+
import { markProps } from './props';
|
|
6
|
+
import { PropsOf } from './types';
|
|
7
|
+
export interface MarkNode extends PropsOf<typeof markProps, Spec, MarkNode> {
|
|
8
|
+
}
|
|
9
|
+
export declare class MarkNode extends Node<Spec & {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}> {
|
|
12
|
+
changeData(data: any): Promise<import("./runtime").Runtime<import("../spec").G2Spec>>;
|
|
13
|
+
/**
|
|
14
|
+
* Get mark from chart views.
|
|
15
|
+
*/
|
|
16
|
+
getMark(): G2MarkState;
|
|
17
|
+
/**
|
|
18
|
+
* Get all scales instance.
|
|
19
|
+
*/
|
|
20
|
+
getScale(): Record<string, Scale>;
|
|
21
|
+
/**
|
|
22
|
+
* Get the scale instance by channel.
|
|
23
|
+
*/
|
|
24
|
+
getScaleByChannel(channel: string): Scale;
|
|
25
|
+
/**
|
|
26
|
+
* Get canvas group.
|
|
27
|
+
*/
|
|
28
|
+
getGroup(): DisplayObject;
|
|
29
|
+
}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
2
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
9
|
exports.MarkNode = void 0;
|
|
4
|
-
const node_1 = require("
|
|
5
|
-
|
|
10
|
+
const node_1 = require("./node");
|
|
11
|
+
const define_1 = require("./define");
|
|
12
|
+
const props_1 = require("./props");
|
|
13
|
+
let MarkNode = class MarkNode extends node_1.Node {
|
|
6
14
|
changeData(data) {
|
|
7
15
|
const chart = this.getRoot();
|
|
8
16
|
if (!chart)
|
|
@@ -53,6 +61,9 @@ class MarkNode extends node_1.Node {
|
|
|
53
61
|
const chartGroup = chart.getContext().canvas.getRoot();
|
|
54
62
|
return chartGroup.getElementById(key);
|
|
55
63
|
}
|
|
56
|
-
}
|
|
64
|
+
};
|
|
65
|
+
MarkNode = __decorate([
|
|
66
|
+
(0, define_1.defineProps)(props_1.markProps)
|
|
67
|
+
], MarkNode);
|
|
57
68
|
exports.MarkNode = MarkNode;
|
|
58
|
-
//# sourceMappingURL=
|
|
69
|
+
//# sourceMappingURL=mark.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mark.js","sourceRoot":"src/","sources":["api/mark.ts"],"names":[],"mappings":";;;;;;;;;AAGA,iCAA8B;AAC9B,qCAAuC;AACvC,mCAAoC;AAM7B,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,WAAmC;IAC/D,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,OAAO,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,EAAE,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,OAAO;;QACL,MAAM,SAAS,GAAG,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,OAAO,EAAE,CAAC;QAC5C,IAAI,CAAC,SAAS;YAAE,OAAO,SAAS,CAAC;QACjC,MAAM,EAAE,SAAS,EAAE,GAAG,SAAS,CAAC;QAChC,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAC/C,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,KAAK,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CACxC,CAAC;QACF,OAAO,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,QAAQ;;QACN,MAAM,SAAS,GAAG,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,OAAO,EAAE,CAAC;QAC5C,IAAI,CAAC,SAAS;YAAE,OAAO,SAAS,CAAC;QACjC,OAAO,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAK,CAAC;IAC1B,CAAC;IAED;;OAEG;IACH,iBAAiB,CAAC,OAAe;;QAC/B,MAAM,SAAS,GAAG,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,OAAO,EAAE,CAAC;QAC5C,IAAI,CAAC,SAAS;YAAE,OAAO,SAAS,CAAC;QACjC,OAAO,MAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAK,0CAAG,OAAO,CAAC,CAAC;IACrC,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC7B,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;CACF,CAAA;AAjDY,QAAQ;IADpB,IAAA,oBAAW,EAAC,iBAAS,CAAC;GACV,QAAQ,CAiDpB;AAjDY,4BAAQ"}
|
package/lib/api/node.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Runtime } from './runtime';
|
|
2
2
|
/**
|
|
3
3
|
* Hierarchy container.
|
|
4
4
|
*/
|
|
@@ -36,5 +36,5 @@ export declare class Node<Value extends Record<string, any> = Record<string, any
|
|
|
36
36
|
* Apply specified callback to the node value.
|
|
37
37
|
*/
|
|
38
38
|
call(callback: (node: this, ...params: any[]) => any, ...params: any[]): this;
|
|
39
|
-
getRoot():
|
|
39
|
+
getRoot(): Runtime;
|
|
40
40
|
}
|
package/lib/api/node.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"src/","sources":["api/node.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,SAAS,GAAG,CAAC,IAAU,EAAE,QAAmC;IAC1D,MAAM,UAAU,GAAW,CAAC,IAAI,CAAC,CAAC;IAClC,OAAO,UAAU,CAAC,MAAM,EAAE;QACxB,MAAM,WAAW,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC;QACvC,QAAQ,IAAI,QAAQ,CAAC,WAAW,CAAC,CAAC;QAClC,MAAM,QAAQ,GAAG,WAAW,CAAC,QAAQ,IAAI,EAAE,CAAC;QAC5C,KAAK,MAAM,KAAK,IAAI,QAAQ,EAAE;YAC5B,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACxB;KACF;AACH,CAAC;AAED;;GAEG;AACH,MAAa,IAAI;IAoBf,YAAY,QAAwB,EAAE,EAAE,IAAa;QAfrD,mBAAmB;QACnB,eAAU,GAAkD,IAAI,CAAC;QAEjE,sBAAsB;QACtB,aAAQ,GAAmD,EAAE,CAAC;QAE9D,gCAAgC;QAChC,UAAK,GAAG,CAAC,CAAC;QASR,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED;;;OAGG;IACH,GAAG,CAAC,YAAY,CAAC,CAAQ,EAAS,EAAE,CAAC,CAAC;QACpC,MAAM,QAAQ,GAAG,SAAS,CAAC,IAAI,CAAC,KAAc,CAAC,CAAC;QAChD,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;OAIG;IACH,IAAI,CACF,GAAgB,EAChB,KAAS;QAET,IAAI,SAAS,CAAC,MAAM,KAAK,C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