@antv/g 5.5.0 → 5.5.3

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 (42) hide show
  1. package/dist/css/StyleValueRegistry.d.ts +1 -0
  2. package/dist/css/StyleValueRegistry.d.ts.map +1 -1
  3. package/dist/css/cssom/CSSNumericValue.d.ts +1 -1
  4. package/dist/css/cssom/CSSStyleValue.d.ts +2 -2
  5. package/dist/css/cssom/CSSStyleValue.d.ts.map +1 -1
  6. package/dist/css/layout/LayoutObject.d.ts +2 -2
  7. package/dist/css/layout/LayoutObject.d.ts.map +1 -1
  8. package/dist/css/parser/dimension.d.ts +1 -0
  9. package/dist/css/parser/dimension.d.ts.map +1 -1
  10. package/dist/css/parser/path.d.ts.map +1 -1
  11. package/dist/css/properties/CSSPropertyClipPath.d.ts +1 -0
  12. package/dist/css/properties/CSSPropertyClipPath.d.ts.map +1 -1
  13. package/dist/css/properties/CSSPropertyFilter.d.ts +1 -0
  14. package/dist/css/properties/CSSPropertyFilter.d.ts.map +1 -1
  15. package/dist/css/properties/CSSPropertyLengthOrPercentage.d.ts.map +1 -1
  16. package/dist/css/properties/CSSPropertyNumber.d.ts +8 -0
  17. package/dist/css/properties/CSSPropertyNumber.d.ts.map +1 -0
  18. package/dist/css/properties/index.d.ts +1 -0
  19. package/dist/css/properties/index.d.ts.map +1 -1
  20. package/dist/display-objects/DisplayObject.d.ts +1 -0
  21. package/dist/display-objects/DisplayObject.d.ts.map +1 -1
  22. package/dist/display-objects/Line.d.ts.map +1 -1
  23. package/dist/display-objects/Path.d.ts +1 -1
  24. package/dist/display-objects/Path.d.ts.map +1 -1
  25. package/dist/display-objects/Polyline.d.ts.map +1 -1
  26. package/dist/dom/interfaces.d.ts +1 -0
  27. package/dist/dom/interfaces.d.ts.map +1 -1
  28. package/dist/global-module.d.ts.map +1 -1
  29. package/dist/index.esm.js +225 -106
  30. package/dist/index.js +224 -106
  31. package/dist/index.umd.js +224 -106
  32. package/dist/index.umd.min.js +2 -2
  33. package/dist/plugins/DirtyCheckPlugin.d.ts +0 -1
  34. package/dist/plugins/DirtyCheckPlugin.d.ts.map +1 -1
  35. package/dist/plugins/PrepareRendererPlugin.d.ts +1 -0
  36. package/dist/plugins/PrepareRendererPlugin.d.ts.map +1 -1
  37. package/dist/services/RenderingService.d.ts +13 -1
  38. package/dist/services/RenderingService.d.ts.map +1 -1
  39. package/dist/services/SceneGraphSelector.d.ts.map +1 -1
  40. package/dist/services/SceneGraphService.d.ts +6 -1
  41. package/dist/services/SceneGraphService.d.ts.map +1 -1
  42. package/package.json +3 -3
package/dist/index.esm.js CHANGED
@@ -5185,8 +5185,8 @@ var CSSStyleValue = /*#__PURE__*/function () {
5185
5185
  return UnitType.kPixels;
5186
5186
 
5187
5187
  case UnitCategory.kUPercent:
5188
- return UnitType.kUnknown;
5189
- // Cannot convert between numbers and percent.
5188
+ return UnitType.kPercentage;
5189
+ // return UnitType.kUnknown; // Cannot convert between numbers and percent.
5190
5190
 
5191
5191
  case UnitCategory.kUTime:
5192
5192
  return UnitType.kSeconds;
@@ -8034,6 +8034,10 @@ function parserPercentage(css) {
8034
8034
  */
8035
8035
 
8036
8036
  function parseLengthOrPercentage(css) {
8037
+ if (isNumber(css)) {
8038
+ return new CSSUnitValue(css, 'px');
8039
+ }
8040
+
8037
8041
  return parseDimension(new RegExp('px|%|em|rem', 'g'), css);
8038
8042
  }
8039
8043
  function parseAngle(css) {
@@ -8045,6 +8049,7 @@ function parseAngle(css) {
8045
8049
  * @example
8046
8050
  * 10px + 20px = 30px
8047
8051
  * 10deg + 10rad
8052
+ * 10% + 20% = 30%
8048
8053
  */
8049
8054
 
8050
8055
  function mergeDimensions(left, right, target, nonNegative, index) {
@@ -8054,23 +8059,29 @@ function mergeDimensions(left, right, target, nonNegative, index) {
8054
8059
 
8055
8060
  var unit = '';
8056
8061
  var leftValue = left.value || 0;
8057
- var rightValue = right.value || 0; // const canonicalUnit = CSSUnitValue.toCanonicalUnit(left.unit);
8058
- // const leftCanonicalUnitValue = left.convertTo(canonicalUnit);
8059
- // const rightCanonicalUnitValue = right.convertTo(canonicalUnit);
8060
- // format '%' to 'px'
8061
-
8062
- if (CSSUnitValue.isLength(left.unit) || CSSUnitValue.isLength(right.unit)) {
8063
- leftValue = convertPercentUnit(left, index, target);
8064
- rightValue = convertPercentUnit(right, index, target);
8065
- unit = 'px';
8066
- } // format 'rad' 'turn' to 'deg'
8067
-
8062
+ var rightValue = right.value || 0;
8063
+ var canonicalUnit = CSSUnitValue.toCanonicalUnit(left.unit);
8064
+ var leftCanonicalUnitValue = left.convertTo(canonicalUnit);
8065
+ var rightCanonicalUnitValue = right.convertTo(canonicalUnit);
8066
+
8067
+ if (leftCanonicalUnitValue && rightCanonicalUnitValue) {
8068
+ leftValue = leftCanonicalUnitValue.value;
8069
+ rightValue = rightCanonicalUnitValue.value;
8070
+ unit = CSSUnitValue.unitTypeToString(left.unit);
8071
+ } else {
8072
+ // format '%' to 'px'
8073
+ if (CSSUnitValue.isLength(left.unit) || CSSUnitValue.isLength(right.unit)) {
8074
+ leftValue = convertPercentUnit(left, index, target);
8075
+ rightValue = convertPercentUnit(right, index, target);
8076
+ unit = 'px';
8077
+ }
8078
+ } // // format 'rad' 'turn' to 'deg'
8079
+ // if (CSSUnitValue.isAngle(left.unit) || CSSUnitValue.isAngle(right.unit)) {
8080
+ // leftValue = convertAngleUnit(left);
8081
+ // rightValue = convertAngleUnit(right);
8082
+ // unit = 'deg';
8083
+ // }
8068
8084
 
8069
- if (CSSUnitValue.isAngle(left.unit) || CSSUnitValue.isAngle(right.unit)) {
8070
- leftValue = convertAngleUnit(left);
8071
- rightValue = convertAngleUnit(right);
8072
- unit = 'deg';
8073
- }
8074
8085
 
8075
8086
  return [leftValue, rightValue, function (value) {
8076
8087
  if (nonNegative) {
@@ -8204,6 +8215,10 @@ var memoizedParsePath = memoize(function (path) {
8204
8215
  var absolutePath;
8205
8216
 
8206
8217
  try {
8218
+ if (Array.isArray(path) && path.length === 0) {
8219
+ throw new Error();
8220
+ }
8221
+
8207
8222
  absolutePath = normalizePath(path);
8208
8223
  } catch (e) {
8209
8224
  absolutePath = normalizePath('');
@@ -8241,7 +8256,7 @@ var memoizedParsePath = memoize(function (path) {
8241
8256
  curve: curve,
8242
8257
  totalLength: length,
8243
8258
  zCommandIndexes: zCommandIndexes,
8244
- rect: new Rectangle(x, y, width, height)
8259
+ rect: new Rectangle(Number.isFinite(x) ? x : 0, Number.isFinite(y) ? y : 0, Number.isFinite(width) ? width : 0, Number.isFinite(height) ? height : 0)
8245
8260
  };
8246
8261
  }, function (path) {
8247
8262
  return isString(path) ? path : path2String(path);
@@ -11379,7 +11394,8 @@ var DEFAULT_STYLE_PROPS = {
11379
11394
  textAlign: '',
11380
11395
  textBaseline: '',
11381
11396
  textTransform: '',
11382
- zIndex: ''
11397
+ zIndex: '',
11398
+ filter: ''
11383
11399
  };
11384
11400
  /**
11385
11401
  * prototype chains: DisplayObject -> Element -> Node -> EventTarget
@@ -11422,6 +11438,7 @@ var DisplayObject = /*#__PURE__*/function (_Element) {
11422
11438
  _this.styleValueRegistry = GlobalContainer.get(StyleValueRegistry);
11423
11439
  _this.isCustomElement = false;
11424
11440
  _this.activeAnimations = [];
11441
+ _this.mutationEvent = new MutationEvent(ElementEvent.ATTR_MODIFIED, _assertThisInitialized(_this), null, null, null, MutationEvent.MODIFICATION, null, null);
11425
11442
  _this.config = config; // compatible with G 3.0
11426
11443
 
11427
11444
  _this.config.interactive = (_this$config$capture = _this.config.capture) !== null && _this$config$capture !== void 0 ? _this$config$capture : _this.config.interactive; // init scene graph node
@@ -11568,7 +11585,8 @@ var DisplayObject = /*#__PURE__*/function (_Element) {
11568
11585
 
11569
11586
  if (this.parsedStyle.clipPathTargets && this.parsedStyle.clipPathTargets.length) {
11570
11587
  this.parsedStyle.clipPathTargets.forEach(function (target) {
11571
- dirtifyToRoot(target);
11588
+ _this2.sceneGraphService.dirtifyToRoot(target);
11589
+
11572
11590
  target.dispatchEvent(new MutationEvent(ElementEvent.ATTR_MODIFIED, target, _this2, _this2, 'clipPath', MutationEvent.MODIFICATION, _this2, _this2));
11573
11591
 
11574
11592
  if (target.isCustomElement && target.isConnected) {
@@ -11580,8 +11598,15 @@ var DisplayObject = /*#__PURE__*/function (_Element) {
11580
11598
  } // redraw at next frame
11581
11599
 
11582
11600
 
11583
- renderable.dirty = true;
11584
- this.dispatchEvent(new MutationEvent(ElementEvent.ATTR_MODIFIED, this, oldValue, value, name, MutationEvent.MODIFICATION, oldParsedValue, this.parsedStyle[name]));
11601
+ renderable.dirty = true; // trigger later
11602
+ // this.sceneGraphService.pendingEvents.push([ElementEvent.ATTR_MODIFIED, { affectChildren }]);
11603
+
11604
+ this.mutationEvent.prevValue = oldValue;
11605
+ this.mutationEvent.newValue = value;
11606
+ this.mutationEvent.attrName = name;
11607
+ this.mutationEvent.prevParsedValue = oldParsedValue;
11608
+ this.mutationEvent.newParsedValue = this.parsedStyle[name];
11609
+ this.dispatchEvent(this.mutationEvent);
11585
11610
 
11586
11611
  if (this.isCustomElement && this.isConnected) {
11587
11612
  if (this.attributeChangedCallback) {
@@ -12421,9 +12446,17 @@ var Line = /*#__PURE__*/function (_DisplayObject) {
12421
12446
  x1 = _this$parsedStyle.x1,
12422
12447
  y1 = _this$parsedStyle.y1,
12423
12448
  x2 = _this$parsedStyle.x2,
12424
- y2 = _this$parsedStyle.y2;
12425
- var point = Line$1.pointAt(x1.value, y1.value, x2.value, y2.value, ratio);
12426
- return new Point(point.x, point.y);
12449
+ y2 = _this$parsedStyle.y2,
12450
+ defX = _this$parsedStyle.defX,
12451
+ defY = _this$parsedStyle.defY;
12452
+
12453
+ var _LineUtil$pointAt = Line$1.pointAt(x1.value, y1.value, x2.value, y2.value, ratio),
12454
+ x = _LineUtil$pointAt.x,
12455
+ y = _LineUtil$pointAt.y;
12456
+
12457
+ var transformed = vec3.transformMat4(vec3.create(), vec3.fromValues(x - defX, y - defY, 0), this.getLocalTransform()); // apply local transformation
12458
+
12459
+ return new Point(transformed[0], transformed[1]);
12427
12460
  };
12428
12461
 
12429
12462
  _proto.getTotalLength = function getTotalLength() {
@@ -12468,7 +12501,10 @@ var Path = /*#__PURE__*/function (_DisplayObject) {
12468
12501
  ;
12469
12502
 
12470
12503
  _proto.getPoint = function getPoint(ratio) {
12471
- var _this$parsedStyle$pat = this.parsedStyle.path,
12504
+ var _this$parsedStyle = this.parsedStyle,
12505
+ defX = _this$parsedStyle.defX,
12506
+ defY = _this$parsedStyle.defY,
12507
+ _this$parsedStyle$pat = _this$parsedStyle.path,
12472
12508
  totalLength = _this$parsedStyle$pat.totalLength,
12473
12509
  absolutePath = _this$parsedStyle$pat.absolutePath;
12474
12510
 
@@ -12476,7 +12512,9 @@ var Path = /*#__PURE__*/function (_DisplayObject) {
12476
12512
  x = _getPointAtLength.x,
12477
12513
  y = _getPointAtLength.y;
12478
12514
 
12479
- return new Point(x, y);
12515
+ var transformed = vec3.transformMat4(vec3.create(), vec3.fromValues(x - defX, y - defY, 0), this.getLocalTransform()); // apply local transformation
12516
+
12517
+ return new Point(transformed[0], transformed[1]);
12480
12518
  }
12481
12519
  /**
12482
12520
  * Get start tangent vector
@@ -12581,7 +12619,10 @@ var Polyline = /*#__PURE__*/function (_DisplayObject) {
12581
12619
  };
12582
12620
 
12583
12621
  _proto.getPoint = function getPoint(ratio) {
12584
- var _this$parsedStyle$poi = this.parsedStyle.points,
12622
+ var _this$parsedStyle = this.parsedStyle,
12623
+ defX = _this$parsedStyle.defX,
12624
+ defY = _this$parsedStyle.defY,
12625
+ _this$parsedStyle$poi = _this$parsedStyle.points,
12585
12626
  points = _this$parsedStyle$poi.points,
12586
12627
  segments = _this$parsedStyle$poi.segments;
12587
12628
  var subt = 0;
@@ -12597,7 +12638,9 @@ var Polyline = /*#__PURE__*/function (_DisplayObject) {
12597
12638
  x = _LineUtil$pointAt.x,
12598
12639
  y = _LineUtil$pointAt.y;
12599
12640
 
12600
- return new Point(x, y);
12641
+ var transformed = vec3.transformMat4(vec3.create(), vec3.fromValues(x - defX, y - defY, 0), this.getLocalTransform()); // apply local transformation
12642
+
12643
+ return new Point(transformed[0], transformed[1]);
12601
12644
  };
12602
12645
 
12603
12646
  _proto.getStartTangent = function getStartTangent() {
@@ -14254,7 +14297,7 @@ var DefaultSceneGraphSelector = /*#__PURE__*/function () {
14254
14297
  if (query.startsWith('.')) {
14255
14298
  return root.find(function (node) {
14256
14299
  // return !node.shadow && node.id === query.substring(1);
14257
- return node.className === _this.getIdOrClassname(query);
14300
+ return ((node === null || node === void 0 ? void 0 : node.classList) || []).indexOf(_this.getIdOrClassname(query)) > -1;
14258
14301
  });
14259
14302
  } else if (query.startsWith('#')) {
14260
14303
  // getElementById('id')
@@ -14291,7 +14334,7 @@ var DefaultSceneGraphSelector = /*#__PURE__*/function () {
14291
14334
  // getElementsByClassName('className');
14292
14335
  // should not include itself
14293
14336
  return root.findAll(function (node) {
14294
- return root !== node && node.className === _this2.getIdOrClassname(query);
14337
+ return root !== node && ((node === null || node === void 0 ? void 0 : node.classList) || []).indexOf(_this2.getIdOrClassname(query)) > -1;
14295
14338
  });
14296
14339
  } else if (query.startsWith('#')) {
14297
14340
  return root.findAll(function (node) {
@@ -14397,29 +14440,6 @@ function sortByZIndex(o1, o2) {
14397
14440
 
14398
14441
  return zIndex1 - zIndex2;
14399
14442
  }
14400
- function dirtifyToRoot(element, affectChildren) {
14401
- if (affectChildren === void 0) {
14402
- affectChildren = false;
14403
- }
14404
-
14405
- var p = element;
14406
-
14407
- while (p) {
14408
- var renderable = p.renderable;
14409
-
14410
- if (renderable) {
14411
- renderable.renderBoundsDirty = true;
14412
- renderable.boundsDirty = true;
14413
- renderable.dirty = true;
14414
- }
14415
-
14416
- p = p.parentNode;
14417
- }
14418
-
14419
- element.dispatchEvent(new CustomEvent(ElementEvent.BOUNDS_CHANGED, {
14420
- affectChildren: affectChildren
14421
- }));
14422
- }
14423
14443
  var SceneGraphService = Syringe.defineToken('SceneGraphService');
14424
14444
  /**
14425
14445
  * update transform in scene graph
@@ -14432,6 +14452,8 @@ var DefaultSceneGraphService = /*#__PURE__*/function () {
14432
14452
  var _this = this;
14433
14453
 
14434
14454
  this.sceneGraphSelectorFactory = void 0;
14455
+ this.pendingEvents = [];
14456
+ this.boundsChangedEvent = new CustomEvent(ElementEvent.BOUNDS_CHANGED);
14435
14457
 
14436
14458
  this.rotate = function () {
14437
14459
  var parentInvertRotation = quat$1.create();
@@ -14865,7 +14887,63 @@ var DefaultSceneGraphService = /*#__PURE__*/function () {
14865
14887
  }
14866
14888
 
14867
14889
  this.dirtifyWorldInternal(element, transform);
14868
- dirtifyToRoot(element, true);
14890
+ this.dirtifyToRoot(element, true);
14891
+ };
14892
+
14893
+ _proto.triggerPendingEvents = function triggerPendingEvents() {
14894
+ var _this2 = this;
14895
+
14896
+ var set = new Set();
14897
+
14898
+ var trigger = function trigger(element, detail) {
14899
+ if (!set.has(element.entity)) {
14900
+ _this2.boundsChangedEvent.detail = detail;
14901
+ element.dispatchEvent(_this2.boundsChangedEvent);
14902
+ set.add(element.entity);
14903
+ }
14904
+ };
14905
+
14906
+ this.pendingEvents.forEach(function (_ref) {
14907
+ var element = _ref[0],
14908
+ detail = _ref[1];
14909
+
14910
+ if (detail.affectChildren) {
14911
+ element.forEach(function (e) {
14912
+ trigger(e, detail);
14913
+ });
14914
+ } else {
14915
+ trigger(element, detail);
14916
+ }
14917
+ });
14918
+ this.pendingEvents = [];
14919
+ };
14920
+
14921
+ _proto.dirtifyToRoot = function dirtifyToRoot(element, affectChildren) {
14922
+ if (affectChildren === void 0) {
14923
+ affectChildren = false;
14924
+ }
14925
+
14926
+ var p = element; // only need to re-render itself
14927
+
14928
+ if (p.renderable) {
14929
+ p.renderable.dirty = true;
14930
+ }
14931
+
14932
+ while (p) {
14933
+ var renderable = p.renderable;
14934
+
14935
+ if (renderable) {
14936
+ renderable.renderBoundsDirty = true;
14937
+ renderable.boundsDirty = true;
14938
+ }
14939
+
14940
+ p = p.parentNode;
14941
+ } // reuse the same custom event
14942
+
14943
+
14944
+ this.pendingEvents.push([element, {
14945
+ affectChildren: affectChildren
14946
+ }]);
14869
14947
  };
14870
14948
 
14871
14949
  _proto.getPosition = function getPosition(element) {
@@ -15001,7 +15079,7 @@ var DefaultSceneGraphService = /*#__PURE__*/function () {
15001
15079
  ;
15002
15080
 
15003
15081
  _proto.getBounds = function getBounds(element, render) {
15004
- var _this2 = this;
15082
+ var _this3 = this;
15005
15083
 
15006
15084
  if (render === void 0) {
15007
15085
  render = false;
@@ -15022,7 +15100,7 @@ var DefaultSceneGraphService = /*#__PURE__*/function () {
15022
15100
 
15023
15101
  var children = element.childNodes;
15024
15102
  children.forEach(function (child) {
15025
- var childBounds = _this2.getBounds(child, render);
15103
+ var childBounds = _this3.getBounds(child, render);
15026
15104
 
15027
15105
  if (childBounds) {
15028
15106
  if (!aabb) {
@@ -15034,7 +15112,7 @@ var DefaultSceneGraphService = /*#__PURE__*/function () {
15034
15112
  }
15035
15113
  }); // account for clip path
15036
15114
 
15037
- var clipPath = element.style.clipPath;
15115
+ var clipPath = element.parsedStyle.clipPath;
15038
15116
 
15039
15117
  if (clipPath) {
15040
15118
  var clipPathBounds = this.getTransformedGeometryBounds(clipPath, true);
@@ -15125,7 +15203,7 @@ var DefaultSceneGraphService = /*#__PURE__*/function () {
15125
15203
  };
15126
15204
 
15127
15205
  _proto.dirtifyWorldInternal = function dirtifyWorldInternal(element, transform) {
15128
- var _this3 = this;
15206
+ var _this4 = this;
15129
15207
 
15130
15208
  if (!transform.dirtyFlag) {
15131
15209
  transform.dirtyFlag = true;
@@ -15134,7 +15212,7 @@ var DefaultSceneGraphService = /*#__PURE__*/function () {
15134
15212
  var childTransform = child.transformable;
15135
15213
 
15136
15214
  if (!childTransform.dirtyFlag) {
15137
- _this3.dirtifyWorldInternal(child, childTransform);
15215
+ _this4.dirtifyWorldInternal(child, childTransform);
15138
15216
  }
15139
15217
  });
15140
15218
  var renderable = element.renderable;
@@ -15144,8 +15222,6 @@ var DefaultSceneGraphService = /*#__PURE__*/function () {
15144
15222
  renderable.boundsDirty = true;
15145
15223
  renderable.dirty = true;
15146
15224
  }
15147
-
15148
- element.dispatchEvent(new MutationEvent(ElementEvent.ATTR_MODIFIED, element, null, null, 'modelMatrix', MutationEvent.MODIFICATION, null, null));
15149
15225
  }
15150
15226
  };
15151
15227
 
@@ -16398,6 +16474,7 @@ var RenderingPluginContribution = Syringe.defineToken('RenderingPluginContributi
16398
16474
  var RenderingService = /*#__PURE__*/function () {
16399
16475
  function RenderingService() {
16400
16476
  this.renderingPluginProvider = void 0;
16477
+ this.canvasConfig = void 0;
16401
16478
  this.renderingContext = void 0;
16402
16479
  this.sceneGraphService = void 0;
16403
16480
  this.styleValueRegistry = void 0;
@@ -16415,6 +16492,7 @@ var RenderingService = /*#__PURE__*/function () {
16415
16492
  rendered: 0
16416
16493
  };
16417
16494
  this.zIndexCounter = 0;
16495
+ this.renderOrderChangedEvent = new CustomEvent(ElementEvent.RENDER_ORDER_CHANGED);
16418
16496
  this.hooks = {
16419
16497
  /**
16420
16498
  * called before any frame rendered
@@ -16511,6 +16589,21 @@ var RenderingService = /*#__PURE__*/function () {
16511
16589
 
16512
16590
  _proto.getStats = function getStats() {
16513
16591
  return this.stats;
16592
+ }
16593
+ /**
16594
+ * Meet the following conditions:
16595
+ * * disable DirtyRectangleRendering
16596
+ * * camera changed
16597
+ */
16598
+ ;
16599
+
16600
+ _proto.disableDirtyRectangleRendering = function disableDirtyRectangleRendering() {
16601
+ var renderer = this.canvasConfig.renderer;
16602
+
16603
+ var _renderer$getConfig = renderer.getConfig(),
16604
+ enableDirtyRectangleRendering = _renderer$getConfig.enableDirtyRectangleRendering;
16605
+
16606
+ return !enableDirtyRectangleRendering || this.renderingContext.renderReasons.has(RenderReason.CAMERA_CHANGED);
16514
16607
  };
16515
16608
 
16516
16609
  _proto.render = function render(canvasConfig) {
@@ -16520,6 +16613,7 @@ var RenderingService = /*#__PURE__*/function () {
16520
16613
  this.stats.rendered = 0;
16521
16614
  this.zIndexCounter = 0;
16522
16615
  this.sceneGraphService.syncHierarchy(this.renderingContext.root);
16616
+ this.sceneGraphService.triggerPendingEvents();
16523
16617
 
16524
16618
  if (this.renderingContext.renderReasons.size && this.inited) {
16525
16619
  this.renderDisplayObject(this.renderingContext.root, canvasConfig);
@@ -16585,9 +16679,10 @@ var RenderingService = /*#__PURE__*/function () {
16585
16679
 
16586
16680
  if (renderOrderChanged) {
16587
16681
  displayObject.forEach(function (child) {
16588
- child.dispatchEvent(new CustomEvent(ElementEvent.RENDER_ORDER_CHANGED, {
16682
+ _this3.renderOrderChangedEvent.detail = {
16589
16683
  renderOrder: child.sortable.renderOrder
16590
- }));
16684
+ };
16685
+ child.dispatchEvent(_this3.renderOrderChangedEvent);
16591
16686
  });
16592
16687
  }
16593
16688
  };
@@ -16607,6 +16702,8 @@ var RenderingService = /*#__PURE__*/function () {
16607
16702
 
16608
16703
  __decorate([contrib(RenderingPluginContribution), __metadata("design:type", Object)], RenderingService.prototype, "renderingPluginProvider", void 0);
16609
16704
 
16705
+ __decorate([inject(CanvasConfig), __metadata("design:type", Object)], RenderingService.prototype, "canvasConfig", void 0);
16706
+
16610
16707
  __decorate([inject(RenderingContext), __metadata("design:type", Object)], RenderingService.prototype, "renderingContext", void 0);
16611
16708
 
16612
16709
  __decorate([inject(SceneGraphService), __metadata("design:type", Object)], RenderingService.prototype, "sceneGraphService", void 0);
@@ -18600,7 +18697,9 @@ PathUpdater = __decorate([singleton({
18600
18697
  */
18601
18698
 
18602
18699
  var CSSPropertyClipPath = /*#__PURE__*/function () {
18603
- function CSSPropertyClipPath() {}
18700
+ function CSSPropertyClipPath() {
18701
+ this.sceneGraphService = void 0;
18702
+ }
18604
18703
 
18605
18704
  var _proto = CSSPropertyClipPath.prototype;
18606
18705
 
@@ -18624,13 +18723,15 @@ var CSSPropertyClipPath = /*#__PURE__*/function () {
18624
18723
  newClipPath.parsedStyle.clipPathTargets.push(object);
18625
18724
  }
18626
18725
 
18627
- dirtifyToRoot(object);
18726
+ this.sceneGraphService.dirtifyToRoot(object);
18628
18727
  return newClipPath;
18629
18728
  };
18630
18729
 
18631
18730
  return CSSPropertyClipPath;
18632
18731
  }();
18633
18732
 
18733
+ __decorate([inject(SceneGraphService), __metadata("design:type", Object)], CSSPropertyClipPath.prototype, "sceneGraphService", void 0);
18734
+
18634
18735
  CSSPropertyClipPath = __decorate([singleton({
18635
18736
  token: {
18636
18737
  token: CSSProperty,
@@ -18668,9 +18769,24 @@ CSSPropertyColor = __decorate([singleton({
18668
18769
  }]
18669
18770
  })], CSSPropertyColor);
18670
18771
 
18671
- var CSSPropertyFilter = function CSSPropertyFilter() {
18672
- this.parser = parseFilter;
18673
- };
18772
+ var CSSPropertyFilter = /*#__PURE__*/function () {
18773
+ function CSSPropertyFilter() {
18774
+ this.parser = parseFilter;
18775
+ }
18776
+
18777
+ var _proto = CSSPropertyFilter.prototype;
18778
+
18779
+ _proto.calculator = function calculator(name, oldParsed, parsed) {
18780
+ // unset or none
18781
+ if (parsed instanceof CSSKeywordValue) {
18782
+ return [];
18783
+ }
18784
+
18785
+ return parsed;
18786
+ };
18787
+
18788
+ return CSSPropertyFilter;
18789
+ }();
18674
18790
 
18675
18791
  CSSPropertyFilter = __decorate([singleton({
18676
18792
  token: {
@@ -18710,21 +18826,6 @@ var CSSPropertyLengthOrPercentage = /*#__PURE__*/function () {
18710
18826
  _proto.calculator = function calculator(name, oldParsed, computed, object, registry) {
18711
18827
  if (CSSUnitValue.isRelativeUnit(computed.unit)) {
18712
18828
  if (computed.unit === UnitType.kPercentage) {
18713
- // try to resolve according to parent's geometry bounds
18714
- // if (object.parentElement) {
18715
- // // registry.registerParentGeometryBoundsChangedHandler(object, name);
18716
- // return this.calculateUsedValueWithParentBounds(object, name);
18717
- // } else {
18718
- // registry.addUnresolveProperty(object, name);
18719
- // // defer calculation after mounted
18720
- // // object.addEventListener(
18721
- // // ElementEvent.MOUNTED,
18722
- // // () => {
18723
- // // registry.registerParentGeometryBoundsChangedHandler(object, name);
18724
- // // },
18725
- // // { once: true },
18726
- // // );
18727
- // }
18728
18829
  return new CSSUnitValue(0, 'px');
18729
18830
  } else if (computed.unit === UnitType.kEms) {
18730
18831
  if (object.parentNode) {
@@ -18758,10 +18859,13 @@ var CSSPropertyLengthOrPercentage = /*#__PURE__*/function () {
18758
18859
  }();
18759
18860
 
18760
18861
  CSSPropertyLengthOrPercentage = __decorate([singleton({
18761
- token: {
18862
+ token: [{
18762
18863
  token: CSSProperty,
18763
18864
  named: PropertySyntax.LENGTH_PERCENTAGE
18764
- }
18865
+ }, {
18866
+ token: CSSProperty,
18867
+ named: PropertySyntax.LENGTH
18868
+ }]
18765
18869
  })], CSSPropertyLengthOrPercentage);
18766
18870
 
18767
18871
  /**
@@ -18930,6 +19034,18 @@ CSSPropertyLocalPosition = __decorate([singleton({
18930
19034
  }
18931
19035
  })], CSSPropertyLocalPosition);
18932
19036
 
19037
+ var CSSPropertyNumber = function CSSPropertyNumber() {
19038
+ this.mixer = mergeNumbers;
19039
+ this.parser = parseNumber;
19040
+ };
19041
+
19042
+ CSSPropertyNumber = __decorate([singleton({
19043
+ token: {
19044
+ token: CSSProperty,
19045
+ named: PropertySyntax.NUMBER
19046
+ }
19047
+ })], CSSPropertyNumber);
19048
+
18933
19049
  var CSSPropertyOffsetDistance = /*#__PURE__*/function () {
18934
19050
  function CSSPropertyOffsetDistance() {
18935
19051
  this.parser = parseNumber;
@@ -19460,16 +19576,19 @@ var BUILT_IN_PROPERTIES = [{
19460
19576
  name: 'shadowOffsetX',
19461
19577
  interpolable: true,
19462
19578
  layoutDependent: true,
19579
+ defaultValue: '0',
19463
19580
  syntax: PropertySyntax.LENGTH_PERCENTAGE
19464
19581
  }, {
19465
19582
  name: 'shadowOffsetY',
19466
19583
  interpolable: true,
19467
19584
  layoutDependent: true,
19585
+ defaultValue: '0',
19468
19586
  syntax: PropertySyntax.LENGTH_PERCENTAGE
19469
19587
  }, {
19470
19588
  name: 'shadowBlur',
19471
19589
  interpolable: true,
19472
19590
  layoutDependent: true,
19591
+ defaultValue: '0',
19473
19592
  syntax: PropertySyntax.SHADOW_BLUR
19474
19593
  }, {
19475
19594
  /**
@@ -19563,6 +19682,8 @@ var BUILT_IN_PROPERTIES = [{
19563
19682
  name: 'filter',
19564
19683
  independent: true,
19565
19684
  layoutDependent: true,
19685
+ keywords: ['none'],
19686
+ defaultValue: 'none',
19566
19687
  syntax: PropertySyntax.FILTER
19567
19688
  }, {
19568
19689
  name: 'clipPath',
@@ -19816,6 +19937,7 @@ var DefaultStyleValueRegistry = /*#__PURE__*/function () {
19816
19937
  this.cache = {};
19817
19938
  this.unresolvedProperties = {};
19818
19939
  this.propertySyntaxFactory = void 0;
19940
+ this.sceneGraphService = void 0;
19819
19941
  this.cascadeProperties = {};
19820
19942
  }
19821
19943
 
@@ -20261,9 +20383,8 @@ var DefaultStyleValueRegistry = /*#__PURE__*/function () {
20261
20383
  var usedOriginYValue = (flipX ? -1 : 1) * convertPercentUnit(transformOrigin[1], 1, object);
20262
20384
  usedOriginXValue = usedOriginXValue - (flipY ? -1 : 1) * (anchor && anchor[0].value || 0) * geometry.contentBounds.halfExtents[0] * 2;
20263
20385
  usedOriginYValue = usedOriginYValue - (flipX ? -1 : 1) * (anchor && anchor[1].value || 0) * geometry.contentBounds.halfExtents[1] * 2;
20264
- object.setOrigin(usedOriginXValue, usedOriginYValue); // object.dispatchEvent(new CustomEvent(ElementEvent.GEOMETRY_BOUNDS_CHANGED));
20265
-
20266
- dirtifyToRoot(object);
20386
+ object.setOrigin(usedOriginXValue, usedOriginYValue);
20387
+ this.sceneGraphService.dirtifyToRoot(object);
20267
20388
  }
20268
20389
  };
20269
20390
 
@@ -20282,6 +20403,8 @@ var DefaultStyleValueRegistry = /*#__PURE__*/function () {
20282
20403
 
20283
20404
  __decorate([inject(CSSPropertySyntaxFactory), __metadata("design:type", Function)], DefaultStyleValueRegistry.prototype, "propertySyntaxFactory", void 0);
20284
20405
 
20406
+ __decorate([inject(SceneGraphService), __metadata("design:type", Object)], DefaultStyleValueRegistry.prototype, "sceneGraphService", void 0);
20407
+
20285
20408
  __decorate([postConstruct(), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0)], DefaultStyleValueRegistry.prototype, "init", null);
20286
20409
 
20287
20410
  DefaultStyleValueRegistry = __decorate([singleton({
@@ -20331,6 +20454,7 @@ var containerModule = Module(function (register) {
20331
20454
  }
20332
20455
  }); // bind CSS property handlers
20333
20456
 
20457
+ register(CSSPropertyNumber);
20334
20458
  register(CSSPropertyAngle);
20335
20459
  register(CSSPropertyClipPath);
20336
20460
  register(CSSPropertyColor);
@@ -20594,22 +20718,15 @@ var DirtyCheckPlugin_1;
20594
20718
  */
20595
20719
 
20596
20720
  var DirtyCheckPlugin = DirtyCheckPlugin_1 = (_class$2 = /*#__PURE__*/function () {
20597
- function DirtyCheckPlugin() {
20598
- this.renderingContext = void 0;
20599
- }
20721
+ function DirtyCheckPlugin() {}
20600
20722
 
20601
20723
  var _proto = DirtyCheckPlugin.prototype;
20602
20724
 
20603
20725
  _proto.apply = function apply(renderingService) {
20604
- var _this = this;
20605
-
20606
20726
  renderingService.hooks.dirtycheck.tap(DirtyCheckPlugin_1.tag, function (object) {
20607
20727
  if (object) {
20608
20728
  var renderable = object.renderable;
20609
-
20610
- var isCameraDirty = _this.renderingContext.renderReasons.has(RenderReason.CAMERA_CHANGED);
20611
-
20612
- var isDirty = renderable.dirty || isCameraDirty;
20729
+ var isDirty = renderable.dirty || renderingService.disableDirtyRectangleRendering();
20613
20730
 
20614
20731
  if (isDirty) {
20615
20732
  return object;
@@ -20624,9 +20741,6 @@ var DirtyCheckPlugin = DirtyCheckPlugin_1 = (_class$2 = /*#__PURE__*/function ()
20624
20741
 
20625
20742
  return DirtyCheckPlugin;
20626
20743
  }(), _class$2.tag = 'DirtyCheck', _class$2);
20627
-
20628
- __decorate([inject(RenderingContext), __metadata("design:type", Object)], DirtyCheckPlugin.prototype, "renderingContext", void 0);
20629
-
20630
20744
  DirtyCheckPlugin = DirtyCheckPlugin_1 = __decorate([singleton({
20631
20745
  contrib: RenderingPluginContribution
20632
20746
  })], DirtyCheckPlugin);
@@ -21051,6 +21165,7 @@ var PrepareRendererPlugin = PrepareRendererPlugin_1 = (_class$4 = /*#__PURE__*/f
21051
21165
  function PrepareRendererPlugin() {
21052
21166
  this.renderingContext = void 0;
21053
21167
  this.styleValueRegistry = void 0;
21168
+ this.sceneGraphService = void 0;
21054
21169
  this.rBush = void 0;
21055
21170
  this.toSync = new Set();
21056
21171
  }
@@ -21097,7 +21212,8 @@ var PrepareRendererPlugin = PrepareRendererPlugin_1 = (_class$4 = /*#__PURE__*/f
21097
21212
 
21098
21213
  _this2.styleValueRegistry.recalc(object);
21099
21214
 
21100
- dirtifyToRoot(object);
21215
+ _this2.sceneGraphService.dirtifyToRoot(object);
21216
+
21101
21217
  renderingService.dirtify();
21102
21218
  };
21103
21219
 
@@ -21111,7 +21227,8 @@ var PrepareRendererPlugin = PrepareRendererPlugin_1 = (_class$4 = /*#__PURE__*/f
21111
21227
  _this2.toSync.delete(object);
21112
21228
  }
21113
21229
 
21114
- dirtifyToRoot(e.target);
21230
+ _this2.sceneGraphService.dirtifyToRoot(e.target);
21231
+
21115
21232
  renderingService.dirtify();
21116
21233
  };
21117
21234
 
@@ -21201,6 +21318,8 @@ __decorate([inject(RenderingContext), __metadata("design:type", Object)], Prepar
21201
21318
 
21202
21319
  __decorate([inject(StyleValueRegistry), __metadata("design:type", Object)], PrepareRendererPlugin.prototype, "styleValueRegistry", void 0);
21203
21320
 
21321
+ __decorate([inject(SceneGraphService), __metadata("design:type", Object)], PrepareRendererPlugin.prototype, "sceneGraphService", void 0);
21322
+
21204
21323
  __decorate([inject(RBushRoot), __metadata("design:type", RBush)], PrepareRendererPlugin.prototype, "rBush", void 0);
21205
21324
 
21206
21325
  PrepareRendererPlugin = PrepareRendererPlugin_1 = __decorate([singleton({
@@ -21824,7 +21943,7 @@ var Canvas = /*#__PURE__*/function (_EventTarget) {
21824
21943
  }
21825
21944
  });
21826
21945
  } else {
21827
- console.warn("[g]: You are trying to call `canvas.appendChild` before canvas' initialization finished. You can either await `canvas.ready` or listen to `CanvasEvent.READY` manually.", 'appended child: ', parent);
21946
+ console.warn("[g]: You are trying to call `canvas.appendChild` before canvas' initialization finished. You can either await `canvas.ready` or listen to `CanvasEvent.READY` manually.", 'appended child: ', parent.nodeName);
21828
21947
  }
21829
21948
  };
21830
21949
 
@@ -21896,4 +22015,4 @@ var Canvas = /*#__PURE__*/function (_EventTarget) {
21896
22015
  GlobalContainer.load(containerModule);
21897
22016
  var layoutEngine = GlobalContainer.get(LayoutEngine);
21898
22017
 
21899
- export { AABB, AbstractLayoutDefinition, AbstractRenderer, 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, 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, computeLinearGradient, computeRadialGradient, convertAngleUnit, convertEffectInput, convertItemToMatrix, convertPercentUnit, convertToDash, convertToPath, createVec3, decompose, deg2rad, deg2turn, dirtifyToRoot, 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 };
22018
+ export { AABB, AbstractLayoutDefinition, AbstractRenderer, 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, 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 };