@antv/g 5.6.3 → 5.7.1

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.
Files changed (36) hide show
  1. package/dist/css/StyleValueRegistry.d.ts.map +1 -1
  2. package/dist/css/interfaces.d.ts +1 -0
  3. package/dist/css/interfaces.d.ts.map +1 -1
  4. package/dist/css/properties/CSSPropertyMarker.d.ts +6 -0
  5. package/dist/css/properties/CSSPropertyMarker.d.ts.map +1 -0
  6. package/dist/css/properties/index.d.ts +1 -0
  7. package/dist/css/properties/index.d.ts.map +1 -1
  8. package/dist/display-objects/CustomElement.d.ts +1 -1
  9. package/dist/display-objects/CustomElement.d.ts.map +1 -1
  10. package/dist/display-objects/DisplayObject.d.ts +1 -1
  11. package/dist/display-objects/DisplayObject.d.ts.map +1 -1
  12. package/dist/display-objects/Line.d.ts +30 -0
  13. package/dist/display-objects/Line.d.ts.map +1 -1
  14. package/dist/display-objects/Path.d.ts +43 -0
  15. package/dist/display-objects/Path.d.ts.map +1 -1
  16. package/dist/display-objects/Polygon.d.ts +34 -0
  17. package/dist/display-objects/Polygon.d.ts.map +1 -1
  18. package/dist/display-objects/Polyline.d.ts +29 -2
  19. package/dist/display-objects/Polyline.d.ts.map +1 -1
  20. package/dist/dom/FederatedMouseEvent.d.ts +0 -2
  21. package/dist/dom/FederatedMouseEvent.d.ts.map +1 -1
  22. package/dist/global-module.d.ts.map +1 -1
  23. package/dist/index.esm.js +595 -86
  24. package/dist/index.js +594 -85
  25. package/dist/index.umd.js +594 -85
  26. package/dist/index.umd.min.js +2 -2
  27. package/dist/plugins/EventPlugin.d.ts.map +1 -1
  28. package/dist/plugins/PrepareRendererPlugin.d.ts.map +1 -1
  29. package/dist/services/SceneGraphService.d.ts +1 -1
  30. package/dist/services/SceneGraphService.d.ts.map +1 -1
  31. package/dist/shapes/AABB.d.ts.map +1 -1
  32. package/dist/types.d.ts +53 -7
  33. package/dist/types.d.ts.map +1 -1
  34. package/dist/utils/path.d.ts +1 -1
  35. package/dist/utils/path.d.ts.map +1 -1
  36. package/package.json +3 -3
package/dist/index.esm.js CHANGED
@@ -2132,6 +2132,7 @@ var PropertySyntax;
2132
2132
  PropertySyntax["OFFSET_PATH"] = "<offset-path>";
2133
2133
  PropertySyntax["OFFSET_DISTANCE"] = "<offset-distance>";
2134
2134
  PropertySyntax["CLIP_PATH"] = "<clip-path>";
2135
+ PropertySyntax["MARKER"] = "<marker>";
2135
2136
  PropertySyntax["TRANSFORM"] = "<transform>";
2136
2137
  PropertySyntax["TRANSFORM_ORIGIN"] = "<transform-origin>";
2137
2138
  PropertySyntax["TEXT"] = "<text>";
@@ -2936,25 +2937,45 @@ function convertToPath(object, applyLocalTransform) {
2936
2937
  return commandsToPathString(commands, object, applyLocalTransform);
2937
2938
  }
2938
2939
  }
2939
- function translatePathToString(pathArray, x, y) {
2940
- var newValue = pathArray.map(function (params) {
2941
- var command = params[0];
2940
+ function translatePathToString(pathArray, x, y, startOffsetX, startOffsetY, endOffsetX, endOffsetY) {
2941
+ if (startOffsetX === void 0) {
2942
+ startOffsetX = 0;
2943
+ }
2944
+
2945
+ if (startOffsetY === void 0) {
2946
+ startOffsetY = 0;
2947
+ }
2948
+
2949
+ if (endOffsetX === void 0) {
2950
+ endOffsetX = 0;
2951
+ }
2952
+
2953
+ if (endOffsetY === void 0) {
2954
+ endOffsetY = 0;
2955
+ }
2956
+
2957
+ var newValue = pathArray.map(function (params, i) {
2958
+ var command = params[0]; // @ts-ignore
2959
+
2960
+ var isClosed = pathArray[pathArray.length - 1][0] === 'Z';
2961
+ var offsetX = i === pathArray.length - (isClosed ? 2 : 1) ? endOffsetX : 0;
2962
+ var offsetY = i === pathArray.length - (isClosed ? 2 : 1) ? endOffsetY : 0;
2942
2963
 
2943
2964
  switch (command) {
2944
2965
  case 'M':
2945
- return "M " + (params[1] - x) + "," + (params[2] - y);
2966
+ return "M " + (params[1] - x + startOffsetX) + "," + (params[2] - y + startOffsetY);
2946
2967
 
2947
2968
  case 'L':
2948
- return "L " + (params[1] - x) + "," + (params[2] - y);
2969
+ return "L " + (params[1] - x + offsetX) + "," + (params[2] - y + offsetY);
2949
2970
 
2950
2971
  case 'Q':
2951
- return "Q " + (params[1] - x) + " " + (params[2] - y) + "," + (params[3] - x) + " " + (params[4] - y);
2972
+ return "Q " + (params[1] - x) + " " + (params[2] - y) + "," + (params[3] - x + offsetX) + " " + (params[4] - y + offsetY);
2952
2973
 
2953
2974
  case 'C':
2954
- return "C " + (params[1] - x) + " " + (params[2] - y) + "," + (params[3] - x) + " " + (params[4] - y) + "," + (params[5] - x) + " " + (params[6] - y);
2975
+ return "C " + (params[1] - x) + " " + (params[2] - y) + "," + (params[3] - x) + " " + (params[4] - y) + "," + (params[5] - x + offsetX) + " " + (params[6] - y + offsetY);
2955
2976
 
2956
2977
  case 'A':
2957
- return "A " + params[1] + " " + params[2] + " " + params[3] + " " + params[4] + " " + params[5] + " " + (params[6] - x) + " " + (params[7] - y);
2978
+ return "A " + params[1] + " " + params[2] + " " + params[3] + " " + params[4] + " " + params[5] + " " + (params[6] - x + offsetX) + " " + (params[7] - y + offsetY);
2958
2979
 
2959
2980
  case 'Z':
2960
2981
  return 'Z';
@@ -7423,8 +7444,8 @@ var AABB = /*#__PURE__*/function () {
7423
7444
  };
7424
7445
 
7425
7446
  function AABB(center, halfExtents) {
7426
- this.center = void 0;
7427
- this.halfExtents = void 0;
7447
+ this.center = vec3.create();
7448
+ this.halfExtents = vec3.create();
7428
7449
  this.min = vec3.create();
7429
7450
  this.max = vec3.create();
7430
7451
  this.update(center, halfExtents);
@@ -7433,8 +7454,14 @@ var AABB = /*#__PURE__*/function () {
7433
7454
  var _proto = AABB.prototype;
7434
7455
 
7435
7456
  _proto.update = function update(center, halfExtents) {
7436
- this.center = vec3.copy(vec3.create(), center || vec3.create());
7437
- this.halfExtents = vec3.copy(vec3.create(), halfExtents || vec3.fromValues(0, 0, 0));
7457
+ if (center) {
7458
+ vec3.copy(this.center, center);
7459
+ }
7460
+
7461
+ if (halfExtents) {
7462
+ vec3.copy(this.halfExtents, halfExtents || vec3.fromValues(0, 0, 0));
7463
+ }
7464
+
7438
7465
  this.min = vec3.sub(this.min, this.center, this.halfExtents);
7439
7466
  this.max = vec3.add(this.max, this.center, this.halfExtents);
7440
7467
  };
@@ -10753,7 +10780,22 @@ var DisplayObject = /*#__PURE__*/function (_Element) {
10753
10780
  });
10754
10781
  };
10755
10782
 
10756
- _proto.cloneNode = function cloneNode(deep) {
10783
+ _proto.cloneNode = function cloneNode(deep, customCloneFunc) {
10784
+ var clonedStyle = _extends({}, this.attributes);
10785
+
10786
+ for (var attributeName in clonedStyle) {
10787
+ var attribute = clonedStyle[attributeName]; // @see https://github.com/antvis/G/issues/1095
10788
+
10789
+ if (attribute instanceof DisplayObject) {
10790
+ clonedStyle[attributeName] = attribute.cloneNode(deep);
10791
+ } // TODO: clone other type
10792
+
10793
+
10794
+ if (customCloneFunc) {
10795
+ clonedStyle[attributeName] = customCloneFunc(attributeName, attribute);
10796
+ }
10797
+ }
10798
+
10757
10799
  var cloned = new this.constructor({
10758
10800
  // copy id & name
10759
10801
  // @see https://developer.mozilla.org/en-US/docs/Web/API/Node/cloneNode#notes
@@ -10761,15 +10803,18 @@ var DisplayObject = /*#__PURE__*/function (_Element) {
10761
10803
  name: this.name,
10762
10804
  className: this.name,
10763
10805
  interactive: this.interactive,
10764
- style: _extends({}, this.attributes)
10806
+ style: clonedStyle
10765
10807
  }); // apply transform
10766
10808
 
10767
10809
  cloned.setLocalTransform(this.getLocalTransform());
10768
10810
 
10769
10811
  if (deep) {
10770
10812
  this.children.forEach(function (child) {
10771
- var clonedChild = child.cloneNode(deep);
10772
- cloned.appendChild(clonedChild);
10813
+ // skip marker
10814
+ if (!child.style.isMarker) {
10815
+ var clonedChild = child.cloneNode(deep);
10816
+ cloned.appendChild(clonedChild);
10817
+ }
10773
10818
  });
10774
10819
  }
10775
10820
 
@@ -10843,17 +10888,19 @@ var DisplayObject = /*#__PURE__*/function (_Element) {
10843
10888
  renderable.dirty = true; // trigger later
10844
10889
  // this.sceneGraphService.pendingEvents.push([ElementEvent.ATTR_MODIFIED, { affectChildren }]);
10845
10890
 
10846
- this.mutationEvent.prevValue = oldValue;
10847
- this.mutationEvent.newValue = value;
10848
- this.mutationEvent.attrName = name;
10849
- this.mutationEvent.prevParsedValue = oldParsedValue;
10850
- this.mutationEvent.newParsedValue = this.parsedStyle[name];
10851
- this.dispatchEvent(this.mutationEvent);
10891
+ var newParsedValue = this.parsedStyle[name];
10852
10892
 
10853
- if (this.isCustomElement && this.isConnected) {
10854
- if (this.attributeChangedCallback) {
10855
- this.attributeChangedCallback(name, oldValue, value);
10856
- }
10893
+ if (this.isConnected) {
10894
+ this.mutationEvent.prevValue = oldValue;
10895
+ this.mutationEvent.newValue = value;
10896
+ this.mutationEvent.attrName = name;
10897
+ this.mutationEvent.prevParsedValue = oldParsedValue;
10898
+ this.mutationEvent.newParsedValue = newParsedValue;
10899
+ this.dispatchEvent(this.mutationEvent);
10900
+ }
10901
+
10902
+ if ((this.isCustomElement && this.isConnected || !this.isCustomElement) && this.attributeChangedCallback) {
10903
+ this.attributeChangedCallback(name, oldValue, value, oldParsedValue, newParsedValue);
10857
10904
  }
10858
10905
  } // #region transformable
10859
10906
 
@@ -11658,15 +11705,24 @@ var Image = /*#__PURE__*/function (_DisplayObject) {
11658
11705
  }(DisplayObject);
11659
11706
 
11660
11707
  var _excluded$5 = ["style"];
11708
+ /**
11709
+ * Create a line connecting two points.
11710
+ * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/line
11711
+ *
11712
+ * Also support for using marker.
11713
+ */
11714
+
11661
11715
  var Line = /*#__PURE__*/function (_DisplayObject) {
11662
11716
  _inheritsLoose(Line, _DisplayObject);
11663
11717
 
11664
11718
  function Line(_temp) {
11719
+ var _this;
11720
+
11665
11721
  var _ref = _temp === void 0 ? {} : _temp,
11666
11722
  style = _ref.style,
11667
11723
  rest = _objectWithoutPropertiesLoose(_ref, _excluded$5);
11668
11724
 
11669
- return _DisplayObject.call(this, _extends({
11725
+ _this = _DisplayObject.call(this, _extends({
11670
11726
  type: Shape.LINE,
11671
11727
  style: _extends({
11672
11728
  x1: 0,
@@ -11678,19 +11734,120 @@ var Line = /*#__PURE__*/function (_DisplayObject) {
11678
11734
  isBillboard: false
11679
11735
  }, style)
11680
11736
  }, rest)) || this;
11737
+ _this.markerStartAngle = 0;
11738
+ _this.markerEndAngle = 0;
11739
+ var _this$parsedStyle = _this.parsedStyle,
11740
+ markerStart = _this$parsedStyle.markerStart,
11741
+ markerEnd = _this$parsedStyle.markerEnd;
11742
+
11743
+ if (markerStart && markerStart instanceof DisplayObject) {
11744
+ _this.markerStartAngle = markerStart.getLocalEulerAngles();
11745
+
11746
+ _this.appendChild(markerStart);
11747
+ }
11748
+
11749
+ if (markerEnd && markerEnd instanceof DisplayObject) {
11750
+ _this.markerEndAngle = markerEnd.getLocalEulerAngles();
11751
+
11752
+ _this.appendChild(markerEnd);
11753
+ }
11754
+
11755
+ _this.transformMarker(true);
11756
+
11757
+ _this.transformMarker(false);
11758
+
11759
+ return _this;
11681
11760
  }
11682
11761
 
11683
11762
  var _proto = Line.prototype;
11684
11763
 
11764
+ _proto.attributeChangedCallback = function attributeChangedCallback(attrName, oldValue, newValue, prevParsedValue, newParsedValue) {
11765
+ if (attrName === 'x1' || attrName === 'y1' || attrName === 'x2' || attrName === 'y2' || attrName === 'markerStartOffset' || attrName === 'markerEndOffset') {
11766
+ this.transformMarker(true);
11767
+ this.transformMarker(false);
11768
+ } else if (attrName === 'markerStart') {
11769
+ if (prevParsedValue && prevParsedValue instanceof DisplayObject) {
11770
+ this.markerStartAngle = 0;
11771
+ prevParsedValue.remove();
11772
+ } // CSSKeyword 'unset'
11773
+
11774
+
11775
+ if (newParsedValue && newParsedValue instanceof DisplayObject) {
11776
+ this.markerStartAngle = newParsedValue.getLocalEulerAngles();
11777
+ this.appendChild(newParsedValue);
11778
+ this.transformMarker(true);
11779
+ }
11780
+ } else if (attrName === 'markerEnd') {
11781
+ if (prevParsedValue && prevParsedValue instanceof DisplayObject) {
11782
+ this.markerEndAngle = 0;
11783
+ prevParsedValue.remove();
11784
+ }
11785
+
11786
+ if (newParsedValue && newParsedValue instanceof DisplayObject) {
11787
+ this.markerEndAngle = newParsedValue.getLocalEulerAngles();
11788
+ this.appendChild(newParsedValue);
11789
+ this.transformMarker(false);
11790
+ }
11791
+ }
11792
+ };
11793
+
11794
+ _proto.transformMarker = function transformMarker(isStart) {
11795
+ var _this$parsedStyle2 = this.parsedStyle,
11796
+ markerStart = _this$parsedStyle2.markerStart,
11797
+ markerEnd = _this$parsedStyle2.markerEnd,
11798
+ markerStartOffset = _this$parsedStyle2.markerStartOffset,
11799
+ markerEndOffset = _this$parsedStyle2.markerEndOffset,
11800
+ x1 = _this$parsedStyle2.x1,
11801
+ x2 = _this$parsedStyle2.x2,
11802
+ y1 = _this$parsedStyle2.y1,
11803
+ y2 = _this$parsedStyle2.y2,
11804
+ defX = _this$parsedStyle2.defX,
11805
+ defY = _this$parsedStyle2.defY;
11806
+ var marker = isStart ? markerStart : markerEnd;
11807
+
11808
+ if (!marker || !(marker instanceof DisplayObject)) {
11809
+ return;
11810
+ }
11811
+
11812
+ var rad = 0;
11813
+ var x;
11814
+ var y;
11815
+ var ox;
11816
+ var oy;
11817
+ var offset;
11818
+ var originalAngle;
11819
+
11820
+ if (isStart) {
11821
+ ox = x1.value - defX;
11822
+ oy = y1.value - defY;
11823
+ x = x2.value - x1.value;
11824
+ y = y2.value - y1.value;
11825
+ offset = (markerStartOffset === null || markerStartOffset === void 0 ? void 0 : markerStartOffset.value) || 0;
11826
+ originalAngle = this.markerStartAngle;
11827
+ } else {
11828
+ ox = x2.value - defX;
11829
+ oy = y2.value - defY;
11830
+ x = x1.value - x2.value;
11831
+ y = y1.value - y2.value;
11832
+ offset = (markerEndOffset === null || markerEndOffset === void 0 ? void 0 : markerEndOffset.value) || 0;
11833
+ originalAngle = this.markerEndAngle;
11834
+ }
11835
+
11836
+ rad = Math.atan2(y, x); // account for markerOffset
11837
+
11838
+ marker.setLocalEulerAngles(rad * 180 / Math.PI + originalAngle);
11839
+ marker.setLocalPosition(ox + Math.cos(rad) * offset, oy + Math.sin(rad) * offset);
11840
+ };
11841
+
11685
11842
  _proto.getPoint = function getPoint(ratio) {
11686
11843
  // TODO: account for z1/z2 in 3D line
11687
- var _this$parsedStyle = this.parsedStyle,
11688
- x1 = _this$parsedStyle.x1,
11689
- y1 = _this$parsedStyle.y1,
11690
- x2 = _this$parsedStyle.x2,
11691
- y2 = _this$parsedStyle.y2,
11692
- defX = _this$parsedStyle.defX,
11693
- defY = _this$parsedStyle.defY;
11844
+ var _this$parsedStyle3 = this.parsedStyle,
11845
+ x1 = _this$parsedStyle3.x1,
11846
+ y1 = _this$parsedStyle3.y1,
11847
+ x2 = _this$parsedStyle3.x2,
11848
+ y2 = _this$parsedStyle3.y2,
11849
+ defX = _this$parsedStyle3.defX,
11850
+ defY = _this$parsedStyle3.defY;
11694
11851
 
11695
11852
  var _LineUtil$pointAt = Line$1.pointAt(x1.value, y1.value, x2.value, y2.value, ratio),
11696
11853
  x = _LineUtil$pointAt.x,
@@ -11703,11 +11860,11 @@ var Line = /*#__PURE__*/function (_DisplayObject) {
11703
11860
 
11704
11861
  _proto.getTotalLength = function getTotalLength() {
11705
11862
  // TODO: account for z1/z2 in 3D line
11706
- var _this$parsedStyle2 = this.parsedStyle,
11707
- x1 = _this$parsedStyle2.x1,
11708
- y1 = _this$parsedStyle2.y1,
11709
- x2 = _this$parsedStyle2.x2,
11710
- y2 = _this$parsedStyle2.y2;
11863
+ var _this$parsedStyle4 = this.parsedStyle,
11864
+ x1 = _this$parsedStyle4.x1,
11865
+ y1 = _this$parsedStyle4.y1,
11866
+ x2 = _this$parsedStyle4.x2,
11867
+ y2 = _this$parsedStyle4.y2;
11711
11868
  return Line$1.length(x1.value, y1.value, x2.value, y2.value);
11712
11869
  };
11713
11870
 
@@ -11718,22 +11875,169 @@ var _excluded$6 = ["style"];
11718
11875
  var Path = /*#__PURE__*/function (_DisplayObject) {
11719
11876
  _inheritsLoose(Path, _DisplayObject);
11720
11877
 
11878
+ /**
11879
+ * markers placed at the mid
11880
+ */
11721
11881
  function Path(_temp) {
11882
+ var _this;
11883
+
11722
11884
  var _ref = _temp === void 0 ? {} : _temp,
11723
11885
  style = _ref.style,
11724
11886
  rest = _objectWithoutPropertiesLoose(_ref, _excluded$6);
11725
11887
 
11726
- return _DisplayObject.call(this, _extends({
11888
+ _this = _DisplayObject.call(this, _extends({
11727
11889
  type: Shape.PATH,
11728
11890
  style: _extends({
11729
11891
  path: '',
11730
11892
  miterLimit: ''
11731
11893
  }, style)
11732
11894
  }, rest)) || this;
11895
+ _this.markerStartAngle = 0;
11896
+ _this.markerEndAngle = 0;
11897
+ _this.markerMidList = [];
11898
+ var _this$parsedStyle = _this.parsedStyle,
11899
+ markerStart = _this$parsedStyle.markerStart,
11900
+ markerEnd = _this$parsedStyle.markerEnd,
11901
+ markerMid = _this$parsedStyle.markerMid;
11902
+
11903
+ if (markerStart && markerStart instanceof DisplayObject) {
11904
+ _this.markerStartAngle = markerStart.getLocalEulerAngles();
11905
+
11906
+ _this.appendChild(markerStart);
11907
+ }
11908
+
11909
+ if (markerMid && markerMid instanceof DisplayObject) {
11910
+ _this.placeMarkerMid(markerMid);
11911
+ }
11912
+
11913
+ if (markerEnd && markerEnd instanceof DisplayObject) {
11914
+ _this.markerEndAngle = markerEnd.getLocalEulerAngles();
11915
+
11916
+ _this.appendChild(markerEnd);
11917
+ }
11918
+
11919
+ _this.transformMarker(true);
11920
+
11921
+ _this.transformMarker(false);
11922
+
11923
+ return _this;
11733
11924
  }
11734
11925
 
11735
11926
  var _proto = Path.prototype;
11736
11927
 
11928
+ _proto.attributeChangedCallback = function attributeChangedCallback(attrName, oldValue, newValue, prevParsedValue, newParsedValue) {
11929
+ if (attrName === 'path') {
11930
+ // recalc markers
11931
+ this.transformMarker(true);
11932
+ this.transformMarker(false);
11933
+ this.placeMarkerMid(this.parsedStyle.markerMid);
11934
+ } else if (attrName === 'markerStartOffset' || attrName === 'markerEndOffset') {
11935
+ this.transformMarker(true);
11936
+ this.transformMarker(false);
11937
+ } else if (attrName === 'markerStart') {
11938
+ if (prevParsedValue && prevParsedValue instanceof DisplayObject) {
11939
+ this.markerStartAngle = 0;
11940
+ prevParsedValue.remove();
11941
+ } // CSSKeyword 'unset'
11942
+
11943
+
11944
+ if (newParsedValue && newParsedValue instanceof DisplayObject) {
11945
+ this.markerStartAngle = newParsedValue.getLocalEulerAngles();
11946
+ this.appendChild(newParsedValue);
11947
+ this.transformMarker(true);
11948
+ }
11949
+ } else if (attrName === 'markerEnd') {
11950
+ if (prevParsedValue && prevParsedValue instanceof DisplayObject) {
11951
+ this.markerEndAngle = 0;
11952
+ prevParsedValue.remove();
11953
+ }
11954
+
11955
+ if (newParsedValue && newParsedValue instanceof DisplayObject) {
11956
+ this.markerEndAngle = newParsedValue.getLocalEulerAngles();
11957
+ this.appendChild(newParsedValue);
11958
+ this.transformMarker(false);
11959
+ }
11960
+ } else if (attrName === 'markerMid') {
11961
+ this.placeMarkerMid(newParsedValue);
11962
+ }
11963
+ };
11964
+
11965
+ _proto.transformMarker = function transformMarker(isStart) {
11966
+ var _this$parsedStyle2 = this.parsedStyle,
11967
+ markerStart = _this$parsedStyle2.markerStart,
11968
+ markerEnd = _this$parsedStyle2.markerEnd,
11969
+ markerStartOffset = _this$parsedStyle2.markerStartOffset,
11970
+ markerEndOffset = _this$parsedStyle2.markerEndOffset,
11971
+ defX = _this$parsedStyle2.defX,
11972
+ defY = _this$parsedStyle2.defY;
11973
+ var marker = isStart ? markerStart : markerEnd;
11974
+
11975
+ if (!marker || !(marker instanceof DisplayObject)) {
11976
+ return;
11977
+ }
11978
+
11979
+ var rad = 0;
11980
+ var x;
11981
+ var y;
11982
+ var ox;
11983
+ var oy;
11984
+ var offset;
11985
+ var originalAngle;
11986
+
11987
+ if (isStart) {
11988
+ var _this$getStartTangent = this.getStartTangent(),
11989
+ p1 = _this$getStartTangent[0],
11990
+ p2 = _this$getStartTangent[1];
11991
+
11992
+ ox = p2[0] - defX;
11993
+ oy = p2[1] - defY;
11994
+ x = p1[0] - p2[0];
11995
+ y = p1[1] - p2[1];
11996
+ offset = (markerStartOffset === null || markerStartOffset === void 0 ? void 0 : markerStartOffset.value) || 0;
11997
+ originalAngle = this.markerStartAngle;
11998
+ } else {
11999
+ var _this$getEndTangent = this.getEndTangent(),
12000
+ _p = _this$getEndTangent[0],
12001
+ _p2 = _this$getEndTangent[1];
12002
+
12003
+ ox = _p2[0] - defX;
12004
+ oy = _p2[1] - defY;
12005
+ x = _p[0] - _p2[0];
12006
+ y = _p[1] - _p2[1];
12007
+ offset = (markerEndOffset === null || markerEndOffset === void 0 ? void 0 : markerEndOffset.value) || 0;
12008
+ originalAngle = this.markerEndAngle;
12009
+ }
12010
+
12011
+ rad = Math.atan2(y, x); // account for markerOffset
12012
+
12013
+ marker.setLocalEulerAngles(rad * 180 / Math.PI + originalAngle);
12014
+ marker.setLocalPosition(ox + Math.cos(rad) * offset, oy + Math.sin(rad) * offset);
12015
+ };
12016
+
12017
+ _proto.placeMarkerMid = function placeMarkerMid(marker) {
12018
+ var _this$parsedStyle3 = this.parsedStyle,
12019
+ segments = _this$parsedStyle3.path.segments,
12020
+ defX = _this$parsedStyle3.defX,
12021
+ defY = _this$parsedStyle3.defY; // clear all existed markers
12022
+
12023
+ this.markerMidList.forEach(function (marker) {
12024
+ marker.remove();
12025
+ });
12026
+
12027
+ if (marker && marker instanceof DisplayObject) {
12028
+ // FIXME: should use original path instead of parsed curve
12029
+ for (var i = 1; i < segments.length - 1; i++) {
12030
+ var _segments$i$currentPo = segments[i].currentPoint,
12031
+ ox = _segments$i$currentPo[0],
12032
+ oy = _segments$i$currentPo[1];
12033
+ var cloned = i === 1 ? marker : marker.cloneNode(true);
12034
+ this.markerMidList.push(cloned);
12035
+ this.appendChild(cloned);
12036
+ cloned.setLocalPosition(ox - defX, oy - defY); // TODO: orient of marker
12037
+ }
12038
+ }
12039
+ };
12040
+
11737
12041
  _proto.getTotalLength = function getTotalLength() {
11738
12042
  return this.parsedStyle.path.totalLength;
11739
12043
  }
@@ -11743,12 +12047,12 @@ var Path = /*#__PURE__*/function (_DisplayObject) {
11743
12047
  ;
11744
12048
 
11745
12049
  _proto.getPoint = function getPoint(ratio) {
11746
- var _this$parsedStyle = this.parsedStyle,
11747
- defX = _this$parsedStyle.defX,
11748
- defY = _this$parsedStyle.defY,
11749
- _this$parsedStyle$pat = _this$parsedStyle.path,
11750
- totalLength = _this$parsedStyle$pat.totalLength,
11751
- absolutePath = _this$parsedStyle$pat.absolutePath;
12050
+ var _this$parsedStyle4 = this.parsedStyle,
12051
+ defX = _this$parsedStyle4.defX,
12052
+ defY = _this$parsedStyle4.defY,
12053
+ _this$parsedStyle4$pa = _this$parsedStyle4.path,
12054
+ totalLength = _this$parsedStyle4$pa.totalLength,
12055
+ absolutePath = _this$parsedStyle4$pa.absolutePath;
11752
12056
 
11753
12057
  var _getPointAtLength = getPointAtLength(absolutePath, ratio * totalLength),
11754
12058
  x = _getPointAtLength.x,
@@ -11819,37 +12123,191 @@ var _excluded$7 = ["style"];
11819
12123
  var Polygon = /*#__PURE__*/function (_DisplayObject) {
11820
12124
  _inheritsLoose(Polygon, _DisplayObject);
11821
12125
 
12126
+ /**
12127
+ * markers placed at the mid
12128
+ */
11822
12129
  function Polygon(_temp) {
12130
+ var _this;
12131
+
11823
12132
  var _ref = _temp === void 0 ? {} : _temp,
11824
12133
  style = _ref.style,
11825
12134
  rest = _objectWithoutPropertiesLoose(_ref, _excluded$7);
11826
12135
 
11827
- return _DisplayObject.call(this, _extends({
12136
+ _this = _DisplayObject.call(this, _extends({
11828
12137
  type: Shape.POLYGON,
11829
12138
  style: _extends({
11830
12139
  points: '',
11831
- miterLimit: ''
12140
+ miterLimit: '',
12141
+ isClosed: true
11832
12142
  }, style)
11833
12143
  }, rest)) || this;
12144
+ _this.markerStartAngle = 0;
12145
+ _this.markerEndAngle = 0;
12146
+ _this.markerMidList = [];
12147
+ var _this$parsedStyle = _this.parsedStyle,
12148
+ markerStart = _this$parsedStyle.markerStart,
12149
+ markerEnd = _this$parsedStyle.markerEnd,
12150
+ markerMid = _this$parsedStyle.markerMid;
12151
+
12152
+ if (markerStart && markerStart instanceof DisplayObject) {
12153
+ _this.markerStartAngle = markerStart.getLocalEulerAngles();
12154
+
12155
+ _this.appendChild(markerStart);
12156
+ }
12157
+
12158
+ if (markerMid && markerMid instanceof DisplayObject) {
12159
+ _this.placeMarkerMid(markerMid);
12160
+ }
12161
+
12162
+ if (markerEnd && markerEnd instanceof DisplayObject) {
12163
+ _this.markerEndAngle = markerEnd.getLocalEulerAngles();
12164
+
12165
+ _this.appendChild(markerEnd);
12166
+ }
12167
+
12168
+ _this.transformMarker(true);
12169
+
12170
+ _this.transformMarker(false);
12171
+
12172
+ return _this;
11834
12173
  }
11835
12174
 
12175
+ var _proto = Polygon.prototype;
12176
+
12177
+ _proto.attributeChangedCallback = function attributeChangedCallback(attrName, oldValue, newValue, prevParsedValue, newParsedValue) {
12178
+ if (attrName === 'points') {
12179
+ // recalc markers
12180
+ this.transformMarker(true);
12181
+ this.transformMarker(false);
12182
+ this.placeMarkerMid(this.parsedStyle.markerMid);
12183
+ } else if (attrName === 'markerStartOffset' || attrName === 'markerEndOffset') {
12184
+ this.transformMarker(true);
12185
+ this.transformMarker(false);
12186
+ } else if (attrName === 'markerStart') {
12187
+ if (prevParsedValue && prevParsedValue instanceof DisplayObject) {
12188
+ this.markerStartAngle = 0;
12189
+ prevParsedValue.remove();
12190
+ } // CSSKeyword 'unset'
12191
+
12192
+
12193
+ if (newParsedValue && newParsedValue instanceof DisplayObject) {
12194
+ this.markerStartAngle = newParsedValue.getLocalEulerAngles();
12195
+ this.appendChild(newParsedValue);
12196
+ this.transformMarker(true);
12197
+ }
12198
+ } else if (attrName === 'markerEnd') {
12199
+ if (prevParsedValue && prevParsedValue instanceof DisplayObject) {
12200
+ this.markerEndAngle = 0;
12201
+ prevParsedValue.remove();
12202
+ }
12203
+
12204
+ if (newParsedValue && newParsedValue instanceof DisplayObject) {
12205
+ this.markerEndAngle = newParsedValue.getLocalEulerAngles();
12206
+ this.appendChild(newParsedValue);
12207
+ this.transformMarker(false);
12208
+ }
12209
+ } else if (attrName === 'markerMid') {
12210
+ this.placeMarkerMid(newParsedValue);
12211
+ }
12212
+ };
12213
+
12214
+ _proto.transformMarker = function transformMarker(isStart) {
12215
+ var _this$parsedStyle2 = this.parsedStyle,
12216
+ markerStart = _this$parsedStyle2.markerStart,
12217
+ markerEnd = _this$parsedStyle2.markerEnd,
12218
+ markerStartOffset = _this$parsedStyle2.markerStartOffset,
12219
+ markerEndOffset = _this$parsedStyle2.markerEndOffset,
12220
+ points = _this$parsedStyle2.points.points,
12221
+ defX = _this$parsedStyle2.defX,
12222
+ defY = _this$parsedStyle2.defY;
12223
+ var marker = isStart ? markerStart : markerEnd;
12224
+
12225
+ if (!marker || !(marker instanceof DisplayObject)) {
12226
+ return;
12227
+ }
12228
+
12229
+ var rad = 0;
12230
+ var x;
12231
+ var y;
12232
+ var ox;
12233
+ var oy;
12234
+ var offset;
12235
+ var originalAngle;
12236
+ ox = points[0][0] - defX;
12237
+ oy = points[0][1] - defY;
12238
+
12239
+ if (isStart) {
12240
+ x = points[1][0] - points[0][0];
12241
+ y = points[1][1] - points[0][1];
12242
+ offset = (markerStartOffset === null || markerStartOffset === void 0 ? void 0 : markerStartOffset.value) || 0;
12243
+ originalAngle = this.markerStartAngle;
12244
+ } else {
12245
+ var length = points.length;
12246
+
12247
+ if (!this.style.isClosed) {
12248
+ ox = points[length - 1][0] - defX;
12249
+ oy = points[length - 1][1] - defY;
12250
+ x = points[length - 2][0] - points[length - 1][0];
12251
+ y = points[length - 2][1] - points[length - 1][1];
12252
+ } else {
12253
+ x = points[length - 1][0] - points[0][0];
12254
+ y = points[length - 1][1] - points[0][1];
12255
+ }
12256
+
12257
+ offset = (markerEndOffset === null || markerEndOffset === void 0 ? void 0 : markerEndOffset.value) || 0;
12258
+ originalAngle = this.markerEndAngle;
12259
+ }
12260
+
12261
+ rad = Math.atan2(y, x); // account for markerOffset
12262
+
12263
+ marker.setLocalEulerAngles(rad * 180 / Math.PI + originalAngle);
12264
+ marker.setLocalPosition(ox + Math.cos(rad) * offset, oy + Math.sin(rad) * offset);
12265
+ };
12266
+
12267
+ _proto.placeMarkerMid = function placeMarkerMid(marker) {
12268
+ var _this$parsedStyle3 = this.parsedStyle,
12269
+ points = _this$parsedStyle3.points.points,
12270
+ defX = _this$parsedStyle3.defX,
12271
+ defY = _this$parsedStyle3.defY; // clear all existed markers
12272
+
12273
+ this.markerMidList.forEach(function (marker) {
12274
+ marker.remove();
12275
+ });
12276
+
12277
+ if (marker && marker instanceof DisplayObject) {
12278
+ for (var i = 1; i < (this.style.isClosed ? points.length : points.length - 1); i++) {
12279
+ var ox = points[i][0] - defX;
12280
+ var oy = points[i][1] - defY;
12281
+ var cloned = i === 1 ? marker : marker.cloneNode(true);
12282
+ this.markerMidList.push(cloned);
12283
+ this.appendChild(cloned);
12284
+ cloned.setLocalPosition(ox, oy); // TODO: orient of marker
12285
+ }
12286
+ }
12287
+ };
12288
+
11836
12289
  return Polygon;
11837
12290
  }(DisplayObject);
11838
12291
 
11839
12292
  var _excluded$8 = ["style"];
11840
- var Polyline = /*#__PURE__*/function (_DisplayObject) {
11841
- _inheritsLoose(Polyline, _DisplayObject);
12293
+ /**
12294
+ * Polyline inherits the marker-related capabilities of Polygon.
12295
+ */
12296
+
12297
+ var Polyline = /*#__PURE__*/function (_Polygon) {
12298
+ _inheritsLoose(Polyline, _Polygon);
11842
12299
 
11843
12300
  function Polyline(_temp) {
11844
12301
  var _ref = _temp === void 0 ? {} : _temp,
11845
12302
  style = _ref.style,
11846
12303
  rest = _objectWithoutPropertiesLoose(_ref, _excluded$8);
11847
12304
 
11848
- return _DisplayObject.call(this, _extends({
12305
+ return _Polygon.call(this, _extends({
11849
12306
  type: Shape.POLYLINE,
11850
12307
  style: _extends({
11851
12308
  points: '',
11852
- miterLimit: ''
12309
+ miterLimit: '',
12310
+ isClosed: false
11853
12311
  }, style)
11854
12312
  }, rest)) || this;
11855
12313
  }
@@ -11903,7 +12361,7 @@ var Polyline = /*#__PURE__*/function (_DisplayObject) {
11903
12361
  };
11904
12362
 
11905
12363
  return Polyline;
11906
- }(DisplayObject);
12364
+ }(Polygon);
11907
12365
 
11908
12366
  var _excluded$9 = ["style"];
11909
12367
  var Rect = /*#__PURE__*/function (_DisplayObject) {
@@ -13263,16 +13721,6 @@ var FederatedMouseEvent = /*#__PURE__*/function (_FederatedEvent) {
13263
13721
  get: function get() {
13264
13722
  return this.client.y;
13265
13723
  }
13266
- }, {
13267
- key: "x",
13268
- get: function get() {
13269
- return this.clientX;
13270
- }
13271
- }, {
13272
- key: "y",
13273
- get: function get() {
13274
- return this.clientY;
13275
- }
13276
13724
  /**
13277
13725
  * The movement in this pointer relative to the last `mousemove` event.
13278
13726
  */
@@ -14591,25 +15039,46 @@ var DefaultSceneGraphService = /*#__PURE__*/function () {
14591
15039
 
14592
15040
  this.setPosition = function () {
14593
15041
  var parentInvertMatrix = mat4.create();
15042
+ var tmpPosition = vec3.create();
14594
15043
  return function (element, position) {
14595
15044
  var transform = element.transformable;
14596
- position = vec3.fromValues(position[0], position[1], position[2] || 0);
15045
+ tmpPosition[0] = position[0];
15046
+ tmpPosition[1] = position[1];
15047
+ tmpPosition[2] = position[2] || 0;
14597
15048
 
14598
- if (vec3.equals(_this.getPosition(element), position)) {
15049
+ if (vec3.equals(_this.getPosition(element), tmpPosition)) {
14599
15050
  return;
14600
15051
  }
14601
15052
 
14602
- transform.position = position;
15053
+ vec3.copy(transform.position, tmpPosition);
14603
15054
 
14604
15055
  if (element.parentNode === null || !element.parentNode.transformable) {
14605
- vec3.copy(transform.localPosition, position);
15056
+ vec3.copy(transform.localPosition, tmpPosition);
14606
15057
  } else {
14607
15058
  var parentTransform = element.parentNode.transformable;
14608
15059
  mat4.copy(parentInvertMatrix, parentTransform.worldTransform);
14609
15060
  mat4.invert(parentInvertMatrix, parentInvertMatrix);
14610
- vec3.transformMat4(transform.localPosition, position, parentInvertMatrix);
15061
+ vec3.transformMat4(transform.localPosition, tmpPosition, parentInvertMatrix);
15062
+ }
15063
+
15064
+ _this.dirtifyLocal(element, transform);
15065
+ };
15066
+ }();
15067
+
15068
+ this.setLocalPosition = function () {
15069
+ var tmpPosition = vec3.create();
15070
+ return function (element, position) {
15071
+ var transform = element.transformable;
15072
+ tmpPosition[0] = position[0];
15073
+ tmpPosition[1] = position[1];
15074
+ tmpPosition[2] = position[2] || 0;
15075
+
15076
+ if (vec3.equals(transform.localPosition, tmpPosition)) {
15077
+ return;
14611
15078
  }
14612
15079
 
15080
+ vec3.copy(transform.localPosition, tmpPosition);
15081
+
14613
15082
  _this.dirtifyLocal(element, transform);
14614
15083
  };
14615
15084
  }();
@@ -14815,25 +15284,9 @@ var DefaultSceneGraphService = /*#__PURE__*/function () {
14815
15284
  */
14816
15285
  ;
14817
15286
 
14818
- /**
14819
- * move to position in local space
14820
- */
14821
- _proto.setLocalPosition = function setLocalPosition(element, position) {
14822
- var transform = element.transformable;
14823
- position = vec3.fromValues(position[0], position[1], position[2] || 0);
14824
-
14825
- if (vec3.equals(transform.localPosition, position)) {
14826
- return;
14827
- }
14828
-
14829
- vec3.copy(transform.localPosition, position);
14830
- this.dirtifyLocal(element, transform);
14831
- }
14832
15287
  /**
14833
15288
  * scale in local space
14834
15289
  */
14835
- ;
14836
-
14837
15290
  _proto.scaleLocal = function scaleLocal(element, scaling) {
14838
15291
  var transform = element.transformable;
14839
15292
  vec3.multiply(transform.localScale, transform.localScale, vec3.fromValues(scaling[0], scaling[1], scaling[2] || 1));
@@ -19061,6 +19514,39 @@ CSSPropertyLocalPosition = __decorate([singleton({
19061
19514
  }
19062
19515
  })], CSSPropertyLocalPosition);
19063
19516
 
19517
+ var CSSPropertyMarker = /*#__PURE__*/function () {
19518
+ function CSSPropertyMarker() {}
19519
+
19520
+ var _proto = CSSPropertyMarker.prototype;
19521
+
19522
+ _proto.calculator = function calculator(name, oldMarker, newMarker, object) {
19523
+ var _newMarker;
19524
+
19525
+ // unset
19526
+ if (newMarker instanceof CSSKeywordValue) {
19527
+ newMarker = null;
19528
+ }
19529
+
19530
+ var cloned = (_newMarker = newMarker) === null || _newMarker === void 0 ? void 0 : _newMarker.cloneNode(true);
19531
+
19532
+ if (cloned) {
19533
+ // FIXME: SVG should not inherit parent's style, add a flag here
19534
+ cloned.style.isMarker = true;
19535
+ }
19536
+
19537
+ return cloned;
19538
+ };
19539
+
19540
+ return CSSPropertyMarker;
19541
+ }();
19542
+
19543
+ CSSPropertyMarker = __decorate([singleton({
19544
+ token: {
19545
+ token: CSSProperty,
19546
+ named: PropertySyntax.MARKER
19547
+ }
19548
+ })], CSSPropertyMarker);
19549
+
19064
19550
  var CSSPropertyNumber = function CSSPropertyNumber() {
19065
19551
  this.mixer = mergeNumbers;
19066
19552
  this.parser = parseNumber;
@@ -19998,6 +20484,27 @@ var BUILT_IN_PROPERTIES = [{
19998
20484
  }, {
19999
20485
  name: 'whiteSpace',
20000
20486
  layoutDependent: true
20487
+ }, {
20488
+ name: 'markerStart',
20489
+ syntax: PropertySyntax.MARKER
20490
+ }, {
20491
+ name: 'markerEnd',
20492
+ syntax: PropertySyntax.MARKER
20493
+ }, {
20494
+ name: 'markerMid',
20495
+ syntax: PropertySyntax.MARKER
20496
+ }, {
20497
+ name: 'markerStartOffset',
20498
+ syntax: PropertySyntax.LENGTH,
20499
+ layoutDependent: true,
20500
+ interpolable: true,
20501
+ defaultValue: '0'
20502
+ }, {
20503
+ name: 'markerEndOffset',
20504
+ syntax: PropertySyntax.LENGTH,
20505
+ layoutDependent: true,
20506
+ interpolable: true,
20507
+ defaultValue: '0'
20001
20508
  }];
20002
20509
 
20003
20510
  var DefaultStyleValueRegistry = /*#__PURE__*/function () {
@@ -20550,6 +21057,7 @@ var containerModule = Module(function (register) {
20550
21057
  register(CSSPropertyTransform);
20551
21058
  register(CSSPropertyTransformOrigin);
20552
21059
  register(CSSPropertyZIndex);
21060
+ register(CSSPropertyMarker);
20553
21061
  register({
20554
21062
  token: CSSPropertySyntaxFactory,
20555
21063
  useFactory: function useFactory(context) {
@@ -20843,7 +21351,7 @@ var EventPlugin = EventPlugin_1 = (_class$3 = /*#__PURE__*/function () {
20843
21351
  this.renderingService = void 0;
20844
21352
  this.renderingContext = void 0;
20845
21353
  this.eventService = void 0;
20846
- this.autoPreventDefault = true;
21354
+ this.autoPreventDefault = false;
20847
21355
  this.rootPointerEvent = new FederatedPointerEvent(null);
20848
21356
  this.rootWheelEvent = new FederatedWheelEvent(null);
20849
21357
 
@@ -21387,6 +21895,7 @@ var PrepareRendererPlugin = PrepareRendererPlugin_1 = (_class$4 = /*#__PURE__*/f
21387
21895
  // @see https://github.com/mourner/rbush#bulk-inserting-data
21388
21896
 
21389
21897
  this.rBush.load(bulk);
21898
+ bulk.length = 0;
21390
21899
  this.toSync.clear();
21391
21900
  };
21392
21901
 
@@ -22095,4 +22604,4 @@ var Canvas = /*#__PURE__*/function (_EventTarget) {
22095
22604
  GlobalContainer.load(containerModule);
22096
22605
  var layoutEngine = GlobalContainer.get(LayoutEngine);
22097
22606
 
22098
- export { AABB, AbstractLayoutDefinition, AbstractRenderer, AbstractRendererPlugin, Animation, AnimationEffectTiming, AnimationEvent, AnimationTimeline, AsyncParallelHook, AsyncSeriesWaterfallHook, BUILT_IN_PROPERTIES, BaseType, BoundingSphere, CSS, CSSColorValue, CSSGradientValue, CSSKeywordValue, CSSMathInvert, CSSMathMax, CSSMathMin, CSSMathNegate, CSSMathOperator, CSSMathProduct, CSSMathSum, CSSMathValue, CSSMathVariadic, CSSNumericValue, CSSNumericValueType, CSSProperty, CSSPropertyAngle, CSSPropertyClipPath, CSSPropertyColor, CSSPropertyFilter, CSSPropertyLengthOrPercentage, CSSPropertyLengthOrPercentage12, CSSPropertyLengthOrPercentage14, CSSPropertyLocalPosition, CSSPropertyNumber, CSSPropertyOffsetDistance, CSSPropertyOffsetPath, CSSPropertyOpacity, CSSPropertyPath, CSSPropertyPoints, CSSPropertyShadowBlur, CSSPropertySyntaxFactory, CSSPropertyText, CSSPropertyTextTransform, CSSPropertyTransform, CSSPropertyTransformOrigin, CSSPropertyZIndex, CSSRGB, CSSStyleValue, CSSStyleValueType, CSSUnitValue, Camera, CameraEvent, CameraProjectionMode, CameraTrackingMode, CameraType, Canvas, CanvasConfig, CanvasEvent, Circle, CircleUpdater, ContextNode, ContextService, Cullable, CustomElement, CustomElementRegistry, CustomEvent, DCHECK, DCHECK_EQ, DCHECK_NE, DELEGATION_SPLITTER, DefaultCamera, DefaultSceneGraphSelector, DefaultSceneGraphService, DefaultStyleValueRegistry, Deferred, DisplayObject, DisplayObjectPool, Document, EasingFunctions, Element, ElementEvent, Ellipse, EllipseUpdater, EventService, EventTarget, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, FragmentResult, FragmentResultFactory, FragmentResultOptions, Frustum, Geometry, GeometryAABBUpdater, GeometryUpdaterFactory, GradientType, Group, HTML, Image, KeyframeEffect, LayoutChildren, LayoutChildrenFactory, LayoutChildrenOptions, LayoutContext, LayoutContextFactory, LayoutContextOptions, LayoutEdges, LayoutEdgesFactory, LayoutEdgesOptions, LayoutEngine, LayoutFragment, LayoutFragmentFactory, LayoutFragmentOptions, LayoutObject, LayoutRegistry, LayoutTaskType, Line, LineUpdater, MOUSE_POINTER_ID, Mask, MutationEvent, MutationObserver, MutationRecord, Nested, Node, ObjectTyped, Odeg, OffscreenCanvasCreator, Opx, ParenLess, Path, PathUpdater, Plane, Point, Polygon, Polyline, PolylineUpdater, PropertyName, PropertySyntax, RBushNode, RBushRoot, Ray, Rect, RectUpdater, Rectangle, Registration, RenderReason, Renderable, RenderingContext, RenderingPluginContribution, RenderingService, SceneGraphSelector, SceneGraphSelectorFactory, SceneGraphService, Shape, Sortable, Strategy, StyleValueRegistry, SyncHook, SyncWaterfallHook, TOUCH_TO_POINTER, Text, TextService, TextUpdater, Transform, UnitCategory, UnitType, ValueRange, baseTypeToString, camelCase, clamp, clampedMergeNumbers, cleanExistedCanvas, colorStopToString, compareAnimations, composeMatrix, computeLinearGradient, computeRadialGradient, convertAngleUnit, convertEffectInput, convertItemToMatrix, convertPercentUnit, convertToDash, convertToPath, createVec3, decompose, deg2rad, deg2turn, equalSet, extractPolygons, formatAttribute, fromRotationTranslationScale, getAngle, getEasingFunction, getEuler, getHeight, getRotationInRadians, getScaling, getStyle, getTranslation, getWidth, grad2deg, hasArcOrBezier, isBoolean, isBrowser, isComparison, isFunction, isNil, isNumber, isObject, isPattern, isString, isUndefined, layoutEngine, makePerspective, makeQuerablePromise, makeTiming, memoize, mergeColors, mergeDimensionList, mergeDimensions, mergeNumberLists, mergeNumbers, mergePaths, mergeTransforms, normalizeKeyframes, normalizeTimingInput, numberToString, numericTimingToObject, parseAngle, parseColor, parseDimension, parseDimensionArray, parseFilter, parseGradient, parseLength, parseLengthOrPercentage, parseNumber, parseNumberList, parseParam, parsePath, parsePoints, parseTransform, parseTransformOrigin, parserPercentage, path2Segments, rad2deg, setDOMSize, sortByZIndex, toFontString, translatePathToString, turn2deg, typeCheck, unitTypeToBaseType };
22607
+ export { AABB, AbstractLayoutDefinition, AbstractRenderer, AbstractRendererPlugin, Animation, AnimationEffectTiming, AnimationEvent, AnimationTimeline, AsyncParallelHook, AsyncSeriesWaterfallHook, BUILT_IN_PROPERTIES, BaseType, BoundingSphere, CSS, CSSColorValue, CSSGradientValue, CSSKeywordValue, CSSMathInvert, CSSMathMax, CSSMathMin, CSSMathNegate, CSSMathOperator, CSSMathProduct, CSSMathSum, CSSMathValue, CSSMathVariadic, CSSNumericValue, CSSNumericValueType, CSSProperty, CSSPropertyAngle, CSSPropertyClipPath, CSSPropertyColor, CSSPropertyFilter, CSSPropertyLengthOrPercentage, CSSPropertyLengthOrPercentage12, CSSPropertyLengthOrPercentage14, CSSPropertyLocalPosition, CSSPropertyMarker, CSSPropertyNumber, CSSPropertyOffsetDistance, CSSPropertyOffsetPath, CSSPropertyOpacity, CSSPropertyPath, CSSPropertyPoints, CSSPropertyShadowBlur, CSSPropertySyntaxFactory, CSSPropertyText, CSSPropertyTextTransform, CSSPropertyTransform, CSSPropertyTransformOrigin, CSSPropertyZIndex, CSSRGB, CSSStyleValue, CSSStyleValueType, CSSUnitValue, Camera, CameraEvent, CameraProjectionMode, CameraTrackingMode, CameraType, Canvas, CanvasConfig, CanvasEvent, Circle, CircleUpdater, ContextNode, ContextService, Cullable, CustomElement, CustomElementRegistry, CustomEvent, DCHECK, DCHECK_EQ, DCHECK_NE, DELEGATION_SPLITTER, DefaultCamera, DefaultSceneGraphSelector, DefaultSceneGraphService, DefaultStyleValueRegistry, Deferred, DisplayObject, DisplayObjectPool, Document, EasingFunctions, Element, ElementEvent, Ellipse, EllipseUpdater, EventService, EventTarget, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, FragmentResult, FragmentResultFactory, FragmentResultOptions, Frustum, Geometry, GeometryAABBUpdater, GeometryUpdaterFactory, GradientType, Group, HTML, Image, KeyframeEffect, LayoutChildren, LayoutChildrenFactory, LayoutChildrenOptions, LayoutContext, LayoutContextFactory, LayoutContextOptions, LayoutEdges, LayoutEdgesFactory, LayoutEdgesOptions, LayoutEngine, LayoutFragment, LayoutFragmentFactory, LayoutFragmentOptions, LayoutObject, LayoutRegistry, LayoutTaskType, Line, LineUpdater, MOUSE_POINTER_ID, Mask, MutationEvent, MutationObserver, MutationRecord, Nested, Node, ObjectTyped, Odeg, OffscreenCanvasCreator, Opx, ParenLess, Path, PathUpdater, Plane, Point, Polygon, Polyline, PolylineUpdater, PropertyName, PropertySyntax, RBushNode, RBushRoot, Ray, Rect, RectUpdater, Rectangle, Registration, RenderReason, Renderable, RenderingContext, RenderingPluginContribution, RenderingService, SceneGraphSelector, SceneGraphSelectorFactory, SceneGraphService, Shape, Sortable, Strategy, StyleValueRegistry, SyncHook, SyncWaterfallHook, TOUCH_TO_POINTER, Text, TextService, TextUpdater, Transform, UnitCategory, UnitType, ValueRange, baseTypeToString, camelCase, clamp, clampedMergeNumbers, cleanExistedCanvas, colorStopToString, compareAnimations, composeMatrix, computeLinearGradient, computeRadialGradient, convertAngleUnit, convertEffectInput, convertItemToMatrix, convertPercentUnit, convertToDash, convertToPath, createVec3, decompose, deg2rad, deg2turn, equalSet, extractPolygons, formatAttribute, fromRotationTranslationScale, getAngle, getEasingFunction, getEuler, getHeight, getRotationInRadians, getScaling, getStyle, getTranslation, getWidth, grad2deg, hasArcOrBezier, isBoolean, isBrowser, isComparison, isFunction, isNil, isNumber, isObject, isPattern, isString, isUndefined, layoutEngine, makePerspective, makeQuerablePromise, makeTiming, memoize, mergeColors, mergeDimensionList, mergeDimensions, mergeNumberLists, mergeNumbers, mergePaths, mergeTransforms, normalizeKeyframes, normalizeTimingInput, numberToString, numericTimingToObject, parseAngle, parseColor, parseDimension, parseDimensionArray, parseFilter, parseGradient, parseLength, parseLengthOrPercentage, parseNumber, parseNumberList, parseParam, parsePath, parsePoints, parseTransform, parseTransformOrigin, parserPercentage, path2Segments, rad2deg, setDOMSize, sortByZIndex, toFontString, translatePathToString, turn2deg, typeCheck, unitTypeToBaseType };