@leafer-ui/draw 1.3.1 → 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; }
@@ -586,7 +587,7 @@ let UI = UI_1 = class UI extends Leaf {
586
587
  animate(_keyframe, _options, _type, _isTemp) {
587
588
  return Plugin.need('animate');
588
589
  }
589
- killAnimate(_type, _killStyle) { }
590
+ killAnimate(_type, _nextStyle) { }
590
591
  export(_filename, _options) {
591
592
  return Plugin.need('export');
592
593
  }
@@ -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') {
@@ -1082,8 +1081,6 @@ let Leafer = Leafer_1 = class Leafer extends Group {
1082
1081
  this.created = true;
1083
1082
  }
1084
1083
  __onReady() {
1085
- if (this.ready)
1086
- return;
1087
1084
  this.ready = true;
1088
1085
  this.emitLeafer(LeaferEvent.BEFORE_READY);
1089
1086
  this.emitLeafer(LeaferEvent.READY);
@@ -1097,6 +1094,20 @@ let Leafer = Leafer_1 = class Leafer extends Group {
1097
1094
  this.emitLeafer(LeaferEvent.VIEW_READY);
1098
1095
  WaitHelper.run(this.__viewReadyWait);
1099
1096
  }
1097
+ __onLayoutEnd() {
1098
+ const { grow, growWidth, growHeight } = this.config;
1099
+ if (grow) {
1100
+ let { width, height, pixelRatio } = this;
1101
+ const bounds = grow === 'box' ? this.worldBoxBounds : this.__world;
1102
+ if (growWidth !== false)
1103
+ width = Math.max(1, bounds.x + bounds.width);
1104
+ if (growHeight !== false)
1105
+ height = Math.max(1, bounds.y + bounds.height);
1106
+ this.__doResize({ width, height, pixelRatio });
1107
+ }
1108
+ if (!this.ready)
1109
+ this.__onReady();
1110
+ }
1100
1111
  __onNextRender() {
1101
1112
  if (this.viewReady) {
1102
1113
  WaitHelper.run(this.__nextRenderWait);
@@ -1190,10 +1201,9 @@ let Leafer = Leafer_1 = class Leafer extends Group {
1190
1201
  const runId = Run.start('FirstCreate ' + this.innerName);
1191
1202
  this.once(LeaferEvent.START, () => Run.end(runId));
1192
1203
  this.once(LayoutEvent.START, () => this.updateLazyBounds());
1193
- this.once(LayoutEvent.END, () => this.__onReady());
1194
1204
  this.once(RenderEvent.START, () => this.__onCreated());
1195
1205
  this.once(RenderEvent.END, () => this.__onViewReady());
1196
- this.__eventIds.push(this.on_(WatchEvent.DATA, this.__onWatchData, this), this.on_(RenderEvent.NEXT, this.__onNextRender, this));
1206
+ this.__eventIds.push(this.on_(WatchEvent.DATA, this.__onWatchData, this), this.on_(LayoutEvent.END, this.__onLayoutEnd, this), this.on_(RenderEvent.NEXT, this.__onNextRender, this));
1197
1207
  }
1198
1208
  __removeListenEvents() {
1199
1209
  this.off_(this.__eventIds);
@@ -1234,10 +1244,10 @@ let Leafer = Leafer_1 = class Leafer extends Group {
1234
1244
  Leafer.list = new LeafList();
1235
1245
  __decorate([
1236
1246
  dataProcessor(LeaferData)
1237
- ], Leafer.prototype, "__", void 0);
1247
+ ], Leafer.prototype, "__", undefined);
1238
1248
  __decorate([
1239
1249
  boundsType()
1240
- ], Leafer.prototype, "pixelRatio", void 0);
1250
+ ], Leafer.prototype, "pixelRatio", undefined);
1241
1251
  Leafer = Leafer_1 = __decorate([
1242
1252
  registerUI()
1243
1253
  ], Leafer);
@@ -1250,7 +1260,7 @@ let Rect = class Rect extends UI {
1250
1260
  };
1251
1261
  __decorate([
1252
1262
  dataProcessor(RectData)
1253
- ], Rect.prototype, "__", void 0);
1263
+ ], Rect.prototype, "__", undefined);
1254
1264
  Rect = __decorate([
1255
1265
  useModule(RectRender),
1256
1266
  rewriteAble(),
@@ -1275,6 +1285,8 @@ let Box = class Box extends Group {
1275
1285
  const data = this.__;
1276
1286
  if (this.children.length) {
1277
1287
  if (data.__autoSide) {
1288
+ if (data.__hasSurface)
1289
+ this.__extraUpdate();
1278
1290
  super.__updateBoxBounds();
1279
1291
  const { boxBounds } = this.__layout;
1280
1292
  if (!data.__autoSize) {
@@ -1339,13 +1351,13 @@ let Box = class Box extends Group {
1339
1351
  };
1340
1352
  __decorate([
1341
1353
  dataProcessor(BoxData)
1342
- ], Box.prototype, "__", void 0);
1354
+ ], Box.prototype, "__", undefined);
1343
1355
  __decorate([
1344
1356
  dataType(false)
1345
- ], Box.prototype, "resizeChildren", void 0);
1357
+ ], Box.prototype, "resizeChildren", undefined);
1346
1358
  __decorate([
1347
1359
  affectRenderBoundsType('show')
1348
- ], Box.prototype, "overflow", void 0);
1360
+ ], Box.prototype, "overflow", undefined);
1349
1361
  __decorate([
1350
1362
  rewrite(rect.__updateStrokeSpread)
1351
1363
  ], Box.prototype, "__updateStrokeSpread", null);
@@ -1384,13 +1396,13 @@ let Frame = class Frame extends Box {
1384
1396
  };
1385
1397
  __decorate([
1386
1398
  dataProcessor(FrameData)
1387
- ], Frame.prototype, "__", void 0);
1399
+ ], Frame.prototype, "__", undefined);
1388
1400
  __decorate([
1389
1401
  surfaceType('#FFFFFF')
1390
- ], Frame.prototype, "fill", void 0);
1402
+ ], Frame.prototype, "fill", undefined);
1391
1403
  __decorate([
1392
1404
  affectRenderBoundsType('hide')
1393
- ], Frame.prototype, "overflow", void 0);
1405
+ ], Frame.prototype, "overflow", undefined);
1394
1406
  Frame = __decorate([
1395
1407
  registerUI()
1396
1408
  ], Frame);
@@ -1437,16 +1449,16 @@ let Ellipse = class Ellipse extends UI {
1437
1449
  };
1438
1450
  __decorate([
1439
1451
  dataProcessor(EllipseData)
1440
- ], Ellipse.prototype, "__", void 0);
1452
+ ], Ellipse.prototype, "__", undefined);
1441
1453
  __decorate([
1442
1454
  pathType(0)
1443
- ], Ellipse.prototype, "innerRadius", void 0);
1455
+ ], Ellipse.prototype, "innerRadius", undefined);
1444
1456
  __decorate([
1445
1457
  pathType(0)
1446
- ], Ellipse.prototype, "startAngle", void 0);
1458
+ ], Ellipse.prototype, "startAngle", undefined);
1447
1459
  __decorate([
1448
1460
  pathType(0)
1449
- ], Ellipse.prototype, "endAngle", void 0);
1461
+ ], Ellipse.prototype, "endAngle", undefined);
1450
1462
  Ellipse = __decorate([
1451
1463
  registerUI()
1452
1464
  ], Ellipse);
@@ -1505,22 +1517,22 @@ let Line = class Line extends UI {
1505
1517
  };
1506
1518
  __decorate([
1507
1519
  dataProcessor(LineData)
1508
- ], Line.prototype, "__", void 0);
1520
+ ], Line.prototype, "__", undefined);
1509
1521
  __decorate([
1510
1522
  affectStrokeBoundsType('center')
1511
- ], Line.prototype, "strokeAlign", void 0);
1523
+ ], Line.prototype, "strokeAlign", undefined);
1512
1524
  __decorate([
1513
1525
  boundsType(0)
1514
- ], Line.prototype, "height", void 0);
1526
+ ], Line.prototype, "height", undefined);
1515
1527
  __decorate([
1516
1528
  pathType()
1517
- ], Line.prototype, "points", void 0);
1529
+ ], Line.prototype, "points", undefined);
1518
1530
  __decorate([
1519
1531
  pathType(0)
1520
- ], Line.prototype, "curve", void 0);
1532
+ ], Line.prototype, "curve", undefined);
1521
1533
  __decorate([
1522
1534
  pathType(false)
1523
- ], Line.prototype, "closed", void 0);
1535
+ ], Line.prototype, "closed", undefined);
1524
1536
  Line = __decorate([
1525
1537
  registerUI()
1526
1538
  ], Line);
@@ -1553,16 +1565,16 @@ let Polygon = class Polygon extends UI {
1553
1565
  };
1554
1566
  __decorate([
1555
1567
  dataProcessor(PolygonData)
1556
- ], Polygon.prototype, "__", void 0);
1568
+ ], Polygon.prototype, "__", undefined);
1557
1569
  __decorate([
1558
1570
  pathType(3)
1559
- ], Polygon.prototype, "sides", void 0);
1571
+ ], Polygon.prototype, "sides", undefined);
1560
1572
  __decorate([
1561
1573
  pathType()
1562
- ], Polygon.prototype, "points", void 0);
1574
+ ], Polygon.prototype, "points", undefined);
1563
1575
  __decorate([
1564
1576
  pathType(0)
1565
- ], Polygon.prototype, "curve", void 0);
1577
+ ], Polygon.prototype, "curve", undefined);
1566
1578
  __decorate([
1567
1579
  rewrite(line.__updateRenderPath)
1568
1580
  ], Polygon.prototype, "__updateRenderPath", null);
@@ -1594,13 +1606,13 @@ let Star = class Star extends UI {
1594
1606
  };
1595
1607
  __decorate([
1596
1608
  dataProcessor(StarData)
1597
- ], Star.prototype, "__", void 0);
1609
+ ], Star.prototype, "__", undefined);
1598
1610
  __decorate([
1599
1611
  pathType(5)
1600
- ], Star.prototype, "corners", void 0);
1612
+ ], Star.prototype, "corners", undefined);
1601
1613
  __decorate([
1602
1614
  pathType(0.382)
1603
- ], Star.prototype, "innerRadius", void 0);
1615
+ ], Star.prototype, "innerRadius", undefined);
1604
1616
  Star = __decorate([
1605
1617
  registerUI()
1606
1618
  ], Star);
@@ -1622,10 +1634,10 @@ let Image = class Image extends Rect {
1622
1634
  };
1623
1635
  __decorate([
1624
1636
  dataProcessor(ImageData)
1625
- ], Image.prototype, "__", void 0);
1637
+ ], Image.prototype, "__", undefined);
1626
1638
  __decorate([
1627
1639
  boundsType('')
1628
- ], Image.prototype, "url", void 0);
1640
+ ], Image.prototype, "url", undefined);
1629
1641
  Image = __decorate([
1630
1642
  registerUI()
1631
1643
  ], Image);
@@ -1688,25 +1700,25 @@ let Canvas = class Canvas extends Rect {
1688
1700
  };
1689
1701
  __decorate([
1690
1702
  dataProcessor(CanvasData)
1691
- ], Canvas.prototype, "__", void 0);
1703
+ ], Canvas.prototype, "__", undefined);
1692
1704
  __decorate([
1693
1705
  resizeType(100)
1694
- ], Canvas.prototype, "width", void 0);
1706
+ ], Canvas.prototype, "width", undefined);
1695
1707
  __decorate([
1696
1708
  resizeType(100)
1697
- ], Canvas.prototype, "height", void 0);
1709
+ ], Canvas.prototype, "height", undefined);
1698
1710
  __decorate([
1699
1711
  resizeType(1)
1700
- ], Canvas.prototype, "pixelRatio", void 0);
1712
+ ], Canvas.prototype, "pixelRatio", undefined);
1701
1713
  __decorate([
1702
1714
  resizeType(true)
1703
- ], Canvas.prototype, "smooth", void 0);
1715
+ ], Canvas.prototype, "smooth", undefined);
1704
1716
  __decorate([
1705
1717
  dataType(false)
1706
- ], Canvas.prototype, "safeResize", void 0);
1718
+ ], Canvas.prototype, "safeResize", undefined);
1707
1719
  __decorate([
1708
1720
  resizeType()
1709
- ], Canvas.prototype, "contextSettings", void 0);
1721
+ ], Canvas.prototype, "contextSettings", undefined);
1710
1722
  Canvas = __decorate([
1711
1723
  registerUI()
1712
1724
  ], Canvas);
@@ -1797,76 +1809,76 @@ let Text = class Text extends UI {
1797
1809
  };
1798
1810
  __decorate([
1799
1811
  dataProcessor(TextData)
1800
- ], Text.prototype, "__", void 0);
1812
+ ], Text.prototype, "__", undefined);
1801
1813
  __decorate([
1802
1814
  boundsType(0)
1803
- ], Text.prototype, "width", void 0);
1815
+ ], Text.prototype, "width", undefined);
1804
1816
  __decorate([
1805
1817
  boundsType(0)
1806
- ], Text.prototype, "height", void 0);
1818
+ ], Text.prototype, "height", undefined);
1807
1819
  __decorate([
1808
1820
  dataType(false)
1809
- ], Text.prototype, "resizeFontSize", void 0);
1821
+ ], Text.prototype, "resizeFontSize", undefined);
1810
1822
  __decorate([
1811
1823
  surfaceType('#000000')
1812
- ], Text.prototype, "fill", void 0);
1824
+ ], Text.prototype, "fill", undefined);
1813
1825
  __decorate([
1814
1826
  affectStrokeBoundsType('outside')
1815
- ], Text.prototype, "strokeAlign", void 0);
1827
+ ], Text.prototype, "strokeAlign", undefined);
1816
1828
  __decorate([
1817
1829
  hitType('all')
1818
- ], Text.prototype, "hitFill", void 0);
1830
+ ], Text.prototype, "hitFill", undefined);
1819
1831
  __decorate([
1820
1832
  boundsType('')
1821
- ], Text.prototype, "text", void 0);
1833
+ ], Text.prototype, "text", undefined);
1822
1834
  __decorate([
1823
- boundsType('L')
1824
- ], Text.prototype, "fontFamily", void 0);
1835
+ boundsType('caption')
1836
+ ], Text.prototype, "fontFamily", undefined);
1825
1837
  __decorate([
1826
1838
  boundsType(12)
1827
- ], Text.prototype, "fontSize", void 0);
1839
+ ], Text.prototype, "fontSize", undefined);
1828
1840
  __decorate([
1829
1841
  boundsType('normal')
1830
- ], Text.prototype, "fontWeight", void 0);
1842
+ ], Text.prototype, "fontWeight", undefined);
1831
1843
  __decorate([
1832
1844
  boundsType(false)
1833
- ], Text.prototype, "italic", void 0);
1845
+ ], Text.prototype, "italic", undefined);
1834
1846
  __decorate([
1835
1847
  boundsType('none')
1836
- ], Text.prototype, "textCase", void 0);
1848
+ ], Text.prototype, "textCase", undefined);
1837
1849
  __decorate([
1838
1850
  boundsType('none')
1839
- ], Text.prototype, "textDecoration", void 0);
1851
+ ], Text.prototype, "textDecoration", undefined);
1840
1852
  __decorate([
1841
1853
  boundsType(0)
1842
- ], Text.prototype, "letterSpacing", void 0);
1854
+ ], Text.prototype, "letterSpacing", undefined);
1843
1855
  __decorate([
1844
1856
  boundsType({ type: 'percent', value: 1.5 })
1845
- ], Text.prototype, "lineHeight", void 0);
1857
+ ], Text.prototype, "lineHeight", undefined);
1846
1858
  __decorate([
1847
1859
  boundsType(0)
1848
- ], Text.prototype, "paraIndent", void 0);
1860
+ ], Text.prototype, "paraIndent", undefined);
1849
1861
  __decorate([
1850
1862
  boundsType(0)
1851
- ], Text.prototype, "paraSpacing", void 0);
1863
+ ], Text.prototype, "paraSpacing", undefined);
1852
1864
  __decorate([
1853
1865
  boundsType('x')
1854
- ], Text.prototype, "writingMode", void 0);
1866
+ ], Text.prototype, "writingMode", undefined);
1855
1867
  __decorate([
1856
1868
  boundsType('left')
1857
- ], Text.prototype, "textAlign", void 0);
1869
+ ], Text.prototype, "textAlign", undefined);
1858
1870
  __decorate([
1859
1871
  boundsType('top')
1860
- ], Text.prototype, "verticalAlign", void 0);
1872
+ ], Text.prototype, "verticalAlign", undefined);
1861
1873
  __decorate([
1862
1874
  boundsType(true)
1863
- ], Text.prototype, "autoSizeAlign", void 0);
1875
+ ], Text.prototype, "autoSizeAlign", undefined);
1864
1876
  __decorate([
1865
1877
  boundsType('normal')
1866
- ], Text.prototype, "textWrap", void 0);
1878
+ ], Text.prototype, "textWrap", undefined);
1867
1879
  __decorate([
1868
1880
  boundsType('show')
1869
- ], Text.prototype, "textOverflow", void 0);
1881
+ ], Text.prototype, "textOverflow", undefined);
1870
1882
  Text = __decorate([
1871
1883
  registerUI()
1872
1884
  ], Text);
@@ -1879,10 +1891,10 @@ let Path = class Path extends UI {
1879
1891
  };
1880
1892
  __decorate([
1881
1893
  dataProcessor(PathData)
1882
- ], Path.prototype, "__", void 0);
1894
+ ], Path.prototype, "__", undefined);
1883
1895
  __decorate([
1884
1896
  affectStrokeBoundsType('center')
1885
- ], Path.prototype, "strokeAlign", void 0);
1897
+ ], Path.prototype, "strokeAlign", undefined);
1886
1898
  Path = __decorate([
1887
1899
  registerUI()
1888
1900
  ], Path);
@@ -1921,10 +1933,10 @@ let Pen = class Pen extends Group {
1921
1933
  };
1922
1934
  __decorate([
1923
1935
  dataProcessor(PenData)
1924
- ], Pen.prototype, "__", void 0);
1936
+ ], Pen.prototype, "__", undefined);
1925
1937
  __decorate([
1926
1938
  penPathType()
1927
- ], Pen.prototype, "path", void 0);
1939
+ ], Pen.prototype, "path", undefined);
1928
1940
  Pen = __decorate([
1929
1941
  useModule(PathCreator, ['set', 'path', 'paint']),
1930
1942
  registerUI()