@leafer-ui/draw 1.3.2 → 1.4.0

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; }
@@ -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') {
@@ -1246,10 +1245,10 @@ exports.Leafer = Leafer_1 = class Leafer extends exports.Group {
1246
1245
  exports.Leafer.list = new core.LeafList();
1247
1246
  __decorate([
1248
1247
  core.dataProcessor(LeaferData)
1249
- ], exports.Leafer.prototype, "__", void 0);
1248
+ ], exports.Leafer.prototype, "__", undefined);
1250
1249
  __decorate([
1251
1250
  core.boundsType()
1252
- ], exports.Leafer.prototype, "pixelRatio", void 0);
1251
+ ], exports.Leafer.prototype, "pixelRatio", undefined);
1253
1252
  exports.Leafer = Leafer_1 = __decorate([
1254
1253
  core.registerUI()
1255
1254
  ], exports.Leafer);
@@ -1262,7 +1261,7 @@ exports.Rect = class Rect extends exports.UI {
1262
1261
  };
1263
1262
  __decorate([
1264
1263
  core.dataProcessor(RectData)
1265
- ], exports.Rect.prototype, "__", void 0);
1264
+ ], exports.Rect.prototype, "__", undefined);
1266
1265
  exports.Rect = __decorate([
1267
1266
  core.useModule(RectRender),
1268
1267
  core.rewriteAble(),
@@ -1287,6 +1286,8 @@ exports.Box = class Box extends exports.Group {
1287
1286
  const data = this.__;
1288
1287
  if (this.children.length) {
1289
1288
  if (data.__autoSide) {
1289
+ if (data.__hasSurface)
1290
+ this.__extraUpdate();
1290
1291
  super.__updateBoxBounds();
1291
1292
  const { boxBounds } = this.__layout;
1292
1293
  if (!data.__autoSize) {
@@ -1351,13 +1352,13 @@ exports.Box = class Box extends exports.Group {
1351
1352
  };
1352
1353
  __decorate([
1353
1354
  core.dataProcessor(BoxData)
1354
- ], exports.Box.prototype, "__", void 0);
1355
+ ], exports.Box.prototype, "__", undefined);
1355
1356
  __decorate([
1356
1357
  core.dataType(false)
1357
- ], exports.Box.prototype, "resizeChildren", void 0);
1358
+ ], exports.Box.prototype, "resizeChildren", undefined);
1358
1359
  __decorate([
1359
1360
  core.affectRenderBoundsType('show')
1360
- ], exports.Box.prototype, "overflow", void 0);
1361
+ ], exports.Box.prototype, "overflow", undefined);
1361
1362
  __decorate([
1362
1363
  core.rewrite(rect.__updateStrokeSpread)
1363
1364
  ], exports.Box.prototype, "__updateStrokeSpread", null);
@@ -1396,13 +1397,13 @@ exports.Frame = class Frame extends exports.Box {
1396
1397
  };
1397
1398
  __decorate([
1398
1399
  core.dataProcessor(FrameData)
1399
- ], exports.Frame.prototype, "__", void 0);
1400
+ ], exports.Frame.prototype, "__", undefined);
1400
1401
  __decorate([
1401
1402
  core.surfaceType('#FFFFFF')
1402
- ], exports.Frame.prototype, "fill", void 0);
1403
+ ], exports.Frame.prototype, "fill", undefined);
1403
1404
  __decorate([
1404
1405
  core.affectRenderBoundsType('hide')
1405
- ], exports.Frame.prototype, "overflow", void 0);
1406
+ ], exports.Frame.prototype, "overflow", undefined);
1406
1407
  exports.Frame = __decorate([
1407
1408
  core.registerUI()
1408
1409
  ], exports.Frame);
@@ -1449,16 +1450,16 @@ exports.Ellipse = class Ellipse extends exports.UI {
1449
1450
  };
1450
1451
  __decorate([
1451
1452
  core.dataProcessor(EllipseData)
1452
- ], exports.Ellipse.prototype, "__", void 0);
1453
+ ], exports.Ellipse.prototype, "__", undefined);
1453
1454
  __decorate([
1454
1455
  core.pathType(0)
1455
- ], exports.Ellipse.prototype, "innerRadius", void 0);
1456
+ ], exports.Ellipse.prototype, "innerRadius", undefined);
1456
1457
  __decorate([
1457
1458
  core.pathType(0)
1458
- ], exports.Ellipse.prototype, "startAngle", void 0);
1459
+ ], exports.Ellipse.prototype, "startAngle", undefined);
1459
1460
  __decorate([
1460
1461
  core.pathType(0)
1461
- ], exports.Ellipse.prototype, "endAngle", void 0);
1462
+ ], exports.Ellipse.prototype, "endAngle", undefined);
1462
1463
  exports.Ellipse = __decorate([
1463
1464
  core.registerUI()
1464
1465
  ], exports.Ellipse);
@@ -1517,22 +1518,22 @@ exports.Line = class Line extends exports.UI {
1517
1518
  };
1518
1519
  __decorate([
1519
1520
  core.dataProcessor(LineData)
1520
- ], exports.Line.prototype, "__", void 0);
1521
+ ], exports.Line.prototype, "__", undefined);
1521
1522
  __decorate([
1522
1523
  core.affectStrokeBoundsType('center')
1523
- ], exports.Line.prototype, "strokeAlign", void 0);
1524
+ ], exports.Line.prototype, "strokeAlign", undefined);
1524
1525
  __decorate([
1525
1526
  core.boundsType(0)
1526
- ], exports.Line.prototype, "height", void 0);
1527
+ ], exports.Line.prototype, "height", undefined);
1527
1528
  __decorate([
1528
1529
  core.pathType()
1529
- ], exports.Line.prototype, "points", void 0);
1530
+ ], exports.Line.prototype, "points", undefined);
1530
1531
  __decorate([
1531
1532
  core.pathType(0)
1532
- ], exports.Line.prototype, "curve", void 0);
1533
+ ], exports.Line.prototype, "curve", undefined);
1533
1534
  __decorate([
1534
1535
  core.pathType(false)
1535
- ], exports.Line.prototype, "closed", void 0);
1536
+ ], exports.Line.prototype, "closed", undefined);
1536
1537
  exports.Line = __decorate([
1537
1538
  core.registerUI()
1538
1539
  ], exports.Line);
@@ -1565,16 +1566,16 @@ exports.Polygon = class Polygon extends exports.UI {
1565
1566
  };
1566
1567
  __decorate([
1567
1568
  core.dataProcessor(PolygonData)
1568
- ], exports.Polygon.prototype, "__", void 0);
1569
+ ], exports.Polygon.prototype, "__", undefined);
1569
1570
  __decorate([
1570
1571
  core.pathType(3)
1571
- ], exports.Polygon.prototype, "sides", void 0);
1572
+ ], exports.Polygon.prototype, "sides", undefined);
1572
1573
  __decorate([
1573
1574
  core.pathType()
1574
- ], exports.Polygon.prototype, "points", void 0);
1575
+ ], exports.Polygon.prototype, "points", undefined);
1575
1576
  __decorate([
1576
1577
  core.pathType(0)
1577
- ], exports.Polygon.prototype, "curve", void 0);
1578
+ ], exports.Polygon.prototype, "curve", undefined);
1578
1579
  __decorate([
1579
1580
  core.rewrite(line.__updateRenderPath)
1580
1581
  ], exports.Polygon.prototype, "__updateRenderPath", null);
@@ -1606,13 +1607,13 @@ exports.Star = class Star extends exports.UI {
1606
1607
  };
1607
1608
  __decorate([
1608
1609
  core.dataProcessor(StarData)
1609
- ], exports.Star.prototype, "__", void 0);
1610
+ ], exports.Star.prototype, "__", undefined);
1610
1611
  __decorate([
1611
1612
  core.pathType(5)
1612
- ], exports.Star.prototype, "corners", void 0);
1613
+ ], exports.Star.prototype, "corners", undefined);
1613
1614
  __decorate([
1614
1615
  core.pathType(0.382)
1615
- ], exports.Star.prototype, "innerRadius", void 0);
1616
+ ], exports.Star.prototype, "innerRadius", undefined);
1616
1617
  exports.Star = __decorate([
1617
1618
  core.registerUI()
1618
1619
  ], exports.Star);
@@ -1634,10 +1635,10 @@ exports.Image = class Image extends exports.Rect {
1634
1635
  };
1635
1636
  __decorate([
1636
1637
  core.dataProcessor(ImageData)
1637
- ], exports.Image.prototype, "__", void 0);
1638
+ ], exports.Image.prototype, "__", undefined);
1638
1639
  __decorate([
1639
1640
  core.boundsType('')
1640
- ], exports.Image.prototype, "url", void 0);
1641
+ ], exports.Image.prototype, "url", undefined);
1641
1642
  exports.Image = __decorate([
1642
1643
  core.registerUI()
1643
1644
  ], exports.Image);
@@ -1700,25 +1701,25 @@ exports.Canvas = class Canvas extends exports.Rect {
1700
1701
  };
1701
1702
  __decorate([
1702
1703
  core.dataProcessor(CanvasData)
1703
- ], exports.Canvas.prototype, "__", void 0);
1704
+ ], exports.Canvas.prototype, "__", undefined);
1704
1705
  __decorate([
1705
1706
  resizeType(100)
1706
- ], exports.Canvas.prototype, "width", void 0);
1707
+ ], exports.Canvas.prototype, "width", undefined);
1707
1708
  __decorate([
1708
1709
  resizeType(100)
1709
- ], exports.Canvas.prototype, "height", void 0);
1710
+ ], exports.Canvas.prototype, "height", undefined);
1710
1711
  __decorate([
1711
1712
  resizeType(1)
1712
- ], exports.Canvas.prototype, "pixelRatio", void 0);
1713
+ ], exports.Canvas.prototype, "pixelRatio", undefined);
1713
1714
  __decorate([
1714
1715
  resizeType(true)
1715
- ], exports.Canvas.prototype, "smooth", void 0);
1716
+ ], exports.Canvas.prototype, "smooth", undefined);
1716
1717
  __decorate([
1717
1718
  core.dataType(false)
1718
- ], exports.Canvas.prototype, "safeResize", void 0);
1719
+ ], exports.Canvas.prototype, "safeResize", undefined);
1719
1720
  __decorate([
1720
1721
  resizeType()
1721
- ], exports.Canvas.prototype, "contextSettings", void 0);
1722
+ ], exports.Canvas.prototype, "contextSettings", undefined);
1722
1723
  exports.Canvas = __decorate([
1723
1724
  core.registerUI()
1724
1725
  ], exports.Canvas);
@@ -1809,76 +1810,76 @@ exports.Text = class Text extends exports.UI {
1809
1810
  };
1810
1811
  __decorate([
1811
1812
  core.dataProcessor(TextData)
1812
- ], exports.Text.prototype, "__", void 0);
1813
+ ], exports.Text.prototype, "__", undefined);
1813
1814
  __decorate([
1814
1815
  core.boundsType(0)
1815
- ], exports.Text.prototype, "width", void 0);
1816
+ ], exports.Text.prototype, "width", undefined);
1816
1817
  __decorate([
1817
1818
  core.boundsType(0)
1818
- ], exports.Text.prototype, "height", void 0);
1819
+ ], exports.Text.prototype, "height", undefined);
1819
1820
  __decorate([
1820
1821
  core.dataType(false)
1821
- ], exports.Text.prototype, "resizeFontSize", void 0);
1822
+ ], exports.Text.prototype, "resizeFontSize", undefined);
1822
1823
  __decorate([
1823
1824
  core.surfaceType('#000000')
1824
- ], exports.Text.prototype, "fill", void 0);
1825
+ ], exports.Text.prototype, "fill", undefined);
1825
1826
  __decorate([
1826
1827
  core.affectStrokeBoundsType('outside')
1827
- ], exports.Text.prototype, "strokeAlign", void 0);
1828
+ ], exports.Text.prototype, "strokeAlign", undefined);
1828
1829
  __decorate([
1829
1830
  core.hitType('all')
1830
- ], exports.Text.prototype, "hitFill", void 0);
1831
+ ], exports.Text.prototype, "hitFill", undefined);
1831
1832
  __decorate([
1832
1833
  core.boundsType('')
1833
- ], exports.Text.prototype, "text", void 0);
1834
+ ], exports.Text.prototype, "text", undefined);
1834
1835
  __decorate([
1835
- core.boundsType('L')
1836
- ], exports.Text.prototype, "fontFamily", void 0);
1836
+ core.boundsType('caption')
1837
+ ], exports.Text.prototype, "fontFamily", undefined);
1837
1838
  __decorate([
1838
1839
  core.boundsType(12)
1839
- ], exports.Text.prototype, "fontSize", void 0);
1840
+ ], exports.Text.prototype, "fontSize", undefined);
1840
1841
  __decorate([
1841
1842
  core.boundsType('normal')
1842
- ], exports.Text.prototype, "fontWeight", void 0);
1843
+ ], exports.Text.prototype, "fontWeight", undefined);
1843
1844
  __decorate([
1844
1845
  core.boundsType(false)
1845
- ], exports.Text.prototype, "italic", void 0);
1846
+ ], exports.Text.prototype, "italic", undefined);
1846
1847
  __decorate([
1847
1848
  core.boundsType('none')
1848
- ], exports.Text.prototype, "textCase", void 0);
1849
+ ], exports.Text.prototype, "textCase", undefined);
1849
1850
  __decorate([
1850
1851
  core.boundsType('none')
1851
- ], exports.Text.prototype, "textDecoration", void 0);
1852
+ ], exports.Text.prototype, "textDecoration", undefined);
1852
1853
  __decorate([
1853
1854
  core.boundsType(0)
1854
- ], exports.Text.prototype, "letterSpacing", void 0);
1855
+ ], exports.Text.prototype, "letterSpacing", undefined);
1855
1856
  __decorate([
1856
1857
  core.boundsType({ type: 'percent', value: 1.5 })
1857
- ], exports.Text.prototype, "lineHeight", void 0);
1858
+ ], exports.Text.prototype, "lineHeight", undefined);
1858
1859
  __decorate([
1859
1860
  core.boundsType(0)
1860
- ], exports.Text.prototype, "paraIndent", void 0);
1861
+ ], exports.Text.prototype, "paraIndent", undefined);
1861
1862
  __decorate([
1862
1863
  core.boundsType(0)
1863
- ], exports.Text.prototype, "paraSpacing", void 0);
1864
+ ], exports.Text.prototype, "paraSpacing", undefined);
1864
1865
  __decorate([
1865
1866
  core.boundsType('x')
1866
- ], exports.Text.prototype, "writingMode", void 0);
1867
+ ], exports.Text.prototype, "writingMode", undefined);
1867
1868
  __decorate([
1868
1869
  core.boundsType('left')
1869
- ], exports.Text.prototype, "textAlign", void 0);
1870
+ ], exports.Text.prototype, "textAlign", undefined);
1870
1871
  __decorate([
1871
1872
  core.boundsType('top')
1872
- ], exports.Text.prototype, "verticalAlign", void 0);
1873
+ ], exports.Text.prototype, "verticalAlign", undefined);
1873
1874
  __decorate([
1874
1875
  core.boundsType(true)
1875
- ], exports.Text.prototype, "autoSizeAlign", void 0);
1876
+ ], exports.Text.prototype, "autoSizeAlign", undefined);
1876
1877
  __decorate([
1877
1878
  core.boundsType('normal')
1878
- ], exports.Text.prototype, "textWrap", void 0);
1879
+ ], exports.Text.prototype, "textWrap", undefined);
1879
1880
  __decorate([
1880
1881
  core.boundsType('show')
1881
- ], exports.Text.prototype, "textOverflow", void 0);
1882
+ ], exports.Text.prototype, "textOverflow", undefined);
1882
1883
  exports.Text = __decorate([
1883
1884
  core.registerUI()
1884
1885
  ], exports.Text);
@@ -1891,10 +1892,10 @@ exports.Path = class Path extends exports.UI {
1891
1892
  };
1892
1893
  __decorate([
1893
1894
  core.dataProcessor(PathData)
1894
- ], exports.Path.prototype, "__", void 0);
1895
+ ], exports.Path.prototype, "__", undefined);
1895
1896
  __decorate([
1896
1897
  core.affectStrokeBoundsType('center')
1897
- ], exports.Path.prototype, "strokeAlign", void 0);
1898
+ ], exports.Path.prototype, "strokeAlign", undefined);
1898
1899
  exports.Path = __decorate([
1899
1900
  core.registerUI()
1900
1901
  ], exports.Path);
@@ -1933,10 +1934,10 @@ exports.Pen = class Pen extends exports.Group {
1933
1934
  };
1934
1935
  __decorate([
1935
1936
  core.dataProcessor(PenData)
1936
- ], exports.Pen.prototype, "__", void 0);
1937
+ ], exports.Pen.prototype, "__", undefined);
1937
1938
  __decorate([
1938
1939
  penPathType()
1939
- ], exports.Pen.prototype, "path", void 0);
1940
+ ], exports.Pen.prototype, "path", undefined);
1940
1941
  exports.Pen = __decorate([
1941
1942
  core.useModule(core.PathCreator, ['set', 'path', 'paint']),
1942
1943
  core.registerUI()
@@ -1988,3 +1989,4 @@ Object.keys(core).forEach(function (k) {
1988
1989
  get: function () { return core[k]; }
1989
1990
  });
1990
1991
  });
1992
+ //# sourceMappingURL=draw.cjs.map