@leafer-draw/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 +180 -176
- package/dist/miniapp.module.min.js +1 -1
- package/package.json +8 -8
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;
|
|
@@ -6906,6 +6909,7 @@ class UIData extends LeafData {
|
|
|
6906
6909
|
return t.fill && this.__hasStroke;
|
|
6907
6910
|
}
|
|
6908
6911
|
get __clipAfterFill() { const t = this; return (t.cornerRadius || t.innerShadow || t.__pathInputed); }
|
|
6912
|
+
get __hasSurface() { const t = this; return (t.fill || t.stroke); }
|
|
6909
6913
|
get __autoWidth() { return !this._width; }
|
|
6910
6914
|
get __autoHeight() { return !this._height; }
|
|
6911
6915
|
get __autoSide() { return !this._width || !this._height; }
|
|
@@ -7409,199 +7413,199 @@ let UI = UI_1 = class UI extends Leaf {
|
|
|
7409
7413
|
};
|
|
7410
7414
|
__decorate([
|
|
7411
7415
|
dataProcessor(UIData)
|
|
7412
|
-
], UI.prototype, "__",
|
|
7416
|
+
], UI.prototype, "__", undefined);
|
|
7413
7417
|
__decorate([
|
|
7414
7418
|
zoomLayerType()
|
|
7415
|
-
], UI.prototype, "zoomLayer",
|
|
7419
|
+
], UI.prototype, "zoomLayer", undefined);
|
|
7416
7420
|
__decorate([
|
|
7417
7421
|
dataType('')
|
|
7418
|
-
], UI.prototype, "id",
|
|
7422
|
+
], UI.prototype, "id", undefined);
|
|
7419
7423
|
__decorate([
|
|
7420
7424
|
dataType('')
|
|
7421
|
-
], UI.prototype, "name",
|
|
7425
|
+
], UI.prototype, "name", undefined);
|
|
7422
7426
|
__decorate([
|
|
7423
7427
|
dataType('')
|
|
7424
|
-
], UI.prototype, "className",
|
|
7428
|
+
], UI.prototype, "className", undefined);
|
|
7425
7429
|
__decorate([
|
|
7426
7430
|
surfaceType('pass-through')
|
|
7427
|
-
], UI.prototype, "blendMode",
|
|
7431
|
+
], UI.prototype, "blendMode", undefined);
|
|
7428
7432
|
__decorate([
|
|
7429
7433
|
opacityType(1)
|
|
7430
|
-
], UI.prototype, "opacity",
|
|
7434
|
+
], UI.prototype, "opacity", undefined);
|
|
7431
7435
|
__decorate([
|
|
7432
7436
|
visibleType(true)
|
|
7433
|
-
], UI.prototype, "visible",
|
|
7437
|
+
], UI.prototype, "visible", undefined);
|
|
7434
7438
|
__decorate([
|
|
7435
7439
|
surfaceType(false)
|
|
7436
|
-
], UI.prototype, "locked",
|
|
7440
|
+
], UI.prototype, "locked", undefined);
|
|
7437
7441
|
__decorate([
|
|
7438
7442
|
sortType(0)
|
|
7439
|
-
], UI.prototype, "zIndex",
|
|
7443
|
+
], UI.prototype, "zIndex", undefined);
|
|
7440
7444
|
__decorate([
|
|
7441
7445
|
maskType(false)
|
|
7442
|
-
], UI.prototype, "mask",
|
|
7446
|
+
], UI.prototype, "mask", undefined);
|
|
7443
7447
|
__decorate([
|
|
7444
7448
|
eraserType(false)
|
|
7445
|
-
], UI.prototype, "eraser",
|
|
7449
|
+
], UI.prototype, "eraser", undefined);
|
|
7446
7450
|
__decorate([
|
|
7447
7451
|
positionType(0, true)
|
|
7448
|
-
], UI.prototype, "x",
|
|
7452
|
+
], UI.prototype, "x", undefined);
|
|
7449
7453
|
__decorate([
|
|
7450
7454
|
positionType(0, true)
|
|
7451
|
-
], UI.prototype, "y",
|
|
7455
|
+
], UI.prototype, "y", undefined);
|
|
7452
7456
|
__decorate([
|
|
7453
7457
|
boundsType(100, true)
|
|
7454
|
-
], UI.prototype, "width",
|
|
7458
|
+
], UI.prototype, "width", undefined);
|
|
7455
7459
|
__decorate([
|
|
7456
7460
|
boundsType(100, true)
|
|
7457
|
-
], UI.prototype, "height",
|
|
7461
|
+
], UI.prototype, "height", undefined);
|
|
7458
7462
|
__decorate([
|
|
7459
7463
|
scaleType(1, true)
|
|
7460
|
-
], UI.prototype, "scaleX",
|
|
7464
|
+
], UI.prototype, "scaleX", undefined);
|
|
7461
7465
|
__decorate([
|
|
7462
7466
|
scaleType(1, true)
|
|
7463
|
-
], UI.prototype, "scaleY",
|
|
7467
|
+
], UI.prototype, "scaleY", undefined);
|
|
7464
7468
|
__decorate([
|
|
7465
7469
|
rotationType(0, true)
|
|
7466
|
-
], UI.prototype, "rotation",
|
|
7470
|
+
], UI.prototype, "rotation", undefined);
|
|
7467
7471
|
__decorate([
|
|
7468
7472
|
rotationType(0, true)
|
|
7469
|
-
], UI.prototype, "skewX",
|
|
7473
|
+
], UI.prototype, "skewX", undefined);
|
|
7470
7474
|
__decorate([
|
|
7471
7475
|
rotationType(0, true)
|
|
7472
|
-
], UI.prototype, "skewY",
|
|
7476
|
+
], UI.prototype, "skewY", undefined);
|
|
7473
7477
|
__decorate([
|
|
7474
7478
|
positionType(0, true)
|
|
7475
|
-
], UI.prototype, "offsetX",
|
|
7479
|
+
], UI.prototype, "offsetX", undefined);
|
|
7476
7480
|
__decorate([
|
|
7477
7481
|
positionType(0, true)
|
|
7478
|
-
], UI.prototype, "offsetY",
|
|
7482
|
+
], UI.prototype, "offsetY", undefined);
|
|
7479
7483
|
__decorate([
|
|
7480
7484
|
positionType(0, true)
|
|
7481
|
-
], UI.prototype, "scrollX",
|
|
7485
|
+
], UI.prototype, "scrollX", undefined);
|
|
7482
7486
|
__decorate([
|
|
7483
7487
|
positionType(0, true)
|
|
7484
|
-
], UI.prototype, "scrollY",
|
|
7488
|
+
], UI.prototype, "scrollY", undefined);
|
|
7485
7489
|
__decorate([
|
|
7486
7490
|
autoLayoutType()
|
|
7487
|
-
], UI.prototype, "origin",
|
|
7491
|
+
], UI.prototype, "origin", undefined);
|
|
7488
7492
|
__decorate([
|
|
7489
7493
|
autoLayoutType()
|
|
7490
|
-
], UI.prototype, "around",
|
|
7494
|
+
], UI.prototype, "around", undefined);
|
|
7491
7495
|
__decorate([
|
|
7492
7496
|
dataType(false)
|
|
7493
|
-
], UI.prototype, "lazy",
|
|
7497
|
+
], UI.prototype, "lazy", undefined);
|
|
7494
7498
|
__decorate([
|
|
7495
7499
|
naturalBoundsType(1)
|
|
7496
|
-
], UI.prototype, "pixelRatio",
|
|
7500
|
+
], UI.prototype, "pixelRatio", undefined);
|
|
7497
7501
|
__decorate([
|
|
7498
7502
|
pathInputType()
|
|
7499
|
-
], UI.prototype, "path",
|
|
7503
|
+
], UI.prototype, "path", undefined);
|
|
7500
7504
|
__decorate([
|
|
7501
7505
|
pathType()
|
|
7502
|
-
], UI.prototype, "windingRule",
|
|
7506
|
+
], UI.prototype, "windingRule", undefined);
|
|
7503
7507
|
__decorate([
|
|
7504
7508
|
pathType(true)
|
|
7505
|
-
], UI.prototype, "closed",
|
|
7509
|
+
], UI.prototype, "closed", undefined);
|
|
7506
7510
|
__decorate([
|
|
7507
7511
|
boundsType(0)
|
|
7508
|
-
], UI.prototype, "padding",
|
|
7512
|
+
], UI.prototype, "padding", undefined);
|
|
7509
7513
|
__decorate([
|
|
7510
7514
|
boundsType(false)
|
|
7511
|
-
], UI.prototype, "lockRatio",
|
|
7515
|
+
], UI.prototype, "lockRatio", undefined);
|
|
7512
7516
|
__decorate([
|
|
7513
7517
|
boundsType()
|
|
7514
|
-
], UI.prototype, "widthRange",
|
|
7518
|
+
], UI.prototype, "widthRange", undefined);
|
|
7515
7519
|
__decorate([
|
|
7516
7520
|
boundsType()
|
|
7517
|
-
], UI.prototype, "heightRange",
|
|
7521
|
+
], UI.prototype, "heightRange", undefined);
|
|
7518
7522
|
__decorate([
|
|
7519
7523
|
dataType(false)
|
|
7520
|
-
], UI.prototype, "draggable",
|
|
7524
|
+
], UI.prototype, "draggable", undefined);
|
|
7521
7525
|
__decorate([
|
|
7522
7526
|
dataType()
|
|
7523
|
-
], UI.prototype, "dragBounds",
|
|
7527
|
+
], UI.prototype, "dragBounds", undefined);
|
|
7524
7528
|
__decorate([
|
|
7525
7529
|
dataType(false)
|
|
7526
|
-
], UI.prototype, "editable",
|
|
7530
|
+
], UI.prototype, "editable", undefined);
|
|
7527
7531
|
__decorate([
|
|
7528
7532
|
hitType(true)
|
|
7529
|
-
], UI.prototype, "hittable",
|
|
7533
|
+
], UI.prototype, "hittable", undefined);
|
|
7530
7534
|
__decorate([
|
|
7531
7535
|
hitType('path')
|
|
7532
|
-
], UI.prototype, "hitFill",
|
|
7536
|
+
], UI.prototype, "hitFill", undefined);
|
|
7533
7537
|
__decorate([
|
|
7534
7538
|
strokeType('path')
|
|
7535
|
-
], UI.prototype, "hitStroke",
|
|
7539
|
+
], UI.prototype, "hitStroke", undefined);
|
|
7536
7540
|
__decorate([
|
|
7537
7541
|
hitType(false)
|
|
7538
|
-
], UI.prototype, "hitBox",
|
|
7542
|
+
], UI.prototype, "hitBox", undefined);
|
|
7539
7543
|
__decorate([
|
|
7540
7544
|
hitType(true)
|
|
7541
|
-
], UI.prototype, "hitChildren",
|
|
7545
|
+
], UI.prototype, "hitChildren", undefined);
|
|
7542
7546
|
__decorate([
|
|
7543
7547
|
hitType(true)
|
|
7544
|
-
], UI.prototype, "hitSelf",
|
|
7548
|
+
], UI.prototype, "hitSelf", undefined);
|
|
7545
7549
|
__decorate([
|
|
7546
7550
|
hitType()
|
|
7547
|
-
], UI.prototype, "hitRadius",
|
|
7551
|
+
], UI.prototype, "hitRadius", undefined);
|
|
7548
7552
|
__decorate([
|
|
7549
7553
|
cursorType('')
|
|
7550
|
-
], UI.prototype, "cursor",
|
|
7554
|
+
], UI.prototype, "cursor", undefined);
|
|
7551
7555
|
__decorate([
|
|
7552
7556
|
surfaceType()
|
|
7553
|
-
], UI.prototype, "fill",
|
|
7557
|
+
], UI.prototype, "fill", undefined);
|
|
7554
7558
|
__decorate([
|
|
7555
7559
|
strokeType()
|
|
7556
|
-
], UI.prototype, "stroke",
|
|
7560
|
+
], UI.prototype, "stroke", undefined);
|
|
7557
7561
|
__decorate([
|
|
7558
7562
|
strokeType('inside')
|
|
7559
|
-
], UI.prototype, "strokeAlign",
|
|
7563
|
+
], UI.prototype, "strokeAlign", undefined);
|
|
7560
7564
|
__decorate([
|
|
7561
7565
|
strokeType(1)
|
|
7562
|
-
], UI.prototype, "strokeWidth",
|
|
7566
|
+
], UI.prototype, "strokeWidth", undefined);
|
|
7563
7567
|
__decorate([
|
|
7564
7568
|
strokeType(false)
|
|
7565
|
-
], UI.prototype, "strokeWidthFixed",
|
|
7569
|
+
], UI.prototype, "strokeWidthFixed", undefined);
|
|
7566
7570
|
__decorate([
|
|
7567
7571
|
strokeType('none')
|
|
7568
|
-
], UI.prototype, "strokeCap",
|
|
7572
|
+
], UI.prototype, "strokeCap", undefined);
|
|
7569
7573
|
__decorate([
|
|
7570
7574
|
strokeType('miter')
|
|
7571
|
-
], UI.prototype, "strokeJoin",
|
|
7575
|
+
], UI.prototype, "strokeJoin", undefined);
|
|
7572
7576
|
__decorate([
|
|
7573
7577
|
strokeType()
|
|
7574
|
-
], UI.prototype, "dashPattern",
|
|
7578
|
+
], UI.prototype, "dashPattern", undefined);
|
|
7575
7579
|
__decorate([
|
|
7576
7580
|
strokeType()
|
|
7577
|
-
], UI.prototype, "dashOffset",
|
|
7581
|
+
], UI.prototype, "dashOffset", undefined);
|
|
7578
7582
|
__decorate([
|
|
7579
7583
|
strokeType(10)
|
|
7580
|
-
], UI.prototype, "miterLimit",
|
|
7584
|
+
], UI.prototype, "miterLimit", undefined);
|
|
7581
7585
|
__decorate([
|
|
7582
7586
|
pathType(0)
|
|
7583
|
-
], UI.prototype, "cornerRadius",
|
|
7587
|
+
], UI.prototype, "cornerRadius", undefined);
|
|
7584
7588
|
__decorate([
|
|
7585
7589
|
pathType()
|
|
7586
|
-
], UI.prototype, "cornerSmoothing",
|
|
7590
|
+
], UI.prototype, "cornerSmoothing", undefined);
|
|
7587
7591
|
__decorate([
|
|
7588
7592
|
effectType()
|
|
7589
|
-
], UI.prototype, "shadow",
|
|
7593
|
+
], UI.prototype, "shadow", undefined);
|
|
7590
7594
|
__decorate([
|
|
7591
7595
|
effectType()
|
|
7592
|
-
], UI.prototype, "innerShadow",
|
|
7596
|
+
], UI.prototype, "innerShadow", undefined);
|
|
7593
7597
|
__decorate([
|
|
7594
7598
|
effectType()
|
|
7595
|
-
], UI.prototype, "blur",
|
|
7599
|
+
], UI.prototype, "blur", undefined);
|
|
7596
7600
|
__decorate([
|
|
7597
7601
|
effectType()
|
|
7598
|
-
], UI.prototype, "backgroundBlur",
|
|
7602
|
+
], UI.prototype, "backgroundBlur", undefined);
|
|
7599
7603
|
__decorate([
|
|
7600
7604
|
effectType()
|
|
7601
|
-
], UI.prototype, "grayscale",
|
|
7605
|
+
], UI.prototype, "grayscale", undefined);
|
|
7602
7606
|
__decorate([
|
|
7603
7607
|
dataType({})
|
|
7604
|
-
], UI.prototype, "data",
|
|
7608
|
+
], UI.prototype, "data", undefined);
|
|
7605
7609
|
__decorate([
|
|
7606
7610
|
rewrite(Leaf.prototype.reset)
|
|
7607
7611
|
], UI.prototype, "reset", null);
|
|
@@ -7662,7 +7666,7 @@ let Group = class Group extends UI {
|
|
|
7662
7666
|
};
|
|
7663
7667
|
__decorate([
|
|
7664
7668
|
dataProcessor(GroupData)
|
|
7665
|
-
], Group.prototype, "__",
|
|
7669
|
+
], Group.prototype, "__", undefined);
|
|
7666
7670
|
Group = __decorate([
|
|
7667
7671
|
useModule(Branch),
|
|
7668
7672
|
registerUI()
|
|
@@ -7833,8 +7837,6 @@ let Leafer = Leafer_1 = class Leafer extends Group {
|
|
|
7833
7837
|
__setAttr(attrName, newValue) {
|
|
7834
7838
|
if (this.canvas) {
|
|
7835
7839
|
if (canvasSizeAttrs.includes(attrName)) {
|
|
7836
|
-
if (!newValue)
|
|
7837
|
-
debug.warn(attrName + ' is 0');
|
|
7838
7840
|
this.__changeCanvasSize(attrName, newValue);
|
|
7839
7841
|
}
|
|
7840
7842
|
else if (attrName === 'fill') {
|
|
@@ -8037,10 +8039,10 @@ let Leafer = Leafer_1 = class Leafer extends Group {
|
|
|
8037
8039
|
Leafer.list = new LeafList();
|
|
8038
8040
|
__decorate([
|
|
8039
8041
|
dataProcessor(LeaferData)
|
|
8040
|
-
], Leafer.prototype, "__",
|
|
8042
|
+
], Leafer.prototype, "__", undefined);
|
|
8041
8043
|
__decorate([
|
|
8042
8044
|
boundsType()
|
|
8043
|
-
], Leafer.prototype, "pixelRatio",
|
|
8045
|
+
], Leafer.prototype, "pixelRatio", undefined);
|
|
8044
8046
|
Leafer = Leafer_1 = __decorate([
|
|
8045
8047
|
registerUI()
|
|
8046
8048
|
], Leafer);
|
|
@@ -8053,7 +8055,7 @@ let Rect = class Rect extends UI {
|
|
|
8053
8055
|
};
|
|
8054
8056
|
__decorate([
|
|
8055
8057
|
dataProcessor(RectData)
|
|
8056
|
-
], Rect.prototype, "__",
|
|
8058
|
+
], Rect.prototype, "__", undefined);
|
|
8057
8059
|
Rect = __decorate([
|
|
8058
8060
|
useModule(RectRender),
|
|
8059
8061
|
rewriteAble(),
|
|
@@ -8078,6 +8080,8 @@ let Box = class Box extends Group {
|
|
|
8078
8080
|
const data = this.__;
|
|
8079
8081
|
if (this.children.length) {
|
|
8080
8082
|
if (data.__autoSide) {
|
|
8083
|
+
if (data.__hasSurface)
|
|
8084
|
+
this.__extraUpdate();
|
|
8081
8085
|
super.__updateBoxBounds();
|
|
8082
8086
|
const { boxBounds } = this.__layout;
|
|
8083
8087
|
if (!data.__autoSize) {
|
|
@@ -8142,13 +8146,13 @@ let Box = class Box extends Group {
|
|
|
8142
8146
|
};
|
|
8143
8147
|
__decorate([
|
|
8144
8148
|
dataProcessor(BoxData)
|
|
8145
|
-
], Box.prototype, "__",
|
|
8149
|
+
], Box.prototype, "__", undefined);
|
|
8146
8150
|
__decorate([
|
|
8147
8151
|
dataType(false)
|
|
8148
|
-
], Box.prototype, "resizeChildren",
|
|
8152
|
+
], Box.prototype, "resizeChildren", undefined);
|
|
8149
8153
|
__decorate([
|
|
8150
8154
|
affectRenderBoundsType('show')
|
|
8151
|
-
], Box.prototype, "overflow",
|
|
8155
|
+
], Box.prototype, "overflow", undefined);
|
|
8152
8156
|
__decorate([
|
|
8153
8157
|
rewrite(rect.__updateStrokeSpread)
|
|
8154
8158
|
], Box.prototype, "__updateStrokeSpread", null);
|
|
@@ -8187,13 +8191,13 @@ let Frame = class Frame extends Box {
|
|
|
8187
8191
|
};
|
|
8188
8192
|
__decorate([
|
|
8189
8193
|
dataProcessor(FrameData)
|
|
8190
|
-
], Frame.prototype, "__",
|
|
8194
|
+
], Frame.prototype, "__", undefined);
|
|
8191
8195
|
__decorate([
|
|
8192
8196
|
surfaceType('#FFFFFF')
|
|
8193
|
-
], Frame.prototype, "fill",
|
|
8197
|
+
], Frame.prototype, "fill", undefined);
|
|
8194
8198
|
__decorate([
|
|
8195
8199
|
affectRenderBoundsType('hide')
|
|
8196
|
-
], Frame.prototype, "overflow",
|
|
8200
|
+
], Frame.prototype, "overflow", undefined);
|
|
8197
8201
|
Frame = __decorate([
|
|
8198
8202
|
registerUI()
|
|
8199
8203
|
], Frame);
|
|
@@ -8240,16 +8244,16 @@ let Ellipse = class Ellipse extends UI {
|
|
|
8240
8244
|
};
|
|
8241
8245
|
__decorate([
|
|
8242
8246
|
dataProcessor(EllipseData)
|
|
8243
|
-
], Ellipse.prototype, "__",
|
|
8247
|
+
], Ellipse.prototype, "__", undefined);
|
|
8244
8248
|
__decorate([
|
|
8245
8249
|
pathType(0)
|
|
8246
|
-
], Ellipse.prototype, "innerRadius",
|
|
8250
|
+
], Ellipse.prototype, "innerRadius", undefined);
|
|
8247
8251
|
__decorate([
|
|
8248
8252
|
pathType(0)
|
|
8249
|
-
], Ellipse.prototype, "startAngle",
|
|
8253
|
+
], Ellipse.prototype, "startAngle", undefined);
|
|
8250
8254
|
__decorate([
|
|
8251
8255
|
pathType(0)
|
|
8252
|
-
], Ellipse.prototype, "endAngle",
|
|
8256
|
+
], Ellipse.prototype, "endAngle", undefined);
|
|
8253
8257
|
Ellipse = __decorate([
|
|
8254
8258
|
registerUI()
|
|
8255
8259
|
], Ellipse);
|
|
@@ -8308,22 +8312,22 @@ let Line = class Line extends UI {
|
|
|
8308
8312
|
};
|
|
8309
8313
|
__decorate([
|
|
8310
8314
|
dataProcessor(LineData)
|
|
8311
|
-
], Line.prototype, "__",
|
|
8315
|
+
], Line.prototype, "__", undefined);
|
|
8312
8316
|
__decorate([
|
|
8313
8317
|
affectStrokeBoundsType('center')
|
|
8314
|
-
], Line.prototype, "strokeAlign",
|
|
8318
|
+
], Line.prototype, "strokeAlign", undefined);
|
|
8315
8319
|
__decorate([
|
|
8316
8320
|
boundsType(0)
|
|
8317
|
-
], Line.prototype, "height",
|
|
8321
|
+
], Line.prototype, "height", undefined);
|
|
8318
8322
|
__decorate([
|
|
8319
8323
|
pathType()
|
|
8320
|
-
], Line.prototype, "points",
|
|
8324
|
+
], Line.prototype, "points", undefined);
|
|
8321
8325
|
__decorate([
|
|
8322
8326
|
pathType(0)
|
|
8323
|
-
], Line.prototype, "curve",
|
|
8327
|
+
], Line.prototype, "curve", undefined);
|
|
8324
8328
|
__decorate([
|
|
8325
8329
|
pathType(false)
|
|
8326
|
-
], Line.prototype, "closed",
|
|
8330
|
+
], Line.prototype, "closed", undefined);
|
|
8327
8331
|
Line = __decorate([
|
|
8328
8332
|
registerUI()
|
|
8329
8333
|
], Line);
|
|
@@ -8356,16 +8360,16 @@ let Polygon = class Polygon extends UI {
|
|
|
8356
8360
|
};
|
|
8357
8361
|
__decorate([
|
|
8358
8362
|
dataProcessor(PolygonData)
|
|
8359
|
-
], Polygon.prototype, "__",
|
|
8363
|
+
], Polygon.prototype, "__", undefined);
|
|
8360
8364
|
__decorate([
|
|
8361
8365
|
pathType(3)
|
|
8362
|
-
], Polygon.prototype, "sides",
|
|
8366
|
+
], Polygon.prototype, "sides", undefined);
|
|
8363
8367
|
__decorate([
|
|
8364
8368
|
pathType()
|
|
8365
|
-
], Polygon.prototype, "points",
|
|
8369
|
+
], Polygon.prototype, "points", undefined);
|
|
8366
8370
|
__decorate([
|
|
8367
8371
|
pathType(0)
|
|
8368
|
-
], Polygon.prototype, "curve",
|
|
8372
|
+
], Polygon.prototype, "curve", undefined);
|
|
8369
8373
|
__decorate([
|
|
8370
8374
|
rewrite(line.__updateRenderPath)
|
|
8371
8375
|
], Polygon.prototype, "__updateRenderPath", null);
|
|
@@ -8397,13 +8401,13 @@ let Star = class Star extends UI {
|
|
|
8397
8401
|
};
|
|
8398
8402
|
__decorate([
|
|
8399
8403
|
dataProcessor(StarData)
|
|
8400
|
-
], Star.prototype, "__",
|
|
8404
|
+
], Star.prototype, "__", undefined);
|
|
8401
8405
|
__decorate([
|
|
8402
8406
|
pathType(5)
|
|
8403
|
-
], Star.prototype, "corners",
|
|
8407
|
+
], Star.prototype, "corners", undefined);
|
|
8404
8408
|
__decorate([
|
|
8405
8409
|
pathType(0.382)
|
|
8406
|
-
], Star.prototype, "innerRadius",
|
|
8410
|
+
], Star.prototype, "innerRadius", undefined);
|
|
8407
8411
|
Star = __decorate([
|
|
8408
8412
|
registerUI()
|
|
8409
8413
|
], Star);
|
|
@@ -8425,10 +8429,10 @@ let Image = class Image extends Rect {
|
|
|
8425
8429
|
};
|
|
8426
8430
|
__decorate([
|
|
8427
8431
|
dataProcessor(ImageData)
|
|
8428
|
-
], Image.prototype, "__",
|
|
8432
|
+
], Image.prototype, "__", undefined);
|
|
8429
8433
|
__decorate([
|
|
8430
8434
|
boundsType('')
|
|
8431
|
-
], Image.prototype, "url",
|
|
8435
|
+
], Image.prototype, "url", undefined);
|
|
8432
8436
|
Image = __decorate([
|
|
8433
8437
|
registerUI()
|
|
8434
8438
|
], Image);
|
|
@@ -8491,25 +8495,25 @@ let Canvas = class Canvas extends Rect {
|
|
|
8491
8495
|
};
|
|
8492
8496
|
__decorate([
|
|
8493
8497
|
dataProcessor(CanvasData)
|
|
8494
|
-
], Canvas.prototype, "__",
|
|
8498
|
+
], Canvas.prototype, "__", undefined);
|
|
8495
8499
|
__decorate([
|
|
8496
8500
|
resizeType(100)
|
|
8497
|
-
], Canvas.prototype, "width",
|
|
8501
|
+
], Canvas.prototype, "width", undefined);
|
|
8498
8502
|
__decorate([
|
|
8499
8503
|
resizeType(100)
|
|
8500
|
-
], Canvas.prototype, "height",
|
|
8504
|
+
], Canvas.prototype, "height", undefined);
|
|
8501
8505
|
__decorate([
|
|
8502
8506
|
resizeType(1)
|
|
8503
|
-
], Canvas.prototype, "pixelRatio",
|
|
8507
|
+
], Canvas.prototype, "pixelRatio", undefined);
|
|
8504
8508
|
__decorate([
|
|
8505
8509
|
resizeType(true)
|
|
8506
|
-
], Canvas.prototype, "smooth",
|
|
8510
|
+
], Canvas.prototype, "smooth", undefined);
|
|
8507
8511
|
__decorate([
|
|
8508
8512
|
dataType(false)
|
|
8509
|
-
], Canvas.prototype, "safeResize",
|
|
8513
|
+
], Canvas.prototype, "safeResize", undefined);
|
|
8510
8514
|
__decorate([
|
|
8511
8515
|
resizeType()
|
|
8512
|
-
], Canvas.prototype, "contextSettings",
|
|
8516
|
+
], Canvas.prototype, "contextSettings", undefined);
|
|
8513
8517
|
Canvas = __decorate([
|
|
8514
8518
|
registerUI()
|
|
8515
8519
|
], Canvas);
|
|
@@ -8600,76 +8604,76 @@ let Text = class Text extends UI {
|
|
|
8600
8604
|
};
|
|
8601
8605
|
__decorate([
|
|
8602
8606
|
dataProcessor(TextData)
|
|
8603
|
-
], Text.prototype, "__",
|
|
8607
|
+
], Text.prototype, "__", undefined);
|
|
8604
8608
|
__decorate([
|
|
8605
8609
|
boundsType(0)
|
|
8606
|
-
], Text.prototype, "width",
|
|
8610
|
+
], Text.prototype, "width", undefined);
|
|
8607
8611
|
__decorate([
|
|
8608
8612
|
boundsType(0)
|
|
8609
|
-
], Text.prototype, "height",
|
|
8613
|
+
], Text.prototype, "height", undefined);
|
|
8610
8614
|
__decorate([
|
|
8611
8615
|
dataType(false)
|
|
8612
|
-
], Text.prototype, "resizeFontSize",
|
|
8616
|
+
], Text.prototype, "resizeFontSize", undefined);
|
|
8613
8617
|
__decorate([
|
|
8614
8618
|
surfaceType('#000000')
|
|
8615
|
-
], Text.prototype, "fill",
|
|
8619
|
+
], Text.prototype, "fill", undefined);
|
|
8616
8620
|
__decorate([
|
|
8617
8621
|
affectStrokeBoundsType('outside')
|
|
8618
|
-
], Text.prototype, "strokeAlign",
|
|
8622
|
+
], Text.prototype, "strokeAlign", undefined);
|
|
8619
8623
|
__decorate([
|
|
8620
8624
|
hitType('all')
|
|
8621
|
-
], Text.prototype, "hitFill",
|
|
8625
|
+
], Text.prototype, "hitFill", undefined);
|
|
8622
8626
|
__decorate([
|
|
8623
8627
|
boundsType('')
|
|
8624
|
-
], Text.prototype, "text",
|
|
8628
|
+
], Text.prototype, "text", undefined);
|
|
8625
8629
|
__decorate([
|
|
8626
|
-
boundsType('
|
|
8627
|
-
], Text.prototype, "fontFamily",
|
|
8630
|
+
boundsType('caption')
|
|
8631
|
+
], Text.prototype, "fontFamily", undefined);
|
|
8628
8632
|
__decorate([
|
|
8629
8633
|
boundsType(12)
|
|
8630
|
-
], Text.prototype, "fontSize",
|
|
8634
|
+
], Text.prototype, "fontSize", undefined);
|
|
8631
8635
|
__decorate([
|
|
8632
8636
|
boundsType('normal')
|
|
8633
|
-
], Text.prototype, "fontWeight",
|
|
8637
|
+
], Text.prototype, "fontWeight", undefined);
|
|
8634
8638
|
__decorate([
|
|
8635
8639
|
boundsType(false)
|
|
8636
|
-
], Text.prototype, "italic",
|
|
8640
|
+
], Text.prototype, "italic", undefined);
|
|
8637
8641
|
__decorate([
|
|
8638
8642
|
boundsType('none')
|
|
8639
|
-
], Text.prototype, "textCase",
|
|
8643
|
+
], Text.prototype, "textCase", undefined);
|
|
8640
8644
|
__decorate([
|
|
8641
8645
|
boundsType('none')
|
|
8642
|
-
], Text.prototype, "textDecoration",
|
|
8646
|
+
], Text.prototype, "textDecoration", undefined);
|
|
8643
8647
|
__decorate([
|
|
8644
8648
|
boundsType(0)
|
|
8645
|
-
], Text.prototype, "letterSpacing",
|
|
8649
|
+
], Text.prototype, "letterSpacing", undefined);
|
|
8646
8650
|
__decorate([
|
|
8647
8651
|
boundsType({ type: 'percent', value: 1.5 })
|
|
8648
|
-
], Text.prototype, "lineHeight",
|
|
8652
|
+
], Text.prototype, "lineHeight", undefined);
|
|
8649
8653
|
__decorate([
|
|
8650
8654
|
boundsType(0)
|
|
8651
|
-
], Text.prototype, "paraIndent",
|
|
8655
|
+
], Text.prototype, "paraIndent", undefined);
|
|
8652
8656
|
__decorate([
|
|
8653
8657
|
boundsType(0)
|
|
8654
|
-
], Text.prototype, "paraSpacing",
|
|
8658
|
+
], Text.prototype, "paraSpacing", undefined);
|
|
8655
8659
|
__decorate([
|
|
8656
8660
|
boundsType('x')
|
|
8657
|
-
], Text.prototype, "writingMode",
|
|
8661
|
+
], Text.prototype, "writingMode", undefined);
|
|
8658
8662
|
__decorate([
|
|
8659
8663
|
boundsType('left')
|
|
8660
|
-
], Text.prototype, "textAlign",
|
|
8664
|
+
], Text.prototype, "textAlign", undefined);
|
|
8661
8665
|
__decorate([
|
|
8662
8666
|
boundsType('top')
|
|
8663
|
-
], Text.prototype, "verticalAlign",
|
|
8667
|
+
], Text.prototype, "verticalAlign", undefined);
|
|
8664
8668
|
__decorate([
|
|
8665
8669
|
boundsType(true)
|
|
8666
|
-
], Text.prototype, "autoSizeAlign",
|
|
8670
|
+
], Text.prototype, "autoSizeAlign", undefined);
|
|
8667
8671
|
__decorate([
|
|
8668
8672
|
boundsType('normal')
|
|
8669
|
-
], Text.prototype, "textWrap",
|
|
8673
|
+
], Text.prototype, "textWrap", undefined);
|
|
8670
8674
|
__decorate([
|
|
8671
8675
|
boundsType('show')
|
|
8672
|
-
], Text.prototype, "textOverflow",
|
|
8676
|
+
], Text.prototype, "textOverflow", undefined);
|
|
8673
8677
|
Text = __decorate([
|
|
8674
8678
|
registerUI()
|
|
8675
8679
|
], Text);
|
|
@@ -8682,10 +8686,10 @@ let Path = class Path extends UI {
|
|
|
8682
8686
|
};
|
|
8683
8687
|
__decorate([
|
|
8684
8688
|
dataProcessor(PathData)
|
|
8685
|
-
], Path.prototype, "__",
|
|
8689
|
+
], Path.prototype, "__", undefined);
|
|
8686
8690
|
__decorate([
|
|
8687
8691
|
affectStrokeBoundsType('center')
|
|
8688
|
-
], Path.prototype, "strokeAlign",
|
|
8692
|
+
], Path.prototype, "strokeAlign", undefined);
|
|
8689
8693
|
Path = __decorate([
|
|
8690
8694
|
registerUI()
|
|
8691
8695
|
], Path);
|
|
@@ -8724,10 +8728,10 @@ let Pen = class Pen extends Group {
|
|
|
8724
8728
|
};
|
|
8725
8729
|
__decorate([
|
|
8726
8730
|
dataProcessor(PenData)
|
|
8727
|
-
], Pen.prototype, "__",
|
|
8731
|
+
], Pen.prototype, "__", undefined);
|
|
8728
8732
|
__decorate([
|
|
8729
8733
|
penPathType()
|
|
8730
|
-
], Pen.prototype, "path",
|
|
8734
|
+
], Pen.prototype, "path", undefined);
|
|
8731
8735
|
Pen = __decorate([
|
|
8732
8736
|
useModule(PathCreator, ['set', 'path', 'paint']),
|
|
8733
8737
|
registerUI()
|
|
@@ -9361,7 +9365,7 @@ function checkImage(ui, canvas, paint, allowPaint) {
|
|
|
9361
9365
|
}
|
|
9362
9366
|
else {
|
|
9363
9367
|
if (!paint.patternTask) {
|
|
9364
|
-
paint.patternTask = ImageManager.patternTasker.add(() => __awaiter(this,
|
|
9368
|
+
paint.patternTask = ImageManager.patternTasker.add(() => __awaiter(this, undefined, undefined, function* () {
|
|
9365
9369
|
paint.patternTask = null;
|
|
9366
9370
|
if (canvas.bounds.hit(ui.__nowWorld))
|
|
9367
9371
|
createPattern(ui, paint, pixelRatio);
|
|
@@ -9517,7 +9521,7 @@ function shadow(ui, current, shape) {
|
|
|
9517
9521
|
const end = shadow.length - 1;
|
|
9518
9522
|
toOffsetOutBounds$1(bounds, offsetOutBounds$1);
|
|
9519
9523
|
shadow.forEach((item, index) => {
|
|
9520
|
-
other.setWorldShadow((offsetOutBounds$1.offsetX + item.x * scaleX), (offsetOutBounds$1.offsetY + item.y * scaleY), item.blur * scaleX, item.color);
|
|
9524
|
+
other.setWorldShadow((offsetOutBounds$1.offsetX + item.x * scaleX), (offsetOutBounds$1.offsetY + item.y * scaleY), item.blur * scaleX, ColorConvert.string(item.color));
|
|
9521
9525
|
spreadScale = item.spread ? 1 + item.spread * 2 / (__layout.boxBounds.width + (__layout.strokeBoxSpread || 0) * 2) : 0;
|
|
9522
9526
|
drawWorldShadow(other, offsetOutBounds$1, spreadScale, shape);
|
|
9523
9527
|
copyBounds = bounds;
|
|
@@ -9593,7 +9597,7 @@ function innerShadow(ui, current, shape) {
|
|
|
9593
9597
|
other.copyWorld(shape.canvas, shapeBounds, bounds, 'source-out');
|
|
9594
9598
|
copyBounds = bounds;
|
|
9595
9599
|
}
|
|
9596
|
-
other.fillWorld(copyBounds, item.color, 'source-in');
|
|
9600
|
+
other.fillWorld(copyBounds, ColorConvert.string(item.color), 'source-in');
|
|
9597
9601
|
if (ui.__worldFlipped) {
|
|
9598
9602
|
current.copyWorldByReset(other, copyBounds, nowWorld, item.blendMode);
|
|
9599
9603
|
}
|