@leafer-ui/draw 1.3.2 → 1.3.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.
package/lib/draw.esm.js CHANGED
@@ -15,7 +15,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
15
15
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16
16
  PERFORMANCE OF THIS SOFTWARE.
17
17
  ***************************************************************************** */
18
- /* global Reflect, Promise, SuppressedError, Symbol */
18
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
19
19
 
20
20
 
21
21
  function __decorate(decorators, target, key, desc) {
@@ -114,6 +114,7 @@ class UIData extends LeafData {
114
114
  return t.fill && this.__hasStroke;
115
115
  }
116
116
  get __clipAfterFill() { const t = this; return (t.cornerRadius || t.innerShadow || t.__pathInputed); }
117
+ get __hasSurface() { const t = this; return (t.fill || t.stroke); }
117
118
  get __autoWidth() { return !this._width; }
118
119
  get __autoHeight() { return !this._height; }
119
120
  get __autoSide() { return !this._width || !this._height; }
@@ -617,199 +618,199 @@ let UI = UI_1 = class UI extends Leaf {
617
618
  };
618
619
  __decorate([
619
620
  dataProcessor(UIData)
620
- ], UI.prototype, "__", void 0);
621
+ ], UI.prototype, "__", undefined);
621
622
  __decorate([
622
623
  zoomLayerType()
623
- ], UI.prototype, "zoomLayer", void 0);
624
+ ], UI.prototype, "zoomLayer", undefined);
624
625
  __decorate([
625
626
  dataType('')
626
- ], UI.prototype, "id", void 0);
627
+ ], UI.prototype, "id", undefined);
627
628
  __decorate([
628
629
  dataType('')
629
- ], UI.prototype, "name", void 0);
630
+ ], UI.prototype, "name", undefined);
630
631
  __decorate([
631
632
  dataType('')
632
- ], UI.prototype, "className", void 0);
633
+ ], UI.prototype, "className", undefined);
633
634
  __decorate([
634
635
  surfaceType('pass-through')
635
- ], UI.prototype, "blendMode", void 0);
636
+ ], UI.prototype, "blendMode", undefined);
636
637
  __decorate([
637
638
  opacityType(1)
638
- ], UI.prototype, "opacity", void 0);
639
+ ], UI.prototype, "opacity", undefined);
639
640
  __decorate([
640
641
  visibleType(true)
641
- ], UI.prototype, "visible", void 0);
642
+ ], UI.prototype, "visible", undefined);
642
643
  __decorate([
643
644
  surfaceType(false)
644
- ], UI.prototype, "locked", void 0);
645
+ ], UI.prototype, "locked", undefined);
645
646
  __decorate([
646
647
  sortType(0)
647
- ], UI.prototype, "zIndex", void 0);
648
+ ], UI.prototype, "zIndex", undefined);
648
649
  __decorate([
649
650
  maskType(false)
650
- ], UI.prototype, "mask", void 0);
651
+ ], UI.prototype, "mask", undefined);
651
652
  __decorate([
652
653
  eraserType(false)
653
- ], UI.prototype, "eraser", void 0);
654
+ ], UI.prototype, "eraser", undefined);
654
655
  __decorate([
655
656
  positionType(0, true)
656
- ], UI.prototype, "x", void 0);
657
+ ], UI.prototype, "x", undefined);
657
658
  __decorate([
658
659
  positionType(0, true)
659
- ], UI.prototype, "y", void 0);
660
+ ], UI.prototype, "y", undefined);
660
661
  __decorate([
661
662
  boundsType(100, true)
662
- ], UI.prototype, "width", void 0);
663
+ ], UI.prototype, "width", undefined);
663
664
  __decorate([
664
665
  boundsType(100, true)
665
- ], UI.prototype, "height", void 0);
666
+ ], UI.prototype, "height", undefined);
666
667
  __decorate([
667
668
  scaleType(1, true)
668
- ], UI.prototype, "scaleX", void 0);
669
+ ], UI.prototype, "scaleX", undefined);
669
670
  __decorate([
670
671
  scaleType(1, true)
671
- ], UI.prototype, "scaleY", void 0);
672
+ ], UI.prototype, "scaleY", undefined);
672
673
  __decorate([
673
674
  rotationType(0, true)
674
- ], UI.prototype, "rotation", void 0);
675
+ ], UI.prototype, "rotation", undefined);
675
676
  __decorate([
676
677
  rotationType(0, true)
677
- ], UI.prototype, "skewX", void 0);
678
+ ], UI.prototype, "skewX", undefined);
678
679
  __decorate([
679
680
  rotationType(0, true)
680
- ], UI.prototype, "skewY", void 0);
681
+ ], UI.prototype, "skewY", undefined);
681
682
  __decorate([
682
683
  positionType(0, true)
683
- ], UI.prototype, "offsetX", void 0);
684
+ ], UI.prototype, "offsetX", undefined);
684
685
  __decorate([
685
686
  positionType(0, true)
686
- ], UI.prototype, "offsetY", void 0);
687
+ ], UI.prototype, "offsetY", undefined);
687
688
  __decorate([
688
689
  positionType(0, true)
689
- ], UI.prototype, "scrollX", void 0);
690
+ ], UI.prototype, "scrollX", undefined);
690
691
  __decorate([
691
692
  positionType(0, true)
692
- ], UI.prototype, "scrollY", void 0);
693
+ ], UI.prototype, "scrollY", undefined);
693
694
  __decorate([
694
695
  autoLayoutType()
695
- ], UI.prototype, "origin", void 0);
696
+ ], UI.prototype, "origin", undefined);
696
697
  __decorate([
697
698
  autoLayoutType()
698
- ], UI.prototype, "around", void 0);
699
+ ], UI.prototype, "around", undefined);
699
700
  __decorate([
700
701
  dataType(false)
701
- ], UI.prototype, "lazy", void 0);
702
+ ], UI.prototype, "lazy", undefined);
702
703
  __decorate([
703
704
  naturalBoundsType(1)
704
- ], UI.prototype, "pixelRatio", void 0);
705
+ ], UI.prototype, "pixelRatio", undefined);
705
706
  __decorate([
706
707
  pathInputType()
707
- ], UI.prototype, "path", void 0);
708
+ ], UI.prototype, "path", undefined);
708
709
  __decorate([
709
710
  pathType()
710
- ], UI.prototype, "windingRule", void 0);
711
+ ], UI.prototype, "windingRule", undefined);
711
712
  __decorate([
712
713
  pathType(true)
713
- ], UI.prototype, "closed", void 0);
714
+ ], UI.prototype, "closed", undefined);
714
715
  __decorate([
715
716
  boundsType(0)
716
- ], UI.prototype, "padding", void 0);
717
+ ], UI.prototype, "padding", undefined);
717
718
  __decorate([
718
719
  boundsType(false)
719
- ], UI.prototype, "lockRatio", void 0);
720
+ ], UI.prototype, "lockRatio", undefined);
720
721
  __decorate([
721
722
  boundsType()
722
- ], UI.prototype, "widthRange", void 0);
723
+ ], UI.prototype, "widthRange", undefined);
723
724
  __decorate([
724
725
  boundsType()
725
- ], UI.prototype, "heightRange", void 0);
726
+ ], UI.prototype, "heightRange", undefined);
726
727
  __decorate([
727
728
  dataType(false)
728
- ], UI.prototype, "draggable", void 0);
729
+ ], UI.prototype, "draggable", undefined);
729
730
  __decorate([
730
731
  dataType()
731
- ], UI.prototype, "dragBounds", void 0);
732
+ ], UI.prototype, "dragBounds", undefined);
732
733
  __decorate([
733
734
  dataType(false)
734
- ], UI.prototype, "editable", void 0);
735
+ ], UI.prototype, "editable", undefined);
735
736
  __decorate([
736
737
  hitType(true)
737
- ], UI.prototype, "hittable", void 0);
738
+ ], UI.prototype, "hittable", undefined);
738
739
  __decorate([
739
740
  hitType('path')
740
- ], UI.prototype, "hitFill", void 0);
741
+ ], UI.prototype, "hitFill", undefined);
741
742
  __decorate([
742
743
  strokeType('path')
743
- ], UI.prototype, "hitStroke", void 0);
744
+ ], UI.prototype, "hitStroke", undefined);
744
745
  __decorate([
745
746
  hitType(false)
746
- ], UI.prototype, "hitBox", void 0);
747
+ ], UI.prototype, "hitBox", undefined);
747
748
  __decorate([
748
749
  hitType(true)
749
- ], UI.prototype, "hitChildren", void 0);
750
+ ], UI.prototype, "hitChildren", undefined);
750
751
  __decorate([
751
752
  hitType(true)
752
- ], UI.prototype, "hitSelf", void 0);
753
+ ], UI.prototype, "hitSelf", undefined);
753
754
  __decorate([
754
755
  hitType()
755
- ], UI.prototype, "hitRadius", void 0);
756
+ ], UI.prototype, "hitRadius", undefined);
756
757
  __decorate([
757
758
  cursorType('')
758
- ], UI.prototype, "cursor", void 0);
759
+ ], UI.prototype, "cursor", undefined);
759
760
  __decorate([
760
761
  surfaceType()
761
- ], UI.prototype, "fill", void 0);
762
+ ], UI.prototype, "fill", undefined);
762
763
  __decorate([
763
764
  strokeType()
764
- ], UI.prototype, "stroke", void 0);
765
+ ], UI.prototype, "stroke", undefined);
765
766
  __decorate([
766
767
  strokeType('inside')
767
- ], UI.prototype, "strokeAlign", void 0);
768
+ ], UI.prototype, "strokeAlign", undefined);
768
769
  __decorate([
769
770
  strokeType(1)
770
- ], UI.prototype, "strokeWidth", void 0);
771
+ ], UI.prototype, "strokeWidth", undefined);
771
772
  __decorate([
772
773
  strokeType(false)
773
- ], UI.prototype, "strokeWidthFixed", void 0);
774
+ ], UI.prototype, "strokeWidthFixed", undefined);
774
775
  __decorate([
775
776
  strokeType('none')
776
- ], UI.prototype, "strokeCap", void 0);
777
+ ], UI.prototype, "strokeCap", undefined);
777
778
  __decorate([
778
779
  strokeType('miter')
779
- ], UI.prototype, "strokeJoin", void 0);
780
+ ], UI.prototype, "strokeJoin", undefined);
780
781
  __decorate([
781
782
  strokeType()
782
- ], UI.prototype, "dashPattern", void 0);
783
+ ], UI.prototype, "dashPattern", undefined);
783
784
  __decorate([
784
785
  strokeType()
785
- ], UI.prototype, "dashOffset", void 0);
786
+ ], UI.prototype, "dashOffset", undefined);
786
787
  __decorate([
787
788
  strokeType(10)
788
- ], UI.prototype, "miterLimit", void 0);
789
+ ], UI.prototype, "miterLimit", undefined);
789
790
  __decorate([
790
791
  pathType(0)
791
- ], UI.prototype, "cornerRadius", void 0);
792
+ ], UI.prototype, "cornerRadius", undefined);
792
793
  __decorate([
793
794
  pathType()
794
- ], UI.prototype, "cornerSmoothing", void 0);
795
+ ], UI.prototype, "cornerSmoothing", undefined);
795
796
  __decorate([
796
797
  effectType()
797
- ], UI.prototype, "shadow", void 0);
798
+ ], UI.prototype, "shadow", undefined);
798
799
  __decorate([
799
800
  effectType()
800
- ], UI.prototype, "innerShadow", void 0);
801
+ ], UI.prototype, "innerShadow", undefined);
801
802
  __decorate([
802
803
  effectType()
803
- ], UI.prototype, "blur", void 0);
804
+ ], UI.prototype, "blur", undefined);
804
805
  __decorate([
805
806
  effectType()
806
- ], UI.prototype, "backgroundBlur", void 0);
807
+ ], UI.prototype, "backgroundBlur", undefined);
807
808
  __decorate([
808
809
  effectType()
809
- ], UI.prototype, "grayscale", void 0);
810
+ ], UI.prototype, "grayscale", undefined);
810
811
  __decorate([
811
812
  dataType({})
812
- ], UI.prototype, "data", void 0);
813
+ ], UI.prototype, "data", undefined);
813
814
  __decorate([
814
815
  rewrite(Leaf.prototype.reset)
815
816
  ], UI.prototype, "reset", null);
@@ -870,7 +871,7 @@ let Group = class Group extends UI {
870
871
  };
871
872
  __decorate([
872
873
  dataProcessor(GroupData)
873
- ], Group.prototype, "__", void 0);
874
+ ], Group.prototype, "__", undefined);
874
875
  Group = __decorate([
875
876
  useModule(Branch),
876
877
  registerUI()
@@ -1041,8 +1042,6 @@ let Leafer = Leafer_1 = class Leafer extends Group {
1041
1042
  __setAttr(attrName, newValue) {
1042
1043
  if (this.canvas) {
1043
1044
  if (canvasSizeAttrs.includes(attrName)) {
1044
- if (!newValue)
1045
- debug.warn(attrName + ' is 0');
1046
1045
  this.__changeCanvasSize(attrName, newValue);
1047
1046
  }
1048
1047
  else if (attrName === 'fill') {
@@ -1245,10 +1244,10 @@ let Leafer = Leafer_1 = class Leafer extends Group {
1245
1244
  Leafer.list = new LeafList();
1246
1245
  __decorate([
1247
1246
  dataProcessor(LeaferData)
1248
- ], Leafer.prototype, "__", void 0);
1247
+ ], Leafer.prototype, "__", undefined);
1249
1248
  __decorate([
1250
1249
  boundsType()
1251
- ], Leafer.prototype, "pixelRatio", void 0);
1250
+ ], Leafer.prototype, "pixelRatio", undefined);
1252
1251
  Leafer = Leafer_1 = __decorate([
1253
1252
  registerUI()
1254
1253
  ], Leafer);
@@ -1261,7 +1260,7 @@ let Rect = class Rect extends UI {
1261
1260
  };
1262
1261
  __decorate([
1263
1262
  dataProcessor(RectData)
1264
- ], Rect.prototype, "__", void 0);
1263
+ ], Rect.prototype, "__", undefined);
1265
1264
  Rect = __decorate([
1266
1265
  useModule(RectRender),
1267
1266
  rewriteAble(),
@@ -1286,6 +1285,8 @@ let Box = class Box extends Group {
1286
1285
  const data = this.__;
1287
1286
  if (this.children.length) {
1288
1287
  if (data.__autoSide) {
1288
+ if (data.__hasSurface)
1289
+ this.__extraUpdate();
1289
1290
  super.__updateBoxBounds();
1290
1291
  const { boxBounds } = this.__layout;
1291
1292
  if (!data.__autoSize) {
@@ -1350,13 +1351,13 @@ let Box = class Box extends Group {
1350
1351
  };
1351
1352
  __decorate([
1352
1353
  dataProcessor(BoxData)
1353
- ], Box.prototype, "__", void 0);
1354
+ ], Box.prototype, "__", undefined);
1354
1355
  __decorate([
1355
1356
  dataType(false)
1356
- ], Box.prototype, "resizeChildren", void 0);
1357
+ ], Box.prototype, "resizeChildren", undefined);
1357
1358
  __decorate([
1358
1359
  affectRenderBoundsType('show')
1359
- ], Box.prototype, "overflow", void 0);
1360
+ ], Box.prototype, "overflow", undefined);
1360
1361
  __decorate([
1361
1362
  rewrite(rect.__updateStrokeSpread)
1362
1363
  ], Box.prototype, "__updateStrokeSpread", null);
@@ -1395,13 +1396,13 @@ let Frame = class Frame extends Box {
1395
1396
  };
1396
1397
  __decorate([
1397
1398
  dataProcessor(FrameData)
1398
- ], Frame.prototype, "__", void 0);
1399
+ ], Frame.prototype, "__", undefined);
1399
1400
  __decorate([
1400
1401
  surfaceType('#FFFFFF')
1401
- ], Frame.prototype, "fill", void 0);
1402
+ ], Frame.prototype, "fill", undefined);
1402
1403
  __decorate([
1403
1404
  affectRenderBoundsType('hide')
1404
- ], Frame.prototype, "overflow", void 0);
1405
+ ], Frame.prototype, "overflow", undefined);
1405
1406
  Frame = __decorate([
1406
1407
  registerUI()
1407
1408
  ], Frame);
@@ -1448,16 +1449,16 @@ let Ellipse = class Ellipse extends UI {
1448
1449
  };
1449
1450
  __decorate([
1450
1451
  dataProcessor(EllipseData)
1451
- ], Ellipse.prototype, "__", void 0);
1452
+ ], Ellipse.prototype, "__", undefined);
1452
1453
  __decorate([
1453
1454
  pathType(0)
1454
- ], Ellipse.prototype, "innerRadius", void 0);
1455
+ ], Ellipse.prototype, "innerRadius", undefined);
1455
1456
  __decorate([
1456
1457
  pathType(0)
1457
- ], Ellipse.prototype, "startAngle", void 0);
1458
+ ], Ellipse.prototype, "startAngle", undefined);
1458
1459
  __decorate([
1459
1460
  pathType(0)
1460
- ], Ellipse.prototype, "endAngle", void 0);
1461
+ ], Ellipse.prototype, "endAngle", undefined);
1461
1462
  Ellipse = __decorate([
1462
1463
  registerUI()
1463
1464
  ], Ellipse);
@@ -1516,22 +1517,22 @@ let Line = class Line extends UI {
1516
1517
  };
1517
1518
  __decorate([
1518
1519
  dataProcessor(LineData)
1519
- ], Line.prototype, "__", void 0);
1520
+ ], Line.prototype, "__", undefined);
1520
1521
  __decorate([
1521
1522
  affectStrokeBoundsType('center')
1522
- ], Line.prototype, "strokeAlign", void 0);
1523
+ ], Line.prototype, "strokeAlign", undefined);
1523
1524
  __decorate([
1524
1525
  boundsType(0)
1525
- ], Line.prototype, "height", void 0);
1526
+ ], Line.prototype, "height", undefined);
1526
1527
  __decorate([
1527
1528
  pathType()
1528
- ], Line.prototype, "points", void 0);
1529
+ ], Line.prototype, "points", undefined);
1529
1530
  __decorate([
1530
1531
  pathType(0)
1531
- ], Line.prototype, "curve", void 0);
1532
+ ], Line.prototype, "curve", undefined);
1532
1533
  __decorate([
1533
1534
  pathType(false)
1534
- ], Line.prototype, "closed", void 0);
1535
+ ], Line.prototype, "closed", undefined);
1535
1536
  Line = __decorate([
1536
1537
  registerUI()
1537
1538
  ], Line);
@@ -1564,16 +1565,16 @@ let Polygon = class Polygon extends UI {
1564
1565
  };
1565
1566
  __decorate([
1566
1567
  dataProcessor(PolygonData)
1567
- ], Polygon.prototype, "__", void 0);
1568
+ ], Polygon.prototype, "__", undefined);
1568
1569
  __decorate([
1569
1570
  pathType(3)
1570
- ], Polygon.prototype, "sides", void 0);
1571
+ ], Polygon.prototype, "sides", undefined);
1571
1572
  __decorate([
1572
1573
  pathType()
1573
- ], Polygon.prototype, "points", void 0);
1574
+ ], Polygon.prototype, "points", undefined);
1574
1575
  __decorate([
1575
1576
  pathType(0)
1576
- ], Polygon.prototype, "curve", void 0);
1577
+ ], Polygon.prototype, "curve", undefined);
1577
1578
  __decorate([
1578
1579
  rewrite(line.__updateRenderPath)
1579
1580
  ], Polygon.prototype, "__updateRenderPath", null);
@@ -1605,13 +1606,13 @@ let Star = class Star extends UI {
1605
1606
  };
1606
1607
  __decorate([
1607
1608
  dataProcessor(StarData)
1608
- ], Star.prototype, "__", void 0);
1609
+ ], Star.prototype, "__", undefined);
1609
1610
  __decorate([
1610
1611
  pathType(5)
1611
- ], Star.prototype, "corners", void 0);
1612
+ ], Star.prototype, "corners", undefined);
1612
1613
  __decorate([
1613
1614
  pathType(0.382)
1614
- ], Star.prototype, "innerRadius", void 0);
1615
+ ], Star.prototype, "innerRadius", undefined);
1615
1616
  Star = __decorate([
1616
1617
  registerUI()
1617
1618
  ], Star);
@@ -1633,10 +1634,10 @@ let Image = class Image extends Rect {
1633
1634
  };
1634
1635
  __decorate([
1635
1636
  dataProcessor(ImageData)
1636
- ], Image.prototype, "__", void 0);
1637
+ ], Image.prototype, "__", undefined);
1637
1638
  __decorate([
1638
1639
  boundsType('')
1639
- ], Image.prototype, "url", void 0);
1640
+ ], Image.prototype, "url", undefined);
1640
1641
  Image = __decorate([
1641
1642
  registerUI()
1642
1643
  ], Image);
@@ -1699,25 +1700,25 @@ let Canvas = class Canvas extends Rect {
1699
1700
  };
1700
1701
  __decorate([
1701
1702
  dataProcessor(CanvasData)
1702
- ], Canvas.prototype, "__", void 0);
1703
+ ], Canvas.prototype, "__", undefined);
1703
1704
  __decorate([
1704
1705
  resizeType(100)
1705
- ], Canvas.prototype, "width", void 0);
1706
+ ], Canvas.prototype, "width", undefined);
1706
1707
  __decorate([
1707
1708
  resizeType(100)
1708
- ], Canvas.prototype, "height", void 0);
1709
+ ], Canvas.prototype, "height", undefined);
1709
1710
  __decorate([
1710
1711
  resizeType(1)
1711
- ], Canvas.prototype, "pixelRatio", void 0);
1712
+ ], Canvas.prototype, "pixelRatio", undefined);
1712
1713
  __decorate([
1713
1714
  resizeType(true)
1714
- ], Canvas.prototype, "smooth", void 0);
1715
+ ], Canvas.prototype, "smooth", undefined);
1715
1716
  __decorate([
1716
1717
  dataType(false)
1717
- ], Canvas.prototype, "safeResize", void 0);
1718
+ ], Canvas.prototype, "safeResize", undefined);
1718
1719
  __decorate([
1719
1720
  resizeType()
1720
- ], Canvas.prototype, "contextSettings", void 0);
1721
+ ], Canvas.prototype, "contextSettings", undefined);
1721
1722
  Canvas = __decorate([
1722
1723
  registerUI()
1723
1724
  ], Canvas);
@@ -1808,76 +1809,76 @@ let Text = class Text extends UI {
1808
1809
  };
1809
1810
  __decorate([
1810
1811
  dataProcessor(TextData)
1811
- ], Text.prototype, "__", void 0);
1812
+ ], Text.prototype, "__", undefined);
1812
1813
  __decorate([
1813
1814
  boundsType(0)
1814
- ], Text.prototype, "width", void 0);
1815
+ ], Text.prototype, "width", undefined);
1815
1816
  __decorate([
1816
1817
  boundsType(0)
1817
- ], Text.prototype, "height", void 0);
1818
+ ], Text.prototype, "height", undefined);
1818
1819
  __decorate([
1819
1820
  dataType(false)
1820
- ], Text.prototype, "resizeFontSize", void 0);
1821
+ ], Text.prototype, "resizeFontSize", undefined);
1821
1822
  __decorate([
1822
1823
  surfaceType('#000000')
1823
- ], Text.prototype, "fill", void 0);
1824
+ ], Text.prototype, "fill", undefined);
1824
1825
  __decorate([
1825
1826
  affectStrokeBoundsType('outside')
1826
- ], Text.prototype, "strokeAlign", void 0);
1827
+ ], Text.prototype, "strokeAlign", undefined);
1827
1828
  __decorate([
1828
1829
  hitType('all')
1829
- ], Text.prototype, "hitFill", void 0);
1830
+ ], Text.prototype, "hitFill", undefined);
1830
1831
  __decorate([
1831
1832
  boundsType('')
1832
- ], Text.prototype, "text", void 0);
1833
+ ], Text.prototype, "text", undefined);
1833
1834
  __decorate([
1834
- boundsType('L')
1835
- ], Text.prototype, "fontFamily", void 0);
1835
+ boundsType('caption')
1836
+ ], Text.prototype, "fontFamily", undefined);
1836
1837
  __decorate([
1837
1838
  boundsType(12)
1838
- ], Text.prototype, "fontSize", void 0);
1839
+ ], Text.prototype, "fontSize", undefined);
1839
1840
  __decorate([
1840
1841
  boundsType('normal')
1841
- ], Text.prototype, "fontWeight", void 0);
1842
+ ], Text.prototype, "fontWeight", undefined);
1842
1843
  __decorate([
1843
1844
  boundsType(false)
1844
- ], Text.prototype, "italic", void 0);
1845
+ ], Text.prototype, "italic", undefined);
1845
1846
  __decorate([
1846
1847
  boundsType('none')
1847
- ], Text.prototype, "textCase", void 0);
1848
+ ], Text.prototype, "textCase", undefined);
1848
1849
  __decorate([
1849
1850
  boundsType('none')
1850
- ], Text.prototype, "textDecoration", void 0);
1851
+ ], Text.prototype, "textDecoration", undefined);
1851
1852
  __decorate([
1852
1853
  boundsType(0)
1853
- ], Text.prototype, "letterSpacing", void 0);
1854
+ ], Text.prototype, "letterSpacing", undefined);
1854
1855
  __decorate([
1855
1856
  boundsType({ type: 'percent', value: 1.5 })
1856
- ], Text.prototype, "lineHeight", void 0);
1857
+ ], Text.prototype, "lineHeight", undefined);
1857
1858
  __decorate([
1858
1859
  boundsType(0)
1859
- ], Text.prototype, "paraIndent", void 0);
1860
+ ], Text.prototype, "paraIndent", undefined);
1860
1861
  __decorate([
1861
1862
  boundsType(0)
1862
- ], Text.prototype, "paraSpacing", void 0);
1863
+ ], Text.prototype, "paraSpacing", undefined);
1863
1864
  __decorate([
1864
1865
  boundsType('x')
1865
- ], Text.prototype, "writingMode", void 0);
1866
+ ], Text.prototype, "writingMode", undefined);
1866
1867
  __decorate([
1867
1868
  boundsType('left')
1868
- ], Text.prototype, "textAlign", void 0);
1869
+ ], Text.prototype, "textAlign", undefined);
1869
1870
  __decorate([
1870
1871
  boundsType('top')
1871
- ], Text.prototype, "verticalAlign", void 0);
1872
+ ], Text.prototype, "verticalAlign", undefined);
1872
1873
  __decorate([
1873
1874
  boundsType(true)
1874
- ], Text.prototype, "autoSizeAlign", void 0);
1875
+ ], Text.prototype, "autoSizeAlign", undefined);
1875
1876
  __decorate([
1876
1877
  boundsType('normal')
1877
- ], Text.prototype, "textWrap", void 0);
1878
+ ], Text.prototype, "textWrap", undefined);
1878
1879
  __decorate([
1879
1880
  boundsType('show')
1880
- ], Text.prototype, "textOverflow", void 0);
1881
+ ], Text.prototype, "textOverflow", undefined);
1881
1882
  Text = __decorate([
1882
1883
  registerUI()
1883
1884
  ], Text);
@@ -1890,10 +1891,10 @@ let Path = class Path extends UI {
1890
1891
  };
1891
1892
  __decorate([
1892
1893
  dataProcessor(PathData)
1893
- ], Path.prototype, "__", void 0);
1894
+ ], Path.prototype, "__", undefined);
1894
1895
  __decorate([
1895
1896
  affectStrokeBoundsType('center')
1896
- ], Path.prototype, "strokeAlign", void 0);
1897
+ ], Path.prototype, "strokeAlign", undefined);
1897
1898
  Path = __decorate([
1898
1899
  registerUI()
1899
1900
  ], Path);
@@ -1932,10 +1933,10 @@ let Pen = class Pen extends Group {
1932
1933
  };
1933
1934
  __decorate([
1934
1935
  dataProcessor(PenData)
1935
- ], Pen.prototype, "__", void 0);
1936
+ ], Pen.prototype, "__", undefined);
1936
1937
  __decorate([
1937
1938
  penPathType()
1938
- ], Pen.prototype, "path", void 0);
1939
+ ], Pen.prototype, "path", undefined);
1939
1940
  Pen = __decorate([
1940
1941
  useModule(PathCreator, ['set', 'path', 'paint']),
1941
1942
  registerUI()