@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.cjs CHANGED
@@ -16,7 +16,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16
16
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17
17
  PERFORMANCE OF THIS SOFTWARE.
18
18
  ***************************************************************************** */
19
- /* global Reflect, Promise, SuppressedError, Symbol */
19
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
20
20
 
21
21
 
22
22
  function __decorate(decorators, target, key, desc) {
@@ -115,6 +115,7 @@ class UIData extends core.LeafData {
115
115
  return t.fill && this.__hasStroke;
116
116
  }
117
117
  get __clipAfterFill() { const t = this; return (t.cornerRadius || t.innerShadow || t.__pathInputed); }
118
+ get __hasSurface() { const t = this; return (t.fill || t.stroke); }
118
119
  get __autoWidth() { return !this._width; }
119
120
  get __autoHeight() { return !this._height; }
120
121
  get __autoSide() { return !this._width || !this._height; }
@@ -587,7 +588,7 @@ exports.UI = UI_1 = class UI extends core.Leaf {
587
588
  animate(_keyframe, _options, _type, _isTemp) {
588
589
  return core.Plugin.need('animate');
589
590
  }
590
- killAnimate(_type, _killStyle) { }
591
+ killAnimate(_type, _nextStyle) { }
591
592
  export(_filename, _options) {
592
593
  return core.Plugin.need('export');
593
594
  }
@@ -618,199 +619,199 @@ exports.UI = UI_1 = class UI extends core.Leaf {
618
619
  };
619
620
  __decorate([
620
621
  core.dataProcessor(UIData)
621
- ], exports.UI.prototype, "__", void 0);
622
+ ], exports.UI.prototype, "__", undefined);
622
623
  __decorate([
623
624
  zoomLayerType()
624
- ], exports.UI.prototype, "zoomLayer", void 0);
625
+ ], exports.UI.prototype, "zoomLayer", undefined);
625
626
  __decorate([
626
627
  core.dataType('')
627
- ], exports.UI.prototype, "id", void 0);
628
+ ], exports.UI.prototype, "id", undefined);
628
629
  __decorate([
629
630
  core.dataType('')
630
- ], exports.UI.prototype, "name", void 0);
631
+ ], exports.UI.prototype, "name", undefined);
631
632
  __decorate([
632
633
  core.dataType('')
633
- ], exports.UI.prototype, "className", void 0);
634
+ ], exports.UI.prototype, "className", undefined);
634
635
  __decorate([
635
636
  core.surfaceType('pass-through')
636
- ], exports.UI.prototype, "blendMode", void 0);
637
+ ], exports.UI.prototype, "blendMode", undefined);
637
638
  __decorate([
638
639
  core.opacityType(1)
639
- ], exports.UI.prototype, "opacity", void 0);
640
+ ], exports.UI.prototype, "opacity", undefined);
640
641
  __decorate([
641
642
  core.visibleType(true)
642
- ], exports.UI.prototype, "visible", void 0);
643
+ ], exports.UI.prototype, "visible", undefined);
643
644
  __decorate([
644
645
  core.surfaceType(false)
645
- ], exports.UI.prototype, "locked", void 0);
646
+ ], exports.UI.prototype, "locked", undefined);
646
647
  __decorate([
647
648
  core.sortType(0)
648
- ], exports.UI.prototype, "zIndex", void 0);
649
+ ], exports.UI.prototype, "zIndex", undefined);
649
650
  __decorate([
650
651
  core.maskType(false)
651
- ], exports.UI.prototype, "mask", void 0);
652
+ ], exports.UI.prototype, "mask", undefined);
652
653
  __decorate([
653
654
  core.eraserType(false)
654
- ], exports.UI.prototype, "eraser", void 0);
655
+ ], exports.UI.prototype, "eraser", undefined);
655
656
  __decorate([
656
657
  core.positionType(0, true)
657
- ], exports.UI.prototype, "x", void 0);
658
+ ], exports.UI.prototype, "x", undefined);
658
659
  __decorate([
659
660
  core.positionType(0, true)
660
- ], exports.UI.prototype, "y", void 0);
661
+ ], exports.UI.prototype, "y", undefined);
661
662
  __decorate([
662
663
  core.boundsType(100, true)
663
- ], exports.UI.prototype, "width", void 0);
664
+ ], exports.UI.prototype, "width", undefined);
664
665
  __decorate([
665
666
  core.boundsType(100, true)
666
- ], exports.UI.prototype, "height", void 0);
667
+ ], exports.UI.prototype, "height", undefined);
667
668
  __decorate([
668
669
  core.scaleType(1, true)
669
- ], exports.UI.prototype, "scaleX", void 0);
670
+ ], exports.UI.prototype, "scaleX", undefined);
670
671
  __decorate([
671
672
  core.scaleType(1, true)
672
- ], exports.UI.prototype, "scaleY", void 0);
673
+ ], exports.UI.prototype, "scaleY", undefined);
673
674
  __decorate([
674
675
  core.rotationType(0, true)
675
- ], exports.UI.prototype, "rotation", void 0);
676
+ ], exports.UI.prototype, "rotation", undefined);
676
677
  __decorate([
677
678
  core.rotationType(0, true)
678
- ], exports.UI.prototype, "skewX", void 0);
679
+ ], exports.UI.prototype, "skewX", undefined);
679
680
  __decorate([
680
681
  core.rotationType(0, true)
681
- ], exports.UI.prototype, "skewY", void 0);
682
+ ], exports.UI.prototype, "skewY", undefined);
682
683
  __decorate([
683
684
  core.positionType(0, true)
684
- ], exports.UI.prototype, "offsetX", void 0);
685
+ ], exports.UI.prototype, "offsetX", undefined);
685
686
  __decorate([
686
687
  core.positionType(0, true)
687
- ], exports.UI.prototype, "offsetY", void 0);
688
+ ], exports.UI.prototype, "offsetY", undefined);
688
689
  __decorate([
689
690
  core.positionType(0, true)
690
- ], exports.UI.prototype, "scrollX", void 0);
691
+ ], exports.UI.prototype, "scrollX", undefined);
691
692
  __decorate([
692
693
  core.positionType(0, true)
693
- ], exports.UI.prototype, "scrollY", void 0);
694
+ ], exports.UI.prototype, "scrollY", undefined);
694
695
  __decorate([
695
696
  core.autoLayoutType()
696
- ], exports.UI.prototype, "origin", void 0);
697
+ ], exports.UI.prototype, "origin", undefined);
697
698
  __decorate([
698
699
  core.autoLayoutType()
699
- ], exports.UI.prototype, "around", void 0);
700
+ ], exports.UI.prototype, "around", undefined);
700
701
  __decorate([
701
702
  core.dataType(false)
702
- ], exports.UI.prototype, "lazy", void 0);
703
+ ], exports.UI.prototype, "lazy", undefined);
703
704
  __decorate([
704
705
  core.naturalBoundsType(1)
705
- ], exports.UI.prototype, "pixelRatio", void 0);
706
+ ], exports.UI.prototype, "pixelRatio", undefined);
706
707
  __decorate([
707
708
  core.pathInputType()
708
- ], exports.UI.prototype, "path", void 0);
709
+ ], exports.UI.prototype, "path", undefined);
709
710
  __decorate([
710
711
  core.pathType()
711
- ], exports.UI.prototype, "windingRule", void 0);
712
+ ], exports.UI.prototype, "windingRule", undefined);
712
713
  __decorate([
713
714
  core.pathType(true)
714
- ], exports.UI.prototype, "closed", void 0);
715
+ ], exports.UI.prototype, "closed", undefined);
715
716
  __decorate([
716
717
  core.boundsType(0)
717
- ], exports.UI.prototype, "padding", void 0);
718
+ ], exports.UI.prototype, "padding", undefined);
718
719
  __decorate([
719
720
  core.boundsType(false)
720
- ], exports.UI.prototype, "lockRatio", void 0);
721
+ ], exports.UI.prototype, "lockRatio", undefined);
721
722
  __decorate([
722
723
  core.boundsType()
723
- ], exports.UI.prototype, "widthRange", void 0);
724
+ ], exports.UI.prototype, "widthRange", undefined);
724
725
  __decorate([
725
726
  core.boundsType()
726
- ], exports.UI.prototype, "heightRange", void 0);
727
+ ], exports.UI.prototype, "heightRange", undefined);
727
728
  __decorate([
728
729
  core.dataType(false)
729
- ], exports.UI.prototype, "draggable", void 0);
730
+ ], exports.UI.prototype, "draggable", undefined);
730
731
  __decorate([
731
732
  core.dataType()
732
- ], exports.UI.prototype, "dragBounds", void 0);
733
+ ], exports.UI.prototype, "dragBounds", undefined);
733
734
  __decorate([
734
735
  core.dataType(false)
735
- ], exports.UI.prototype, "editable", void 0);
736
+ ], exports.UI.prototype, "editable", undefined);
736
737
  __decorate([
737
738
  core.hitType(true)
738
- ], exports.UI.prototype, "hittable", void 0);
739
+ ], exports.UI.prototype, "hittable", undefined);
739
740
  __decorate([
740
741
  core.hitType('path')
741
- ], exports.UI.prototype, "hitFill", void 0);
742
+ ], exports.UI.prototype, "hitFill", undefined);
742
743
  __decorate([
743
744
  core.strokeType('path')
744
- ], exports.UI.prototype, "hitStroke", void 0);
745
+ ], exports.UI.prototype, "hitStroke", undefined);
745
746
  __decorate([
746
747
  core.hitType(false)
747
- ], exports.UI.prototype, "hitBox", void 0);
748
+ ], exports.UI.prototype, "hitBox", undefined);
748
749
  __decorate([
749
750
  core.hitType(true)
750
- ], exports.UI.prototype, "hitChildren", void 0);
751
+ ], exports.UI.prototype, "hitChildren", undefined);
751
752
  __decorate([
752
753
  core.hitType(true)
753
- ], exports.UI.prototype, "hitSelf", void 0);
754
+ ], exports.UI.prototype, "hitSelf", undefined);
754
755
  __decorate([
755
756
  core.hitType()
756
- ], exports.UI.prototype, "hitRadius", void 0);
757
+ ], exports.UI.prototype, "hitRadius", undefined);
757
758
  __decorate([
758
759
  core.cursorType('')
759
- ], exports.UI.prototype, "cursor", void 0);
760
+ ], exports.UI.prototype, "cursor", undefined);
760
761
  __decorate([
761
762
  core.surfaceType()
762
- ], exports.UI.prototype, "fill", void 0);
763
+ ], exports.UI.prototype, "fill", undefined);
763
764
  __decorate([
764
765
  core.strokeType()
765
- ], exports.UI.prototype, "stroke", void 0);
766
+ ], exports.UI.prototype, "stroke", undefined);
766
767
  __decorate([
767
768
  core.strokeType('inside')
768
- ], exports.UI.prototype, "strokeAlign", void 0);
769
+ ], exports.UI.prototype, "strokeAlign", undefined);
769
770
  __decorate([
770
771
  core.strokeType(1)
771
- ], exports.UI.prototype, "strokeWidth", void 0);
772
+ ], exports.UI.prototype, "strokeWidth", undefined);
772
773
  __decorate([
773
774
  core.strokeType(false)
774
- ], exports.UI.prototype, "strokeWidthFixed", void 0);
775
+ ], exports.UI.prototype, "strokeWidthFixed", undefined);
775
776
  __decorate([
776
777
  core.strokeType('none')
777
- ], exports.UI.prototype, "strokeCap", void 0);
778
+ ], exports.UI.prototype, "strokeCap", undefined);
778
779
  __decorate([
779
780
  core.strokeType('miter')
780
- ], exports.UI.prototype, "strokeJoin", void 0);
781
+ ], exports.UI.prototype, "strokeJoin", undefined);
781
782
  __decorate([
782
783
  core.strokeType()
783
- ], exports.UI.prototype, "dashPattern", void 0);
784
+ ], exports.UI.prototype, "dashPattern", undefined);
784
785
  __decorate([
785
786
  core.strokeType()
786
- ], exports.UI.prototype, "dashOffset", void 0);
787
+ ], exports.UI.prototype, "dashOffset", undefined);
787
788
  __decorate([
788
789
  core.strokeType(10)
789
- ], exports.UI.prototype, "miterLimit", void 0);
790
+ ], exports.UI.prototype, "miterLimit", undefined);
790
791
  __decorate([
791
792
  core.pathType(0)
792
- ], exports.UI.prototype, "cornerRadius", void 0);
793
+ ], exports.UI.prototype, "cornerRadius", undefined);
793
794
  __decorate([
794
795
  core.pathType()
795
- ], exports.UI.prototype, "cornerSmoothing", void 0);
796
+ ], exports.UI.prototype, "cornerSmoothing", undefined);
796
797
  __decorate([
797
798
  effectType()
798
- ], exports.UI.prototype, "shadow", void 0);
799
+ ], exports.UI.prototype, "shadow", undefined);
799
800
  __decorate([
800
801
  effectType()
801
- ], exports.UI.prototype, "innerShadow", void 0);
802
+ ], exports.UI.prototype, "innerShadow", undefined);
802
803
  __decorate([
803
804
  effectType()
804
- ], exports.UI.prototype, "blur", void 0);
805
+ ], exports.UI.prototype, "blur", undefined);
805
806
  __decorate([
806
807
  effectType()
807
- ], exports.UI.prototype, "backgroundBlur", void 0);
808
+ ], exports.UI.prototype, "backgroundBlur", undefined);
808
809
  __decorate([
809
810
  effectType()
810
- ], exports.UI.prototype, "grayscale", void 0);
811
+ ], exports.UI.prototype, "grayscale", undefined);
811
812
  __decorate([
812
813
  core.dataType({})
813
- ], exports.UI.prototype, "data", void 0);
814
+ ], exports.UI.prototype, "data", undefined);
814
815
  __decorate([
815
816
  core.rewrite(core.Leaf.prototype.reset)
816
817
  ], exports.UI.prototype, "reset", null);
@@ -871,7 +872,7 @@ exports.Group = class Group extends exports.UI {
871
872
  };
872
873
  __decorate([
873
874
  core.dataProcessor(GroupData)
874
- ], exports.Group.prototype, "__", void 0);
875
+ ], exports.Group.prototype, "__", undefined);
875
876
  exports.Group = __decorate([
876
877
  core.useModule(core.Branch),
877
878
  core.registerUI()
@@ -1042,8 +1043,6 @@ exports.Leafer = Leafer_1 = class Leafer extends exports.Group {
1042
1043
  __setAttr(attrName, newValue) {
1043
1044
  if (this.canvas) {
1044
1045
  if (core.canvasSizeAttrs.includes(attrName)) {
1045
- if (!newValue)
1046
- debug.warn(attrName + ' is 0');
1047
1046
  this.__changeCanvasSize(attrName, newValue);
1048
1047
  }
1049
1048
  else if (attrName === 'fill') {
@@ -1083,8 +1082,6 @@ exports.Leafer = Leafer_1 = class Leafer extends exports.Group {
1083
1082
  this.created = true;
1084
1083
  }
1085
1084
  __onReady() {
1086
- if (this.ready)
1087
- return;
1088
1085
  this.ready = true;
1089
1086
  this.emitLeafer(core.LeaferEvent.BEFORE_READY);
1090
1087
  this.emitLeafer(core.LeaferEvent.READY);
@@ -1098,6 +1095,20 @@ exports.Leafer = Leafer_1 = class Leafer extends exports.Group {
1098
1095
  this.emitLeafer(core.LeaferEvent.VIEW_READY);
1099
1096
  core.WaitHelper.run(this.__viewReadyWait);
1100
1097
  }
1098
+ __onLayoutEnd() {
1099
+ const { grow, growWidth, growHeight } = this.config;
1100
+ if (grow) {
1101
+ let { width, height, pixelRatio } = this;
1102
+ const bounds = grow === 'box' ? this.worldBoxBounds : this.__world;
1103
+ if (growWidth !== false)
1104
+ width = Math.max(1, bounds.x + bounds.width);
1105
+ if (growHeight !== false)
1106
+ height = Math.max(1, bounds.y + bounds.height);
1107
+ this.__doResize({ width, height, pixelRatio });
1108
+ }
1109
+ if (!this.ready)
1110
+ this.__onReady();
1111
+ }
1101
1112
  __onNextRender() {
1102
1113
  if (this.viewReady) {
1103
1114
  core.WaitHelper.run(this.__nextRenderWait);
@@ -1191,10 +1202,9 @@ exports.Leafer = Leafer_1 = class Leafer extends exports.Group {
1191
1202
  const runId = core.Run.start('FirstCreate ' + this.innerName);
1192
1203
  this.once(core.LeaferEvent.START, () => core.Run.end(runId));
1193
1204
  this.once(core.LayoutEvent.START, () => this.updateLazyBounds());
1194
- this.once(core.LayoutEvent.END, () => this.__onReady());
1195
1205
  this.once(core.RenderEvent.START, () => this.__onCreated());
1196
1206
  this.once(core.RenderEvent.END, () => this.__onViewReady());
1197
- this.__eventIds.push(this.on_(core.WatchEvent.DATA, this.__onWatchData, this), this.on_(core.RenderEvent.NEXT, this.__onNextRender, this));
1207
+ this.__eventIds.push(this.on_(core.WatchEvent.DATA, this.__onWatchData, this), this.on_(core.LayoutEvent.END, this.__onLayoutEnd, this), this.on_(core.RenderEvent.NEXT, this.__onNextRender, this));
1198
1208
  }
1199
1209
  __removeListenEvents() {
1200
1210
  this.off_(this.__eventIds);
@@ -1235,10 +1245,10 @@ exports.Leafer = Leafer_1 = class Leafer extends exports.Group {
1235
1245
  exports.Leafer.list = new core.LeafList();
1236
1246
  __decorate([
1237
1247
  core.dataProcessor(LeaferData)
1238
- ], exports.Leafer.prototype, "__", void 0);
1248
+ ], exports.Leafer.prototype, "__", undefined);
1239
1249
  __decorate([
1240
1250
  core.boundsType()
1241
- ], exports.Leafer.prototype, "pixelRatio", void 0);
1251
+ ], exports.Leafer.prototype, "pixelRatio", undefined);
1242
1252
  exports.Leafer = Leafer_1 = __decorate([
1243
1253
  core.registerUI()
1244
1254
  ], exports.Leafer);
@@ -1251,7 +1261,7 @@ exports.Rect = class Rect extends exports.UI {
1251
1261
  };
1252
1262
  __decorate([
1253
1263
  core.dataProcessor(RectData)
1254
- ], exports.Rect.prototype, "__", void 0);
1264
+ ], exports.Rect.prototype, "__", undefined);
1255
1265
  exports.Rect = __decorate([
1256
1266
  core.useModule(RectRender),
1257
1267
  core.rewriteAble(),
@@ -1276,6 +1286,8 @@ exports.Box = class Box extends exports.Group {
1276
1286
  const data = this.__;
1277
1287
  if (this.children.length) {
1278
1288
  if (data.__autoSide) {
1289
+ if (data.__hasSurface)
1290
+ this.__extraUpdate();
1279
1291
  super.__updateBoxBounds();
1280
1292
  const { boxBounds } = this.__layout;
1281
1293
  if (!data.__autoSize) {
@@ -1340,13 +1352,13 @@ exports.Box = class Box extends exports.Group {
1340
1352
  };
1341
1353
  __decorate([
1342
1354
  core.dataProcessor(BoxData)
1343
- ], exports.Box.prototype, "__", void 0);
1355
+ ], exports.Box.prototype, "__", undefined);
1344
1356
  __decorate([
1345
1357
  core.dataType(false)
1346
- ], exports.Box.prototype, "resizeChildren", void 0);
1358
+ ], exports.Box.prototype, "resizeChildren", undefined);
1347
1359
  __decorate([
1348
1360
  core.affectRenderBoundsType('show')
1349
- ], exports.Box.prototype, "overflow", void 0);
1361
+ ], exports.Box.prototype, "overflow", undefined);
1350
1362
  __decorate([
1351
1363
  core.rewrite(rect.__updateStrokeSpread)
1352
1364
  ], exports.Box.prototype, "__updateStrokeSpread", null);
@@ -1385,13 +1397,13 @@ exports.Frame = class Frame extends exports.Box {
1385
1397
  };
1386
1398
  __decorate([
1387
1399
  core.dataProcessor(FrameData)
1388
- ], exports.Frame.prototype, "__", void 0);
1400
+ ], exports.Frame.prototype, "__", undefined);
1389
1401
  __decorate([
1390
1402
  core.surfaceType('#FFFFFF')
1391
- ], exports.Frame.prototype, "fill", void 0);
1403
+ ], exports.Frame.prototype, "fill", undefined);
1392
1404
  __decorate([
1393
1405
  core.affectRenderBoundsType('hide')
1394
- ], exports.Frame.prototype, "overflow", void 0);
1406
+ ], exports.Frame.prototype, "overflow", undefined);
1395
1407
  exports.Frame = __decorate([
1396
1408
  core.registerUI()
1397
1409
  ], exports.Frame);
@@ -1438,16 +1450,16 @@ exports.Ellipse = class Ellipse extends exports.UI {
1438
1450
  };
1439
1451
  __decorate([
1440
1452
  core.dataProcessor(EllipseData)
1441
- ], exports.Ellipse.prototype, "__", void 0);
1453
+ ], exports.Ellipse.prototype, "__", undefined);
1442
1454
  __decorate([
1443
1455
  core.pathType(0)
1444
- ], exports.Ellipse.prototype, "innerRadius", void 0);
1456
+ ], exports.Ellipse.prototype, "innerRadius", undefined);
1445
1457
  __decorate([
1446
1458
  core.pathType(0)
1447
- ], exports.Ellipse.prototype, "startAngle", void 0);
1459
+ ], exports.Ellipse.prototype, "startAngle", undefined);
1448
1460
  __decorate([
1449
1461
  core.pathType(0)
1450
- ], exports.Ellipse.prototype, "endAngle", void 0);
1462
+ ], exports.Ellipse.prototype, "endAngle", undefined);
1451
1463
  exports.Ellipse = __decorate([
1452
1464
  core.registerUI()
1453
1465
  ], exports.Ellipse);
@@ -1506,22 +1518,22 @@ exports.Line = class Line extends exports.UI {
1506
1518
  };
1507
1519
  __decorate([
1508
1520
  core.dataProcessor(LineData)
1509
- ], exports.Line.prototype, "__", void 0);
1521
+ ], exports.Line.prototype, "__", undefined);
1510
1522
  __decorate([
1511
1523
  core.affectStrokeBoundsType('center')
1512
- ], exports.Line.prototype, "strokeAlign", void 0);
1524
+ ], exports.Line.prototype, "strokeAlign", undefined);
1513
1525
  __decorate([
1514
1526
  core.boundsType(0)
1515
- ], exports.Line.prototype, "height", void 0);
1527
+ ], exports.Line.prototype, "height", undefined);
1516
1528
  __decorate([
1517
1529
  core.pathType()
1518
- ], exports.Line.prototype, "points", void 0);
1530
+ ], exports.Line.prototype, "points", undefined);
1519
1531
  __decorate([
1520
1532
  core.pathType(0)
1521
- ], exports.Line.prototype, "curve", void 0);
1533
+ ], exports.Line.prototype, "curve", undefined);
1522
1534
  __decorate([
1523
1535
  core.pathType(false)
1524
- ], exports.Line.prototype, "closed", void 0);
1536
+ ], exports.Line.prototype, "closed", undefined);
1525
1537
  exports.Line = __decorate([
1526
1538
  core.registerUI()
1527
1539
  ], exports.Line);
@@ -1554,16 +1566,16 @@ exports.Polygon = class Polygon extends exports.UI {
1554
1566
  };
1555
1567
  __decorate([
1556
1568
  core.dataProcessor(PolygonData)
1557
- ], exports.Polygon.prototype, "__", void 0);
1569
+ ], exports.Polygon.prototype, "__", undefined);
1558
1570
  __decorate([
1559
1571
  core.pathType(3)
1560
- ], exports.Polygon.prototype, "sides", void 0);
1572
+ ], exports.Polygon.prototype, "sides", undefined);
1561
1573
  __decorate([
1562
1574
  core.pathType()
1563
- ], exports.Polygon.prototype, "points", void 0);
1575
+ ], exports.Polygon.prototype, "points", undefined);
1564
1576
  __decorate([
1565
1577
  core.pathType(0)
1566
- ], exports.Polygon.prototype, "curve", void 0);
1578
+ ], exports.Polygon.prototype, "curve", undefined);
1567
1579
  __decorate([
1568
1580
  core.rewrite(line.__updateRenderPath)
1569
1581
  ], exports.Polygon.prototype, "__updateRenderPath", null);
@@ -1595,13 +1607,13 @@ exports.Star = class Star extends exports.UI {
1595
1607
  };
1596
1608
  __decorate([
1597
1609
  core.dataProcessor(StarData)
1598
- ], exports.Star.prototype, "__", void 0);
1610
+ ], exports.Star.prototype, "__", undefined);
1599
1611
  __decorate([
1600
1612
  core.pathType(5)
1601
- ], exports.Star.prototype, "corners", void 0);
1613
+ ], exports.Star.prototype, "corners", undefined);
1602
1614
  __decorate([
1603
1615
  core.pathType(0.382)
1604
- ], exports.Star.prototype, "innerRadius", void 0);
1616
+ ], exports.Star.prototype, "innerRadius", undefined);
1605
1617
  exports.Star = __decorate([
1606
1618
  core.registerUI()
1607
1619
  ], exports.Star);
@@ -1623,10 +1635,10 @@ exports.Image = class Image extends exports.Rect {
1623
1635
  };
1624
1636
  __decorate([
1625
1637
  core.dataProcessor(ImageData)
1626
- ], exports.Image.prototype, "__", void 0);
1638
+ ], exports.Image.prototype, "__", undefined);
1627
1639
  __decorate([
1628
1640
  core.boundsType('')
1629
- ], exports.Image.prototype, "url", void 0);
1641
+ ], exports.Image.prototype, "url", undefined);
1630
1642
  exports.Image = __decorate([
1631
1643
  core.registerUI()
1632
1644
  ], exports.Image);
@@ -1689,25 +1701,25 @@ exports.Canvas = class Canvas extends exports.Rect {
1689
1701
  };
1690
1702
  __decorate([
1691
1703
  core.dataProcessor(CanvasData)
1692
- ], exports.Canvas.prototype, "__", void 0);
1704
+ ], exports.Canvas.prototype, "__", undefined);
1693
1705
  __decorate([
1694
1706
  resizeType(100)
1695
- ], exports.Canvas.prototype, "width", void 0);
1707
+ ], exports.Canvas.prototype, "width", undefined);
1696
1708
  __decorate([
1697
1709
  resizeType(100)
1698
- ], exports.Canvas.prototype, "height", void 0);
1710
+ ], exports.Canvas.prototype, "height", undefined);
1699
1711
  __decorate([
1700
1712
  resizeType(1)
1701
- ], exports.Canvas.prototype, "pixelRatio", void 0);
1713
+ ], exports.Canvas.prototype, "pixelRatio", undefined);
1702
1714
  __decorate([
1703
1715
  resizeType(true)
1704
- ], exports.Canvas.prototype, "smooth", void 0);
1716
+ ], exports.Canvas.prototype, "smooth", undefined);
1705
1717
  __decorate([
1706
1718
  core.dataType(false)
1707
- ], exports.Canvas.prototype, "safeResize", void 0);
1719
+ ], exports.Canvas.prototype, "safeResize", undefined);
1708
1720
  __decorate([
1709
1721
  resizeType()
1710
- ], exports.Canvas.prototype, "contextSettings", void 0);
1722
+ ], exports.Canvas.prototype, "contextSettings", undefined);
1711
1723
  exports.Canvas = __decorate([
1712
1724
  core.registerUI()
1713
1725
  ], exports.Canvas);
@@ -1798,76 +1810,76 @@ exports.Text = class Text extends exports.UI {
1798
1810
  };
1799
1811
  __decorate([
1800
1812
  core.dataProcessor(TextData)
1801
- ], exports.Text.prototype, "__", void 0);
1813
+ ], exports.Text.prototype, "__", undefined);
1802
1814
  __decorate([
1803
1815
  core.boundsType(0)
1804
- ], exports.Text.prototype, "width", void 0);
1816
+ ], exports.Text.prototype, "width", undefined);
1805
1817
  __decorate([
1806
1818
  core.boundsType(0)
1807
- ], exports.Text.prototype, "height", void 0);
1819
+ ], exports.Text.prototype, "height", undefined);
1808
1820
  __decorate([
1809
1821
  core.dataType(false)
1810
- ], exports.Text.prototype, "resizeFontSize", void 0);
1822
+ ], exports.Text.prototype, "resizeFontSize", undefined);
1811
1823
  __decorate([
1812
1824
  core.surfaceType('#000000')
1813
- ], exports.Text.prototype, "fill", void 0);
1825
+ ], exports.Text.prototype, "fill", undefined);
1814
1826
  __decorate([
1815
1827
  core.affectStrokeBoundsType('outside')
1816
- ], exports.Text.prototype, "strokeAlign", void 0);
1828
+ ], exports.Text.prototype, "strokeAlign", undefined);
1817
1829
  __decorate([
1818
1830
  core.hitType('all')
1819
- ], exports.Text.prototype, "hitFill", void 0);
1831
+ ], exports.Text.prototype, "hitFill", undefined);
1820
1832
  __decorate([
1821
1833
  core.boundsType('')
1822
- ], exports.Text.prototype, "text", void 0);
1834
+ ], exports.Text.prototype, "text", undefined);
1823
1835
  __decorate([
1824
- core.boundsType('L')
1825
- ], exports.Text.prototype, "fontFamily", void 0);
1836
+ core.boundsType('caption')
1837
+ ], exports.Text.prototype, "fontFamily", undefined);
1826
1838
  __decorate([
1827
1839
  core.boundsType(12)
1828
- ], exports.Text.prototype, "fontSize", void 0);
1840
+ ], exports.Text.prototype, "fontSize", undefined);
1829
1841
  __decorate([
1830
1842
  core.boundsType('normal')
1831
- ], exports.Text.prototype, "fontWeight", void 0);
1843
+ ], exports.Text.prototype, "fontWeight", undefined);
1832
1844
  __decorate([
1833
1845
  core.boundsType(false)
1834
- ], exports.Text.prototype, "italic", void 0);
1846
+ ], exports.Text.prototype, "italic", undefined);
1835
1847
  __decorate([
1836
1848
  core.boundsType('none')
1837
- ], exports.Text.prototype, "textCase", void 0);
1849
+ ], exports.Text.prototype, "textCase", undefined);
1838
1850
  __decorate([
1839
1851
  core.boundsType('none')
1840
- ], exports.Text.prototype, "textDecoration", void 0);
1852
+ ], exports.Text.prototype, "textDecoration", undefined);
1841
1853
  __decorate([
1842
1854
  core.boundsType(0)
1843
- ], exports.Text.prototype, "letterSpacing", void 0);
1855
+ ], exports.Text.prototype, "letterSpacing", undefined);
1844
1856
  __decorate([
1845
1857
  core.boundsType({ type: 'percent', value: 1.5 })
1846
- ], exports.Text.prototype, "lineHeight", void 0);
1858
+ ], exports.Text.prototype, "lineHeight", undefined);
1847
1859
  __decorate([
1848
1860
  core.boundsType(0)
1849
- ], exports.Text.prototype, "paraIndent", void 0);
1861
+ ], exports.Text.prototype, "paraIndent", undefined);
1850
1862
  __decorate([
1851
1863
  core.boundsType(0)
1852
- ], exports.Text.prototype, "paraSpacing", void 0);
1864
+ ], exports.Text.prototype, "paraSpacing", undefined);
1853
1865
  __decorate([
1854
1866
  core.boundsType('x')
1855
- ], exports.Text.prototype, "writingMode", void 0);
1867
+ ], exports.Text.prototype, "writingMode", undefined);
1856
1868
  __decorate([
1857
1869
  core.boundsType('left')
1858
- ], exports.Text.prototype, "textAlign", void 0);
1870
+ ], exports.Text.prototype, "textAlign", undefined);
1859
1871
  __decorate([
1860
1872
  core.boundsType('top')
1861
- ], exports.Text.prototype, "verticalAlign", void 0);
1873
+ ], exports.Text.prototype, "verticalAlign", undefined);
1862
1874
  __decorate([
1863
1875
  core.boundsType(true)
1864
- ], exports.Text.prototype, "autoSizeAlign", void 0);
1876
+ ], exports.Text.prototype, "autoSizeAlign", undefined);
1865
1877
  __decorate([
1866
1878
  core.boundsType('normal')
1867
- ], exports.Text.prototype, "textWrap", void 0);
1879
+ ], exports.Text.prototype, "textWrap", undefined);
1868
1880
  __decorate([
1869
1881
  core.boundsType('show')
1870
- ], exports.Text.prototype, "textOverflow", void 0);
1882
+ ], exports.Text.prototype, "textOverflow", undefined);
1871
1883
  exports.Text = __decorate([
1872
1884
  core.registerUI()
1873
1885
  ], exports.Text);
@@ -1880,10 +1892,10 @@ exports.Path = class Path extends exports.UI {
1880
1892
  };
1881
1893
  __decorate([
1882
1894
  core.dataProcessor(PathData)
1883
- ], exports.Path.prototype, "__", void 0);
1895
+ ], exports.Path.prototype, "__", undefined);
1884
1896
  __decorate([
1885
1897
  core.affectStrokeBoundsType('center')
1886
- ], exports.Path.prototype, "strokeAlign", void 0);
1898
+ ], exports.Path.prototype, "strokeAlign", undefined);
1887
1899
  exports.Path = __decorate([
1888
1900
  core.registerUI()
1889
1901
  ], exports.Path);
@@ -1922,10 +1934,10 @@ exports.Pen = class Pen extends exports.Group {
1922
1934
  };
1923
1935
  __decorate([
1924
1936
  core.dataProcessor(PenData)
1925
- ], exports.Pen.prototype, "__", void 0);
1937
+ ], exports.Pen.prototype, "__", undefined);
1926
1938
  __decorate([
1927
1939
  penPathType()
1928
- ], exports.Pen.prototype, "path", void 0);
1940
+ ], exports.Pen.prototype, "path", undefined);
1929
1941
  exports.Pen = __decorate([
1930
1942
  core.useModule(core.PathCreator, ['set', 'path', 'paint']),
1931
1943
  core.registerUI()