@antv/g 5.1.4 → 5.1.5

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/index.umd.js CHANGED
@@ -8471,6 +8471,11 @@
8471
8471
  */
8472
8472
 
8473
8473
  PropertySyntax["NUMBER"] = "<number>";
8474
+ /**
8475
+ * @see https://developer.mozilla.org/zh-CN/docs/Web/CSS/angle
8476
+ */
8477
+
8478
+ PropertySyntax["ANGLE"] = "<angle>";
8474
8479
  /**
8475
8480
  * <number> with range 0..1
8476
8481
  * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Content_type#opacity_value
@@ -8522,9 +8527,6 @@
8522
8527
 
8523
8528
  var StyleValueRegistry = Syringe.defineToken('StyleValueRegistry');
8524
8529
 
8525
- var GeometryUpdaterFactory = Syringe.defineToken('GeometryUpdaterFactory');
8526
- var GeometryAABBUpdater = Syringe.defineToken('GeometryAABBUpdater');
8527
-
8528
8530
  /**
8529
8531
  * built-in events for element
8530
8532
  * @see https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent
@@ -13736,6 +13738,8 @@
13736
13738
  if (isFinite(Number(string))) {
13737
13739
  if ('px'.search(unitRegExp) >= 0) {
13738
13740
  return new CSSUnitValue(Number(string), 'px');
13741
+ } else if ('deg'.search(unitRegExp) >= 0) {
13742
+ return new CSSUnitValue(Number(string), 'deg');
13739
13743
  }
13740
13744
  }
13741
13745
 
@@ -17238,6 +17242,75 @@
17238
17242
  return keyword;
17239
17243
  }
17240
17244
 
17245
+ var CSSPropertyAngle = {
17246
+ parser: parseAngle,
17247
+ mixer: mergeDimensions,
17248
+ calculator: function calculator(name, oldParsed, parsed, object) {
17249
+ return new CSSUnitValue(convertAngleUnit(parsed), 'deg');
17250
+ }
17251
+ };
17252
+
17253
+ /**
17254
+ * @see /zh/docs/api/basic/display-object#clippath
17255
+ * @example
17256
+ const image = new Image({
17257
+ style: {
17258
+ width: 200,
17259
+ height: 200,
17260
+ clipPath: new Circle({
17261
+ style: {
17262
+ x: 100, // 处于被裁剪图形局部坐标系下
17263
+ y: 100,
17264
+ r: 50,
17265
+ },
17266
+ }),
17267
+ }
17268
+ });
17269
+ */
17270
+
17271
+ var CSSPropertyClipPath = {
17272
+ calculator: function calculator(name, oldClipPath, newClipPath, object) {
17273
+ // unset
17274
+ if (newClipPath instanceof CSSKeywordValue) {
17275
+ newClipPath = null;
17276
+ } // clear ref to old clip path
17277
+
17278
+
17279
+ if (oldClipPath && oldClipPath !== newClipPath && oldClipPath.style.clipPathTargets) {
17280
+ var index = oldClipPath.style.clipPathTargets.indexOf(object);
17281
+ oldClipPath.style.clipPathTargets.splice(index, 1);
17282
+ }
17283
+
17284
+ if (newClipPath) {
17285
+ if (!newClipPath.style.clipPathTargets) {
17286
+ newClipPath.style.clipPathTargets = [];
17287
+ }
17288
+
17289
+ newClipPath.style.clipPathTargets.push(object);
17290
+ }
17291
+
17292
+ dirtifyToRoot(object);
17293
+ return newClipPath;
17294
+ }
17295
+ };
17296
+
17297
+ var CSSPropertyColor = {
17298
+ parser: parseColor,
17299
+ calculator: function calculator(name, oldParsed, parsed, object, registry) {
17300
+ if (parsed instanceof CSSKeywordValue) {
17301
+ // 'unset' 'none'
17302
+ return new CSSRGB(0, 0, 0, 0, parsed.value === 'none');
17303
+ }
17304
+
17305
+ return parsed;
17306
+ },
17307
+ mixer: mergeColors
17308
+ };
17309
+
17310
+ var CSSPropertyFilter = {
17311
+ parser: parseFilter
17312
+ };
17313
+
17241
17314
  function getFontSize(object) {
17242
17315
  var fontSize = object.parsedStyle.fontSize;
17243
17316
 
@@ -17326,6 +17399,60 @@
17326
17399
 
17327
17400
  };
17328
17401
 
17402
+ /**
17403
+ * format to Tuple2<CSSUnitValue>
17404
+ *
17405
+ * @example
17406
+ * rect.style.lineDash = 10;
17407
+ * rect.style.lineDash = [10, 10];
17408
+ * rect.style.lineDash = '10 10';
17409
+ */
17410
+
17411
+ var CSSPropertyLengthOrPercentage12 = {
17412
+ parser: function parser(radius) {
17413
+ var parsed = parseDimensionArray(isNumber(radius) ? [radius] : radius);
17414
+ var formatted;
17415
+
17416
+ if (parsed.length === 1) {
17417
+ formatted = [parsed[0], parsed[0]];
17418
+ } else {
17419
+ formatted = [parsed[0], parsed[1]];
17420
+ }
17421
+
17422
+ return formatted;
17423
+ },
17424
+ mixer: mergeDimensionList
17425
+ };
17426
+
17427
+ /**
17428
+ * used in rounded rect
17429
+ *
17430
+ * @example
17431
+ * rect.style.radius = 10;
17432
+ * rect.style.radius = '10 10';
17433
+ * rect.style.radius = '10 10 10 10';
17434
+ */
17435
+
17436
+ var CSSPropertyLengthOrPercentage14 = {
17437
+ parser: function parser(radius) {
17438
+ var parsed = parseDimensionArray(isNumber(radius) ? [radius] : radius);
17439
+ var formatted; // format to Tuple<CSSUnitValue>
17440
+
17441
+ if (parsed.length === 1) {
17442
+ formatted = [parsed[0], parsed[0], parsed[0], parsed[0]];
17443
+ } else if (parsed.length === 2) {
17444
+ formatted = [parsed[0], parsed[1], parsed[0], parsed[1]];
17445
+ } else if (parsed.length === 3) {
17446
+ formatted = [parsed[0], parsed[1], parsed[2], parsed[1]];
17447
+ } else {
17448
+ formatted = [parsed[0], parsed[1], parsed[2], parsed[3]];
17449
+ }
17450
+
17451
+ return formatted;
17452
+ },
17453
+ mixer: mergeDimensionList
17454
+ };
17455
+
17329
17456
  /**
17330
17457
  * local position
17331
17458
  */
@@ -17397,90 +17524,24 @@
17397
17524
  }
17398
17525
  };
17399
17526
 
17400
- /**
17401
- * opacity
17402
- */
17403
-
17404
- var CSSPropertyOpacity = {
17527
+ var CSSPropertyOffsetDistance = {
17405
17528
  parser: parseNumber,
17406
- mixer: clampedMergeNumbers(0, 1)
17407
- };
17408
-
17409
- var CSSPropertyColor = {
17410
- parser: parseColor,
17411
- calculator: function calculator(name, oldParsed, parsed, object, registry) {
17412
- if (parsed instanceof CSSKeywordValue) {
17413
- // 'unset' 'none'
17414
- return new CSSRGB(0, 0, 0, 0, parsed.value === 'none');
17415
- }
17416
-
17417
- return parsed;
17418
- },
17419
- mixer: mergeColors
17420
- };
17421
-
17422
- var CSSPropertyFilter = {
17423
- parser: parseFilter
17424
- };
17425
-
17426
- /**
17427
- * format to Tuple2<CSSUnitValue>
17428
- *
17429
- * @example
17430
- * rect.style.lineDash = 10;
17431
- * rect.style.lineDash = [10, 10];
17432
- * rect.style.lineDash = '10 10';
17433
- */
17434
-
17435
- var CSSPropertyLengthOrPercentage12 = {
17436
- parser: function parser(radius) {
17437
- var parsed = parseDimensionArray(isNumber(radius) ? [radius] : radius);
17438
- var formatted;
17439
-
17440
- if (parsed.length === 1) {
17441
- formatted = [parsed[0], parsed[0]];
17442
- } else {
17443
- formatted = [parsed[0], parsed[1]];
17529
+ mixer: clampedMergeNumbers(0, 1),
17530
+ postProcessor: function postProcessor(object) {
17531
+ if (!object.attributes.offsetPath) {
17532
+ return;
17444
17533
  }
17445
17534
 
17446
- return formatted;
17447
- },
17448
- mixer: mergeDimensionList
17449
- };
17450
-
17451
- /**
17452
- * used in rounded rect
17453
- *
17454
- * @example
17455
- * rect.style.radius = 10;
17456
- * rect.style.radius = '10 10';
17457
- * rect.style.radius = '10 10 10 10';
17458
- */
17535
+ var offsetPathNodeName = object.attributes.offsetPath.nodeName;
17459
17536
 
17460
- var CSSPropertyLengthOrPercentage14 = {
17461
- parser: function parser(radius) {
17462
- var parsed = parseDimensionArray(isNumber(radius) ? [radius] : radius);
17463
- var formatted; // format to Tuple<CSSUnitValue>
17537
+ if (offsetPathNodeName === exports.Shape.LINE || offsetPathNodeName === exports.Shape.PATH || offsetPathNodeName === exports.Shape.POLYLINE) {
17538
+ var point = object.attributes.offsetPath.getPoint(object.parsedStyle.offsetDistance.value);
17464
17539
 
17465
- if (parsed.length === 1) {
17466
- formatted = [parsed[0], parsed[0], parsed[0], parsed[0]];
17467
- } else if (parsed.length === 2) {
17468
- formatted = [parsed[0], parsed[1], parsed[0], parsed[1]];
17469
- } else if (parsed.length === 3) {
17470
- formatted = [parsed[0], parsed[1], parsed[2], parsed[1]];
17471
- } else {
17472
- formatted = [parsed[0], parsed[1], parsed[2], parsed[3]];
17540
+ if (point) {
17541
+ object.setLocalPosition(point.x, point.y);
17542
+ }
17473
17543
  }
17474
-
17475
- return formatted;
17476
- },
17477
- mixer: mergeDimensionList
17478
- };
17479
-
17480
- var CSSPropertyShadowBlur = {
17481
- parser: CSSPropertyLengthOrPercentage.parser,
17482
- mixer: clampedMergeNumbers(0, Infinity),
17483
- calculator: CSSPropertyLengthOrPercentage.calculator
17544
+ }
17484
17545
  };
17485
17546
 
17486
17547
  var CSSPropertyOffsetPath = {
@@ -17503,43 +17564,118 @@
17503
17564
  }
17504
17565
  };
17505
17566
 
17506
- var CSSPropertyOffsetDistance = {
17567
+ /**
17568
+ * opacity
17569
+ */
17570
+
17571
+ var CSSPropertyOpacity = {
17507
17572
  parser: parseNumber,
17508
- mixer: clampedMergeNumbers(0, 1),
17509
- postProcessor: function postProcessor(object) {
17510
- if (!object.attributes.offsetPath) {
17511
- return;
17573
+ mixer: clampedMergeNumbers(0, 1)
17574
+ };
17575
+
17576
+ var CSSPropertyPath = {
17577
+ /**
17578
+ * path2Curve
17579
+ */
17580
+ parser: parsePath$1,
17581
+ calculator: function calculator(name, oldParsed, parsed) {
17582
+ // unset
17583
+ if (parsed instanceof CSSKeywordValue && parsed.value === 'unset') {
17584
+ return {
17585
+ absolutePath: [],
17586
+ hasArc: false,
17587
+ segments: [],
17588
+ polygons: [],
17589
+ polylines: [],
17590
+ curve: [],
17591
+ totalLength: 0,
17592
+ curveSegments: [],
17593
+ zCommandIndexes: [],
17594
+ rect: new Rectangle(0, 0, 0, 0)
17595
+ };
17512
17596
  }
17513
17597
 
17514
- var offsetPathNodeName = object.attributes.offsetPath.nodeName;
17598
+ return parsed;
17599
+ },
17600
+ mixer: mergePaths,
17515
17601
 
17516
- if (offsetPathNodeName === exports.Shape.LINE || offsetPathNodeName === exports.Shape.PATH || offsetPathNodeName === exports.Shape.POLYLINE) {
17517
- var point = object.attributes.offsetPath.getPoint(object.parsedStyle.offsetDistance.value);
17602
+ /**
17603
+ * update local position
17604
+ */
17605
+ postProcessor: function postProcessor(object) {
17606
+ if (object.nodeName === exports.Shape.PATH) {
17607
+ var _object$parsedStyle = object.parsedStyle,
17608
+ _object$parsedStyle$d = _object$parsedStyle.defX,
17609
+ defX = _object$parsedStyle$d === void 0 ? 0 : _object$parsedStyle$d,
17610
+ _object$parsedStyle$d2 = _object$parsedStyle.defY,
17611
+ defY = _object$parsedStyle$d2 === void 0 ? 0 : _object$parsedStyle$d2;
17612
+ object.setLocalPosition(defX, defY);
17613
+ }
17614
+ }
17615
+ };
17518
17616
 
17519
- if (point) {
17520
- object.setLocalPosition(point.x, point.y);
17521
- }
17617
+ var CSSPropertyPoints = {
17618
+ parser: parsePoints,
17619
+
17620
+ /**
17621
+ * update local position
17622
+ */
17623
+ postProcessor: function postProcessor(object) {
17624
+ if (object.nodeName === exports.Shape.POLYGON || object.nodeName === exports.Shape.POLYLINE) {
17625
+ var _object$parsedStyle = object.parsedStyle,
17626
+ defX = _object$parsedStyle.defX,
17627
+ defY = _object$parsedStyle.defY;
17628
+ object.setLocalPosition(defX, defY);
17522
17629
  }
17523
17630
  }
17524
17631
  };
17525
17632
 
17526
- var CSSPropertyZIndex = {
17527
- parser: parseNumber,
17633
+ var CSSPropertyShadowBlur = {
17634
+ parser: CSSPropertyLengthOrPercentage.parser,
17635
+ mixer: clampedMergeNumbers(0, Infinity),
17636
+ calculator: CSSPropertyLengthOrPercentage.calculator
17637
+ };
17638
+
17639
+ var CSSPropertyText = {
17640
+ calculator: function calculator(name, oldParsed, parsed, object) {
17641
+ if (parsed instanceof CSSKeywordValue) {
17642
+ if (parsed.value === 'unset') {
17643
+ return '';
17644
+ } else {
17645
+ return parsed.value;
17646
+ }
17647
+ }
17648
+
17649
+ return parsed;
17650
+ },
17528
17651
  postProcessor: function postProcessor(object) {
17529
- if (object.parentNode) {
17530
- var parentEntity = object.parentNode;
17531
- var parentRenderable = parentEntity.renderable;
17532
- var parentSortable = parentEntity.sortable;
17652
+ object.nodeValue = "" + object.parsedStyle.text || '';
17653
+ }
17654
+ };
17533
17655
 
17534
- if (parentRenderable) {
17535
- parentRenderable.dirty = true;
17536
- } // need re-sort on parent
17656
+ /**
17657
+ * it must transform after text get parsed
17658
+ * @see https://developer.mozilla.org/zh-CN/docs/Web/CSS/text-transform
17659
+ */
17660
+ var CSSPropertyTextTransform = {
17661
+ calculator: function calculator(name, oldParsed, parsed, object) {
17662
+ var rawText = object.getAttribute('text');
17537
17663
 
17664
+ if (rawText) {
17665
+ var transformedText = rawText;
17538
17666
 
17539
- if (parentSortable) {
17540
- parentSortable.dirty = true;
17667
+ if (parsed.value === 'capitalize') {
17668
+ transformedText = rawText.charAt(0).toUpperCase() + rawText.slice(1);
17669
+ } else if (parsed.value === 'lowercase') {
17670
+ transformedText = rawText.toLowerCase();
17671
+ } else if (parsed.value === 'uppercase') {
17672
+ transformedText = rawText.toUpperCase();
17541
17673
  }
17674
+
17675
+ object.parsedStyle.text = transformedText;
17542
17676
  }
17677
+
17678
+ return parsed;
17543
17679
  }
17544
17680
  };
17545
17681
 
@@ -17671,143 +17807,23 @@
17671
17807
  parser: parseTransformOrigin
17672
17808
  };
17673
17809
 
17674
- var CSSPropertyPath = {
17675
- /**
17676
- * path2Curve
17677
- */
17678
- parser: parsePath$1,
17679
- calculator: function calculator(name, oldParsed, parsed) {
17680
- // unset
17681
- if (parsed instanceof CSSKeywordValue && parsed.value === 'unset') {
17682
- return {
17683
- absolutePath: [],
17684
- hasArc: false,
17685
- segments: [],
17686
- polygons: [],
17687
- polylines: [],
17688
- curve: [],
17689
- totalLength: 0,
17690
- curveSegments: [],
17691
- zCommandIndexes: [],
17692
- rect: new Rectangle(0, 0, 0, 0)
17693
- };
17694
- }
17695
-
17696
- return parsed;
17697
- },
17698
- mixer: mergePaths,
17699
-
17700
- /**
17701
- * update local position
17702
- */
17703
- postProcessor: function postProcessor(object) {
17704
- if (object.nodeName === exports.Shape.PATH) {
17705
- var _object$parsedStyle = object.parsedStyle,
17706
- _object$parsedStyle$d = _object$parsedStyle.defX,
17707
- defX = _object$parsedStyle$d === void 0 ? 0 : _object$parsedStyle$d,
17708
- _object$parsedStyle$d2 = _object$parsedStyle.defY,
17709
- defY = _object$parsedStyle$d2 === void 0 ? 0 : _object$parsedStyle$d2;
17710
- object.setLocalPosition(defX, defY);
17711
- }
17712
- }
17713
- };
17714
-
17715
- var CSSPropertyPoints = {
17716
- parser: parsePoints,
17717
-
17718
- /**
17719
- * update local position
17720
- */
17721
- postProcessor: function postProcessor(object) {
17722
- if (object.nodeName === exports.Shape.POLYGON || object.nodeName === exports.Shape.POLYLINE) {
17723
- var _object$parsedStyle = object.parsedStyle,
17724
- defX = _object$parsedStyle.defX,
17725
- defY = _object$parsedStyle.defY;
17726
- object.setLocalPosition(defX, defY);
17727
- }
17728
- }
17729
- };
17730
-
17731
- /**
17732
- * @see /zh/docs/api/basic/display-object#clippath
17733
- * @example
17734
- const image = new Image({
17735
- style: {
17736
- width: 200,
17737
- height: 200,
17738
- clipPath: new Circle({
17739
- style: {
17740
- x: 100, // 处于被裁剪图形局部坐标系下
17741
- y: 100,
17742
- r: 50,
17743
- },
17744
- }),
17745
- }
17746
- });
17747
- */
17748
-
17749
- var CSSPropertyClipPath = {
17750
- calculator: function calculator(name, oldClipPath, newClipPath, object) {
17751
- // unset
17752
- if (newClipPath instanceof CSSKeywordValue) {
17753
- newClipPath = null;
17754
- } // clear ref to old clip path
17755
-
17756
-
17757
- if (oldClipPath && oldClipPath !== newClipPath && oldClipPath.style.clipPathTargets) {
17758
- var index = oldClipPath.style.clipPathTargets.indexOf(object);
17759
- oldClipPath.style.clipPathTargets.splice(index, 1);
17760
- }
17761
-
17762
- if (newClipPath) {
17763
- if (!newClipPath.style.clipPathTargets) {
17764
- newClipPath.style.clipPathTargets = [];
17765
- }
17766
-
17767
- newClipPath.style.clipPathTargets.push(object);
17768
- }
17769
-
17770
- dirtifyToRoot(object);
17771
- return newClipPath;
17772
- }
17773
- };
17774
-
17775
- var CSSPropertyText = {
17776
- calculator: function calculator(name, oldParsed, parsed, object) {
17777
- if (parsed instanceof CSSKeywordValue) {
17778
- if (parsed.value === 'unset') {
17779
- return '';
17780
- } else {
17781
- return parsed.value;
17782
- }
17783
- }
17784
-
17785
- return parsed;
17786
- },
17810
+ var CSSPropertyZIndex = {
17811
+ parser: parseNumber,
17787
17812
  postProcessor: function postProcessor(object) {
17788
- object.nodeValue = "" + object.parsedStyle.text || '';
17789
- }
17790
- };
17813
+ if (object.parentNode) {
17814
+ var parentEntity = object.parentNode;
17815
+ var parentRenderable = parentEntity.renderable;
17816
+ var parentSortable = parentEntity.sortable;
17791
17817
 
17792
- var CSSPropertyTextTransform = {
17793
- calculator: function calculator(name, oldParsed, parsed, object) {
17794
- var rawText = object.getAttribute('text');
17818
+ if (parentRenderable) {
17819
+ parentRenderable.dirty = true;
17820
+ } // need re-sort on parent
17795
17821
 
17796
- if (rawText) {
17797
- var transformedText = rawText;
17798
17822
 
17799
- if (parsed.value === 'capitalize') {
17800
- transformedText = rawText.charAt(0).toUpperCase() + rawText.slice(1);
17801
- } else if (parsed.value === 'lowercase') {
17802
- transformedText = rawText.toLowerCase();
17803
- } else if (parsed.value === 'uppercase') {
17804
- transformedText = rawText.toUpperCase();
17823
+ if (parentSortable) {
17824
+ parentSortable.dirty = true;
17805
17825
  }
17806
-
17807
- object.parsedStyle.text = transformedText;
17808
17826
  }
17809
-
17810
- return parsed;
17811
17827
  }
17812
17828
  };
17813
17829
 
@@ -18024,7 +18040,7 @@
18024
18040
  dirtifyToRoot(target);
18025
18041
  target.dispatchEvent(new MutationEvent(exports.ElementEvent.ATTR_MODIFIED, target, _this2, _this2, 'clipPath', MutationEvent.MODIFICATION, _this2, _this2));
18026
18042
 
18027
- if (target.isCustomElement) {
18043
+ if (target.isCustomElement && target.isConnected) {
18028
18044
  if (target.attributeChangedCallback) {
18029
18045
  target.attributeChangedCallback('clipPath', _this2, _this2);
18030
18046
  }
@@ -18036,7 +18052,7 @@
18036
18052
  renderable.dirty = true;
18037
18053
  this.dispatchEvent(new MutationEvent(exports.ElementEvent.ATTR_MODIFIED, this, oldValue, value, name, MutationEvent.MODIFICATION, oldParsedValue, this.parsedStyle[name]));
18038
18054
 
18039
- if (this.isCustomElement) {
18055
+ if (this.isCustomElement && this.isConnected) {
18040
18056
  if (this.attributeChangedCallback) {
18041
18057
  this.attributeChangedCallback(name, oldValue, value);
18042
18058
  }
@@ -20905,8 +20921,11 @@
20905
20921
  return CustomElementRegistry;
20906
20922
  }();
20907
20923
 
20924
+ var GeometryUpdaterFactory = Syringe.defineToken('GeometryUpdaterFactory');
20925
+ var GeometryAABBUpdater = Syringe.defineToken('GeometryAABBUpdater');
20926
+
20908
20927
  var _PROPERTY_HANDLERS;
20909
- var PROPERTY_HANDLERS = (_PROPERTY_HANDLERS = {}, _PROPERTY_HANDLERS[exports.PropertySyntax.COORDINATE] = CSSPropertyLocalPosition, _PROPERTY_HANDLERS[exports.PropertySyntax.COLOR] = CSSPropertyColor, _PROPERTY_HANDLERS[exports.PropertySyntax.PAINT] = CSSPropertyColor, _PROPERTY_HANDLERS[exports.PropertySyntax.OPACITY_VALUE] = CSSPropertyOpacity, _PROPERTY_HANDLERS[exports.PropertySyntax.LENGTH_PERCENTAGE] = CSSPropertyLengthOrPercentage, _PROPERTY_HANDLERS[exports.PropertySyntax.LENGTH_PERCENTAGE_12] = CSSPropertyLengthOrPercentage12, _PROPERTY_HANDLERS[exports.PropertySyntax.LENGTH_PERCENTAGE_14] = CSSPropertyLengthOrPercentage14, _PROPERTY_HANDLERS[exports.PropertySyntax.SHADOW_BLUR] = CSSPropertyShadowBlur, _PROPERTY_HANDLERS[exports.PropertySyntax.LIST_OF_POINTS] = CSSPropertyPoints, _PROPERTY_HANDLERS[exports.PropertySyntax.PATH] = CSSPropertyPath, _PROPERTY_HANDLERS[exports.PropertySyntax.FILTER] = CSSPropertyFilter, _PROPERTY_HANDLERS[exports.PropertySyntax.Z_INDEX] = CSSPropertyZIndex, _PROPERTY_HANDLERS[exports.PropertySyntax.OFFSET_PATH] = CSSPropertyOffsetPath, _PROPERTY_HANDLERS[exports.PropertySyntax.OFFSET_DISTANCE] = CSSPropertyOffsetDistance, _PROPERTY_HANDLERS[exports.PropertySyntax.CLIP_PATH] = CSSPropertyClipPath, _PROPERTY_HANDLERS[exports.PropertySyntax.TRANSFORM] = CSSPropertyTransform, _PROPERTY_HANDLERS[exports.PropertySyntax.TRANSFORM_ORIGIN] = CSSPropertyTransformOrigin, _PROPERTY_HANDLERS[exports.PropertySyntax.TEXT] = CSSPropertyText, _PROPERTY_HANDLERS[exports.PropertySyntax.TEXT_TRANSFORM] = CSSPropertyTextTransform, _PROPERTY_HANDLERS);
20928
+ var PROPERTY_HANDLERS = (_PROPERTY_HANDLERS = {}, _PROPERTY_HANDLERS[exports.PropertySyntax.COORDINATE] = CSSPropertyLocalPosition, _PROPERTY_HANDLERS[exports.PropertySyntax.ANGLE] = CSSPropertyAngle, _PROPERTY_HANDLERS[exports.PropertySyntax.COLOR] = CSSPropertyColor, _PROPERTY_HANDLERS[exports.PropertySyntax.PAINT] = CSSPropertyColor, _PROPERTY_HANDLERS[exports.PropertySyntax.OPACITY_VALUE] = CSSPropertyOpacity, _PROPERTY_HANDLERS[exports.PropertySyntax.LENGTH_PERCENTAGE] = CSSPropertyLengthOrPercentage, _PROPERTY_HANDLERS[exports.PropertySyntax.LENGTH_PERCENTAGE_12] = CSSPropertyLengthOrPercentage12, _PROPERTY_HANDLERS[exports.PropertySyntax.LENGTH_PERCENTAGE_14] = CSSPropertyLengthOrPercentage14, _PROPERTY_HANDLERS[exports.PropertySyntax.SHADOW_BLUR] = CSSPropertyShadowBlur, _PROPERTY_HANDLERS[exports.PropertySyntax.LIST_OF_POINTS] = CSSPropertyPoints, _PROPERTY_HANDLERS[exports.PropertySyntax.PATH] = CSSPropertyPath, _PROPERTY_HANDLERS[exports.PropertySyntax.FILTER] = CSSPropertyFilter, _PROPERTY_HANDLERS[exports.PropertySyntax.Z_INDEX] = CSSPropertyZIndex, _PROPERTY_HANDLERS[exports.PropertySyntax.OFFSET_PATH] = CSSPropertyOffsetPath, _PROPERTY_HANDLERS[exports.PropertySyntax.OFFSET_DISTANCE] = CSSPropertyOffsetDistance, _PROPERTY_HANDLERS[exports.PropertySyntax.CLIP_PATH] = CSSPropertyClipPath, _PROPERTY_HANDLERS[exports.PropertySyntax.TRANSFORM] = CSSPropertyTransform, _PROPERTY_HANDLERS[exports.PropertySyntax.TRANSFORM_ORIGIN] = CSSPropertyTransformOrigin, _PROPERTY_HANDLERS[exports.PropertySyntax.TEXT] = CSSPropertyText, _PROPERTY_HANDLERS[exports.PropertySyntax.TEXT_TRANSFORM] = CSSPropertyTextTransform, _PROPERTY_HANDLERS);
20910
20929
  /**
20911
20930
  * Blink used them in code generation(css_properties.json5)
20912
20931
  */
@@ -21222,14 +21241,17 @@
21222
21241
  name: 'text',
21223
21242
  layoutDependent: true,
21224
21243
  defaultValue: '',
21225
- syntax: exports.PropertySyntax.TEXT
21244
+ syntax: exports.PropertySyntax.TEXT,
21245
+ parsePriority: 50
21226
21246
  }, {
21227
21247
  name: 'textTransform',
21228
21248
  layoutDependent: true,
21229
21249
  inherited: true,
21230
21250
  keywords: ['capitalize', 'uppercase', 'lowercase', 'none'],
21231
21251
  defaultValue: 'none',
21232
- syntax: exports.PropertySyntax.TEXT_TRANSFORM
21252
+ syntax: exports.PropertySyntax.TEXT_TRANSFORM,
21253
+ parsePriority: 51 // it must get parsed after text
21254
+
21233
21255
  }, {
21234
21256
  name: 'font',
21235
21257
  layoutDependent: true
@@ -28800,9 +28822,9 @@
28800
28822
  var oldRenderer = canvasConfig.renderer;
28801
28823
  canvasConfig.renderer = renderer; // keep all children undestroyed
28802
28824
 
28803
- this.destroy(false); // destroy all plugins
28825
+ this.destroy(false); // destroy all plugins, reverse will mutate origin array
28804
28826
 
28805
- oldRenderer === null || oldRenderer === void 0 ? void 0 : oldRenderer.getPlugins().reverse().forEach(function (plugin) {
28827
+ [].concat(oldRenderer === null || oldRenderer === void 0 ? void 0 : oldRenderer.getPlugins()).reverse().forEach(function (plugin) {
28806
28828
  plugin.destroy(_this6.container);
28807
28829
  });
28808
28830
  this.initRenderer(renderer);
@@ -28950,6 +28972,7 @@
28950
28972
  exports.CSSMathVariadic = CSSMathVariadic;
28951
28973
  exports.CSSNumericValue = CSSNumericValue;
28952
28974
  exports.CSSNumericValueType = CSSNumericValueType;
28975
+ exports.CSSPropertyAngle = CSSPropertyAngle;
28953
28976
  exports.CSSPropertyClipPath = CSSPropertyClipPath;
28954
28977
  exports.CSSPropertyColor = CSSPropertyColor;
28955
28978
  exports.CSSPropertyFilter = CSSPropertyFilter;