@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 +135 -133
- package/lib/draw.cjs.map +1 -0
- package/lib/draw.esm.js +135 -133
- package/lib/draw.esm.js.map +1 -0
- package/lib/draw.esm.min.js +2 -1
- package/lib/draw.esm.min.js.map +1 -0
- package/lib/draw.min.cjs +2 -1
- package/lib/draw.min.cjs.map +1 -0
- package/package.json +9 -9
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, "__",
|
|
622
|
+
], exports.UI.prototype, "__", undefined);
|
|
622
623
|
__decorate([
|
|
623
624
|
zoomLayerType()
|
|
624
|
-
], exports.UI.prototype, "zoomLayer",
|
|
625
|
+
], exports.UI.prototype, "zoomLayer", undefined);
|
|
625
626
|
__decorate([
|
|
626
627
|
core.dataType('')
|
|
627
|
-
], exports.UI.prototype, "id",
|
|
628
|
+
], exports.UI.prototype, "id", undefined);
|
|
628
629
|
__decorate([
|
|
629
630
|
core.dataType('')
|
|
630
|
-
], exports.UI.prototype, "name",
|
|
631
|
+
], exports.UI.prototype, "name", undefined);
|
|
631
632
|
__decorate([
|
|
632
633
|
core.dataType('')
|
|
633
|
-
], exports.UI.prototype, "className",
|
|
634
|
+
], exports.UI.prototype, "className", undefined);
|
|
634
635
|
__decorate([
|
|
635
636
|
core.surfaceType('pass-through')
|
|
636
|
-
], exports.UI.prototype, "blendMode",
|
|
637
|
+
], exports.UI.prototype, "blendMode", undefined);
|
|
637
638
|
__decorate([
|
|
638
639
|
core.opacityType(1)
|
|
639
|
-
], exports.UI.prototype, "opacity",
|
|
640
|
+
], exports.UI.prototype, "opacity", undefined);
|
|
640
641
|
__decorate([
|
|
641
642
|
core.visibleType(true)
|
|
642
|
-
], exports.UI.prototype, "visible",
|
|
643
|
+
], exports.UI.prototype, "visible", undefined);
|
|
643
644
|
__decorate([
|
|
644
645
|
core.surfaceType(false)
|
|
645
|
-
], exports.UI.prototype, "locked",
|
|
646
|
+
], exports.UI.prototype, "locked", undefined);
|
|
646
647
|
__decorate([
|
|
647
648
|
core.sortType(0)
|
|
648
|
-
], exports.UI.prototype, "zIndex",
|
|
649
|
+
], exports.UI.prototype, "zIndex", undefined);
|
|
649
650
|
__decorate([
|
|
650
651
|
core.maskType(false)
|
|
651
|
-
], exports.UI.prototype, "mask",
|
|
652
|
+
], exports.UI.prototype, "mask", undefined);
|
|
652
653
|
__decorate([
|
|
653
654
|
core.eraserType(false)
|
|
654
|
-
], exports.UI.prototype, "eraser",
|
|
655
|
+
], exports.UI.prototype, "eraser", undefined);
|
|
655
656
|
__decorate([
|
|
656
657
|
core.positionType(0, true)
|
|
657
|
-
], exports.UI.prototype, "x",
|
|
658
|
+
], exports.UI.prototype, "x", undefined);
|
|
658
659
|
__decorate([
|
|
659
660
|
core.positionType(0, true)
|
|
660
|
-
], exports.UI.prototype, "y",
|
|
661
|
+
], exports.UI.prototype, "y", undefined);
|
|
661
662
|
__decorate([
|
|
662
663
|
core.boundsType(100, true)
|
|
663
|
-
], exports.UI.prototype, "width",
|
|
664
|
+
], exports.UI.prototype, "width", undefined);
|
|
664
665
|
__decorate([
|
|
665
666
|
core.boundsType(100, true)
|
|
666
|
-
], exports.UI.prototype, "height",
|
|
667
|
+
], exports.UI.prototype, "height", undefined);
|
|
667
668
|
__decorate([
|
|
668
669
|
core.scaleType(1, true)
|
|
669
|
-
], exports.UI.prototype, "scaleX",
|
|
670
|
+
], exports.UI.prototype, "scaleX", undefined);
|
|
670
671
|
__decorate([
|
|
671
672
|
core.scaleType(1, true)
|
|
672
|
-
], exports.UI.prototype, "scaleY",
|
|
673
|
+
], exports.UI.prototype, "scaleY", undefined);
|
|
673
674
|
__decorate([
|
|
674
675
|
core.rotationType(0, true)
|
|
675
|
-
], exports.UI.prototype, "rotation",
|
|
676
|
+
], exports.UI.prototype, "rotation", undefined);
|
|
676
677
|
__decorate([
|
|
677
678
|
core.rotationType(0, true)
|
|
678
|
-
], exports.UI.prototype, "skewX",
|
|
679
|
+
], exports.UI.prototype, "skewX", undefined);
|
|
679
680
|
__decorate([
|
|
680
681
|
core.rotationType(0, true)
|
|
681
|
-
], exports.UI.prototype, "skewY",
|
|
682
|
+
], exports.UI.prototype, "skewY", undefined);
|
|
682
683
|
__decorate([
|
|
683
684
|
core.positionType(0, true)
|
|
684
|
-
], exports.UI.prototype, "offsetX",
|
|
685
|
+
], exports.UI.prototype, "offsetX", undefined);
|
|
685
686
|
__decorate([
|
|
686
687
|
core.positionType(0, true)
|
|
687
|
-
], exports.UI.prototype, "offsetY",
|
|
688
|
+
], exports.UI.prototype, "offsetY", undefined);
|
|
688
689
|
__decorate([
|
|
689
690
|
core.positionType(0, true)
|
|
690
|
-
], exports.UI.prototype, "scrollX",
|
|
691
|
+
], exports.UI.prototype, "scrollX", undefined);
|
|
691
692
|
__decorate([
|
|
692
693
|
core.positionType(0, true)
|
|
693
|
-
], exports.UI.prototype, "scrollY",
|
|
694
|
+
], exports.UI.prototype, "scrollY", undefined);
|
|
694
695
|
__decorate([
|
|
695
696
|
core.autoLayoutType()
|
|
696
|
-
], exports.UI.prototype, "origin",
|
|
697
|
+
], exports.UI.prototype, "origin", undefined);
|
|
697
698
|
__decorate([
|
|
698
699
|
core.autoLayoutType()
|
|
699
|
-
], exports.UI.prototype, "around",
|
|
700
|
+
], exports.UI.prototype, "around", undefined);
|
|
700
701
|
__decorate([
|
|
701
702
|
core.dataType(false)
|
|
702
|
-
], exports.UI.prototype, "lazy",
|
|
703
|
+
], exports.UI.prototype, "lazy", undefined);
|
|
703
704
|
__decorate([
|
|
704
705
|
core.naturalBoundsType(1)
|
|
705
|
-
], exports.UI.prototype, "pixelRatio",
|
|
706
|
+
], exports.UI.prototype, "pixelRatio", undefined);
|
|
706
707
|
__decorate([
|
|
707
708
|
core.pathInputType()
|
|
708
|
-
], exports.UI.prototype, "path",
|
|
709
|
+
], exports.UI.prototype, "path", undefined);
|
|
709
710
|
__decorate([
|
|
710
711
|
core.pathType()
|
|
711
|
-
], exports.UI.prototype, "windingRule",
|
|
712
|
+
], exports.UI.prototype, "windingRule", undefined);
|
|
712
713
|
__decorate([
|
|
713
714
|
core.pathType(true)
|
|
714
|
-
], exports.UI.prototype, "closed",
|
|
715
|
+
], exports.UI.prototype, "closed", undefined);
|
|
715
716
|
__decorate([
|
|
716
717
|
core.boundsType(0)
|
|
717
|
-
], exports.UI.prototype, "padding",
|
|
718
|
+
], exports.UI.prototype, "padding", undefined);
|
|
718
719
|
__decorate([
|
|
719
720
|
core.boundsType(false)
|
|
720
|
-
], exports.UI.prototype, "lockRatio",
|
|
721
|
+
], exports.UI.prototype, "lockRatio", undefined);
|
|
721
722
|
__decorate([
|
|
722
723
|
core.boundsType()
|
|
723
|
-
], exports.UI.prototype, "widthRange",
|
|
724
|
+
], exports.UI.prototype, "widthRange", undefined);
|
|
724
725
|
__decorate([
|
|
725
726
|
core.boundsType()
|
|
726
|
-
], exports.UI.prototype, "heightRange",
|
|
727
|
+
], exports.UI.prototype, "heightRange", undefined);
|
|
727
728
|
__decorate([
|
|
728
729
|
core.dataType(false)
|
|
729
|
-
], exports.UI.prototype, "draggable",
|
|
730
|
+
], exports.UI.prototype, "draggable", undefined);
|
|
730
731
|
__decorate([
|
|
731
732
|
core.dataType()
|
|
732
|
-
], exports.UI.prototype, "dragBounds",
|
|
733
|
+
], exports.UI.prototype, "dragBounds", undefined);
|
|
733
734
|
__decorate([
|
|
734
735
|
core.dataType(false)
|
|
735
|
-
], exports.UI.prototype, "editable",
|
|
736
|
+
], exports.UI.prototype, "editable", undefined);
|
|
736
737
|
__decorate([
|
|
737
738
|
core.hitType(true)
|
|
738
|
-
], exports.UI.prototype, "hittable",
|
|
739
|
+
], exports.UI.prototype, "hittable", undefined);
|
|
739
740
|
__decorate([
|
|
740
741
|
core.hitType('path')
|
|
741
|
-
], exports.UI.prototype, "hitFill",
|
|
742
|
+
], exports.UI.prototype, "hitFill", undefined);
|
|
742
743
|
__decorate([
|
|
743
744
|
core.strokeType('path')
|
|
744
|
-
], exports.UI.prototype, "hitStroke",
|
|
745
|
+
], exports.UI.prototype, "hitStroke", undefined);
|
|
745
746
|
__decorate([
|
|
746
747
|
core.hitType(false)
|
|
747
|
-
], exports.UI.prototype, "hitBox",
|
|
748
|
+
], exports.UI.prototype, "hitBox", undefined);
|
|
748
749
|
__decorate([
|
|
749
750
|
core.hitType(true)
|
|
750
|
-
], exports.UI.prototype, "hitChildren",
|
|
751
|
+
], exports.UI.prototype, "hitChildren", undefined);
|
|
751
752
|
__decorate([
|
|
752
753
|
core.hitType(true)
|
|
753
|
-
], exports.UI.prototype, "hitSelf",
|
|
754
|
+
], exports.UI.prototype, "hitSelf", undefined);
|
|
754
755
|
__decorate([
|
|
755
756
|
core.hitType()
|
|
756
|
-
], exports.UI.prototype, "hitRadius",
|
|
757
|
+
], exports.UI.prototype, "hitRadius", undefined);
|
|
757
758
|
__decorate([
|
|
758
759
|
core.cursorType('')
|
|
759
|
-
], exports.UI.prototype, "cursor",
|
|
760
|
+
], exports.UI.prototype, "cursor", undefined);
|
|
760
761
|
__decorate([
|
|
761
762
|
core.surfaceType()
|
|
762
|
-
], exports.UI.prototype, "fill",
|
|
763
|
+
], exports.UI.prototype, "fill", undefined);
|
|
763
764
|
__decorate([
|
|
764
765
|
core.strokeType()
|
|
765
|
-
], exports.UI.prototype, "stroke",
|
|
766
|
+
], exports.UI.prototype, "stroke", undefined);
|
|
766
767
|
__decorate([
|
|
767
768
|
core.strokeType('inside')
|
|
768
|
-
], exports.UI.prototype, "strokeAlign",
|
|
769
|
+
], exports.UI.prototype, "strokeAlign", undefined);
|
|
769
770
|
__decorate([
|
|
770
771
|
core.strokeType(1)
|
|
771
|
-
], exports.UI.prototype, "strokeWidth",
|
|
772
|
+
], exports.UI.prototype, "strokeWidth", undefined);
|
|
772
773
|
__decorate([
|
|
773
774
|
core.strokeType(false)
|
|
774
|
-
], exports.UI.prototype, "strokeWidthFixed",
|
|
775
|
+
], exports.UI.prototype, "strokeWidthFixed", undefined);
|
|
775
776
|
__decorate([
|
|
776
777
|
core.strokeType('none')
|
|
777
|
-
], exports.UI.prototype, "strokeCap",
|
|
778
|
+
], exports.UI.prototype, "strokeCap", undefined);
|
|
778
779
|
__decorate([
|
|
779
780
|
core.strokeType('miter')
|
|
780
|
-
], exports.UI.prototype, "strokeJoin",
|
|
781
|
+
], exports.UI.prototype, "strokeJoin", undefined);
|
|
781
782
|
__decorate([
|
|
782
783
|
core.strokeType()
|
|
783
|
-
], exports.UI.prototype, "dashPattern",
|
|
784
|
+
], exports.UI.prototype, "dashPattern", undefined);
|
|
784
785
|
__decorate([
|
|
785
786
|
core.strokeType()
|
|
786
|
-
], exports.UI.prototype, "dashOffset",
|
|
787
|
+
], exports.UI.prototype, "dashOffset", undefined);
|
|
787
788
|
__decorate([
|
|
788
789
|
core.strokeType(10)
|
|
789
|
-
], exports.UI.prototype, "miterLimit",
|
|
790
|
+
], exports.UI.prototype, "miterLimit", undefined);
|
|
790
791
|
__decorate([
|
|
791
792
|
core.pathType(0)
|
|
792
|
-
], exports.UI.prototype, "cornerRadius",
|
|
793
|
+
], exports.UI.prototype, "cornerRadius", undefined);
|
|
793
794
|
__decorate([
|
|
794
795
|
core.pathType()
|
|
795
|
-
], exports.UI.prototype, "cornerSmoothing",
|
|
796
|
+
], exports.UI.prototype, "cornerSmoothing", undefined);
|
|
796
797
|
__decorate([
|
|
797
798
|
effectType()
|
|
798
|
-
], exports.UI.prototype, "shadow",
|
|
799
|
+
], exports.UI.prototype, "shadow", undefined);
|
|
799
800
|
__decorate([
|
|
800
801
|
effectType()
|
|
801
|
-
], exports.UI.prototype, "innerShadow",
|
|
802
|
+
], exports.UI.prototype, "innerShadow", undefined);
|
|
802
803
|
__decorate([
|
|
803
804
|
effectType()
|
|
804
|
-
], exports.UI.prototype, "blur",
|
|
805
|
+
], exports.UI.prototype, "blur", undefined);
|
|
805
806
|
__decorate([
|
|
806
807
|
effectType()
|
|
807
|
-
], exports.UI.prototype, "backgroundBlur",
|
|
808
|
+
], exports.UI.prototype, "backgroundBlur", undefined);
|
|
808
809
|
__decorate([
|
|
809
810
|
effectType()
|
|
810
|
-
], exports.UI.prototype, "grayscale",
|
|
811
|
+
], exports.UI.prototype, "grayscale", undefined);
|
|
811
812
|
__decorate([
|
|
812
813
|
core.dataType({})
|
|
813
|
-
], exports.UI.prototype, "data",
|
|
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, "__",
|
|
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, "__",
|
|
1248
|
+
], exports.Leafer.prototype, "__", undefined);
|
|
1250
1249
|
__decorate([
|
|
1251
1250
|
core.boundsType()
|
|
1252
|
-
], exports.Leafer.prototype, "pixelRatio",
|
|
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, "__",
|
|
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, "__",
|
|
1355
|
+
], exports.Box.prototype, "__", undefined);
|
|
1355
1356
|
__decorate([
|
|
1356
1357
|
core.dataType(false)
|
|
1357
|
-
], exports.Box.prototype, "resizeChildren",
|
|
1358
|
+
], exports.Box.prototype, "resizeChildren", undefined);
|
|
1358
1359
|
__decorate([
|
|
1359
1360
|
core.affectRenderBoundsType('show')
|
|
1360
|
-
], exports.Box.prototype, "overflow",
|
|
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, "__",
|
|
1400
|
+
], exports.Frame.prototype, "__", undefined);
|
|
1400
1401
|
__decorate([
|
|
1401
1402
|
core.surfaceType('#FFFFFF')
|
|
1402
|
-
], exports.Frame.prototype, "fill",
|
|
1403
|
+
], exports.Frame.prototype, "fill", undefined);
|
|
1403
1404
|
__decorate([
|
|
1404
1405
|
core.affectRenderBoundsType('hide')
|
|
1405
|
-
], exports.Frame.prototype, "overflow",
|
|
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, "__",
|
|
1453
|
+
], exports.Ellipse.prototype, "__", undefined);
|
|
1453
1454
|
__decorate([
|
|
1454
1455
|
core.pathType(0)
|
|
1455
|
-
], exports.Ellipse.prototype, "innerRadius",
|
|
1456
|
+
], exports.Ellipse.prototype, "innerRadius", undefined);
|
|
1456
1457
|
__decorate([
|
|
1457
1458
|
core.pathType(0)
|
|
1458
|
-
], exports.Ellipse.prototype, "startAngle",
|
|
1459
|
+
], exports.Ellipse.prototype, "startAngle", undefined);
|
|
1459
1460
|
__decorate([
|
|
1460
1461
|
core.pathType(0)
|
|
1461
|
-
], exports.Ellipse.prototype, "endAngle",
|
|
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, "__",
|
|
1521
|
+
], exports.Line.prototype, "__", undefined);
|
|
1521
1522
|
__decorate([
|
|
1522
1523
|
core.affectStrokeBoundsType('center')
|
|
1523
|
-
], exports.Line.prototype, "strokeAlign",
|
|
1524
|
+
], exports.Line.prototype, "strokeAlign", undefined);
|
|
1524
1525
|
__decorate([
|
|
1525
1526
|
core.boundsType(0)
|
|
1526
|
-
], exports.Line.prototype, "height",
|
|
1527
|
+
], exports.Line.prototype, "height", undefined);
|
|
1527
1528
|
__decorate([
|
|
1528
1529
|
core.pathType()
|
|
1529
|
-
], exports.Line.prototype, "points",
|
|
1530
|
+
], exports.Line.prototype, "points", undefined);
|
|
1530
1531
|
__decorate([
|
|
1531
1532
|
core.pathType(0)
|
|
1532
|
-
], exports.Line.prototype, "curve",
|
|
1533
|
+
], exports.Line.prototype, "curve", undefined);
|
|
1533
1534
|
__decorate([
|
|
1534
1535
|
core.pathType(false)
|
|
1535
|
-
], exports.Line.prototype, "closed",
|
|
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, "__",
|
|
1569
|
+
], exports.Polygon.prototype, "__", undefined);
|
|
1569
1570
|
__decorate([
|
|
1570
1571
|
core.pathType(3)
|
|
1571
|
-
], exports.Polygon.prototype, "sides",
|
|
1572
|
+
], exports.Polygon.prototype, "sides", undefined);
|
|
1572
1573
|
__decorate([
|
|
1573
1574
|
core.pathType()
|
|
1574
|
-
], exports.Polygon.prototype, "points",
|
|
1575
|
+
], exports.Polygon.prototype, "points", undefined);
|
|
1575
1576
|
__decorate([
|
|
1576
1577
|
core.pathType(0)
|
|
1577
|
-
], exports.Polygon.prototype, "curve",
|
|
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, "__",
|
|
1610
|
+
], exports.Star.prototype, "__", undefined);
|
|
1610
1611
|
__decorate([
|
|
1611
1612
|
core.pathType(5)
|
|
1612
|
-
], exports.Star.prototype, "corners",
|
|
1613
|
+
], exports.Star.prototype, "corners", undefined);
|
|
1613
1614
|
__decorate([
|
|
1614
1615
|
core.pathType(0.382)
|
|
1615
|
-
], exports.Star.prototype, "innerRadius",
|
|
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, "__",
|
|
1638
|
+
], exports.Image.prototype, "__", undefined);
|
|
1638
1639
|
__decorate([
|
|
1639
1640
|
core.boundsType('')
|
|
1640
|
-
], exports.Image.prototype, "url",
|
|
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, "__",
|
|
1704
|
+
], exports.Canvas.prototype, "__", undefined);
|
|
1704
1705
|
__decorate([
|
|
1705
1706
|
resizeType(100)
|
|
1706
|
-
], exports.Canvas.prototype, "width",
|
|
1707
|
+
], exports.Canvas.prototype, "width", undefined);
|
|
1707
1708
|
__decorate([
|
|
1708
1709
|
resizeType(100)
|
|
1709
|
-
], exports.Canvas.prototype, "height",
|
|
1710
|
+
], exports.Canvas.prototype, "height", undefined);
|
|
1710
1711
|
__decorate([
|
|
1711
1712
|
resizeType(1)
|
|
1712
|
-
], exports.Canvas.prototype, "pixelRatio",
|
|
1713
|
+
], exports.Canvas.prototype, "pixelRatio", undefined);
|
|
1713
1714
|
__decorate([
|
|
1714
1715
|
resizeType(true)
|
|
1715
|
-
], exports.Canvas.prototype, "smooth",
|
|
1716
|
+
], exports.Canvas.prototype, "smooth", undefined);
|
|
1716
1717
|
__decorate([
|
|
1717
1718
|
core.dataType(false)
|
|
1718
|
-
], exports.Canvas.prototype, "safeResize",
|
|
1719
|
+
], exports.Canvas.prototype, "safeResize", undefined);
|
|
1719
1720
|
__decorate([
|
|
1720
1721
|
resizeType()
|
|
1721
|
-
], exports.Canvas.prototype, "contextSettings",
|
|
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, "__",
|
|
1813
|
+
], exports.Text.prototype, "__", undefined);
|
|
1813
1814
|
__decorate([
|
|
1814
1815
|
core.boundsType(0)
|
|
1815
|
-
], exports.Text.prototype, "width",
|
|
1816
|
+
], exports.Text.prototype, "width", undefined);
|
|
1816
1817
|
__decorate([
|
|
1817
1818
|
core.boundsType(0)
|
|
1818
|
-
], exports.Text.prototype, "height",
|
|
1819
|
+
], exports.Text.prototype, "height", undefined);
|
|
1819
1820
|
__decorate([
|
|
1820
1821
|
core.dataType(false)
|
|
1821
|
-
], exports.Text.prototype, "resizeFontSize",
|
|
1822
|
+
], exports.Text.prototype, "resizeFontSize", undefined);
|
|
1822
1823
|
__decorate([
|
|
1823
1824
|
core.surfaceType('#000000')
|
|
1824
|
-
], exports.Text.prototype, "fill",
|
|
1825
|
+
], exports.Text.prototype, "fill", undefined);
|
|
1825
1826
|
__decorate([
|
|
1826
1827
|
core.affectStrokeBoundsType('outside')
|
|
1827
|
-
], exports.Text.prototype, "strokeAlign",
|
|
1828
|
+
], exports.Text.prototype, "strokeAlign", undefined);
|
|
1828
1829
|
__decorate([
|
|
1829
1830
|
core.hitType('all')
|
|
1830
|
-
], exports.Text.prototype, "hitFill",
|
|
1831
|
+
], exports.Text.prototype, "hitFill", undefined);
|
|
1831
1832
|
__decorate([
|
|
1832
1833
|
core.boundsType('')
|
|
1833
|
-
], exports.Text.prototype, "text",
|
|
1834
|
+
], exports.Text.prototype, "text", undefined);
|
|
1834
1835
|
__decorate([
|
|
1835
|
-
core.boundsType('
|
|
1836
|
-
], exports.Text.prototype, "fontFamily",
|
|
1836
|
+
core.boundsType('caption')
|
|
1837
|
+
], exports.Text.prototype, "fontFamily", undefined);
|
|
1837
1838
|
__decorate([
|
|
1838
1839
|
core.boundsType(12)
|
|
1839
|
-
], exports.Text.prototype, "fontSize",
|
|
1840
|
+
], exports.Text.prototype, "fontSize", undefined);
|
|
1840
1841
|
__decorate([
|
|
1841
1842
|
core.boundsType('normal')
|
|
1842
|
-
], exports.Text.prototype, "fontWeight",
|
|
1843
|
+
], exports.Text.prototype, "fontWeight", undefined);
|
|
1843
1844
|
__decorate([
|
|
1844
1845
|
core.boundsType(false)
|
|
1845
|
-
], exports.Text.prototype, "italic",
|
|
1846
|
+
], exports.Text.prototype, "italic", undefined);
|
|
1846
1847
|
__decorate([
|
|
1847
1848
|
core.boundsType('none')
|
|
1848
|
-
], exports.Text.prototype, "textCase",
|
|
1849
|
+
], exports.Text.prototype, "textCase", undefined);
|
|
1849
1850
|
__decorate([
|
|
1850
1851
|
core.boundsType('none')
|
|
1851
|
-
], exports.Text.prototype, "textDecoration",
|
|
1852
|
+
], exports.Text.prototype, "textDecoration", undefined);
|
|
1852
1853
|
__decorate([
|
|
1853
1854
|
core.boundsType(0)
|
|
1854
|
-
], exports.Text.prototype, "letterSpacing",
|
|
1855
|
+
], exports.Text.prototype, "letterSpacing", undefined);
|
|
1855
1856
|
__decorate([
|
|
1856
1857
|
core.boundsType({ type: 'percent', value: 1.5 })
|
|
1857
|
-
], exports.Text.prototype, "lineHeight",
|
|
1858
|
+
], exports.Text.prototype, "lineHeight", undefined);
|
|
1858
1859
|
__decorate([
|
|
1859
1860
|
core.boundsType(0)
|
|
1860
|
-
], exports.Text.prototype, "paraIndent",
|
|
1861
|
+
], exports.Text.prototype, "paraIndent", undefined);
|
|
1861
1862
|
__decorate([
|
|
1862
1863
|
core.boundsType(0)
|
|
1863
|
-
], exports.Text.prototype, "paraSpacing",
|
|
1864
|
+
], exports.Text.prototype, "paraSpacing", undefined);
|
|
1864
1865
|
__decorate([
|
|
1865
1866
|
core.boundsType('x')
|
|
1866
|
-
], exports.Text.prototype, "writingMode",
|
|
1867
|
+
], exports.Text.prototype, "writingMode", undefined);
|
|
1867
1868
|
__decorate([
|
|
1868
1869
|
core.boundsType('left')
|
|
1869
|
-
], exports.Text.prototype, "textAlign",
|
|
1870
|
+
], exports.Text.prototype, "textAlign", undefined);
|
|
1870
1871
|
__decorate([
|
|
1871
1872
|
core.boundsType('top')
|
|
1872
|
-
], exports.Text.prototype, "verticalAlign",
|
|
1873
|
+
], exports.Text.prototype, "verticalAlign", undefined);
|
|
1873
1874
|
__decorate([
|
|
1874
1875
|
core.boundsType(true)
|
|
1875
|
-
], exports.Text.prototype, "autoSizeAlign",
|
|
1876
|
+
], exports.Text.prototype, "autoSizeAlign", undefined);
|
|
1876
1877
|
__decorate([
|
|
1877
1878
|
core.boundsType('normal')
|
|
1878
|
-
], exports.Text.prototype, "textWrap",
|
|
1879
|
+
], exports.Text.prototype, "textWrap", undefined);
|
|
1879
1880
|
__decorate([
|
|
1880
1881
|
core.boundsType('show')
|
|
1881
|
-
], exports.Text.prototype, "textOverflow",
|
|
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, "__",
|
|
1895
|
+
], exports.Path.prototype, "__", undefined);
|
|
1895
1896
|
__decorate([
|
|
1896
1897
|
core.affectStrokeBoundsType('center')
|
|
1897
|
-
], exports.Path.prototype, "strokeAlign",
|
|
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, "__",
|
|
1937
|
+
], exports.Pen.prototype, "__", undefined);
|
|
1937
1938
|
__decorate([
|
|
1938
1939
|
penPathType()
|
|
1939
|
-
], exports.Pen.prototype, "path",
|
|
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
|