@leafer-ui/miniapp 1.3.2 → 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/dist/miniapp.cjs +5 -5
- package/dist/miniapp.esm.js +5 -5
- package/dist/miniapp.esm.min.js +1 -1
- package/dist/miniapp.min.cjs +1 -1
- package/dist/miniapp.module.js +183 -179
- package/dist/miniapp.module.min.js +1 -1
- package/package.json +11 -11
package/dist/miniapp.module.js
CHANGED
|
@@ -1533,10 +1533,10 @@ const DataHelper = {
|
|
|
1533
1533
|
Object.keys(merge).forEach(key => {
|
|
1534
1534
|
var _a, _b;
|
|
1535
1535
|
value = merge[key];
|
|
1536
|
-
if ((value === null || value ===
|
|
1536
|
+
if ((value === null || value === undefined ? undefined : value.constructor) === Object && ((_a = t[key]) === null || _a === undefined ? undefined : _a.constructor) === Object)
|
|
1537
1537
|
return assign(t[key], merge[key], exclude && exclude[key]);
|
|
1538
1538
|
if (exclude && (key in exclude)) {
|
|
1539
|
-
if (((_b = exclude[key]) === null || _b ===
|
|
1539
|
+
if (((_b = exclude[key]) === null || _b === undefined ? undefined : _b.constructor) === Object)
|
|
1540
1540
|
assign(t[key] = {}, merge[key], exclude[key]);
|
|
1541
1541
|
return;
|
|
1542
1542
|
}
|
|
@@ -1705,7 +1705,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
1705
1705
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1706
1706
|
PERFORMANCE OF THIS SOFTWARE.
|
|
1707
1707
|
***************************************************************************** */
|
|
1708
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
1708
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
1709
1709
|
|
|
1710
1710
|
|
|
1711
1711
|
function __decorate(decorators, target, key, desc) {
|
|
@@ -1773,7 +1773,7 @@ let Canvas$1 = class Canvas {
|
|
|
1773
1773
|
}
|
|
1774
1774
|
setTransform(_a, _b, _c, _d, _e, _f) { }
|
|
1775
1775
|
resetTransform() { }
|
|
1776
|
-
getTransform() { return
|
|
1776
|
+
getTransform() { return undefined; }
|
|
1777
1777
|
save() { }
|
|
1778
1778
|
restore() { }
|
|
1779
1779
|
transform(a, b, c, d, e, f) {
|
|
@@ -1830,12 +1830,12 @@ let Canvas$1 = class Canvas {
|
|
|
1830
1830
|
ellipse(_x, _y, _radiusX, _radiusY, _rotation, _startAngle, _endAngle, _anticlockwise) { }
|
|
1831
1831
|
rect(_x, _y, _width, _height) { }
|
|
1832
1832
|
roundRect(_x, _y, _width, _height, _radius) { }
|
|
1833
|
-
createConicGradient(_startAngle, _x, _y) { return
|
|
1834
|
-
createLinearGradient(_x0, _y0, _x1, _y1) { return
|
|
1835
|
-
createPattern(_image, _repetition) { return
|
|
1836
|
-
createRadialGradient(_x0, _y0, _r0, _x1, _y1, _r1) { return
|
|
1833
|
+
createConicGradient(_startAngle, _x, _y) { return undefined; }
|
|
1834
|
+
createLinearGradient(_x0, _y0, _x1, _y1) { return undefined; }
|
|
1835
|
+
createPattern(_image, _repetition) { return undefined; }
|
|
1836
|
+
createRadialGradient(_x0, _y0, _r0, _x1, _y1, _r1) { return undefined; }
|
|
1837
1837
|
fillText(_text, _x, _y, _maxWidth) { }
|
|
1838
|
-
measureText(_text) { return
|
|
1838
|
+
measureText(_text) { return undefined; }
|
|
1839
1839
|
strokeText(_text, _x, _y, _maxWidth) { }
|
|
1840
1840
|
destroy() {
|
|
1841
1841
|
this.context = null;
|
|
@@ -1843,79 +1843,79 @@ let Canvas$1 = class Canvas {
|
|
|
1843
1843
|
};
|
|
1844
1844
|
__decorate([
|
|
1845
1845
|
contextAttr('imageSmoothingEnabled')
|
|
1846
|
-
], Canvas$1.prototype, "smooth",
|
|
1846
|
+
], Canvas$1.prototype, "smooth", undefined);
|
|
1847
1847
|
__decorate([
|
|
1848
1848
|
contextAttr('imageSmoothingQuality')
|
|
1849
|
-
], Canvas$1.prototype, "smoothLevel",
|
|
1849
|
+
], Canvas$1.prototype, "smoothLevel", undefined);
|
|
1850
1850
|
__decorate([
|
|
1851
1851
|
contextAttr('globalAlpha')
|
|
1852
|
-
], Canvas$1.prototype, "opacity",
|
|
1852
|
+
], Canvas$1.prototype, "opacity", undefined);
|
|
1853
1853
|
__decorate([
|
|
1854
1854
|
contextAttr()
|
|
1855
|
-
], Canvas$1.prototype, "fillStyle",
|
|
1855
|
+
], Canvas$1.prototype, "fillStyle", undefined);
|
|
1856
1856
|
__decorate([
|
|
1857
1857
|
contextAttr()
|
|
1858
|
-
], Canvas$1.prototype, "strokeStyle",
|
|
1858
|
+
], Canvas$1.prototype, "strokeStyle", undefined);
|
|
1859
1859
|
__decorate([
|
|
1860
1860
|
contextAttr('lineWidth')
|
|
1861
|
-
], Canvas$1.prototype, "strokeWidth",
|
|
1861
|
+
], Canvas$1.prototype, "strokeWidth", undefined);
|
|
1862
1862
|
__decorate([
|
|
1863
1863
|
contextAttr('lineCap')
|
|
1864
|
-
], Canvas$1.prototype, "strokeCap",
|
|
1864
|
+
], Canvas$1.prototype, "strokeCap", undefined);
|
|
1865
1865
|
__decorate([
|
|
1866
1866
|
contextAttr('lineJoin')
|
|
1867
|
-
], Canvas$1.prototype, "strokeJoin",
|
|
1867
|
+
], Canvas$1.prototype, "strokeJoin", undefined);
|
|
1868
1868
|
__decorate([
|
|
1869
1869
|
contextAttr('lineDashOffset')
|
|
1870
|
-
], Canvas$1.prototype, "dashOffset",
|
|
1870
|
+
], Canvas$1.prototype, "dashOffset", undefined);
|
|
1871
1871
|
__decorate([
|
|
1872
1872
|
contextAttr()
|
|
1873
|
-
], Canvas$1.prototype, "miterLimit",
|
|
1873
|
+
], Canvas$1.prototype, "miterLimit", undefined);
|
|
1874
1874
|
__decorate([
|
|
1875
1875
|
contextAttr()
|
|
1876
|
-
], Canvas$1.prototype, "shadowBlur",
|
|
1876
|
+
], Canvas$1.prototype, "shadowBlur", undefined);
|
|
1877
1877
|
__decorate([
|
|
1878
1878
|
contextAttr()
|
|
1879
|
-
], Canvas$1.prototype, "shadowColor",
|
|
1879
|
+
], Canvas$1.prototype, "shadowColor", undefined);
|
|
1880
1880
|
__decorate([
|
|
1881
1881
|
contextAttr()
|
|
1882
|
-
], Canvas$1.prototype, "shadowOffsetX",
|
|
1882
|
+
], Canvas$1.prototype, "shadowOffsetX", undefined);
|
|
1883
1883
|
__decorate([
|
|
1884
1884
|
contextAttr()
|
|
1885
|
-
], Canvas$1.prototype, "shadowOffsetY",
|
|
1885
|
+
], Canvas$1.prototype, "shadowOffsetY", undefined);
|
|
1886
1886
|
__decorate([
|
|
1887
1887
|
contextAttr()
|
|
1888
|
-
], Canvas$1.prototype, "filter",
|
|
1888
|
+
], Canvas$1.prototype, "filter", undefined);
|
|
1889
1889
|
__decorate([
|
|
1890
1890
|
contextAttr()
|
|
1891
|
-
], Canvas$1.prototype, "font",
|
|
1891
|
+
], Canvas$1.prototype, "font", undefined);
|
|
1892
1892
|
__decorate([
|
|
1893
1893
|
contextAttr()
|
|
1894
|
-
], Canvas$1.prototype, "fontKerning",
|
|
1894
|
+
], Canvas$1.prototype, "fontKerning", undefined);
|
|
1895
1895
|
__decorate([
|
|
1896
1896
|
contextAttr()
|
|
1897
|
-
], Canvas$1.prototype, "fontStretch",
|
|
1897
|
+
], Canvas$1.prototype, "fontStretch", undefined);
|
|
1898
1898
|
__decorate([
|
|
1899
1899
|
contextAttr()
|
|
1900
|
-
], Canvas$1.prototype, "fontVariantCaps",
|
|
1900
|
+
], Canvas$1.prototype, "fontVariantCaps", undefined);
|
|
1901
1901
|
__decorate([
|
|
1902
1902
|
contextAttr()
|
|
1903
|
-
], Canvas$1.prototype, "textAlign",
|
|
1903
|
+
], Canvas$1.prototype, "textAlign", undefined);
|
|
1904
1904
|
__decorate([
|
|
1905
1905
|
contextAttr()
|
|
1906
|
-
], Canvas$1.prototype, "textBaseline",
|
|
1906
|
+
], Canvas$1.prototype, "textBaseline", undefined);
|
|
1907
1907
|
__decorate([
|
|
1908
1908
|
contextAttr()
|
|
1909
|
-
], Canvas$1.prototype, "textRendering",
|
|
1909
|
+
], Canvas$1.prototype, "textRendering", undefined);
|
|
1910
1910
|
__decorate([
|
|
1911
1911
|
contextAttr()
|
|
1912
|
-
], Canvas$1.prototype, "wordSpacing",
|
|
1912
|
+
], Canvas$1.prototype, "wordSpacing", undefined);
|
|
1913
1913
|
__decorate([
|
|
1914
1914
|
contextAttr()
|
|
1915
|
-
], Canvas$1.prototype, "letterSpacing",
|
|
1915
|
+
], Canvas$1.prototype, "letterSpacing", undefined);
|
|
1916
1916
|
__decorate([
|
|
1917
1917
|
contextAttr()
|
|
1918
|
-
], Canvas$1.prototype, "direction",
|
|
1918
|
+
], Canvas$1.prototype, "direction", undefined);
|
|
1919
1919
|
__decorate([
|
|
1920
1920
|
contextMethod()
|
|
1921
1921
|
], Canvas$1.prototype, "setTransform", null);
|
|
@@ -3384,7 +3384,7 @@ class TaskItem {
|
|
|
3384
3384
|
this.task = task;
|
|
3385
3385
|
}
|
|
3386
3386
|
run() {
|
|
3387
|
-
return __awaiter(this,
|
|
3387
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
3388
3388
|
try {
|
|
3389
3389
|
if (this.task && !this.isComplete && this.parent.running)
|
|
3390
3390
|
yield this.task();
|
|
@@ -3696,7 +3696,7 @@ class LeaferImage {
|
|
|
3696
3696
|
load(onSuccess, onError) {
|
|
3697
3697
|
if (!this.loading) {
|
|
3698
3698
|
this.loading = true;
|
|
3699
|
-
ImageManager.tasker.add(() => __awaiter(this,
|
|
3699
|
+
ImageManager.tasker.add(() => __awaiter(this, undefined, undefined, function* () {
|
|
3700
3700
|
return yield Platform.origin.loadImage(this.url).then((img) => {
|
|
3701
3701
|
this.ready = true;
|
|
3702
3702
|
this.width = img.naturalWidth || img.width;
|
|
@@ -5175,8 +5175,7 @@ const LeafBounds = {
|
|
|
5175
5175
|
__updateAutoLayout() {
|
|
5176
5176
|
this.__layout.matrixChanged = true;
|
|
5177
5177
|
if (this.isBranch) {
|
|
5178
|
-
|
|
5179
|
-
this.leafer.layouter.addExtra(this);
|
|
5178
|
+
this.__extraUpdate();
|
|
5180
5179
|
if (this.__.flow) {
|
|
5181
5180
|
if (this.__layout.boxChanged)
|
|
5182
5181
|
this.__updateFlowLayout();
|
|
@@ -5329,7 +5328,7 @@ let Leaf = class Leaf {
|
|
|
5329
5328
|
get __worldFlipped() { return this.__world.scaleX < 0 || this.__world.scaleY < 0; }
|
|
5330
5329
|
get __onlyHitMask() { return this.__hasMask && !this.__.hitChildren; }
|
|
5331
5330
|
get __ignoreHitWorld() { return (this.__hasMask || this.__hasEraser) && this.__.hitChildren; }
|
|
5332
|
-
get __inLazyBounds() {
|
|
5331
|
+
get __inLazyBounds() { return this.leaferIsCreated && this.leafer.lazyBounds.hit(this.__world); }
|
|
5333
5332
|
get pathInputed() { return this.__.__pathInputed; }
|
|
5334
5333
|
set event(map) { this.on(map); }
|
|
5335
5334
|
constructor(data) {
|
|
@@ -5440,6 +5439,10 @@ let Leaf = class Leaf {
|
|
|
5440
5439
|
forceRender(_bounds, _sync) {
|
|
5441
5440
|
this.forceUpdate('surface');
|
|
5442
5441
|
}
|
|
5442
|
+
__extraUpdate() {
|
|
5443
|
+
if (this.leaferIsReady)
|
|
5444
|
+
this.leafer.layouter.addExtra(this);
|
|
5445
|
+
}
|
|
5443
5446
|
__updateWorldMatrix() { }
|
|
5444
5447
|
__updateLocalMatrix() { }
|
|
5445
5448
|
__updateWorldBounds() { }
|
|
@@ -6007,7 +6010,7 @@ class LeafLevelList {
|
|
|
6007
6010
|
}
|
|
6008
6011
|
}
|
|
6009
6012
|
|
|
6010
|
-
const version = "1.3.
|
|
6013
|
+
const version = "1.3.3";
|
|
6011
6014
|
|
|
6012
6015
|
class LeaferCanvas extends LeaferCanvasBase {
|
|
6013
6016
|
get allowBackgroundColor() { return false; }
|
|
@@ -6491,7 +6494,7 @@ class Layouter {
|
|
|
6491
6494
|
}
|
|
6492
6495
|
partLayout() {
|
|
6493
6496
|
var _a;
|
|
6494
|
-
if (!((_a = this.__updatedList) === null || _a ===
|
|
6497
|
+
if (!((_a = this.__updatedList) === null || _a === undefined ? undefined : _a.length))
|
|
6495
6498
|
return;
|
|
6496
6499
|
const t = Run.start('PartLayout');
|
|
6497
6500
|
const { target, __updatedList: updateList } = this;
|
|
@@ -7062,6 +7065,7 @@ class UIData extends LeafData {
|
|
|
7062
7065
|
return t.fill && this.__hasStroke;
|
|
7063
7066
|
}
|
|
7064
7067
|
get __clipAfterFill() { const t = this; return (t.cornerRadius || t.innerShadow || t.__pathInputed); }
|
|
7068
|
+
get __hasSurface() { const t = this; return (t.fill || t.stroke); }
|
|
7065
7069
|
get __autoWidth() { return !this._width; }
|
|
7066
7070
|
get __autoHeight() { return !this._height; }
|
|
7067
7071
|
get __autoSide() { return !this._width || !this._height; }
|
|
@@ -7565,199 +7569,199 @@ let UI = UI_1 = class UI extends Leaf {
|
|
|
7565
7569
|
};
|
|
7566
7570
|
__decorate([
|
|
7567
7571
|
dataProcessor(UIData)
|
|
7568
|
-
], UI.prototype, "__",
|
|
7572
|
+
], UI.prototype, "__", undefined);
|
|
7569
7573
|
__decorate([
|
|
7570
7574
|
zoomLayerType()
|
|
7571
|
-
], UI.prototype, "zoomLayer",
|
|
7575
|
+
], UI.prototype, "zoomLayer", undefined);
|
|
7572
7576
|
__decorate([
|
|
7573
7577
|
dataType('')
|
|
7574
|
-
], UI.prototype, "id",
|
|
7578
|
+
], UI.prototype, "id", undefined);
|
|
7575
7579
|
__decorate([
|
|
7576
7580
|
dataType('')
|
|
7577
|
-
], UI.prototype, "name",
|
|
7581
|
+
], UI.prototype, "name", undefined);
|
|
7578
7582
|
__decorate([
|
|
7579
7583
|
dataType('')
|
|
7580
|
-
], UI.prototype, "className",
|
|
7584
|
+
], UI.prototype, "className", undefined);
|
|
7581
7585
|
__decorate([
|
|
7582
7586
|
surfaceType('pass-through')
|
|
7583
|
-
], UI.prototype, "blendMode",
|
|
7587
|
+
], UI.prototype, "blendMode", undefined);
|
|
7584
7588
|
__decorate([
|
|
7585
7589
|
opacityType(1)
|
|
7586
|
-
], UI.prototype, "opacity",
|
|
7590
|
+
], UI.prototype, "opacity", undefined);
|
|
7587
7591
|
__decorate([
|
|
7588
7592
|
visibleType(true)
|
|
7589
|
-
], UI.prototype, "visible",
|
|
7593
|
+
], UI.prototype, "visible", undefined);
|
|
7590
7594
|
__decorate([
|
|
7591
7595
|
surfaceType(false)
|
|
7592
|
-
], UI.prototype, "locked",
|
|
7596
|
+
], UI.prototype, "locked", undefined);
|
|
7593
7597
|
__decorate([
|
|
7594
7598
|
sortType(0)
|
|
7595
|
-
], UI.prototype, "zIndex",
|
|
7599
|
+
], UI.prototype, "zIndex", undefined);
|
|
7596
7600
|
__decorate([
|
|
7597
7601
|
maskType(false)
|
|
7598
|
-
], UI.prototype, "mask",
|
|
7602
|
+
], UI.prototype, "mask", undefined);
|
|
7599
7603
|
__decorate([
|
|
7600
7604
|
eraserType(false)
|
|
7601
|
-
], UI.prototype, "eraser",
|
|
7605
|
+
], UI.prototype, "eraser", undefined);
|
|
7602
7606
|
__decorate([
|
|
7603
7607
|
positionType(0, true)
|
|
7604
|
-
], UI.prototype, "x",
|
|
7608
|
+
], UI.prototype, "x", undefined);
|
|
7605
7609
|
__decorate([
|
|
7606
7610
|
positionType(0, true)
|
|
7607
|
-
], UI.prototype, "y",
|
|
7611
|
+
], UI.prototype, "y", undefined);
|
|
7608
7612
|
__decorate([
|
|
7609
7613
|
boundsType(100, true)
|
|
7610
|
-
], UI.prototype, "width",
|
|
7614
|
+
], UI.prototype, "width", undefined);
|
|
7611
7615
|
__decorate([
|
|
7612
7616
|
boundsType(100, true)
|
|
7613
|
-
], UI.prototype, "height",
|
|
7617
|
+
], UI.prototype, "height", undefined);
|
|
7614
7618
|
__decorate([
|
|
7615
7619
|
scaleType(1, true)
|
|
7616
|
-
], UI.prototype, "scaleX",
|
|
7620
|
+
], UI.prototype, "scaleX", undefined);
|
|
7617
7621
|
__decorate([
|
|
7618
7622
|
scaleType(1, true)
|
|
7619
|
-
], UI.prototype, "scaleY",
|
|
7623
|
+
], UI.prototype, "scaleY", undefined);
|
|
7620
7624
|
__decorate([
|
|
7621
7625
|
rotationType(0, true)
|
|
7622
|
-
], UI.prototype, "rotation",
|
|
7626
|
+
], UI.prototype, "rotation", undefined);
|
|
7623
7627
|
__decorate([
|
|
7624
7628
|
rotationType(0, true)
|
|
7625
|
-
], UI.prototype, "skewX",
|
|
7629
|
+
], UI.prototype, "skewX", undefined);
|
|
7626
7630
|
__decorate([
|
|
7627
7631
|
rotationType(0, true)
|
|
7628
|
-
], UI.prototype, "skewY",
|
|
7632
|
+
], UI.prototype, "skewY", undefined);
|
|
7629
7633
|
__decorate([
|
|
7630
7634
|
positionType(0, true)
|
|
7631
|
-
], UI.prototype, "offsetX",
|
|
7635
|
+
], UI.prototype, "offsetX", undefined);
|
|
7632
7636
|
__decorate([
|
|
7633
7637
|
positionType(0, true)
|
|
7634
|
-
], UI.prototype, "offsetY",
|
|
7638
|
+
], UI.prototype, "offsetY", undefined);
|
|
7635
7639
|
__decorate([
|
|
7636
7640
|
positionType(0, true)
|
|
7637
|
-
], UI.prototype, "scrollX",
|
|
7641
|
+
], UI.prototype, "scrollX", undefined);
|
|
7638
7642
|
__decorate([
|
|
7639
7643
|
positionType(0, true)
|
|
7640
|
-
], UI.prototype, "scrollY",
|
|
7644
|
+
], UI.prototype, "scrollY", undefined);
|
|
7641
7645
|
__decorate([
|
|
7642
7646
|
autoLayoutType()
|
|
7643
|
-
], UI.prototype, "origin",
|
|
7647
|
+
], UI.prototype, "origin", undefined);
|
|
7644
7648
|
__decorate([
|
|
7645
7649
|
autoLayoutType()
|
|
7646
|
-
], UI.prototype, "around",
|
|
7650
|
+
], UI.prototype, "around", undefined);
|
|
7647
7651
|
__decorate([
|
|
7648
7652
|
dataType(false)
|
|
7649
|
-
], UI.prototype, "lazy",
|
|
7653
|
+
], UI.prototype, "lazy", undefined);
|
|
7650
7654
|
__decorate([
|
|
7651
7655
|
naturalBoundsType(1)
|
|
7652
|
-
], UI.prototype, "pixelRatio",
|
|
7656
|
+
], UI.prototype, "pixelRatio", undefined);
|
|
7653
7657
|
__decorate([
|
|
7654
7658
|
pathInputType()
|
|
7655
|
-
], UI.prototype, "path",
|
|
7659
|
+
], UI.prototype, "path", undefined);
|
|
7656
7660
|
__decorate([
|
|
7657
7661
|
pathType()
|
|
7658
|
-
], UI.prototype, "windingRule",
|
|
7662
|
+
], UI.prototype, "windingRule", undefined);
|
|
7659
7663
|
__decorate([
|
|
7660
7664
|
pathType(true)
|
|
7661
|
-
], UI.prototype, "closed",
|
|
7665
|
+
], UI.prototype, "closed", undefined);
|
|
7662
7666
|
__decorate([
|
|
7663
7667
|
boundsType(0)
|
|
7664
|
-
], UI.prototype, "padding",
|
|
7668
|
+
], UI.prototype, "padding", undefined);
|
|
7665
7669
|
__decorate([
|
|
7666
7670
|
boundsType(false)
|
|
7667
|
-
], UI.prototype, "lockRatio",
|
|
7671
|
+
], UI.prototype, "lockRatio", undefined);
|
|
7668
7672
|
__decorate([
|
|
7669
7673
|
boundsType()
|
|
7670
|
-
], UI.prototype, "widthRange",
|
|
7674
|
+
], UI.prototype, "widthRange", undefined);
|
|
7671
7675
|
__decorate([
|
|
7672
7676
|
boundsType()
|
|
7673
|
-
], UI.prototype, "heightRange",
|
|
7677
|
+
], UI.prototype, "heightRange", undefined);
|
|
7674
7678
|
__decorate([
|
|
7675
7679
|
dataType(false)
|
|
7676
|
-
], UI.prototype, "draggable",
|
|
7680
|
+
], UI.prototype, "draggable", undefined);
|
|
7677
7681
|
__decorate([
|
|
7678
7682
|
dataType()
|
|
7679
|
-
], UI.prototype, "dragBounds",
|
|
7683
|
+
], UI.prototype, "dragBounds", undefined);
|
|
7680
7684
|
__decorate([
|
|
7681
7685
|
dataType(false)
|
|
7682
|
-
], UI.prototype, "editable",
|
|
7686
|
+
], UI.prototype, "editable", undefined);
|
|
7683
7687
|
__decorate([
|
|
7684
7688
|
hitType(true)
|
|
7685
|
-
], UI.prototype, "hittable",
|
|
7689
|
+
], UI.prototype, "hittable", undefined);
|
|
7686
7690
|
__decorate([
|
|
7687
7691
|
hitType('path')
|
|
7688
|
-
], UI.prototype, "hitFill",
|
|
7692
|
+
], UI.prototype, "hitFill", undefined);
|
|
7689
7693
|
__decorate([
|
|
7690
7694
|
strokeType('path')
|
|
7691
|
-
], UI.prototype, "hitStroke",
|
|
7695
|
+
], UI.prototype, "hitStroke", undefined);
|
|
7692
7696
|
__decorate([
|
|
7693
7697
|
hitType(false)
|
|
7694
|
-
], UI.prototype, "hitBox",
|
|
7698
|
+
], UI.prototype, "hitBox", undefined);
|
|
7695
7699
|
__decorate([
|
|
7696
7700
|
hitType(true)
|
|
7697
|
-
], UI.prototype, "hitChildren",
|
|
7701
|
+
], UI.prototype, "hitChildren", undefined);
|
|
7698
7702
|
__decorate([
|
|
7699
7703
|
hitType(true)
|
|
7700
|
-
], UI.prototype, "hitSelf",
|
|
7704
|
+
], UI.prototype, "hitSelf", undefined);
|
|
7701
7705
|
__decorate([
|
|
7702
7706
|
hitType()
|
|
7703
|
-
], UI.prototype, "hitRadius",
|
|
7707
|
+
], UI.prototype, "hitRadius", undefined);
|
|
7704
7708
|
__decorate([
|
|
7705
7709
|
cursorType('')
|
|
7706
|
-
], UI.prototype, "cursor",
|
|
7710
|
+
], UI.prototype, "cursor", undefined);
|
|
7707
7711
|
__decorate([
|
|
7708
7712
|
surfaceType()
|
|
7709
|
-
], UI.prototype, "fill",
|
|
7713
|
+
], UI.prototype, "fill", undefined);
|
|
7710
7714
|
__decorate([
|
|
7711
7715
|
strokeType()
|
|
7712
|
-
], UI.prototype, "stroke",
|
|
7716
|
+
], UI.prototype, "stroke", undefined);
|
|
7713
7717
|
__decorate([
|
|
7714
7718
|
strokeType('inside')
|
|
7715
|
-
], UI.prototype, "strokeAlign",
|
|
7719
|
+
], UI.prototype, "strokeAlign", undefined);
|
|
7716
7720
|
__decorate([
|
|
7717
7721
|
strokeType(1)
|
|
7718
|
-
], UI.prototype, "strokeWidth",
|
|
7722
|
+
], UI.prototype, "strokeWidth", undefined);
|
|
7719
7723
|
__decorate([
|
|
7720
7724
|
strokeType(false)
|
|
7721
|
-
], UI.prototype, "strokeWidthFixed",
|
|
7725
|
+
], UI.prototype, "strokeWidthFixed", undefined);
|
|
7722
7726
|
__decorate([
|
|
7723
7727
|
strokeType('none')
|
|
7724
|
-
], UI.prototype, "strokeCap",
|
|
7728
|
+
], UI.prototype, "strokeCap", undefined);
|
|
7725
7729
|
__decorate([
|
|
7726
7730
|
strokeType('miter')
|
|
7727
|
-
], UI.prototype, "strokeJoin",
|
|
7731
|
+
], UI.prototype, "strokeJoin", undefined);
|
|
7728
7732
|
__decorate([
|
|
7729
7733
|
strokeType()
|
|
7730
|
-
], UI.prototype, "dashPattern",
|
|
7734
|
+
], UI.prototype, "dashPattern", undefined);
|
|
7731
7735
|
__decorate([
|
|
7732
7736
|
strokeType()
|
|
7733
|
-
], UI.prototype, "dashOffset",
|
|
7737
|
+
], UI.prototype, "dashOffset", undefined);
|
|
7734
7738
|
__decorate([
|
|
7735
7739
|
strokeType(10)
|
|
7736
|
-
], UI.prototype, "miterLimit",
|
|
7740
|
+
], UI.prototype, "miterLimit", undefined);
|
|
7737
7741
|
__decorate([
|
|
7738
7742
|
pathType(0)
|
|
7739
|
-
], UI.prototype, "cornerRadius",
|
|
7743
|
+
], UI.prototype, "cornerRadius", undefined);
|
|
7740
7744
|
__decorate([
|
|
7741
7745
|
pathType()
|
|
7742
|
-
], UI.prototype, "cornerSmoothing",
|
|
7746
|
+
], UI.prototype, "cornerSmoothing", undefined);
|
|
7743
7747
|
__decorate([
|
|
7744
7748
|
effectType()
|
|
7745
|
-
], UI.prototype, "shadow",
|
|
7749
|
+
], UI.prototype, "shadow", undefined);
|
|
7746
7750
|
__decorate([
|
|
7747
7751
|
effectType()
|
|
7748
|
-
], UI.prototype, "innerShadow",
|
|
7752
|
+
], UI.prototype, "innerShadow", undefined);
|
|
7749
7753
|
__decorate([
|
|
7750
7754
|
effectType()
|
|
7751
|
-
], UI.prototype, "blur",
|
|
7755
|
+
], UI.prototype, "blur", undefined);
|
|
7752
7756
|
__decorate([
|
|
7753
7757
|
effectType()
|
|
7754
|
-
], UI.prototype, "backgroundBlur",
|
|
7758
|
+
], UI.prototype, "backgroundBlur", undefined);
|
|
7755
7759
|
__decorate([
|
|
7756
7760
|
effectType()
|
|
7757
|
-
], UI.prototype, "grayscale",
|
|
7761
|
+
], UI.prototype, "grayscale", undefined);
|
|
7758
7762
|
__decorate([
|
|
7759
7763
|
dataType({})
|
|
7760
|
-
], UI.prototype, "data",
|
|
7764
|
+
], UI.prototype, "data", undefined);
|
|
7761
7765
|
__decorate([
|
|
7762
7766
|
rewrite(Leaf.prototype.reset)
|
|
7763
7767
|
], UI.prototype, "reset", null);
|
|
@@ -7818,7 +7822,7 @@ let Group = class Group extends UI {
|
|
|
7818
7822
|
};
|
|
7819
7823
|
__decorate([
|
|
7820
7824
|
dataProcessor(GroupData)
|
|
7821
|
-
], Group.prototype, "__",
|
|
7825
|
+
], Group.prototype, "__", undefined);
|
|
7822
7826
|
Group = __decorate([
|
|
7823
7827
|
useModule(Branch),
|
|
7824
7828
|
registerUI()
|
|
@@ -7989,8 +7993,6 @@ let Leafer = Leafer_1 = class Leafer extends Group {
|
|
|
7989
7993
|
__setAttr(attrName, newValue) {
|
|
7990
7994
|
if (this.canvas) {
|
|
7991
7995
|
if (canvasSizeAttrs.includes(attrName)) {
|
|
7992
|
-
if (!newValue)
|
|
7993
|
-
debug$1.warn(attrName + ' is 0');
|
|
7994
7996
|
this.__changeCanvasSize(attrName, newValue);
|
|
7995
7997
|
}
|
|
7996
7998
|
else if (attrName === 'fill') {
|
|
@@ -8193,10 +8195,10 @@ let Leafer = Leafer_1 = class Leafer extends Group {
|
|
|
8193
8195
|
Leafer.list = new LeafList();
|
|
8194
8196
|
__decorate([
|
|
8195
8197
|
dataProcessor(LeaferData)
|
|
8196
|
-
], Leafer.prototype, "__",
|
|
8198
|
+
], Leafer.prototype, "__", undefined);
|
|
8197
8199
|
__decorate([
|
|
8198
8200
|
boundsType()
|
|
8199
|
-
], Leafer.prototype, "pixelRatio",
|
|
8201
|
+
], Leafer.prototype, "pixelRatio", undefined);
|
|
8200
8202
|
Leafer = Leafer_1 = __decorate([
|
|
8201
8203
|
registerUI()
|
|
8202
8204
|
], Leafer);
|
|
@@ -8209,7 +8211,7 @@ let Rect = class Rect extends UI {
|
|
|
8209
8211
|
};
|
|
8210
8212
|
__decorate([
|
|
8211
8213
|
dataProcessor(RectData)
|
|
8212
|
-
], Rect.prototype, "__",
|
|
8214
|
+
], Rect.prototype, "__", undefined);
|
|
8213
8215
|
Rect = __decorate([
|
|
8214
8216
|
useModule(RectRender),
|
|
8215
8217
|
rewriteAble(),
|
|
@@ -8234,6 +8236,8 @@ let Box = class Box extends Group {
|
|
|
8234
8236
|
const data = this.__;
|
|
8235
8237
|
if (this.children.length) {
|
|
8236
8238
|
if (data.__autoSide) {
|
|
8239
|
+
if (data.__hasSurface)
|
|
8240
|
+
this.__extraUpdate();
|
|
8237
8241
|
super.__updateBoxBounds();
|
|
8238
8242
|
const { boxBounds } = this.__layout;
|
|
8239
8243
|
if (!data.__autoSize) {
|
|
@@ -8298,13 +8302,13 @@ let Box = class Box extends Group {
|
|
|
8298
8302
|
};
|
|
8299
8303
|
__decorate([
|
|
8300
8304
|
dataProcessor(BoxData)
|
|
8301
|
-
], Box.prototype, "__",
|
|
8305
|
+
], Box.prototype, "__", undefined);
|
|
8302
8306
|
__decorate([
|
|
8303
8307
|
dataType(false)
|
|
8304
|
-
], Box.prototype, "resizeChildren",
|
|
8308
|
+
], Box.prototype, "resizeChildren", undefined);
|
|
8305
8309
|
__decorate([
|
|
8306
8310
|
affectRenderBoundsType('show')
|
|
8307
|
-
], Box.prototype, "overflow",
|
|
8311
|
+
], Box.prototype, "overflow", undefined);
|
|
8308
8312
|
__decorate([
|
|
8309
8313
|
rewrite(rect$1.__updateStrokeSpread)
|
|
8310
8314
|
], Box.prototype, "__updateStrokeSpread", null);
|
|
@@ -8343,13 +8347,13 @@ let Frame = class Frame extends Box {
|
|
|
8343
8347
|
};
|
|
8344
8348
|
__decorate([
|
|
8345
8349
|
dataProcessor(FrameData)
|
|
8346
|
-
], Frame.prototype, "__",
|
|
8350
|
+
], Frame.prototype, "__", undefined);
|
|
8347
8351
|
__decorate([
|
|
8348
8352
|
surfaceType('#FFFFFF')
|
|
8349
|
-
], Frame.prototype, "fill",
|
|
8353
|
+
], Frame.prototype, "fill", undefined);
|
|
8350
8354
|
__decorate([
|
|
8351
8355
|
affectRenderBoundsType('hide')
|
|
8352
|
-
], Frame.prototype, "overflow",
|
|
8356
|
+
], Frame.prototype, "overflow", undefined);
|
|
8353
8357
|
Frame = __decorate([
|
|
8354
8358
|
registerUI()
|
|
8355
8359
|
], Frame);
|
|
@@ -8396,16 +8400,16 @@ let Ellipse = class Ellipse extends UI {
|
|
|
8396
8400
|
};
|
|
8397
8401
|
__decorate([
|
|
8398
8402
|
dataProcessor(EllipseData)
|
|
8399
|
-
], Ellipse.prototype, "__",
|
|
8403
|
+
], Ellipse.prototype, "__", undefined);
|
|
8400
8404
|
__decorate([
|
|
8401
8405
|
pathType(0)
|
|
8402
|
-
], Ellipse.prototype, "innerRadius",
|
|
8406
|
+
], Ellipse.prototype, "innerRadius", undefined);
|
|
8403
8407
|
__decorate([
|
|
8404
8408
|
pathType(0)
|
|
8405
|
-
], Ellipse.prototype, "startAngle",
|
|
8409
|
+
], Ellipse.prototype, "startAngle", undefined);
|
|
8406
8410
|
__decorate([
|
|
8407
8411
|
pathType(0)
|
|
8408
|
-
], Ellipse.prototype, "endAngle",
|
|
8412
|
+
], Ellipse.prototype, "endAngle", undefined);
|
|
8409
8413
|
Ellipse = __decorate([
|
|
8410
8414
|
registerUI()
|
|
8411
8415
|
], Ellipse);
|
|
@@ -8464,22 +8468,22 @@ let Line = class Line extends UI {
|
|
|
8464
8468
|
};
|
|
8465
8469
|
__decorate([
|
|
8466
8470
|
dataProcessor(LineData)
|
|
8467
|
-
], Line.prototype, "__",
|
|
8471
|
+
], Line.prototype, "__", undefined);
|
|
8468
8472
|
__decorate([
|
|
8469
8473
|
affectStrokeBoundsType('center')
|
|
8470
|
-
], Line.prototype, "strokeAlign",
|
|
8474
|
+
], Line.prototype, "strokeAlign", undefined);
|
|
8471
8475
|
__decorate([
|
|
8472
8476
|
boundsType(0)
|
|
8473
|
-
], Line.prototype, "height",
|
|
8477
|
+
], Line.prototype, "height", undefined);
|
|
8474
8478
|
__decorate([
|
|
8475
8479
|
pathType()
|
|
8476
|
-
], Line.prototype, "points",
|
|
8480
|
+
], Line.prototype, "points", undefined);
|
|
8477
8481
|
__decorate([
|
|
8478
8482
|
pathType(0)
|
|
8479
|
-
], Line.prototype, "curve",
|
|
8483
|
+
], Line.prototype, "curve", undefined);
|
|
8480
8484
|
__decorate([
|
|
8481
8485
|
pathType(false)
|
|
8482
|
-
], Line.prototype, "closed",
|
|
8486
|
+
], Line.prototype, "closed", undefined);
|
|
8483
8487
|
Line = __decorate([
|
|
8484
8488
|
registerUI()
|
|
8485
8489
|
], Line);
|
|
@@ -8512,16 +8516,16 @@ let Polygon = class Polygon extends UI {
|
|
|
8512
8516
|
};
|
|
8513
8517
|
__decorate([
|
|
8514
8518
|
dataProcessor(PolygonData)
|
|
8515
|
-
], Polygon.prototype, "__",
|
|
8519
|
+
], Polygon.prototype, "__", undefined);
|
|
8516
8520
|
__decorate([
|
|
8517
8521
|
pathType(3)
|
|
8518
|
-
], Polygon.prototype, "sides",
|
|
8522
|
+
], Polygon.prototype, "sides", undefined);
|
|
8519
8523
|
__decorate([
|
|
8520
8524
|
pathType()
|
|
8521
|
-
], Polygon.prototype, "points",
|
|
8525
|
+
], Polygon.prototype, "points", undefined);
|
|
8522
8526
|
__decorate([
|
|
8523
8527
|
pathType(0)
|
|
8524
|
-
], Polygon.prototype, "curve",
|
|
8528
|
+
], Polygon.prototype, "curve", undefined);
|
|
8525
8529
|
__decorate([
|
|
8526
8530
|
rewrite(line.__updateRenderPath)
|
|
8527
8531
|
], Polygon.prototype, "__updateRenderPath", null);
|
|
@@ -8553,13 +8557,13 @@ let Star = class Star extends UI {
|
|
|
8553
8557
|
};
|
|
8554
8558
|
__decorate([
|
|
8555
8559
|
dataProcessor(StarData)
|
|
8556
|
-
], Star.prototype, "__",
|
|
8560
|
+
], Star.prototype, "__", undefined);
|
|
8557
8561
|
__decorate([
|
|
8558
8562
|
pathType(5)
|
|
8559
|
-
], Star.prototype, "corners",
|
|
8563
|
+
], Star.prototype, "corners", undefined);
|
|
8560
8564
|
__decorate([
|
|
8561
8565
|
pathType(0.382)
|
|
8562
|
-
], Star.prototype, "innerRadius",
|
|
8566
|
+
], Star.prototype, "innerRadius", undefined);
|
|
8563
8567
|
Star = __decorate([
|
|
8564
8568
|
registerUI()
|
|
8565
8569
|
], Star);
|
|
@@ -8581,10 +8585,10 @@ let Image = class Image extends Rect {
|
|
|
8581
8585
|
};
|
|
8582
8586
|
__decorate([
|
|
8583
8587
|
dataProcessor(ImageData)
|
|
8584
|
-
], Image.prototype, "__",
|
|
8588
|
+
], Image.prototype, "__", undefined);
|
|
8585
8589
|
__decorate([
|
|
8586
8590
|
boundsType('')
|
|
8587
|
-
], Image.prototype, "url",
|
|
8591
|
+
], Image.prototype, "url", undefined);
|
|
8588
8592
|
Image = __decorate([
|
|
8589
8593
|
registerUI()
|
|
8590
8594
|
], Image);
|
|
@@ -8647,25 +8651,25 @@ let Canvas = class Canvas extends Rect {
|
|
|
8647
8651
|
};
|
|
8648
8652
|
__decorate([
|
|
8649
8653
|
dataProcessor(CanvasData)
|
|
8650
|
-
], Canvas.prototype, "__",
|
|
8654
|
+
], Canvas.prototype, "__", undefined);
|
|
8651
8655
|
__decorate([
|
|
8652
8656
|
resizeType(100)
|
|
8653
|
-
], Canvas.prototype, "width",
|
|
8657
|
+
], Canvas.prototype, "width", undefined);
|
|
8654
8658
|
__decorate([
|
|
8655
8659
|
resizeType(100)
|
|
8656
|
-
], Canvas.prototype, "height",
|
|
8660
|
+
], Canvas.prototype, "height", undefined);
|
|
8657
8661
|
__decorate([
|
|
8658
8662
|
resizeType(1)
|
|
8659
|
-
], Canvas.prototype, "pixelRatio",
|
|
8663
|
+
], Canvas.prototype, "pixelRatio", undefined);
|
|
8660
8664
|
__decorate([
|
|
8661
8665
|
resizeType(true)
|
|
8662
|
-
], Canvas.prototype, "smooth",
|
|
8666
|
+
], Canvas.prototype, "smooth", undefined);
|
|
8663
8667
|
__decorate([
|
|
8664
8668
|
dataType(false)
|
|
8665
|
-
], Canvas.prototype, "safeResize",
|
|
8669
|
+
], Canvas.prototype, "safeResize", undefined);
|
|
8666
8670
|
__decorate([
|
|
8667
8671
|
resizeType()
|
|
8668
|
-
], Canvas.prototype, "contextSettings",
|
|
8672
|
+
], Canvas.prototype, "contextSettings", undefined);
|
|
8669
8673
|
Canvas = __decorate([
|
|
8670
8674
|
registerUI()
|
|
8671
8675
|
], Canvas);
|
|
@@ -8756,76 +8760,76 @@ let Text = class Text extends UI {
|
|
|
8756
8760
|
};
|
|
8757
8761
|
__decorate([
|
|
8758
8762
|
dataProcessor(TextData)
|
|
8759
|
-
], Text.prototype, "__",
|
|
8763
|
+
], Text.prototype, "__", undefined);
|
|
8760
8764
|
__decorate([
|
|
8761
8765
|
boundsType(0)
|
|
8762
|
-
], Text.prototype, "width",
|
|
8766
|
+
], Text.prototype, "width", undefined);
|
|
8763
8767
|
__decorate([
|
|
8764
8768
|
boundsType(0)
|
|
8765
|
-
], Text.prototype, "height",
|
|
8769
|
+
], Text.prototype, "height", undefined);
|
|
8766
8770
|
__decorate([
|
|
8767
8771
|
dataType(false)
|
|
8768
|
-
], Text.prototype, "resizeFontSize",
|
|
8772
|
+
], Text.prototype, "resizeFontSize", undefined);
|
|
8769
8773
|
__decorate([
|
|
8770
8774
|
surfaceType('#000000')
|
|
8771
|
-
], Text.prototype, "fill",
|
|
8775
|
+
], Text.prototype, "fill", undefined);
|
|
8772
8776
|
__decorate([
|
|
8773
8777
|
affectStrokeBoundsType('outside')
|
|
8774
|
-
], Text.prototype, "strokeAlign",
|
|
8778
|
+
], Text.prototype, "strokeAlign", undefined);
|
|
8775
8779
|
__decorate([
|
|
8776
8780
|
hitType('all')
|
|
8777
|
-
], Text.prototype, "hitFill",
|
|
8781
|
+
], Text.prototype, "hitFill", undefined);
|
|
8778
8782
|
__decorate([
|
|
8779
8783
|
boundsType('')
|
|
8780
|
-
], Text.prototype, "text",
|
|
8784
|
+
], Text.prototype, "text", undefined);
|
|
8781
8785
|
__decorate([
|
|
8782
|
-
boundsType('
|
|
8783
|
-
], Text.prototype, "fontFamily",
|
|
8786
|
+
boundsType('caption')
|
|
8787
|
+
], Text.prototype, "fontFamily", undefined);
|
|
8784
8788
|
__decorate([
|
|
8785
8789
|
boundsType(12)
|
|
8786
|
-
], Text.prototype, "fontSize",
|
|
8790
|
+
], Text.prototype, "fontSize", undefined);
|
|
8787
8791
|
__decorate([
|
|
8788
8792
|
boundsType('normal')
|
|
8789
|
-
], Text.prototype, "fontWeight",
|
|
8793
|
+
], Text.prototype, "fontWeight", undefined);
|
|
8790
8794
|
__decorate([
|
|
8791
8795
|
boundsType(false)
|
|
8792
|
-
], Text.prototype, "italic",
|
|
8796
|
+
], Text.prototype, "italic", undefined);
|
|
8793
8797
|
__decorate([
|
|
8794
8798
|
boundsType('none')
|
|
8795
|
-
], Text.prototype, "textCase",
|
|
8799
|
+
], Text.prototype, "textCase", undefined);
|
|
8796
8800
|
__decorate([
|
|
8797
8801
|
boundsType('none')
|
|
8798
|
-
], Text.prototype, "textDecoration",
|
|
8802
|
+
], Text.prototype, "textDecoration", undefined);
|
|
8799
8803
|
__decorate([
|
|
8800
8804
|
boundsType(0)
|
|
8801
|
-
], Text.prototype, "letterSpacing",
|
|
8805
|
+
], Text.prototype, "letterSpacing", undefined);
|
|
8802
8806
|
__decorate([
|
|
8803
8807
|
boundsType({ type: 'percent', value: 1.5 })
|
|
8804
|
-
], Text.prototype, "lineHeight",
|
|
8808
|
+
], Text.prototype, "lineHeight", undefined);
|
|
8805
8809
|
__decorate([
|
|
8806
8810
|
boundsType(0)
|
|
8807
|
-
], Text.prototype, "paraIndent",
|
|
8811
|
+
], Text.prototype, "paraIndent", undefined);
|
|
8808
8812
|
__decorate([
|
|
8809
8813
|
boundsType(0)
|
|
8810
|
-
], Text.prototype, "paraSpacing",
|
|
8814
|
+
], Text.prototype, "paraSpacing", undefined);
|
|
8811
8815
|
__decorate([
|
|
8812
8816
|
boundsType('x')
|
|
8813
|
-
], Text.prototype, "writingMode",
|
|
8817
|
+
], Text.prototype, "writingMode", undefined);
|
|
8814
8818
|
__decorate([
|
|
8815
8819
|
boundsType('left')
|
|
8816
|
-
], Text.prototype, "textAlign",
|
|
8820
|
+
], Text.prototype, "textAlign", undefined);
|
|
8817
8821
|
__decorate([
|
|
8818
8822
|
boundsType('top')
|
|
8819
|
-
], Text.prototype, "verticalAlign",
|
|
8823
|
+
], Text.prototype, "verticalAlign", undefined);
|
|
8820
8824
|
__decorate([
|
|
8821
8825
|
boundsType(true)
|
|
8822
|
-
], Text.prototype, "autoSizeAlign",
|
|
8826
|
+
], Text.prototype, "autoSizeAlign", undefined);
|
|
8823
8827
|
__decorate([
|
|
8824
8828
|
boundsType('normal')
|
|
8825
|
-
], Text.prototype, "textWrap",
|
|
8829
|
+
], Text.prototype, "textWrap", undefined);
|
|
8826
8830
|
__decorate([
|
|
8827
8831
|
boundsType('show')
|
|
8828
|
-
], Text.prototype, "textOverflow",
|
|
8832
|
+
], Text.prototype, "textOverflow", undefined);
|
|
8829
8833
|
Text = __decorate([
|
|
8830
8834
|
registerUI()
|
|
8831
8835
|
], Text);
|
|
@@ -8838,10 +8842,10 @@ let Path = class Path extends UI {
|
|
|
8838
8842
|
};
|
|
8839
8843
|
__decorate([
|
|
8840
8844
|
dataProcessor(PathData)
|
|
8841
|
-
], Path.prototype, "__",
|
|
8845
|
+
], Path.prototype, "__", undefined);
|
|
8842
8846
|
__decorate([
|
|
8843
8847
|
affectStrokeBoundsType('center')
|
|
8844
|
-
], Path.prototype, "strokeAlign",
|
|
8848
|
+
], Path.prototype, "strokeAlign", undefined);
|
|
8845
8849
|
Path = __decorate([
|
|
8846
8850
|
registerUI()
|
|
8847
8851
|
], Path);
|
|
@@ -8880,10 +8884,10 @@ let Pen = class Pen extends Group {
|
|
|
8880
8884
|
};
|
|
8881
8885
|
__decorate([
|
|
8882
8886
|
dataProcessor(PenData)
|
|
8883
|
-
], Pen.prototype, "__",
|
|
8887
|
+
], Pen.prototype, "__", undefined);
|
|
8884
8888
|
__decorate([
|
|
8885
8889
|
penPathType()
|
|
8886
|
-
], Pen.prototype, "path",
|
|
8890
|
+
], Pen.prototype, "path", undefined);
|
|
8887
8891
|
Pen = __decorate([
|
|
8888
8892
|
useModule(PathCreator, ['set', 'path', 'paint']),
|
|
8889
8893
|
registerUI()
|
|
@@ -10068,9 +10072,9 @@ leaf.__hitWorld = function (point) {
|
|
|
10068
10072
|
}
|
|
10069
10073
|
return this.__hit(inner);
|
|
10070
10074
|
};
|
|
10071
|
-
leaf.__hitFill = function (inner) { var _a; return (_a = this.__hitCanvas) === null || _a ===
|
|
10072
|
-
leaf.__hitStroke = function (inner, strokeWidth) { var _a; return (_a = this.__hitCanvas) === null || _a ===
|
|
10073
|
-
leaf.__hitPixel = function (inner) { var _a; return (_a = this.__hitCanvas) === null || _a ===
|
|
10075
|
+
leaf.__hitFill = function (inner) { var _a; return (_a = this.__hitCanvas) === null || _a === undefined ? undefined : _a.hitFill(inner, this.__.windingRule); };
|
|
10076
|
+
leaf.__hitStroke = function (inner, strokeWidth) { var _a; return (_a = this.__hitCanvas) === null || _a === undefined ? undefined : _a.hitStroke(inner, strokeWidth); };
|
|
10077
|
+
leaf.__hitPixel = function (inner) { var _a; return (_a = this.__hitCanvas) === null || _a === undefined ? undefined : _a.hitPixel(inner, this.__layout.renderBounds, this.__hitCanvas.hitScale); };
|
|
10074
10078
|
leaf.__drawHitPath = function (canvas) { if (canvas)
|
|
10075
10079
|
this.__drawRenderPath(canvas); };
|
|
10076
10080
|
|
|
@@ -10910,7 +10914,7 @@ function checkImage(ui, canvas, paint, allowPaint) {
|
|
|
10910
10914
|
}
|
|
10911
10915
|
else {
|
|
10912
10916
|
if (!paint.patternTask) {
|
|
10913
|
-
paint.patternTask = ImageManager.patternTasker.add(() => __awaiter(this,
|
|
10917
|
+
paint.patternTask = ImageManager.patternTasker.add(() => __awaiter(this, undefined, undefined, function* () {
|
|
10914
10918
|
paint.patternTask = null;
|
|
10915
10919
|
if (canvas.bounds.hit(ui.__nowWorld))
|
|
10916
10920
|
createPattern(ui, paint, pixelRatio);
|
|
@@ -11066,7 +11070,7 @@ function shadow(ui, current, shape) {
|
|
|
11066
11070
|
const end = shadow.length - 1;
|
|
11067
11071
|
toOffsetOutBounds$1(bounds, offsetOutBounds$1);
|
|
11068
11072
|
shadow.forEach((item, index) => {
|
|
11069
|
-
other.setWorldShadow((offsetOutBounds$1.offsetX + item.x * scaleX), (offsetOutBounds$1.offsetY + item.y * scaleY), item.blur * scaleX, item.color);
|
|
11073
|
+
other.setWorldShadow((offsetOutBounds$1.offsetX + item.x * scaleX), (offsetOutBounds$1.offsetY + item.y * scaleY), item.blur * scaleX, ColorConvert.string(item.color));
|
|
11070
11074
|
spreadScale = item.spread ? 1 + item.spread * 2 / (__layout.boxBounds.width + (__layout.strokeBoxSpread || 0) * 2) : 0;
|
|
11071
11075
|
drawWorldShadow(other, offsetOutBounds$1, spreadScale, shape);
|
|
11072
11076
|
copyBounds = bounds;
|
|
@@ -11142,7 +11146,7 @@ function innerShadow(ui, current, shape) {
|
|
|
11142
11146
|
other.copyWorld(shape.canvas, shapeBounds, bounds, 'source-out');
|
|
11143
11147
|
copyBounds = bounds;
|
|
11144
11148
|
}
|
|
11145
|
-
other.fillWorld(copyBounds, item.color, 'source-in');
|
|
11149
|
+
other.fillWorld(copyBounds, ColorConvert.string(item.color), 'source-in');
|
|
11146
11150
|
if (ui.__worldFlipped) {
|
|
11147
11151
|
current.copyWorldByReset(other, copyBounds, nowWorld, item.blendMode);
|
|
11148
11152
|
}
|