@antv/g2 5.0.0-beta.6 → 5.0.0-beta.8
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 +8 -4
- package/esm/api/chart.js +33 -17
- package/esm/api/chart.js.map +1 -1
- package/esm/api/composition/base.d.ts +21 -0
- package/esm/api/composition/base.js +59 -0
- package/esm/api/composition/base.js.map +1 -0
- package/esm/api/composition/facetCircle.d.ts +2 -3
- package/esm/api/composition/facetCircle.js +2 -2
- package/esm/api/composition/facetCircle.js.map +1 -1
- package/esm/api/composition/facetRect.d.ts +2 -3
- package/esm/api/composition/facetRect.js +2 -2
- package/esm/api/composition/facetRect.js.map +1 -1
- package/esm/api/composition/geoPath.d.ts +2 -3
- package/esm/api/composition/geoPath.js +2 -2
- package/esm/api/composition/geoPath.js.map +1 -1
- package/esm/api/composition/geoView.d.ts +2 -3
- package/esm/api/composition/geoView.js +2 -2
- package/esm/api/composition/geoView.js.map +1 -1
- package/esm/api/composition/index.d.ts +2 -1
- package/esm/api/composition/index.js +2 -1
- package/esm/api/composition/index.js.map +1 -1
- package/esm/api/composition/repeatMatrix.d.ts +2 -3
- package/esm/api/composition/repeatMatrix.js +2 -2
- package/esm/api/composition/repeatMatrix.js.map +1 -1
- package/esm/api/composition/spaceFlex.d.ts +2 -3
- package/esm/api/composition/spaceFlex.js +2 -2
- package/esm/api/composition/spaceFlex.js.map +1 -1
- package/esm/api/composition/spaceLayer.d.ts +2 -3
- package/esm/api/composition/spaceLayer.js +2 -2
- package/esm/api/composition/spaceLayer.js.map +1 -1
- package/esm/api/composition/timingKeyframe.d.ts +2 -3
- package/esm/api/composition/timingKeyframe.js +2 -2
- package/esm/api/composition/timingKeyframe.js.map +1 -1
- package/esm/api/composition/view.d.ts +3 -3
- package/esm/api/composition/view.js +4 -4
- package/esm/api/composition/view.js.map +1 -1
- package/esm/api/mark/base.d.ts +22 -0
- package/esm/api/mark/base.js +54 -0
- package/esm/api/mark/base.js.map +1 -0
- package/esm/api/mark/mark.d.ts +29 -29
- package/esm/api/mark/mark.js +27 -27
- package/esm/api/mark/mark.js.map +1 -1
- package/esm/api/node.d.ts +2 -1
- package/esm/api/node.js +8 -9
- package/esm/api/node.js.map +1 -1
- package/esm/api/props.js +0 -20
- package/esm/api/props.js.map +1 -1
- package/esm/component/axis.js +4 -0
- package/esm/component/axis.js.map +1 -1
- package/esm/component/legendContinuous.d.ts +1 -0
- package/esm/component/legendContinuous.js +14 -16
- package/esm/component/legendContinuous.js.map +1 -1
- package/esm/component/slider.js +3 -13
- package/esm/component/slider.js.map +1 -1
- package/esm/geo/{d3-projection.d.ts → d3Projection.d.ts} +0 -0
- package/esm/geo/{d3-projection.js → d3Projection.js} +1 -1
- package/esm/geo/d3Projection.js.map +1 -0
- package/esm/geo/geoView.js +1 -1
- package/esm/geo/geoView.js.map +1 -1
- package/esm/interaction/builtin/elementHighlight.d.ts +2 -0
- package/esm/interaction/builtin/elementHighlightByColor.d.ts +2 -0
- package/esm/interaction/builtin/elementHighlightByX.d.ts +2 -0
- package/esm/interaction/index.d.ts +2 -0
- package/esm/interaction/index.js +2 -0
- package/esm/interaction/index.js.map +1 -1
- package/esm/interaction/native/brushFilter.d.ts +3 -1
- package/esm/interaction/native/brushFilter.js +7 -32
- package/esm/interaction/native/brushFilter.js.map +1 -1
- package/esm/interaction/native/brushXFilter.js +1 -1
- package/esm/interaction/native/brushXFilter.js.map +1 -1
- package/esm/interaction/native/brushYFilter.js +1 -1
- package/esm/interaction/native/brushYFilter.js.map +1 -1
- package/esm/interaction/native/elementHighlight.d.ts +7 -2
- package/esm/interaction/native/elementHighlight.js +72 -18
- package/esm/interaction/native/elementHighlight.js.map +1 -1
- package/esm/interaction/native/elementHighlightByColor.d.ts +4 -1
- package/esm/interaction/native/elementHighlightByColor.js +19 -3
- package/esm/interaction/native/elementHighlightByColor.js.map +1 -1
- package/esm/interaction/native/elementHighlightByX.d.ts +3 -3
- package/esm/interaction/native/elementHighlightByX.js +19 -3
- package/esm/interaction/native/elementHighlightByX.js.map +1 -1
- package/esm/interaction/native/elementSelect.d.ts +1 -1
- package/esm/interaction/native/elementSelect.js +42 -20
- package/esm/interaction/native/elementSelect.js.map +1 -1
- package/esm/interaction/native/elementSelectByColor.js +3 -2
- package/esm/interaction/native/elementSelectByColor.js.map +1 -1
- package/esm/interaction/native/elementSelectByX.js +3 -2
- package/esm/interaction/native/elementSelectByX.js.map +1 -1
- package/esm/interaction/native/legendFilter.d.ts +4 -0
- package/esm/interaction/native/legendFilter.js +7 -4
- package/esm/interaction/native/legendFilter.js.map +1 -1
- package/esm/interaction/native/legendHighlight.d.ts +4 -0
- package/esm/interaction/native/legendHighlight.js +94 -0
- package/esm/interaction/native/legendHighlight.js.map +1 -0
- package/esm/interaction/native/sliderFilter.d.ts +5 -0
- package/esm/interaction/native/sliderFilter.js +87 -0
- package/esm/interaction/native/sliderFilter.js.map +1 -0
- package/esm/interaction/native/tooltip.js +11 -0
- package/esm/interaction/native/tooltip.js.map +1 -1
- package/esm/interaction/native/utils.d.ts +13 -2
- package/esm/interaction/native/utils.js +151 -26
- package/esm/interaction/native/utils.js.map +1 -1
- package/esm/label-transform/overlapDodgeY.js.map +1 -1
- package/esm/mark/area.js +1 -1
- package/esm/mark/area.js.map +1 -1
- package/esm/runtime/component.d.ts +1 -1
- package/esm/runtime/component.js +5 -3
- package/esm/runtime/component.js.map +1 -1
- package/esm/runtime/plot.d.ts +1 -1
- package/esm/runtime/plot.js +68 -29
- package/esm/runtime/plot.js.map +1 -1
- package/esm/runtime/render.js +18 -13
- package/esm/runtime/render.js.map +1 -1
- package/esm/runtime/scale.d.ts +2 -1
- package/esm/runtime/scale.js +7 -0
- package/esm/runtime/scale.js.map +1 -1
- package/esm/runtime/types/options.d.ts +4 -2
- package/esm/shape/area/hv.d.ts +3 -0
- package/esm/shape/area/hv.js +9 -0
- package/esm/shape/area/hv.js.map +1 -0
- package/esm/shape/area/hvh.d.ts +3 -0
- package/esm/shape/area/{step.js → hvh.js} +3 -3
- package/esm/shape/area/hvh.js.map +1 -0
- package/esm/shape/area/vh.d.ts +3 -0
- package/esm/shape/area/vh.js +9 -0
- package/esm/shape/area/vh.js.map +1 -0
- package/esm/shape/index.d.ts +6 -2
- package/esm/shape/index.js +3 -1
- package/esm/shape/index.js.map +1 -1
- package/esm/shape/interval/color.d.ts +1 -0
- package/esm/shape/interval/color.js +65 -53
- package/esm/shape/interval/color.js.map +1 -1
- package/esm/spec/composition.d.ts +0 -3
- package/esm/spec/geometry.d.ts +1 -0
- package/esm/spec/interaction.d.ts +30 -11
- package/esm/spec/transform.d.ts +15 -5
- package/esm/stdlib/index.js +3 -8
- package/esm/stdlib/index.js.map +1 -1
- package/esm/transform/sample.js +42 -26
- package/esm/transform/sample.js.map +1 -1
- package/esm/transform/select.js +1 -13
- package/esm/transform/select.js.map +1 -1
- package/esm/transform/selectX.js +1 -1
- package/esm/transform/selectX.js.map +1 -1
- package/esm/transform/selectY.js +1 -1
- package/esm/transform/selectY.js.map +1 -1
- package/esm/transform/utils/lttb.d.ts +5 -0
- package/esm/transform/utils/lttb.js +56 -0
- package/esm/transform/utils/lttb.js.map +1 -0
- package/esm/utils/event.d.ts +0 -2
- package/esm/utils/event.js +0 -18
- package/esm/utils/event.js.map +1 -1
- package/esm/utils/scale.d.ts +3 -0
- package/esm/utils/scale.js +30 -0
- package/esm/utils/scale.js.map +1 -0
- package/esm/utils/vector.d.ts +1 -1
- package/esm/utils/vector.js +1 -1
- package/lib/api/chart.d.ts +8 -4
- package/lib/api/chart.js +34 -15
- package/lib/api/chart.js.map +1 -1
- package/lib/api/composition/base.d.ts +21 -0
- package/lib/api/composition/base.js +62 -0
- package/lib/api/composition/base.js.map +1 -0
- package/lib/api/composition/facetCircle.d.ts +2 -3
- package/lib/api/composition/facetCircle.js +2 -2
- package/lib/api/composition/facetCircle.js.map +1 -1
- package/lib/api/composition/facetRect.d.ts +2 -3
- package/lib/api/composition/facetRect.js +2 -2
- package/lib/api/composition/facetRect.js.map +1 -1
- package/lib/api/composition/geoPath.d.ts +2 -3
- package/lib/api/composition/geoPath.js +2 -2
- package/lib/api/composition/geoPath.js.map +1 -1
- package/lib/api/composition/geoView.d.ts +2 -3
- package/lib/api/composition/geoView.js +2 -2
- package/lib/api/composition/geoView.js.map +1 -1
- package/lib/api/composition/index.d.ts +2 -1
- package/lib/api/composition/index.js +3 -1
- package/lib/api/composition/index.js.map +1 -1
- package/lib/api/composition/repeatMatrix.d.ts +2 -3
- package/lib/api/composition/repeatMatrix.js +2 -2
- package/lib/api/composition/repeatMatrix.js.map +1 -1
- package/lib/api/composition/spaceFlex.d.ts +2 -3
- package/lib/api/composition/spaceFlex.js +2 -2
- package/lib/api/composition/spaceFlex.js.map +1 -1
- package/lib/api/composition/spaceLayer.d.ts +2 -3
- package/lib/api/composition/spaceLayer.js +2 -2
- package/lib/api/composition/spaceLayer.js.map +1 -1
- package/lib/api/composition/timingKeyframe.d.ts +2 -3
- package/lib/api/composition/timingKeyframe.js +2 -2
- package/lib/api/composition/timingKeyframe.js.map +1 -1
- package/lib/api/composition/view.d.ts +3 -3
- package/lib/api/composition/view.js +4 -4
- package/lib/api/composition/view.js.map +1 -1
- package/lib/api/mark/base.d.ts +22 -0
- package/lib/api/mark/base.js +58 -0
- package/lib/api/mark/base.js.map +1 -0
- package/lib/api/mark/mark.d.ts +29 -29
- package/lib/api/mark/mark.js +27 -27
- package/lib/api/mark/mark.js.map +1 -1
- package/lib/api/node.d.ts +2 -1
- package/lib/api/node.js +8 -9
- package/lib/api/node.js.map +1 -1
- package/lib/api/props.js +0 -20
- package/lib/api/props.js.map +1 -1
- package/lib/component/axis.js +4 -0
- package/lib/component/axis.js.map +1 -1
- package/lib/component/legendContinuous.d.ts +1 -0
- package/lib/component/legendContinuous.js +14 -16
- package/lib/component/legendContinuous.js.map +1 -1
- package/lib/component/slider.js +3 -13
- package/lib/component/slider.js.map +1 -1
- package/lib/geo/{d3-projection.d.ts → d3Projection.d.ts} +0 -0
- package/lib/geo/{d3-projection.js → d3Projection.js} +1 -1
- package/lib/geo/d3Projection.js.map +1 -0
- package/lib/geo/geoView.js +1 -1
- package/lib/geo/geoView.js.map +1 -1
- package/lib/interaction/builtin/elementHighlight.d.ts +2 -0
- package/lib/interaction/builtin/elementHighlightByColor.d.ts +2 -0
- package/lib/interaction/builtin/elementHighlightByX.d.ts +2 -0
- package/lib/interaction/index.d.ts +2 -0
- package/lib/interaction/index.js +5 -1
- package/lib/interaction/index.js.map +1 -1
- package/lib/interaction/native/brushFilter.d.ts +3 -1
- package/lib/interaction/native/brushFilter.js +10 -35
- package/lib/interaction/native/brushFilter.js.map +1 -1
- package/lib/interaction/native/brushXFilter.js +1 -1
- package/lib/interaction/native/brushXFilter.js.map +1 -1
- package/lib/interaction/native/brushYFilter.js +1 -1
- package/lib/interaction/native/brushYFilter.js.map +1 -1
- package/lib/interaction/native/elementHighlight.d.ts +7 -2
- package/lib/interaction/native/elementHighlight.js +71 -17
- package/lib/interaction/native/elementHighlight.js.map +1 -1
- package/lib/interaction/native/elementHighlightByColor.d.ts +4 -1
- package/lib/interaction/native/elementHighlightByColor.js +18 -2
- package/lib/interaction/native/elementHighlightByColor.js.map +1 -1
- package/lib/interaction/native/elementHighlightByX.d.ts +3 -3
- package/lib/interaction/native/elementHighlightByX.js +18 -2
- package/lib/interaction/native/elementHighlightByX.js.map +1 -1
- package/lib/interaction/native/elementSelect.d.ts +1 -1
- package/lib/interaction/native/elementSelect.js +41 -19
- package/lib/interaction/native/elementSelect.js.map +1 -1
- package/lib/interaction/native/elementSelectByColor.js +2 -1
- package/lib/interaction/native/elementSelectByColor.js.map +1 -1
- package/lib/interaction/native/elementSelectByX.js +2 -1
- package/lib/interaction/native/elementSelectByX.js.map +1 -1
- package/lib/interaction/native/legendFilter.d.ts +4 -0
- package/lib/interaction/native/legendFilter.js +10 -3
- package/lib/interaction/native/legendFilter.js.map +1 -1
- package/lib/interaction/native/legendHighlight.d.ts +4 -0
- package/lib/interaction/native/legendHighlight.js +98 -0
- package/lib/interaction/native/legendHighlight.js.map +1 -0
- package/lib/interaction/native/sliderFilter.d.ts +5 -0
- package/lib/interaction/native/sliderFilter.js +91 -0
- package/lib/interaction/native/sliderFilter.js.map +1 -0
- package/lib/interaction/native/tooltip.js +11 -0
- package/lib/interaction/native/tooltip.js.map +1 -1
- package/lib/interaction/native/utils.d.ts +13 -2
- package/lib/interaction/native/utils.js +154 -27
- package/lib/interaction/native/utils.js.map +1 -1
- package/lib/label-transform/overlapDodgeY.js.map +1 -1
- package/lib/mark/area.js +1 -1
- package/lib/mark/area.js.map +1 -1
- package/lib/runtime/component.d.ts +1 -1
- package/lib/runtime/component.js +4 -2
- package/lib/runtime/component.js.map +1 -1
- package/lib/runtime/plot.d.ts +1 -1
- package/lib/runtime/plot.js +65 -26
- package/lib/runtime/plot.js.map +1 -1
- package/lib/runtime/render.js +20 -12
- package/lib/runtime/render.js.map +1 -1
- package/lib/runtime/scale.d.ts +2 -1
- package/lib/runtime/scale.js +9 -1
- package/lib/runtime/scale.js.map +1 -1
- package/lib/runtime/types/options.d.ts +4 -2
- package/lib/shape/area/hv.d.ts +3 -0
- package/lib/shape/area/hv.js +13 -0
- package/lib/shape/area/hv.js.map +1 -0
- package/lib/shape/area/hvh.d.ts +3 -0
- package/lib/shape/area/{step.js → hvh.js} +5 -5
- package/lib/shape/area/hvh.js.map +1 -0
- package/lib/shape/area/vh.d.ts +3 -0
- package/lib/shape/area/vh.js +13 -0
- package/lib/shape/area/vh.js.map +1 -0
- package/lib/shape/index.d.ts +6 -2
- package/lib/shape/index.js +7 -3
- package/lib/shape/index.js.map +1 -1
- package/lib/shape/interval/color.d.ts +1 -0
- package/lib/shape/interval/color.js +67 -54
- package/lib/shape/interval/color.js.map +1 -1
- package/lib/spec/composition.d.ts +0 -3
- package/lib/spec/geometry.d.ts +1 -0
- package/lib/spec/interaction.d.ts +30 -11
- package/lib/spec/transform.d.ts +15 -5
- package/lib/stdlib/index.js +1 -1
- package/lib/stdlib/index.js.map +1 -1
- package/lib/transform/sample.js +42 -26
- package/lib/transform/sample.js.map +1 -1
- package/lib/transform/select.js +1 -13
- package/lib/transform/select.js.map +1 -1
- package/lib/transform/selectX.js +1 -1
- package/lib/transform/selectX.js.map +1 -1
- package/lib/transform/selectY.js +1 -1
- package/lib/transform/selectY.js.map +1 -1
- package/lib/transform/utils/lttb.d.ts +5 -0
- package/lib/transform/utils/lttb.js +60 -0
- package/lib/transform/utils/lttb.js.map +1 -0
- package/lib/utils/event.d.ts +0 -2
- package/lib/utils/event.js +1 -21
- package/lib/utils/event.js.map +1 -1
- package/lib/utils/scale.d.ts +3 -0
- package/lib/utils/scale.js +36 -0
- package/lib/utils/scale.js.map +1 -0
- package/lib/utils/vector.d.ts +1 -1
- package/lib/utils/vector.js +1 -1
- package/package.json +4 -3
- package/src/.DS_Store +0 -0
- package/src/api/chart.ts +39 -18
- package/src/api/composition/base.ts +56 -0
- package/src/api/composition/facetCircle.ts +2 -3
- package/src/api/composition/facetRect.ts +2 -3
- package/src/api/composition/geoPath.ts +2 -3
- package/src/api/composition/geoView.ts +2 -3
- package/src/api/composition/index.ts +2 -0
- package/src/api/composition/repeatMatrix.ts +2 -3
- package/src/api/composition/spaceFlex.ts +2 -3
- package/src/api/composition/spaceLayer.ts +2 -3
- package/src/api/composition/timingKeyframe.ts +2 -3
- package/src/api/composition/view.ts +6 -4
- package/src/api/mark/base.ts +58 -0
- package/src/api/mark/mark.ts +29 -28
- package/src/api/node.ts +9 -11
- package/src/api/props.ts +0 -23
- package/src/component/axis.ts +7 -0
- package/src/component/legendContinuous.ts +15 -5
- package/src/component/slider.ts +3 -12
- package/src/data/.DS_Store +0 -0
- package/src/geo/{d3-projection.ts → d3Projection.ts} +0 -0
- package/src/geo/geoView.ts +1 -1
- package/src/interaction/index.ts +2 -0
- package/src/interaction/native/brushFilter.ts +18 -38
- package/src/interaction/native/brushXFilter.ts +1 -0
- package/src/interaction/native/brushYFilter.ts +1 -0
- package/src/interaction/native/elementHighlight.ts +78 -11
- package/src/interaction/native/elementHighlightByColor.ts +9 -4
- package/src/interaction/native/elementHighlightByX.ts +9 -5
- package/src/interaction/native/elementSelect.ts +58 -14
- package/src/interaction/native/elementSelectByColor.ts +4 -1
- package/src/interaction/native/elementSelectByX.ts +4 -1
- package/src/interaction/native/legendFilter.ts +8 -4
- package/src/interaction/native/legendHighlight.ts +87 -0
- package/src/interaction/native/sliderFilter.ts +112 -0
- package/src/interaction/native/tooltip.ts +11 -0
- package/src/interaction/native/utils.ts +183 -26
- package/src/label-transform/overlapDodgeY.ts +1 -1
- package/src/mark/area.ts +1 -1
- package/src/runtime/component.ts +18 -25
- package/src/runtime/plot.ts +123 -75
- package/src/runtime/render.ts +26 -13
- package/src/runtime/scale.ts +14 -0
- package/src/runtime/types/options.ts +10 -2
- package/src/shape/.DS_Store +0 -0
- package/src/shape/area/hv.ts +20 -0
- package/src/shape/area/{step.ts → hvh.ts} +3 -3
- package/src/shape/area/vh.ts +20 -0
- package/src/shape/index.ts +7 -2
- package/src/shape/interval/color.ts +86 -54
- package/src/spec/composition.ts +0 -1
- package/src/spec/geometry.ts +1 -0
- package/src/spec/interaction.ts +45 -12
- package/src/spec/transform.ts +30 -3
- package/src/stdlib/index.ts +10 -6
- package/src/transform/sample.ts +54 -18
- package/src/transform/select.ts +1 -2
- package/src/transform/selectX.ts +1 -1
- package/src/transform/selectY.ts +1 -1
- package/src/transform/utils/lttb.ts +73 -0
- package/src/utils/event.ts +0 -26
- package/src/utils/scale.ts +31 -0
- package/src/utils/vector.ts +1 -1
- package/esm/geo/d3-projection.js.map +0 -1
- package/esm/shape/area/step.d.ts +0 -3
- package/esm/shape/area/step.js.map +0 -1
- package/lib/geo/d3-projection.js.map +0 -1
- package/lib/shape/area/step.d.ts +0 -3
- package/lib/shape/area/step.js.map +0 -1
|
@@ -8,9 +8,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.GeoPath = void 0;
|
|
10
10
|
const props_1 = require("../props");
|
|
11
|
-
const node_1 = require("../node");
|
|
12
11
|
const mark_1 = require("../mark");
|
|
13
|
-
|
|
12
|
+
const index_1 = require("./index");
|
|
13
|
+
let GeoPath = class GeoPath extends index_1.Base {
|
|
14
14
|
constructor() {
|
|
15
15
|
super({}, 'geoPath');
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geoPath.js","sourceRoot":"src/","sources":["api/composition/geoPath.ts"],"names":[],"mappings":";;;;;;;;;AACA,oCAAkD;AAOlD,
|
|
1
|
+
{"version":3,"file":"geoPath.js","sourceRoot":"src/","sources":["api/composition/geoPath.ts"],"names":[],"mappings":";;;;;;;;;AACA,oCAAkD;AAOlD,kCAAqC;AACrC,mCAA4C;AA4BrC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,YAAwB;IACnD;QACE,KAAK,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC;IACvB,CAAC;CACF,CAAA;AAJY,OAAO;IAZnB,IAAA,mBAAW,EAAC;QACX,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE;QAC/B,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE;QACrC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,aAAa,EAAE;QACzD,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,EAAE,cAAc,EAAE;QAC3D,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE;QACjC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE;QACjC,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,GAAG,IAAA,iBAAS,EAAC,WAAI,CAAC;KACnB,CAAC;GACW,OAAO,CAInB;AAJY,0BAAO"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { GeoViewComposition } from '../../spec';
|
|
2
2
|
import { ValueAttribute, ObjectAttribute, ArrayAttribute, Concrete } from '../types';
|
|
3
|
-
import { Node } from '../node';
|
|
4
3
|
import { Mark } from '../mark';
|
|
5
|
-
import { Composition } from './index';
|
|
4
|
+
import { Composition, Base } from './index';
|
|
6
5
|
type GeoViewSpec = Concrete<GeoViewComposition>;
|
|
7
6
|
export interface GeoView extends Mark, Composition {
|
|
8
7
|
projection: ValueAttribute<GeoViewSpec['projection'], GeoView>;
|
|
@@ -15,7 +14,7 @@ export interface GeoView extends Mark, Composition {
|
|
|
15
14
|
scale: ObjectAttribute<GeoViewSpec['scale'], GeoView>;
|
|
16
15
|
legend: ObjectAttribute<GeoViewSpec['legend'], GeoView>;
|
|
17
16
|
}
|
|
18
|
-
export declare class GeoView extends
|
|
17
|
+
export declare class GeoView extends Base<GeoViewComposition> {
|
|
19
18
|
constructor();
|
|
20
19
|
}
|
|
21
20
|
export {};
|
|
@@ -8,9 +8,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.GeoView = void 0;
|
|
10
10
|
const props_1 = require("../props");
|
|
11
|
-
const node_1 = require("../node");
|
|
12
11
|
const mark_1 = require("../mark");
|
|
13
|
-
|
|
12
|
+
const index_1 = require("./index");
|
|
13
|
+
let GeoView = class GeoView extends index_1.Base {
|
|
14
14
|
constructor() {
|
|
15
15
|
super({}, 'geoView');
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geoView.js","sourceRoot":"src/","sources":["api/composition/geoView.ts"],"names":[],"mappings":";;;;;;;;;AACA,oCAAkD;AAOlD,
|
|
1
|
+
{"version":3,"file":"geoView.js","sourceRoot":"src/","sources":["api/composition/geoView.ts"],"names":[],"mappings":";;;;;;;;;AACA,oCAAkD;AAOlD,kCAAqC;AACrC,mCAA4C;AA2BrC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,YAAwB;IACnD;QACE,KAAK,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC;IACvB,CAAC;CACF,CAAA;AAJY,OAAO;IAXnB,IAAA,mBAAW,EAAC;QACX,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE;QAC/B,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE;QACrC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,aAAa,EAAE;QACzD,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,EAAE,cAAc,EAAE;QAC3D,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE;QACjC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE;QACjC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE;QACjC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClC,GAAG,IAAA,iBAAS,EAAC,WAAI,CAAC;KACnB,CAAC;GACW,OAAO,CAInB;AAJY,0BAAO"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Base } from './base';
|
|
1
2
|
import { View } from './view';
|
|
2
3
|
import { SpaceLayer } from './spaceLayer';
|
|
3
4
|
import { SpaceFlex } from './spaceFlex';
|
|
@@ -29,4 +30,4 @@ export interface Composition {
|
|
|
29
30
|
geoView(): GeoView;
|
|
30
31
|
geoPath(): GeoPath;
|
|
31
32
|
}
|
|
32
|
-
export { View, SpaceLayer, SpaceFlex, FacetRect, FacetCircle, RepeatMatrix, TimingKeyframe, GeoView, GeoPath, };
|
|
33
|
+
export { Base, View, SpaceLayer, SpaceFlex, FacetRect, FacetCircle, RepeatMatrix, TimingKeyframe, GeoView, GeoPath, };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GeoPath = exports.GeoView = exports.TimingKeyframe = exports.RepeatMatrix = exports.FacetCircle = exports.FacetRect = exports.SpaceFlex = exports.SpaceLayer = exports.View = exports.composition = void 0;
|
|
3
|
+
exports.GeoPath = exports.GeoView = exports.TimingKeyframe = exports.RepeatMatrix = exports.FacetCircle = exports.FacetRect = exports.SpaceFlex = exports.SpaceLayer = exports.View = exports.Base = exports.composition = void 0;
|
|
4
4
|
const props_1 = require("../props");
|
|
5
|
+
const base_1 = require("./base");
|
|
6
|
+
Object.defineProperty(exports, "Base", { enumerable: true, get: function () { return base_1.Base; } });
|
|
5
7
|
const view_1 = require("./view");
|
|
6
8
|
Object.defineProperty(exports, "View", { enumerable: true, get: function () { return view_1.View; } });
|
|
7
9
|
const spaceLayer_1 = require("./spaceLayer");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["api/composition/index.ts"],"names":[],"mappings":";;;AAAA,oCAAkD;AAClD,iCAA8B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["api/composition/index.ts"],"names":[],"mappings":";;;AAAA,oCAAkD;AAClD,iCAA8B;AAoC5B,qFApCO,WAAI,OAoCP;AAnCN,iCAA8B;AAoC5B,qFApCO,WAAI,OAoCP;AAnCN,6CAA0C;AAoCxC,2FApCO,uBAAU,OAoCP;AAnCZ,2CAAwC;AAoCtC,0FApCO,qBAAS,OAoCP;AAnCX,2CAAwC;AAoCtC,0FApCO,qBAAS,OAoCP;AAnCX,+CAA4C;AAoC1C,4FApCO,yBAAW,OAoCP;AAnCb,iDAA8C;AAoC5C,6FApCO,2BAAY,OAoCP;AAnCd,qDAAkD;AAoChD,+FApCO,+BAAc,OAoCP;AAnChB,uCAAoC;AAoClC,wFApCO,iBAAO,OAoCP;AAnCT,uCAAoC;AAoClC,wFApCO,iBAAO,OAoCP;AAlCI,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,WAAI;IACV,UAAU,EAAE,uBAAU;IACtB,SAAS,EAAE,qBAAS;IACpB,SAAS,EAAE,qBAAS;IACpB,WAAW,EAAE,yBAAW;IACxB,YAAY,EAAE,2BAAY;IAC1B,cAAc,EAAE,+BAAc;IAC9B,OAAO,EAAE,iBAAO;IAChB,OAAO,EAAE,iBAAO;CACjB,CAAC;AA2BF;;;;GAIG;AACH,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,MAAM,CAAC,mBAAW,CAAC,EAAE;IAC7C,IAAA,mBAAW,EAAC,IAAA,iBAAS,EAAC,mBAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;CAC3C"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { RepeatMatrixComposition } from '../../spec';
|
|
2
2
|
import { ValueAttribute, Concrete, ArrayAttribute, ObjectAttribute } from '../types';
|
|
3
|
-
import { Node } from '../node';
|
|
4
3
|
import { Mark } from '../mark';
|
|
5
|
-
import { Composition } from './index';
|
|
4
|
+
import { Composition, Base } from './index';
|
|
6
5
|
type RepeatMatrixSpec = Concrete<RepeatMatrixComposition>;
|
|
7
6
|
export interface RepeatMatrix extends Composition, Mark {
|
|
8
7
|
data: ValueAttribute<RepeatMatrixSpec['data'], RepeatMatrix>;
|
|
@@ -12,7 +11,7 @@ export interface RepeatMatrix extends Composition, Mark {
|
|
|
12
11
|
legend: ObjectAttribute<RepeatMatrixSpec['legend'], RepeatMatrix>;
|
|
13
12
|
axis: ObjectAttribute<RepeatMatrixSpec['axis'], RepeatMatrix>;
|
|
14
13
|
}
|
|
15
|
-
export declare class RepeatMatrix extends
|
|
14
|
+
export declare class RepeatMatrix extends Base<RepeatMatrixComposition> {
|
|
16
15
|
constructor();
|
|
17
16
|
}
|
|
18
17
|
export {};
|
|
@@ -8,9 +8,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.RepeatMatrix = void 0;
|
|
10
10
|
const props_1 = require("../props");
|
|
11
|
-
const node_1 = require("../node");
|
|
12
11
|
const mark_1 = require("../mark");
|
|
13
|
-
|
|
12
|
+
const index_1 = require("./index");
|
|
13
|
+
let RepeatMatrix = class RepeatMatrix extends index_1.Base {
|
|
14
14
|
constructor() {
|
|
15
15
|
super({}, 'repeatMatrix');
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repeatMatrix.js","sourceRoot":"src/","sources":["api/composition/repeatMatrix.ts"],"names":[],"mappings":";;;;;;;;;AACA,oCAAkD;AAOlD,
|
|
1
|
+
{"version":3,"file":"repeatMatrix.js","sourceRoot":"src/","sources":["api/composition/repeatMatrix.ts"],"names":[],"mappings":";;;;;;;;;AACA,oCAAkD;AAOlD,kCAAqC;AACrC,mCAA4C;AAsBrC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,YAA6B;IAC7D;QACE,KAAK,CAAC,EAAE,EAAE,cAAc,CAAC,CAAC;IAC5B,CAAC;CACF,CAAA;AAJY,YAAY;IATxB,IAAA,mBAAW,EAAC;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,QAAQ,EAAE;QAClC,GAAG,IAAA,iBAAS,EAAC,WAAI,CAAC;KACnB,CAAC;GACW,YAAY,CAIxB;AAJY,oCAAY"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { SpaceFlexComposition } from '../../spec';
|
|
2
2
|
import { ValueAttribute, Concrete } from '../types';
|
|
3
|
-
import { Node } from '../node';
|
|
4
3
|
import { Mark } from '../mark';
|
|
5
|
-
import { Composition } from './index';
|
|
4
|
+
import { Composition, Base } from './index';
|
|
6
5
|
type SpaceFlexSpec = Concrete<SpaceFlexComposition>;
|
|
7
6
|
export interface SpaceFlex extends Composition, Mark {
|
|
8
7
|
data: ValueAttribute<SpaceFlexSpec['data'], SpaceFlex>;
|
|
9
8
|
}
|
|
10
|
-
export declare class SpaceFlex extends
|
|
9
|
+
export declare class SpaceFlex extends Base<SpaceFlexSpec> {
|
|
11
10
|
constructor();
|
|
12
11
|
}
|
|
13
12
|
export {};
|
|
@@ -8,9 +8,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.SpaceFlex = void 0;
|
|
10
10
|
const props_1 = require("../props");
|
|
11
|
-
const node_1 = require("../node");
|
|
12
11
|
const mark_1 = require("../mark");
|
|
13
|
-
|
|
12
|
+
const index_1 = require("./index");
|
|
13
|
+
let SpaceFlex = class SpaceFlex extends index_1.Base {
|
|
14
14
|
constructor() {
|
|
15
15
|
super({}, 'spaceFlex');
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spaceFlex.js","sourceRoot":"src/","sources":["api/composition/spaceFlex.ts"],"names":[],"mappings":";;;;;;;;;AACA,oCAAkD;AAElD,
|
|
1
|
+
{"version":3,"file":"spaceFlex.js","sourceRoot":"src/","sources":["api/composition/spaceFlex.ts"],"names":[],"mappings":";;;;;;;;;AACA,oCAAkD;AAElD,kCAAqC;AACrC,mCAA4C;AASrC,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,YAAmB;IAChD;QACE,KAAK,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC;IACzB,CAAC;CACF,CAAA;AAJY,SAAS;IADrB,IAAA,mBAAW,EAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,IAAA,iBAAS,EAAC,WAAI,CAAC,CAAC,CAAC;GACtD,SAAS,CAIrB;AAJY,8BAAS"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { SpaceLayerComposition } from '../../spec';
|
|
2
2
|
import { ValueAttribute, Concrete } from '../types';
|
|
3
|
-
import { Node } from '../node';
|
|
4
3
|
import { Mark } from '../mark';
|
|
5
|
-
import { Composition } from './index';
|
|
4
|
+
import { Composition, Base } from './index';
|
|
6
5
|
type SpaceLayerSpec = Concrete<SpaceLayerComposition>;
|
|
7
6
|
export interface SpaceLayer extends Composition, Mark {
|
|
8
7
|
data: ValueAttribute<SpaceLayerSpec['data'], SpaceLayer>;
|
|
9
8
|
}
|
|
10
|
-
export declare class SpaceLayer extends
|
|
9
|
+
export declare class SpaceLayer extends Base<SpaceLayerComposition> {
|
|
11
10
|
constructor();
|
|
12
11
|
}
|
|
13
12
|
export {};
|
|
@@ -8,9 +8,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.SpaceLayer = void 0;
|
|
10
10
|
const props_1 = require("../props");
|
|
11
|
-
const node_1 = require("../node");
|
|
12
11
|
const mark_1 = require("../mark");
|
|
13
|
-
|
|
12
|
+
const index_1 = require("./index");
|
|
13
|
+
let SpaceLayer = class SpaceLayer extends index_1.Base {
|
|
14
14
|
constructor() {
|
|
15
15
|
super({}, 'spaceLayer');
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spaceLayer.js","sourceRoot":"src/","sources":["api/composition/spaceLayer.ts"],"names":[],"mappings":";;;;;;;;;AACA,oCAAkD;AAElD,
|
|
1
|
+
{"version":3,"file":"spaceLayer.js","sourceRoot":"src/","sources":["api/composition/spaceLayer.ts"],"names":[],"mappings":";;;;;;;;;AACA,oCAAkD;AAElD,kCAAqC;AACrC,mCAA4C;AASrC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,YAA2B;IACzD;QACE,KAAK,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;IAC1B,CAAC;CACF,CAAA;AAJY,UAAU;IADtB,IAAA,mBAAW,EAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,IAAA,iBAAS,EAAC,WAAI,CAAC,CAAC,CAAC;GACtD,UAAU,CAItB;AAJY,gCAAU"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { TimingKeyframeComposition } from '../../spec';
|
|
2
2
|
import { Concrete } from '../types';
|
|
3
|
-
import { Node } from '../node';
|
|
4
3
|
import { Mark } from '../mark';
|
|
5
|
-
import { Composition } from './index';
|
|
4
|
+
import { Composition, Base } from './index';
|
|
6
5
|
type TimingKeyframeSpec = Concrete<TimingKeyframeComposition>;
|
|
7
6
|
export interface TimingKeyframe extends Composition, Mark {
|
|
8
7
|
}
|
|
9
|
-
export declare class TimingKeyframe extends
|
|
8
|
+
export declare class TimingKeyframe extends Base<TimingKeyframeSpec> {
|
|
10
9
|
constructor();
|
|
11
10
|
}
|
|
12
11
|
export {};
|
|
@@ -8,9 +8,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.TimingKeyframe = void 0;
|
|
10
10
|
const props_1 = require("../props");
|
|
11
|
-
const node_1 = require("../node");
|
|
12
11
|
const mark_1 = require("../mark");
|
|
13
|
-
|
|
12
|
+
const index_1 = require("./index");
|
|
13
|
+
let TimingKeyframe = class TimingKeyframe extends index_1.Base {
|
|
14
14
|
constructor() {
|
|
15
15
|
super({}, 'timingKeyframe');
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timingKeyframe.js","sourceRoot":"src/","sources":["api/composition/timingKeyframe.ts"],"names":[],"mappings":";;;;;;;;;AACA,oCAAkD;AAElD,
|
|
1
|
+
{"version":3,"file":"timingKeyframe.js","sourceRoot":"src/","sources":["api/composition/timingKeyframe.ts"],"names":[],"mappings":";;;;;;;;;AACA,oCAAkD;AAElD,kCAAqC;AACrC,mCAA4C;AAOrC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,YAAwB;IAC1D;QACE,KAAK,CAAC,EAAE,EAAE,gBAAgB,CAAC,CAAC;IAC9B,CAAC;CACF,CAAA;AAJY,cAAc;IAD1B,IAAA,mBAAW,EAAC,CAAC,GAAG,IAAA,iBAAS,EAAC,WAAI,CAAC,CAAC,CAAC;GACrB,cAAc,CAI1B;AAJY,wCAAc"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ViewComposition } from '../../spec';
|
|
2
2
|
import { ValueAttribute, ObjectAttribute, ArrayAttribute, Concrete } from '../types';
|
|
3
|
-
import { Node } from '../node';
|
|
4
3
|
import { Mark } from '../mark';
|
|
4
|
+
import { Base } from './base';
|
|
5
5
|
type ViewSpec = Concrete<ViewComposition>;
|
|
6
6
|
export interface View extends Mark {
|
|
7
7
|
data: ValueAttribute<ViewSpec['data'], View>;
|
|
@@ -13,7 +13,7 @@ export interface View extends Mark {
|
|
|
13
13
|
axis: ObjectAttribute<ViewSpec['axis'], View>;
|
|
14
14
|
legend: ObjectAttribute<ViewSpec['legend'], View>;
|
|
15
15
|
}
|
|
16
|
-
export declare class View extends
|
|
17
|
-
constructor();
|
|
16
|
+
export declare class View<ViewProps extends ViewComposition = ViewComposition> extends Base<ViewProps> {
|
|
17
|
+
constructor(options?: {}, type?: string);
|
|
18
18
|
}
|
|
19
19
|
export {};
|
|
@@ -8,11 +8,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.View = void 0;
|
|
10
10
|
const props_1 = require("../props");
|
|
11
|
-
const node_1 = require("../node");
|
|
12
11
|
const mark_1 = require("../mark");
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
const base_1 = require("./base");
|
|
13
|
+
let View = class View extends base_1.Base {
|
|
14
|
+
constructor(options = {}, type = 'view') {
|
|
15
|
+
super(options, type);
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
View = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.js","sourceRoot":"src/","sources":["api/composition/view.ts"],"names":[],"mappings":";;;;;;;;;AACA,oCAAkD;AAOlD,
|
|
1
|
+
{"version":3,"file":"view.js","sourceRoot":"src/","sources":["api/composition/view.ts"],"names":[],"mappings":";;;;;;;;;AACA,oCAAkD;AAOlD,kCAAqC;AACrC,iCAA8B;AA0BvB,IAAM,IAAI,GAAV,MAAM,IAEX,SAAQ,WAAe;IACvB,YAAY,OAAO,GAAG,EAAE,EAAE,IAAI,GAAG,MAAM;QACrC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACvB,CAAC;CACF,CAAA;AANY,IAAI;IAXhB,IAAA,mBAAW,EAAC;QACX,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE;QAC/B,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,aAAa,EAAE;QACzD,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,EAAE,cAAc,EAAE;QAC3D,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE;QACjC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE;QACjC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE;QACjC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;QAChC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClC,GAAG,IAAA,iBAAS,EAAC,WAAI,CAAC;KACnB,CAAC;GACW,IAAI,CAMhB;AANY,oBAAI"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DisplayObject } from '@antv/g';
|
|
2
|
+
import { Node } from '../node';
|
|
3
|
+
import { G2MarkState, Scale } from '../../runtime';
|
|
4
|
+
export declare class MarkBase<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> {
|
|
5
|
+
changeData(data: any): void;
|
|
6
|
+
/**
|
|
7
|
+
* Get mark from chart views.
|
|
8
|
+
*/
|
|
9
|
+
getMark(): G2MarkState;
|
|
10
|
+
/**
|
|
11
|
+
* Get all scales instance.
|
|
12
|
+
*/
|
|
13
|
+
getScale(): Record<string, Scale>;
|
|
14
|
+
/**
|
|
15
|
+
* Get the scale instance by channel.
|
|
16
|
+
*/
|
|
17
|
+
getScaleByChannel(channel: string): Scale;
|
|
18
|
+
/**
|
|
19
|
+
* Get canvas group.
|
|
20
|
+
*/
|
|
21
|
+
getGroup(): DisplayObject;
|
|
22
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MarkBase = void 0;
|
|
4
|
+
const node_1 = require("../node");
|
|
5
|
+
class MarkBase extends node_1.Node {
|
|
6
|
+
changeData(data) {
|
|
7
|
+
const chart = this.root();
|
|
8
|
+
if (!chart)
|
|
9
|
+
return;
|
|
10
|
+
this.attr('data', data);
|
|
11
|
+
chart === null || chart === void 0 ? void 0 : chart.render();
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Get mark from chart views.
|
|
15
|
+
*/
|
|
16
|
+
getMark() {
|
|
17
|
+
var _a;
|
|
18
|
+
const chartView = (_a = this.root()) === null || _a === void 0 ? void 0 : _a.getView();
|
|
19
|
+
if (!chartView)
|
|
20
|
+
return undefined;
|
|
21
|
+
const { markState } = chartView;
|
|
22
|
+
const markKey = Array.from(markState.keys()).find((item) => item.key === this.attr('key'));
|
|
23
|
+
return markState.get(markKey);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Get all scales instance.
|
|
27
|
+
*/
|
|
28
|
+
getScale() {
|
|
29
|
+
var _a;
|
|
30
|
+
const chartView = (_a = this.root()) === null || _a === void 0 ? void 0 : _a.getView();
|
|
31
|
+
if (!chartView)
|
|
32
|
+
return undefined;
|
|
33
|
+
return chartView === null || chartView === void 0 ? void 0 : chartView.scale;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Get the scale instance by channel.
|
|
37
|
+
*/
|
|
38
|
+
getScaleByChannel(channel) {
|
|
39
|
+
var _a, _b;
|
|
40
|
+
const chartView = (_a = this.root()) === null || _a === void 0 ? void 0 : _a.getView();
|
|
41
|
+
if (!chartView)
|
|
42
|
+
return undefined;
|
|
43
|
+
return (_b = chartView === null || chartView === void 0 ? void 0 : chartView.scale) === null || _b === void 0 ? void 0 : _b[channel];
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Get canvas group.
|
|
47
|
+
*/
|
|
48
|
+
getGroup() {
|
|
49
|
+
const key = this.attr('key');
|
|
50
|
+
if (!key)
|
|
51
|
+
return undefined;
|
|
52
|
+
const chart = this.root();
|
|
53
|
+
const chartGroup = chart.context().canvas.getRoot();
|
|
54
|
+
return chartGroup.getElementById(key);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.MarkBase = MarkBase;
|
|
58
|
+
//# sourceMappingURL=base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"src/","sources":["api/mark/base.ts"],"names":[],"mappings":";;;AACA,kCAA+B;AAG/B,MAAa,QAIX,SAAQ,WAAoC;IAC5C,UAAU,CAAC,IAAS;QAClB,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;QAC1B,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACxB,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,EAAE,CAAC;IAClB,CAAC;IAED;;OAEG;IACH,OAAO;;QACL,MAAM,SAAS,GAAG,MAAA,IAAI,CAAC,IAAI,EAAE,0CAAE,OAAO,EAAE,CAAC;QACzC,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,IAAI,EAAE,0CAAE,OAAO,EAAE,CAAC;QACzC,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,IAAI,EAAE,0CAAE,OAAO,EAAE,CAAC;QACzC,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,IAAI,EAAE,CAAC;QAC1B,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpD,OAAO,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IACxC,CAAC;CACF;AArDD,4BAqDC"}
|
package/lib/api/mark/mark.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { IntervalGeometry, AreaGeometry, PointGeometry, CellGeometry, VectorGeometry, LinkGeometry, PolygonGeometry, ImageGeometry, TextGeometry, BoxGeometry, LineGeometry, LineXMark, LineYMark, RangeMark, RangeXMark, RangeYMark, ConnectorMark, SankeyMark, BoxPlotMark, ShapeMark, TreemapMark, ForceGraphMark, PackMark, TreeMark, WordCloudMark } from '../../spec';
|
|
1
|
+
import { IntervalGeometry, RectGeometry, AreaGeometry, PointGeometry, CellGeometry, VectorGeometry, LinkGeometry, PolygonGeometry, ImageGeometry, TextGeometry, BoxGeometry, LineGeometry, LineXMark, LineYMark, RangeMark, RangeXMark, RangeYMark, ConnectorMark, SankeyMark, BoxPlotMark, ShapeMark, TreemapMark, ForceGraphMark, PackMark, TreeMark, WordCloudMark } from '../../spec';
|
|
2
2
|
import { NodePropertyDescriptor } from '../props';
|
|
3
|
-
import { Node } from '../node';
|
|
4
3
|
import { Concrete } from '../types';
|
|
4
|
+
import { MarkBase } from './base';
|
|
5
5
|
import { API } from './types';
|
|
6
6
|
export interface Interval extends API<Concrete<IntervalGeometry>, Interval> {
|
|
7
7
|
type: 'interval';
|
|
8
8
|
}
|
|
9
|
-
export interface Rect extends API<Concrete<
|
|
9
|
+
export interface Rect extends API<Concrete<RectGeometry>, Rect> {
|
|
10
10
|
type: 'rect';
|
|
11
11
|
}
|
|
12
12
|
export interface Point extends API<Concrete<PointGeometry>, Point> {
|
|
@@ -82,81 +82,81 @@ export interface WordCloud extends API<Concrete<WordCloudMark>, WordCloud> {
|
|
|
82
82
|
type: 'wordCloud';
|
|
83
83
|
}
|
|
84
84
|
export declare const props: NodePropertyDescriptor[];
|
|
85
|
-
export declare class Interval extends
|
|
85
|
+
export declare class Interval extends MarkBase<IntervalGeometry> {
|
|
86
86
|
constructor();
|
|
87
87
|
}
|
|
88
|
-
export declare class Rect extends
|
|
88
|
+
export declare class Rect extends MarkBase<RectGeometry> {
|
|
89
89
|
constructor();
|
|
90
90
|
}
|
|
91
|
-
export declare class Point extends
|
|
91
|
+
export declare class Point extends MarkBase<PointGeometry> {
|
|
92
92
|
constructor();
|
|
93
93
|
}
|
|
94
|
-
export declare class Area extends
|
|
94
|
+
export declare class Area extends MarkBase<AreaGeometry> {
|
|
95
95
|
constructor();
|
|
96
96
|
}
|
|
97
|
-
export declare class Line extends
|
|
97
|
+
export declare class Line extends MarkBase<LineGeometry> {
|
|
98
98
|
constructor();
|
|
99
99
|
}
|
|
100
|
-
export declare class Cell extends
|
|
100
|
+
export declare class Cell extends MarkBase<CellGeometry> {
|
|
101
101
|
constructor();
|
|
102
102
|
}
|
|
103
|
-
export declare class Vector extends
|
|
103
|
+
export declare class Vector extends MarkBase<VectorGeometry> {
|
|
104
104
|
constructor();
|
|
105
105
|
}
|
|
106
|
-
export declare class Link extends
|
|
106
|
+
export declare class Link extends MarkBase<LinkGeometry> {
|
|
107
107
|
constructor();
|
|
108
108
|
}
|
|
109
|
-
export declare class Polygon extends
|
|
109
|
+
export declare class Polygon extends MarkBase<PolygonGeometry> {
|
|
110
110
|
constructor();
|
|
111
111
|
}
|
|
112
|
-
export declare class Image extends
|
|
112
|
+
export declare class Image extends MarkBase<ImageGeometry> {
|
|
113
113
|
constructor();
|
|
114
114
|
}
|
|
115
|
-
export declare class Text extends
|
|
115
|
+
export declare class Text extends MarkBase<TextGeometry> {
|
|
116
116
|
constructor();
|
|
117
117
|
}
|
|
118
|
-
export declare class Box extends
|
|
118
|
+
export declare class Box extends MarkBase<BoxGeometry> {
|
|
119
119
|
constructor();
|
|
120
120
|
}
|
|
121
|
-
export declare class LineX extends
|
|
121
|
+
export declare class LineX extends MarkBase<LineXMark> {
|
|
122
122
|
constructor();
|
|
123
123
|
}
|
|
124
|
-
export declare class LineY extends
|
|
124
|
+
export declare class LineY extends MarkBase<LineYMark> {
|
|
125
125
|
constructor();
|
|
126
126
|
}
|
|
127
|
-
export declare class Range extends
|
|
127
|
+
export declare class Range extends MarkBase<RangeMark> {
|
|
128
128
|
constructor();
|
|
129
129
|
}
|
|
130
|
-
export declare class RangeX extends
|
|
130
|
+
export declare class RangeX extends MarkBase<RangeXMark> {
|
|
131
131
|
constructor();
|
|
132
132
|
}
|
|
133
|
-
export declare class RangeY extends
|
|
133
|
+
export declare class RangeY extends MarkBase<RangeYMark> {
|
|
134
134
|
constructor();
|
|
135
135
|
}
|
|
136
|
-
export declare class Connector extends
|
|
136
|
+
export declare class Connector extends MarkBase<ConnectorMark> {
|
|
137
137
|
constructor();
|
|
138
138
|
}
|
|
139
|
-
export declare class Shape extends
|
|
139
|
+
export declare class Shape extends MarkBase<ShapeMark> {
|
|
140
140
|
constructor();
|
|
141
141
|
}
|
|
142
|
-
export declare class Sankey extends
|
|
142
|
+
export declare class Sankey extends MarkBase<SankeyMark> {
|
|
143
143
|
constructor();
|
|
144
144
|
}
|
|
145
|
-
export declare class Treemap extends
|
|
145
|
+
export declare class Treemap extends MarkBase<ConnectorMark> {
|
|
146
146
|
constructor();
|
|
147
147
|
}
|
|
148
|
-
export declare class Boxplot extends
|
|
148
|
+
export declare class Boxplot extends MarkBase<Boxplot> {
|
|
149
149
|
constructor();
|
|
150
150
|
}
|
|
151
|
-
export declare class Pack extends
|
|
151
|
+
export declare class Pack extends MarkBase<Pack> {
|
|
152
152
|
constructor();
|
|
153
153
|
}
|
|
154
|
-
export declare class ForceGraph extends
|
|
154
|
+
export declare class ForceGraph extends MarkBase<ForceGraph> {
|
|
155
155
|
constructor();
|
|
156
156
|
}
|
|
157
|
-
export declare class Tree extends
|
|
157
|
+
export declare class Tree extends MarkBase<Tree> {
|
|
158
158
|
constructor();
|
|
159
159
|
}
|
|
160
|
-
export declare class WordCloud extends
|
|
160
|
+
export declare class WordCloud extends MarkBase<WordCloud> {
|
|
161
161
|
constructor();
|
|
162
162
|
}
|