@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 +150 -138
- package/lib/draw.esm.js +150 -138
- package/lib/draw.esm.min.js +1 -1
- package/lib/draw.min.cjs +1 -1
- package/package.json +6 -6
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,
|
|
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, "__",
|
|
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') {
|
|
@@ -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, "__",
|
|
1248
|
+
], exports.Leafer.prototype, "__", undefined);
|
|
1239
1249
|
__decorate([
|
|
1240
1250
|
core.boundsType()
|
|
1241
|
-
], exports.Leafer.prototype, "pixelRatio",
|
|
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, "__",
|
|
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, "__",
|
|
1355
|
+
], exports.Box.prototype, "__", undefined);
|
|
1344
1356
|
__decorate([
|
|
1345
1357
|
core.dataType(false)
|
|
1346
|
-
], exports.Box.prototype, "resizeChildren",
|
|
1358
|
+
], exports.Box.prototype, "resizeChildren", undefined);
|
|
1347
1359
|
__decorate([
|
|
1348
1360
|
core.affectRenderBoundsType('show')
|
|
1349
|
-
], exports.Box.prototype, "overflow",
|
|
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, "__",
|
|
1400
|
+
], exports.Frame.prototype, "__", undefined);
|
|
1389
1401
|
__decorate([
|
|
1390
1402
|
core.surfaceType('#FFFFFF')
|
|
1391
|
-
], exports.Frame.prototype, "fill",
|
|
1403
|
+
], exports.Frame.prototype, "fill", undefined);
|
|
1392
1404
|
__decorate([
|
|
1393
1405
|
core.affectRenderBoundsType('hide')
|
|
1394
|
-
], exports.Frame.prototype, "overflow",
|
|
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, "__",
|
|
1453
|
+
], exports.Ellipse.prototype, "__", undefined);
|
|
1442
1454
|
__decorate([
|
|
1443
1455
|
core.pathType(0)
|
|
1444
|
-
], exports.Ellipse.prototype, "innerRadius",
|
|
1456
|
+
], exports.Ellipse.prototype, "innerRadius", undefined);
|
|
1445
1457
|
__decorate([
|
|
1446
1458
|
core.pathType(0)
|
|
1447
|
-
], exports.Ellipse.prototype, "startAngle",
|
|
1459
|
+
], exports.Ellipse.prototype, "startAngle", undefined);
|
|
1448
1460
|
__decorate([
|
|
1449
1461
|
core.pathType(0)
|
|
1450
|
-
], exports.Ellipse.prototype, "endAngle",
|
|
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, "__",
|
|
1521
|
+
], exports.Line.prototype, "__", undefined);
|
|
1510
1522
|
__decorate([
|
|
1511
1523
|
core.affectStrokeBoundsType('center')
|
|
1512
|
-
], exports.Line.prototype, "strokeAlign",
|
|
1524
|
+
], exports.Line.prototype, "strokeAlign", undefined);
|
|
1513
1525
|
__decorate([
|
|
1514
1526
|
core.boundsType(0)
|
|
1515
|
-
], exports.Line.prototype, "height",
|
|
1527
|
+
], exports.Line.prototype, "height", undefined);
|
|
1516
1528
|
__decorate([
|
|
1517
1529
|
core.pathType()
|
|
1518
|
-
], exports.Line.prototype, "points",
|
|
1530
|
+
], exports.Line.prototype, "points", undefined);
|
|
1519
1531
|
__decorate([
|
|
1520
1532
|
core.pathType(0)
|
|
1521
|
-
], exports.Line.prototype, "curve",
|
|
1533
|
+
], exports.Line.prototype, "curve", undefined);
|
|
1522
1534
|
__decorate([
|
|
1523
1535
|
core.pathType(false)
|
|
1524
|
-
], exports.Line.prototype, "closed",
|
|
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, "__",
|
|
1569
|
+
], exports.Polygon.prototype, "__", undefined);
|
|
1558
1570
|
__decorate([
|
|
1559
1571
|
core.pathType(3)
|
|
1560
|
-
], exports.Polygon.prototype, "sides",
|
|
1572
|
+
], exports.Polygon.prototype, "sides", undefined);
|
|
1561
1573
|
__decorate([
|
|
1562
1574
|
core.pathType()
|
|
1563
|
-
], exports.Polygon.prototype, "points",
|
|
1575
|
+
], exports.Polygon.prototype, "points", undefined);
|
|
1564
1576
|
__decorate([
|
|
1565
1577
|
core.pathType(0)
|
|
1566
|
-
], exports.Polygon.prototype, "curve",
|
|
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, "__",
|
|
1610
|
+
], exports.Star.prototype, "__", undefined);
|
|
1599
1611
|
__decorate([
|
|
1600
1612
|
core.pathType(5)
|
|
1601
|
-
], exports.Star.prototype, "corners",
|
|
1613
|
+
], exports.Star.prototype, "corners", undefined);
|
|
1602
1614
|
__decorate([
|
|
1603
1615
|
core.pathType(0.382)
|
|
1604
|
-
], exports.Star.prototype, "innerRadius",
|
|
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, "__",
|
|
1638
|
+
], exports.Image.prototype, "__", undefined);
|
|
1627
1639
|
__decorate([
|
|
1628
1640
|
core.boundsType('')
|
|
1629
|
-
], exports.Image.prototype, "url",
|
|
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, "__",
|
|
1704
|
+
], exports.Canvas.prototype, "__", undefined);
|
|
1693
1705
|
__decorate([
|
|
1694
1706
|
resizeType(100)
|
|
1695
|
-
], exports.Canvas.prototype, "width",
|
|
1707
|
+
], exports.Canvas.prototype, "width", undefined);
|
|
1696
1708
|
__decorate([
|
|
1697
1709
|
resizeType(100)
|
|
1698
|
-
], exports.Canvas.prototype, "height",
|
|
1710
|
+
], exports.Canvas.prototype, "height", undefined);
|
|
1699
1711
|
__decorate([
|
|
1700
1712
|
resizeType(1)
|
|
1701
|
-
], exports.Canvas.prototype, "pixelRatio",
|
|
1713
|
+
], exports.Canvas.prototype, "pixelRatio", undefined);
|
|
1702
1714
|
__decorate([
|
|
1703
1715
|
resizeType(true)
|
|
1704
|
-
], exports.Canvas.prototype, "smooth",
|
|
1716
|
+
], exports.Canvas.prototype, "smooth", undefined);
|
|
1705
1717
|
__decorate([
|
|
1706
1718
|
core.dataType(false)
|
|
1707
|
-
], exports.Canvas.prototype, "safeResize",
|
|
1719
|
+
], exports.Canvas.prototype, "safeResize", undefined);
|
|
1708
1720
|
__decorate([
|
|
1709
1721
|
resizeType()
|
|
1710
|
-
], exports.Canvas.prototype, "contextSettings",
|
|
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, "__",
|
|
1813
|
+
], exports.Text.prototype, "__", undefined);
|
|
1802
1814
|
__decorate([
|
|
1803
1815
|
core.boundsType(0)
|
|
1804
|
-
], exports.Text.prototype, "width",
|
|
1816
|
+
], exports.Text.prototype, "width", undefined);
|
|
1805
1817
|
__decorate([
|
|
1806
1818
|
core.boundsType(0)
|
|
1807
|
-
], exports.Text.prototype, "height",
|
|
1819
|
+
], exports.Text.prototype, "height", undefined);
|
|
1808
1820
|
__decorate([
|
|
1809
1821
|
core.dataType(false)
|
|
1810
|
-
], exports.Text.prototype, "resizeFontSize",
|
|
1822
|
+
], exports.Text.prototype, "resizeFontSize", undefined);
|
|
1811
1823
|
__decorate([
|
|
1812
1824
|
core.surfaceType('#000000')
|
|
1813
|
-
], exports.Text.prototype, "fill",
|
|
1825
|
+
], exports.Text.prototype, "fill", undefined);
|
|
1814
1826
|
__decorate([
|
|
1815
1827
|
core.affectStrokeBoundsType('outside')
|
|
1816
|
-
], exports.Text.prototype, "strokeAlign",
|
|
1828
|
+
], exports.Text.prototype, "strokeAlign", undefined);
|
|
1817
1829
|
__decorate([
|
|
1818
1830
|
core.hitType('all')
|
|
1819
|
-
], exports.Text.prototype, "hitFill",
|
|
1831
|
+
], exports.Text.prototype, "hitFill", undefined);
|
|
1820
1832
|
__decorate([
|
|
1821
1833
|
core.boundsType('')
|
|
1822
|
-
], exports.Text.prototype, "text",
|
|
1834
|
+
], exports.Text.prototype, "text", undefined);
|
|
1823
1835
|
__decorate([
|
|
1824
|
-
core.boundsType('
|
|
1825
|
-
], exports.Text.prototype, "fontFamily",
|
|
1836
|
+
core.boundsType('caption')
|
|
1837
|
+
], exports.Text.prototype, "fontFamily", undefined);
|
|
1826
1838
|
__decorate([
|
|
1827
1839
|
core.boundsType(12)
|
|
1828
|
-
], exports.Text.prototype, "fontSize",
|
|
1840
|
+
], exports.Text.prototype, "fontSize", undefined);
|
|
1829
1841
|
__decorate([
|
|
1830
1842
|
core.boundsType('normal')
|
|
1831
|
-
], exports.Text.prototype, "fontWeight",
|
|
1843
|
+
], exports.Text.prototype, "fontWeight", undefined);
|
|
1832
1844
|
__decorate([
|
|
1833
1845
|
core.boundsType(false)
|
|
1834
|
-
], exports.Text.prototype, "italic",
|
|
1846
|
+
], exports.Text.prototype, "italic", undefined);
|
|
1835
1847
|
__decorate([
|
|
1836
1848
|
core.boundsType('none')
|
|
1837
|
-
], exports.Text.prototype, "textCase",
|
|
1849
|
+
], exports.Text.prototype, "textCase", undefined);
|
|
1838
1850
|
__decorate([
|
|
1839
1851
|
core.boundsType('none')
|
|
1840
|
-
], exports.Text.prototype, "textDecoration",
|
|
1852
|
+
], exports.Text.prototype, "textDecoration", undefined);
|
|
1841
1853
|
__decorate([
|
|
1842
1854
|
core.boundsType(0)
|
|
1843
|
-
], exports.Text.prototype, "letterSpacing",
|
|
1855
|
+
], exports.Text.prototype, "letterSpacing", undefined);
|
|
1844
1856
|
__decorate([
|
|
1845
1857
|
core.boundsType({ type: 'percent', value: 1.5 })
|
|
1846
|
-
], exports.Text.prototype, "lineHeight",
|
|
1858
|
+
], exports.Text.prototype, "lineHeight", undefined);
|
|
1847
1859
|
__decorate([
|
|
1848
1860
|
core.boundsType(0)
|
|
1849
|
-
], exports.Text.prototype, "paraIndent",
|
|
1861
|
+
], exports.Text.prototype, "paraIndent", undefined);
|
|
1850
1862
|
__decorate([
|
|
1851
1863
|
core.boundsType(0)
|
|
1852
|
-
], exports.Text.prototype, "paraSpacing",
|
|
1864
|
+
], exports.Text.prototype, "paraSpacing", undefined);
|
|
1853
1865
|
__decorate([
|
|
1854
1866
|
core.boundsType('x')
|
|
1855
|
-
], exports.Text.prototype, "writingMode",
|
|
1867
|
+
], exports.Text.prototype, "writingMode", undefined);
|
|
1856
1868
|
__decorate([
|
|
1857
1869
|
core.boundsType('left')
|
|
1858
|
-
], exports.Text.prototype, "textAlign",
|
|
1870
|
+
], exports.Text.prototype, "textAlign", undefined);
|
|
1859
1871
|
__decorate([
|
|
1860
1872
|
core.boundsType('top')
|
|
1861
|
-
], exports.Text.prototype, "verticalAlign",
|
|
1873
|
+
], exports.Text.prototype, "verticalAlign", undefined);
|
|
1862
1874
|
__decorate([
|
|
1863
1875
|
core.boundsType(true)
|
|
1864
|
-
], exports.Text.prototype, "autoSizeAlign",
|
|
1876
|
+
], exports.Text.prototype, "autoSizeAlign", undefined);
|
|
1865
1877
|
__decorate([
|
|
1866
1878
|
core.boundsType('normal')
|
|
1867
|
-
], exports.Text.prototype, "textWrap",
|
|
1879
|
+
], exports.Text.prototype, "textWrap", undefined);
|
|
1868
1880
|
__decorate([
|
|
1869
1881
|
core.boundsType('show')
|
|
1870
|
-
], exports.Text.prototype, "textOverflow",
|
|
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, "__",
|
|
1895
|
+
], exports.Path.prototype, "__", undefined);
|
|
1884
1896
|
__decorate([
|
|
1885
1897
|
core.affectStrokeBoundsType('center')
|
|
1886
|
-
], exports.Path.prototype, "strokeAlign",
|
|
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, "__",
|
|
1937
|
+
], exports.Pen.prototype, "__", undefined);
|
|
1926
1938
|
__decorate([
|
|
1927
1939
|
penPathType()
|
|
1928
|
-
], exports.Pen.prototype, "path",
|
|
1940
|
+
], exports.Pen.prototype, "path", undefined);
|
|
1929
1941
|
exports.Pen = __decorate([
|
|
1930
1942
|
core.useModule(core.PathCreator, ['set', 'path', 'paint']),
|
|
1931
1943
|
core.registerUI()
|