leafer-ui 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/README.md +14 -4
- package/dist/web.cjs +5 -5
- package/dist/web.esm.js +5 -5
- package/dist/web.esm.min.js +1 -1
- package/dist/web.js +183 -179
- package/dist/web.min.cjs +1 -1
- package/dist/web.min.js +1 -1
- package/dist/web.module.js +183 -179
- package/dist/web.module.min.js +1 -1
- package/package.json +12 -12
package/dist/web.js
CHANGED
|
@@ -1536,10 +1536,10 @@ var LeaferUI = (function (exports) {
|
|
|
1536
1536
|
Object.keys(merge).forEach(key => {
|
|
1537
1537
|
var _a, _b;
|
|
1538
1538
|
value = merge[key];
|
|
1539
|
-
if ((value === null || value ===
|
|
1539
|
+
if ((value === null || value === undefined ? undefined : value.constructor) === Object && ((_a = t[key]) === null || _a === undefined ? undefined : _a.constructor) === Object)
|
|
1540
1540
|
return assign(t[key], merge[key], exclude && exclude[key]);
|
|
1541
1541
|
if (exclude && (key in exclude)) {
|
|
1542
|
-
if (((_b = exclude[key]) === null || _b ===
|
|
1542
|
+
if (((_b = exclude[key]) === null || _b === undefined ? undefined : _b.constructor) === Object)
|
|
1543
1543
|
assign(t[key] = {}, merge[key], exclude[key]);
|
|
1544
1544
|
return;
|
|
1545
1545
|
}
|
|
@@ -1708,7 +1708,7 @@ var LeaferUI = (function (exports) {
|
|
|
1708
1708
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1709
1709
|
PERFORMANCE OF THIS SOFTWARE.
|
|
1710
1710
|
***************************************************************************** */
|
|
1711
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
1711
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
1712
1712
|
|
|
1713
1713
|
|
|
1714
1714
|
function __decorate(decorators, target, key, desc) {
|
|
@@ -1776,7 +1776,7 @@ var LeaferUI = (function (exports) {
|
|
|
1776
1776
|
}
|
|
1777
1777
|
setTransform(_a, _b, _c, _d, _e, _f) { }
|
|
1778
1778
|
resetTransform() { }
|
|
1779
|
-
getTransform() { return
|
|
1779
|
+
getTransform() { return undefined; }
|
|
1780
1780
|
save() { }
|
|
1781
1781
|
restore() { }
|
|
1782
1782
|
transform(a, b, c, d, e, f) {
|
|
@@ -1833,12 +1833,12 @@ var LeaferUI = (function (exports) {
|
|
|
1833
1833
|
ellipse(_x, _y, _radiusX, _radiusY, _rotation, _startAngle, _endAngle, _anticlockwise) { }
|
|
1834
1834
|
rect(_x, _y, _width, _height) { }
|
|
1835
1835
|
roundRect(_x, _y, _width, _height, _radius) { }
|
|
1836
|
-
createConicGradient(_startAngle, _x, _y) { return
|
|
1837
|
-
createLinearGradient(_x0, _y0, _x1, _y1) { return
|
|
1838
|
-
createPattern(_image, _repetition) { return
|
|
1839
|
-
createRadialGradient(_x0, _y0, _r0, _x1, _y1, _r1) { return
|
|
1836
|
+
createConicGradient(_startAngle, _x, _y) { return undefined; }
|
|
1837
|
+
createLinearGradient(_x0, _y0, _x1, _y1) { return undefined; }
|
|
1838
|
+
createPattern(_image, _repetition) { return undefined; }
|
|
1839
|
+
createRadialGradient(_x0, _y0, _r0, _x1, _y1, _r1) { return undefined; }
|
|
1840
1840
|
fillText(_text, _x, _y, _maxWidth) { }
|
|
1841
|
-
measureText(_text) { return
|
|
1841
|
+
measureText(_text) { return undefined; }
|
|
1842
1842
|
strokeText(_text, _x, _y, _maxWidth) { }
|
|
1843
1843
|
destroy() {
|
|
1844
1844
|
this.context = null;
|
|
@@ -1846,79 +1846,79 @@ var LeaferUI = (function (exports) {
|
|
|
1846
1846
|
}
|
|
1847
1847
|
__decorate([
|
|
1848
1848
|
contextAttr('imageSmoothingEnabled')
|
|
1849
|
-
], Canvas.prototype, "smooth",
|
|
1849
|
+
], Canvas.prototype, "smooth", undefined);
|
|
1850
1850
|
__decorate([
|
|
1851
1851
|
contextAttr('imageSmoothingQuality')
|
|
1852
|
-
], Canvas.prototype, "smoothLevel",
|
|
1852
|
+
], Canvas.prototype, "smoothLevel", undefined);
|
|
1853
1853
|
__decorate([
|
|
1854
1854
|
contextAttr('globalAlpha')
|
|
1855
|
-
], Canvas.prototype, "opacity",
|
|
1855
|
+
], Canvas.prototype, "opacity", undefined);
|
|
1856
1856
|
__decorate([
|
|
1857
1857
|
contextAttr()
|
|
1858
|
-
], Canvas.prototype, "fillStyle",
|
|
1858
|
+
], Canvas.prototype, "fillStyle", undefined);
|
|
1859
1859
|
__decorate([
|
|
1860
1860
|
contextAttr()
|
|
1861
|
-
], Canvas.prototype, "strokeStyle",
|
|
1861
|
+
], Canvas.prototype, "strokeStyle", undefined);
|
|
1862
1862
|
__decorate([
|
|
1863
1863
|
contextAttr('lineWidth')
|
|
1864
|
-
], Canvas.prototype, "strokeWidth",
|
|
1864
|
+
], Canvas.prototype, "strokeWidth", undefined);
|
|
1865
1865
|
__decorate([
|
|
1866
1866
|
contextAttr('lineCap')
|
|
1867
|
-
], Canvas.prototype, "strokeCap",
|
|
1867
|
+
], Canvas.prototype, "strokeCap", undefined);
|
|
1868
1868
|
__decorate([
|
|
1869
1869
|
contextAttr('lineJoin')
|
|
1870
|
-
], Canvas.prototype, "strokeJoin",
|
|
1870
|
+
], Canvas.prototype, "strokeJoin", undefined);
|
|
1871
1871
|
__decorate([
|
|
1872
1872
|
contextAttr('lineDashOffset')
|
|
1873
|
-
], Canvas.prototype, "dashOffset",
|
|
1873
|
+
], Canvas.prototype, "dashOffset", undefined);
|
|
1874
1874
|
__decorate([
|
|
1875
1875
|
contextAttr()
|
|
1876
|
-
], Canvas.prototype, "miterLimit",
|
|
1876
|
+
], Canvas.prototype, "miterLimit", undefined);
|
|
1877
1877
|
__decorate([
|
|
1878
1878
|
contextAttr()
|
|
1879
|
-
], Canvas.prototype, "shadowBlur",
|
|
1879
|
+
], Canvas.prototype, "shadowBlur", undefined);
|
|
1880
1880
|
__decorate([
|
|
1881
1881
|
contextAttr()
|
|
1882
|
-
], Canvas.prototype, "shadowColor",
|
|
1882
|
+
], Canvas.prototype, "shadowColor", undefined);
|
|
1883
1883
|
__decorate([
|
|
1884
1884
|
contextAttr()
|
|
1885
|
-
], Canvas.prototype, "shadowOffsetX",
|
|
1885
|
+
], Canvas.prototype, "shadowOffsetX", undefined);
|
|
1886
1886
|
__decorate([
|
|
1887
1887
|
contextAttr()
|
|
1888
|
-
], Canvas.prototype, "shadowOffsetY",
|
|
1888
|
+
], Canvas.prototype, "shadowOffsetY", undefined);
|
|
1889
1889
|
__decorate([
|
|
1890
1890
|
contextAttr()
|
|
1891
|
-
], Canvas.prototype, "filter",
|
|
1891
|
+
], Canvas.prototype, "filter", undefined);
|
|
1892
1892
|
__decorate([
|
|
1893
1893
|
contextAttr()
|
|
1894
|
-
], Canvas.prototype, "font",
|
|
1894
|
+
], Canvas.prototype, "font", undefined);
|
|
1895
1895
|
__decorate([
|
|
1896
1896
|
contextAttr()
|
|
1897
|
-
], Canvas.prototype, "fontKerning",
|
|
1897
|
+
], Canvas.prototype, "fontKerning", undefined);
|
|
1898
1898
|
__decorate([
|
|
1899
1899
|
contextAttr()
|
|
1900
|
-
], Canvas.prototype, "fontStretch",
|
|
1900
|
+
], Canvas.prototype, "fontStretch", undefined);
|
|
1901
1901
|
__decorate([
|
|
1902
1902
|
contextAttr()
|
|
1903
|
-
], Canvas.prototype, "fontVariantCaps",
|
|
1903
|
+
], Canvas.prototype, "fontVariantCaps", undefined);
|
|
1904
1904
|
__decorate([
|
|
1905
1905
|
contextAttr()
|
|
1906
|
-
], Canvas.prototype, "textAlign",
|
|
1906
|
+
], Canvas.prototype, "textAlign", undefined);
|
|
1907
1907
|
__decorate([
|
|
1908
1908
|
contextAttr()
|
|
1909
|
-
], Canvas.prototype, "textBaseline",
|
|
1909
|
+
], Canvas.prototype, "textBaseline", undefined);
|
|
1910
1910
|
__decorate([
|
|
1911
1911
|
contextAttr()
|
|
1912
|
-
], Canvas.prototype, "textRendering",
|
|
1912
|
+
], Canvas.prototype, "textRendering", undefined);
|
|
1913
1913
|
__decorate([
|
|
1914
1914
|
contextAttr()
|
|
1915
|
-
], Canvas.prototype, "wordSpacing",
|
|
1915
|
+
], Canvas.prototype, "wordSpacing", undefined);
|
|
1916
1916
|
__decorate([
|
|
1917
1917
|
contextAttr()
|
|
1918
|
-
], Canvas.prototype, "letterSpacing",
|
|
1918
|
+
], Canvas.prototype, "letterSpacing", undefined);
|
|
1919
1919
|
__decorate([
|
|
1920
1920
|
contextAttr()
|
|
1921
|
-
], Canvas.prototype, "direction",
|
|
1921
|
+
], Canvas.prototype, "direction", undefined);
|
|
1922
1922
|
__decorate([
|
|
1923
1923
|
contextMethod()
|
|
1924
1924
|
], Canvas.prototype, "setTransform", null);
|
|
@@ -3387,7 +3387,7 @@ var LeaferUI = (function (exports) {
|
|
|
3387
3387
|
this.task = task;
|
|
3388
3388
|
}
|
|
3389
3389
|
run() {
|
|
3390
|
-
return __awaiter(this,
|
|
3390
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
3391
3391
|
try {
|
|
3392
3392
|
if (this.task && !this.isComplete && this.parent.running)
|
|
3393
3393
|
yield this.task();
|
|
@@ -3699,7 +3699,7 @@ var LeaferUI = (function (exports) {
|
|
|
3699
3699
|
load(onSuccess, onError) {
|
|
3700
3700
|
if (!this.loading) {
|
|
3701
3701
|
this.loading = true;
|
|
3702
|
-
ImageManager.tasker.add(() => __awaiter(this,
|
|
3702
|
+
ImageManager.tasker.add(() => __awaiter(this, undefined, undefined, function* () {
|
|
3703
3703
|
return yield Platform.origin.loadImage(this.url).then((img) => {
|
|
3704
3704
|
this.ready = true;
|
|
3705
3705
|
this.width = img.naturalWidth || img.width;
|
|
@@ -5178,8 +5178,7 @@ var LeaferUI = (function (exports) {
|
|
|
5178
5178
|
__updateAutoLayout() {
|
|
5179
5179
|
this.__layout.matrixChanged = true;
|
|
5180
5180
|
if (this.isBranch) {
|
|
5181
|
-
|
|
5182
|
-
this.leafer.layouter.addExtra(this);
|
|
5181
|
+
this.__extraUpdate();
|
|
5183
5182
|
if (this.__.flow) {
|
|
5184
5183
|
if (this.__layout.boxChanged)
|
|
5185
5184
|
this.__updateFlowLayout();
|
|
@@ -5332,7 +5331,7 @@ var LeaferUI = (function (exports) {
|
|
|
5332
5331
|
get __worldFlipped() { return this.__world.scaleX < 0 || this.__world.scaleY < 0; }
|
|
5333
5332
|
get __onlyHitMask() { return this.__hasMask && !this.__.hitChildren; }
|
|
5334
5333
|
get __ignoreHitWorld() { return (this.__hasMask || this.__hasEraser) && this.__.hitChildren; }
|
|
5335
|
-
get __inLazyBounds() {
|
|
5334
|
+
get __inLazyBounds() { return this.leaferIsCreated && this.leafer.lazyBounds.hit(this.__world); }
|
|
5336
5335
|
get pathInputed() { return this.__.__pathInputed; }
|
|
5337
5336
|
set event(map) { this.on(map); }
|
|
5338
5337
|
constructor(data) {
|
|
@@ -5443,6 +5442,10 @@ var LeaferUI = (function (exports) {
|
|
|
5443
5442
|
forceRender(_bounds, _sync) {
|
|
5444
5443
|
this.forceUpdate('surface');
|
|
5445
5444
|
}
|
|
5445
|
+
__extraUpdate() {
|
|
5446
|
+
if (this.leaferIsReady)
|
|
5447
|
+
this.leafer.layouter.addExtra(this);
|
|
5448
|
+
}
|
|
5446
5449
|
__updateWorldMatrix() { }
|
|
5447
5450
|
__updateLocalMatrix() { }
|
|
5448
5451
|
__updateWorldBounds() { }
|
|
@@ -6010,7 +6013,7 @@ var LeaferUI = (function (exports) {
|
|
|
6010
6013
|
}
|
|
6011
6014
|
}
|
|
6012
6015
|
|
|
6013
|
-
const version = "1.3.
|
|
6016
|
+
const version = "1.3.3";
|
|
6014
6017
|
|
|
6015
6018
|
const debug$5 = Debug.get('LeaferCanvas');
|
|
6016
6019
|
class LeaferCanvas extends LeaferCanvasBase {
|
|
@@ -6531,7 +6534,7 @@ var LeaferUI = (function (exports) {
|
|
|
6531
6534
|
}
|
|
6532
6535
|
partLayout() {
|
|
6533
6536
|
var _a;
|
|
6534
|
-
if (!((_a = this.__updatedList) === null || _a ===
|
|
6537
|
+
if (!((_a = this.__updatedList) === null || _a === undefined ? undefined : _a.length))
|
|
6535
6538
|
return;
|
|
6536
6539
|
const t = Run.start('PartLayout');
|
|
6537
6540
|
const { target, __updatedList: updateList } = this;
|
|
@@ -7102,6 +7105,7 @@ var LeaferUI = (function (exports) {
|
|
|
7102
7105
|
return t.fill && this.__hasStroke;
|
|
7103
7106
|
}
|
|
7104
7107
|
get __clipAfterFill() { const t = this; return (t.cornerRadius || t.innerShadow || t.__pathInputed); }
|
|
7108
|
+
get __hasSurface() { const t = this; return (t.fill || t.stroke); }
|
|
7105
7109
|
get __autoWidth() { return !this._width; }
|
|
7106
7110
|
get __autoHeight() { return !this._height; }
|
|
7107
7111
|
get __autoSide() { return !this._width || !this._height; }
|
|
@@ -7605,199 +7609,199 @@ var LeaferUI = (function (exports) {
|
|
|
7605
7609
|
};
|
|
7606
7610
|
__decorate([
|
|
7607
7611
|
dataProcessor(UIData)
|
|
7608
|
-
], exports.UI.prototype, "__",
|
|
7612
|
+
], exports.UI.prototype, "__", undefined);
|
|
7609
7613
|
__decorate([
|
|
7610
7614
|
zoomLayerType()
|
|
7611
|
-
], exports.UI.prototype, "zoomLayer",
|
|
7615
|
+
], exports.UI.prototype, "zoomLayer", undefined);
|
|
7612
7616
|
__decorate([
|
|
7613
7617
|
dataType('')
|
|
7614
|
-
], exports.UI.prototype, "id",
|
|
7618
|
+
], exports.UI.prototype, "id", undefined);
|
|
7615
7619
|
__decorate([
|
|
7616
7620
|
dataType('')
|
|
7617
|
-
], exports.UI.prototype, "name",
|
|
7621
|
+
], exports.UI.prototype, "name", undefined);
|
|
7618
7622
|
__decorate([
|
|
7619
7623
|
dataType('')
|
|
7620
|
-
], exports.UI.prototype, "className",
|
|
7624
|
+
], exports.UI.prototype, "className", undefined);
|
|
7621
7625
|
__decorate([
|
|
7622
7626
|
surfaceType('pass-through')
|
|
7623
|
-
], exports.UI.prototype, "blendMode",
|
|
7627
|
+
], exports.UI.prototype, "blendMode", undefined);
|
|
7624
7628
|
__decorate([
|
|
7625
7629
|
opacityType(1)
|
|
7626
|
-
], exports.UI.prototype, "opacity",
|
|
7630
|
+
], exports.UI.prototype, "opacity", undefined);
|
|
7627
7631
|
__decorate([
|
|
7628
7632
|
visibleType(true)
|
|
7629
|
-
], exports.UI.prototype, "visible",
|
|
7633
|
+
], exports.UI.prototype, "visible", undefined);
|
|
7630
7634
|
__decorate([
|
|
7631
7635
|
surfaceType(false)
|
|
7632
|
-
], exports.UI.prototype, "locked",
|
|
7636
|
+
], exports.UI.prototype, "locked", undefined);
|
|
7633
7637
|
__decorate([
|
|
7634
7638
|
sortType(0)
|
|
7635
|
-
], exports.UI.prototype, "zIndex",
|
|
7639
|
+
], exports.UI.prototype, "zIndex", undefined);
|
|
7636
7640
|
__decorate([
|
|
7637
7641
|
maskType(false)
|
|
7638
|
-
], exports.UI.prototype, "mask",
|
|
7642
|
+
], exports.UI.prototype, "mask", undefined);
|
|
7639
7643
|
__decorate([
|
|
7640
7644
|
eraserType(false)
|
|
7641
|
-
], exports.UI.prototype, "eraser",
|
|
7645
|
+
], exports.UI.prototype, "eraser", undefined);
|
|
7642
7646
|
__decorate([
|
|
7643
7647
|
positionType(0, true)
|
|
7644
|
-
], exports.UI.prototype, "x",
|
|
7648
|
+
], exports.UI.prototype, "x", undefined);
|
|
7645
7649
|
__decorate([
|
|
7646
7650
|
positionType(0, true)
|
|
7647
|
-
], exports.UI.prototype, "y",
|
|
7651
|
+
], exports.UI.prototype, "y", undefined);
|
|
7648
7652
|
__decorate([
|
|
7649
7653
|
boundsType(100, true)
|
|
7650
|
-
], exports.UI.prototype, "width",
|
|
7654
|
+
], exports.UI.prototype, "width", undefined);
|
|
7651
7655
|
__decorate([
|
|
7652
7656
|
boundsType(100, true)
|
|
7653
|
-
], exports.UI.prototype, "height",
|
|
7657
|
+
], exports.UI.prototype, "height", undefined);
|
|
7654
7658
|
__decorate([
|
|
7655
7659
|
scaleType(1, true)
|
|
7656
|
-
], exports.UI.prototype, "scaleX",
|
|
7660
|
+
], exports.UI.prototype, "scaleX", undefined);
|
|
7657
7661
|
__decorate([
|
|
7658
7662
|
scaleType(1, true)
|
|
7659
|
-
], exports.UI.prototype, "scaleY",
|
|
7663
|
+
], exports.UI.prototype, "scaleY", undefined);
|
|
7660
7664
|
__decorate([
|
|
7661
7665
|
rotationType(0, true)
|
|
7662
|
-
], exports.UI.prototype, "rotation",
|
|
7666
|
+
], exports.UI.prototype, "rotation", undefined);
|
|
7663
7667
|
__decorate([
|
|
7664
7668
|
rotationType(0, true)
|
|
7665
|
-
], exports.UI.prototype, "skewX",
|
|
7669
|
+
], exports.UI.prototype, "skewX", undefined);
|
|
7666
7670
|
__decorate([
|
|
7667
7671
|
rotationType(0, true)
|
|
7668
|
-
], exports.UI.prototype, "skewY",
|
|
7672
|
+
], exports.UI.prototype, "skewY", undefined);
|
|
7669
7673
|
__decorate([
|
|
7670
7674
|
positionType(0, true)
|
|
7671
|
-
], exports.UI.prototype, "offsetX",
|
|
7675
|
+
], exports.UI.prototype, "offsetX", undefined);
|
|
7672
7676
|
__decorate([
|
|
7673
7677
|
positionType(0, true)
|
|
7674
|
-
], exports.UI.prototype, "offsetY",
|
|
7678
|
+
], exports.UI.prototype, "offsetY", undefined);
|
|
7675
7679
|
__decorate([
|
|
7676
7680
|
positionType(0, true)
|
|
7677
|
-
], exports.UI.prototype, "scrollX",
|
|
7681
|
+
], exports.UI.prototype, "scrollX", undefined);
|
|
7678
7682
|
__decorate([
|
|
7679
7683
|
positionType(0, true)
|
|
7680
|
-
], exports.UI.prototype, "scrollY",
|
|
7684
|
+
], exports.UI.prototype, "scrollY", undefined);
|
|
7681
7685
|
__decorate([
|
|
7682
7686
|
autoLayoutType()
|
|
7683
|
-
], exports.UI.prototype, "origin",
|
|
7687
|
+
], exports.UI.prototype, "origin", undefined);
|
|
7684
7688
|
__decorate([
|
|
7685
7689
|
autoLayoutType()
|
|
7686
|
-
], exports.UI.prototype, "around",
|
|
7690
|
+
], exports.UI.prototype, "around", undefined);
|
|
7687
7691
|
__decorate([
|
|
7688
7692
|
dataType(false)
|
|
7689
|
-
], exports.UI.prototype, "lazy",
|
|
7693
|
+
], exports.UI.prototype, "lazy", undefined);
|
|
7690
7694
|
__decorate([
|
|
7691
7695
|
naturalBoundsType(1)
|
|
7692
|
-
], exports.UI.prototype, "pixelRatio",
|
|
7696
|
+
], exports.UI.prototype, "pixelRatio", undefined);
|
|
7693
7697
|
__decorate([
|
|
7694
7698
|
pathInputType()
|
|
7695
|
-
], exports.UI.prototype, "path",
|
|
7699
|
+
], exports.UI.prototype, "path", undefined);
|
|
7696
7700
|
__decorate([
|
|
7697
7701
|
pathType()
|
|
7698
|
-
], exports.UI.prototype, "windingRule",
|
|
7702
|
+
], exports.UI.prototype, "windingRule", undefined);
|
|
7699
7703
|
__decorate([
|
|
7700
7704
|
pathType(true)
|
|
7701
|
-
], exports.UI.prototype, "closed",
|
|
7705
|
+
], exports.UI.prototype, "closed", undefined);
|
|
7702
7706
|
__decorate([
|
|
7703
7707
|
boundsType(0)
|
|
7704
|
-
], exports.UI.prototype, "padding",
|
|
7708
|
+
], exports.UI.prototype, "padding", undefined);
|
|
7705
7709
|
__decorate([
|
|
7706
7710
|
boundsType(false)
|
|
7707
|
-
], exports.UI.prototype, "lockRatio",
|
|
7711
|
+
], exports.UI.prototype, "lockRatio", undefined);
|
|
7708
7712
|
__decorate([
|
|
7709
7713
|
boundsType()
|
|
7710
|
-
], exports.UI.prototype, "widthRange",
|
|
7714
|
+
], exports.UI.prototype, "widthRange", undefined);
|
|
7711
7715
|
__decorate([
|
|
7712
7716
|
boundsType()
|
|
7713
|
-
], exports.UI.prototype, "heightRange",
|
|
7717
|
+
], exports.UI.prototype, "heightRange", undefined);
|
|
7714
7718
|
__decorate([
|
|
7715
7719
|
dataType(false)
|
|
7716
|
-
], exports.UI.prototype, "draggable",
|
|
7720
|
+
], exports.UI.prototype, "draggable", undefined);
|
|
7717
7721
|
__decorate([
|
|
7718
7722
|
dataType()
|
|
7719
|
-
], exports.UI.prototype, "dragBounds",
|
|
7723
|
+
], exports.UI.prototype, "dragBounds", undefined);
|
|
7720
7724
|
__decorate([
|
|
7721
7725
|
dataType(false)
|
|
7722
|
-
], exports.UI.prototype, "editable",
|
|
7726
|
+
], exports.UI.prototype, "editable", undefined);
|
|
7723
7727
|
__decorate([
|
|
7724
7728
|
hitType(true)
|
|
7725
|
-
], exports.UI.prototype, "hittable",
|
|
7729
|
+
], exports.UI.prototype, "hittable", undefined);
|
|
7726
7730
|
__decorate([
|
|
7727
7731
|
hitType('path')
|
|
7728
|
-
], exports.UI.prototype, "hitFill",
|
|
7732
|
+
], exports.UI.prototype, "hitFill", undefined);
|
|
7729
7733
|
__decorate([
|
|
7730
7734
|
strokeType('path')
|
|
7731
|
-
], exports.UI.prototype, "hitStroke",
|
|
7735
|
+
], exports.UI.prototype, "hitStroke", undefined);
|
|
7732
7736
|
__decorate([
|
|
7733
7737
|
hitType(false)
|
|
7734
|
-
], exports.UI.prototype, "hitBox",
|
|
7738
|
+
], exports.UI.prototype, "hitBox", undefined);
|
|
7735
7739
|
__decorate([
|
|
7736
7740
|
hitType(true)
|
|
7737
|
-
], exports.UI.prototype, "hitChildren",
|
|
7741
|
+
], exports.UI.prototype, "hitChildren", undefined);
|
|
7738
7742
|
__decorate([
|
|
7739
7743
|
hitType(true)
|
|
7740
|
-
], exports.UI.prototype, "hitSelf",
|
|
7744
|
+
], exports.UI.prototype, "hitSelf", undefined);
|
|
7741
7745
|
__decorate([
|
|
7742
7746
|
hitType()
|
|
7743
|
-
], exports.UI.prototype, "hitRadius",
|
|
7747
|
+
], exports.UI.prototype, "hitRadius", undefined);
|
|
7744
7748
|
__decorate([
|
|
7745
7749
|
cursorType('')
|
|
7746
|
-
], exports.UI.prototype, "cursor",
|
|
7750
|
+
], exports.UI.prototype, "cursor", undefined);
|
|
7747
7751
|
__decorate([
|
|
7748
7752
|
surfaceType()
|
|
7749
|
-
], exports.UI.prototype, "fill",
|
|
7753
|
+
], exports.UI.prototype, "fill", undefined);
|
|
7750
7754
|
__decorate([
|
|
7751
7755
|
strokeType()
|
|
7752
|
-
], exports.UI.prototype, "stroke",
|
|
7756
|
+
], exports.UI.prototype, "stroke", undefined);
|
|
7753
7757
|
__decorate([
|
|
7754
7758
|
strokeType('inside')
|
|
7755
|
-
], exports.UI.prototype, "strokeAlign",
|
|
7759
|
+
], exports.UI.prototype, "strokeAlign", undefined);
|
|
7756
7760
|
__decorate([
|
|
7757
7761
|
strokeType(1)
|
|
7758
|
-
], exports.UI.prototype, "strokeWidth",
|
|
7762
|
+
], exports.UI.prototype, "strokeWidth", undefined);
|
|
7759
7763
|
__decorate([
|
|
7760
7764
|
strokeType(false)
|
|
7761
|
-
], exports.UI.prototype, "strokeWidthFixed",
|
|
7765
|
+
], exports.UI.prototype, "strokeWidthFixed", undefined);
|
|
7762
7766
|
__decorate([
|
|
7763
7767
|
strokeType('none')
|
|
7764
|
-
], exports.UI.prototype, "strokeCap",
|
|
7768
|
+
], exports.UI.prototype, "strokeCap", undefined);
|
|
7765
7769
|
__decorate([
|
|
7766
7770
|
strokeType('miter')
|
|
7767
|
-
], exports.UI.prototype, "strokeJoin",
|
|
7771
|
+
], exports.UI.prototype, "strokeJoin", undefined);
|
|
7768
7772
|
__decorate([
|
|
7769
7773
|
strokeType()
|
|
7770
|
-
], exports.UI.prototype, "dashPattern",
|
|
7774
|
+
], exports.UI.prototype, "dashPattern", undefined);
|
|
7771
7775
|
__decorate([
|
|
7772
7776
|
strokeType()
|
|
7773
|
-
], exports.UI.prototype, "dashOffset",
|
|
7777
|
+
], exports.UI.prototype, "dashOffset", undefined);
|
|
7774
7778
|
__decorate([
|
|
7775
7779
|
strokeType(10)
|
|
7776
|
-
], exports.UI.prototype, "miterLimit",
|
|
7780
|
+
], exports.UI.prototype, "miterLimit", undefined);
|
|
7777
7781
|
__decorate([
|
|
7778
7782
|
pathType(0)
|
|
7779
|
-
], exports.UI.prototype, "cornerRadius",
|
|
7783
|
+
], exports.UI.prototype, "cornerRadius", undefined);
|
|
7780
7784
|
__decorate([
|
|
7781
7785
|
pathType()
|
|
7782
|
-
], exports.UI.prototype, "cornerSmoothing",
|
|
7786
|
+
], exports.UI.prototype, "cornerSmoothing", undefined);
|
|
7783
7787
|
__decorate([
|
|
7784
7788
|
effectType()
|
|
7785
|
-
], exports.UI.prototype, "shadow",
|
|
7789
|
+
], exports.UI.prototype, "shadow", undefined);
|
|
7786
7790
|
__decorate([
|
|
7787
7791
|
effectType()
|
|
7788
|
-
], exports.UI.prototype, "innerShadow",
|
|
7792
|
+
], exports.UI.prototype, "innerShadow", undefined);
|
|
7789
7793
|
__decorate([
|
|
7790
7794
|
effectType()
|
|
7791
|
-
], exports.UI.prototype, "blur",
|
|
7795
|
+
], exports.UI.prototype, "blur", undefined);
|
|
7792
7796
|
__decorate([
|
|
7793
7797
|
effectType()
|
|
7794
|
-
], exports.UI.prototype, "backgroundBlur",
|
|
7798
|
+
], exports.UI.prototype, "backgroundBlur", undefined);
|
|
7795
7799
|
__decorate([
|
|
7796
7800
|
effectType()
|
|
7797
|
-
], exports.UI.prototype, "grayscale",
|
|
7801
|
+
], exports.UI.prototype, "grayscale", undefined);
|
|
7798
7802
|
__decorate([
|
|
7799
7803
|
dataType({})
|
|
7800
|
-
], exports.UI.prototype, "data",
|
|
7804
|
+
], exports.UI.prototype, "data", undefined);
|
|
7801
7805
|
__decorate([
|
|
7802
7806
|
rewrite(exports.Leaf.prototype.reset)
|
|
7803
7807
|
], exports.UI.prototype, "reset", null);
|
|
@@ -7858,7 +7862,7 @@ var LeaferUI = (function (exports) {
|
|
|
7858
7862
|
};
|
|
7859
7863
|
__decorate([
|
|
7860
7864
|
dataProcessor(GroupData)
|
|
7861
|
-
], exports.Group.prototype, "__",
|
|
7865
|
+
], exports.Group.prototype, "__", undefined);
|
|
7862
7866
|
exports.Group = __decorate([
|
|
7863
7867
|
useModule(exports.Branch),
|
|
7864
7868
|
registerUI()
|
|
@@ -8029,8 +8033,6 @@ var LeaferUI = (function (exports) {
|
|
|
8029
8033
|
__setAttr(attrName, newValue) {
|
|
8030
8034
|
if (this.canvas) {
|
|
8031
8035
|
if (canvasSizeAttrs.includes(attrName)) {
|
|
8032
|
-
if (!newValue)
|
|
8033
|
-
debug$1.warn(attrName + ' is 0');
|
|
8034
8036
|
this.__changeCanvasSize(attrName, newValue);
|
|
8035
8037
|
}
|
|
8036
8038
|
else if (attrName === 'fill') {
|
|
@@ -8233,10 +8235,10 @@ var LeaferUI = (function (exports) {
|
|
|
8233
8235
|
exports.Leafer.list = new LeafList();
|
|
8234
8236
|
__decorate([
|
|
8235
8237
|
dataProcessor(LeaferData)
|
|
8236
|
-
], exports.Leafer.prototype, "__",
|
|
8238
|
+
], exports.Leafer.prototype, "__", undefined);
|
|
8237
8239
|
__decorate([
|
|
8238
8240
|
boundsType()
|
|
8239
|
-
], exports.Leafer.prototype, "pixelRatio",
|
|
8241
|
+
], exports.Leafer.prototype, "pixelRatio", undefined);
|
|
8240
8242
|
exports.Leafer = Leafer_1 = __decorate([
|
|
8241
8243
|
registerUI()
|
|
8242
8244
|
], exports.Leafer);
|
|
@@ -8249,7 +8251,7 @@ var LeaferUI = (function (exports) {
|
|
|
8249
8251
|
};
|
|
8250
8252
|
__decorate([
|
|
8251
8253
|
dataProcessor(RectData)
|
|
8252
|
-
], exports.Rect.prototype, "__",
|
|
8254
|
+
], exports.Rect.prototype, "__", undefined);
|
|
8253
8255
|
exports.Rect = __decorate([
|
|
8254
8256
|
useModule(RectRender),
|
|
8255
8257
|
rewriteAble(),
|
|
@@ -8274,6 +8276,8 @@ var LeaferUI = (function (exports) {
|
|
|
8274
8276
|
const data = this.__;
|
|
8275
8277
|
if (this.children.length) {
|
|
8276
8278
|
if (data.__autoSide) {
|
|
8279
|
+
if (data.__hasSurface)
|
|
8280
|
+
this.__extraUpdate();
|
|
8277
8281
|
super.__updateBoxBounds();
|
|
8278
8282
|
const { boxBounds } = this.__layout;
|
|
8279
8283
|
if (!data.__autoSize) {
|
|
@@ -8338,13 +8342,13 @@ var LeaferUI = (function (exports) {
|
|
|
8338
8342
|
};
|
|
8339
8343
|
__decorate([
|
|
8340
8344
|
dataProcessor(BoxData)
|
|
8341
|
-
], exports.Box.prototype, "__",
|
|
8345
|
+
], exports.Box.prototype, "__", undefined);
|
|
8342
8346
|
__decorate([
|
|
8343
8347
|
dataType(false)
|
|
8344
|
-
], exports.Box.prototype, "resizeChildren",
|
|
8348
|
+
], exports.Box.prototype, "resizeChildren", undefined);
|
|
8345
8349
|
__decorate([
|
|
8346
8350
|
affectRenderBoundsType('show')
|
|
8347
|
-
], exports.Box.prototype, "overflow",
|
|
8351
|
+
], exports.Box.prototype, "overflow", undefined);
|
|
8348
8352
|
__decorate([
|
|
8349
8353
|
rewrite(rect$1.__updateStrokeSpread)
|
|
8350
8354
|
], exports.Box.prototype, "__updateStrokeSpread", null);
|
|
@@ -8383,13 +8387,13 @@ var LeaferUI = (function (exports) {
|
|
|
8383
8387
|
};
|
|
8384
8388
|
__decorate([
|
|
8385
8389
|
dataProcessor(FrameData)
|
|
8386
|
-
], exports.Frame.prototype, "__",
|
|
8390
|
+
], exports.Frame.prototype, "__", undefined);
|
|
8387
8391
|
__decorate([
|
|
8388
8392
|
surfaceType('#FFFFFF')
|
|
8389
|
-
], exports.Frame.prototype, "fill",
|
|
8393
|
+
], exports.Frame.prototype, "fill", undefined);
|
|
8390
8394
|
__decorate([
|
|
8391
8395
|
affectRenderBoundsType('hide')
|
|
8392
|
-
], exports.Frame.prototype, "overflow",
|
|
8396
|
+
], exports.Frame.prototype, "overflow", undefined);
|
|
8393
8397
|
exports.Frame = __decorate([
|
|
8394
8398
|
registerUI()
|
|
8395
8399
|
], exports.Frame);
|
|
@@ -8436,16 +8440,16 @@ var LeaferUI = (function (exports) {
|
|
|
8436
8440
|
};
|
|
8437
8441
|
__decorate([
|
|
8438
8442
|
dataProcessor(EllipseData)
|
|
8439
|
-
], exports.Ellipse.prototype, "__",
|
|
8443
|
+
], exports.Ellipse.prototype, "__", undefined);
|
|
8440
8444
|
__decorate([
|
|
8441
8445
|
pathType(0)
|
|
8442
|
-
], exports.Ellipse.prototype, "innerRadius",
|
|
8446
|
+
], exports.Ellipse.prototype, "innerRadius", undefined);
|
|
8443
8447
|
__decorate([
|
|
8444
8448
|
pathType(0)
|
|
8445
|
-
], exports.Ellipse.prototype, "startAngle",
|
|
8449
|
+
], exports.Ellipse.prototype, "startAngle", undefined);
|
|
8446
8450
|
__decorate([
|
|
8447
8451
|
pathType(0)
|
|
8448
|
-
], exports.Ellipse.prototype, "endAngle",
|
|
8452
|
+
], exports.Ellipse.prototype, "endAngle", undefined);
|
|
8449
8453
|
exports.Ellipse = __decorate([
|
|
8450
8454
|
registerUI()
|
|
8451
8455
|
], exports.Ellipse);
|
|
@@ -8504,22 +8508,22 @@ var LeaferUI = (function (exports) {
|
|
|
8504
8508
|
};
|
|
8505
8509
|
__decorate([
|
|
8506
8510
|
dataProcessor(LineData)
|
|
8507
|
-
], exports.Line.prototype, "__",
|
|
8511
|
+
], exports.Line.prototype, "__", undefined);
|
|
8508
8512
|
__decorate([
|
|
8509
8513
|
affectStrokeBoundsType('center')
|
|
8510
|
-
], exports.Line.prototype, "strokeAlign",
|
|
8514
|
+
], exports.Line.prototype, "strokeAlign", undefined);
|
|
8511
8515
|
__decorate([
|
|
8512
8516
|
boundsType(0)
|
|
8513
|
-
], exports.Line.prototype, "height",
|
|
8517
|
+
], exports.Line.prototype, "height", undefined);
|
|
8514
8518
|
__decorate([
|
|
8515
8519
|
pathType()
|
|
8516
|
-
], exports.Line.prototype, "points",
|
|
8520
|
+
], exports.Line.prototype, "points", undefined);
|
|
8517
8521
|
__decorate([
|
|
8518
8522
|
pathType(0)
|
|
8519
|
-
], exports.Line.prototype, "curve",
|
|
8523
|
+
], exports.Line.prototype, "curve", undefined);
|
|
8520
8524
|
__decorate([
|
|
8521
8525
|
pathType(false)
|
|
8522
|
-
], exports.Line.prototype, "closed",
|
|
8526
|
+
], exports.Line.prototype, "closed", undefined);
|
|
8523
8527
|
exports.Line = __decorate([
|
|
8524
8528
|
registerUI()
|
|
8525
8529
|
], exports.Line);
|
|
@@ -8552,16 +8556,16 @@ var LeaferUI = (function (exports) {
|
|
|
8552
8556
|
};
|
|
8553
8557
|
__decorate([
|
|
8554
8558
|
dataProcessor(PolygonData)
|
|
8555
|
-
], exports.Polygon.prototype, "__",
|
|
8559
|
+
], exports.Polygon.prototype, "__", undefined);
|
|
8556
8560
|
__decorate([
|
|
8557
8561
|
pathType(3)
|
|
8558
|
-
], exports.Polygon.prototype, "sides",
|
|
8562
|
+
], exports.Polygon.prototype, "sides", undefined);
|
|
8559
8563
|
__decorate([
|
|
8560
8564
|
pathType()
|
|
8561
|
-
], exports.Polygon.prototype, "points",
|
|
8565
|
+
], exports.Polygon.prototype, "points", undefined);
|
|
8562
8566
|
__decorate([
|
|
8563
8567
|
pathType(0)
|
|
8564
|
-
], exports.Polygon.prototype, "curve",
|
|
8568
|
+
], exports.Polygon.prototype, "curve", undefined);
|
|
8565
8569
|
__decorate([
|
|
8566
8570
|
rewrite(line.__updateRenderPath)
|
|
8567
8571
|
], exports.Polygon.prototype, "__updateRenderPath", null);
|
|
@@ -8593,13 +8597,13 @@ var LeaferUI = (function (exports) {
|
|
|
8593
8597
|
};
|
|
8594
8598
|
__decorate([
|
|
8595
8599
|
dataProcessor(StarData)
|
|
8596
|
-
], exports.Star.prototype, "__",
|
|
8600
|
+
], exports.Star.prototype, "__", undefined);
|
|
8597
8601
|
__decorate([
|
|
8598
8602
|
pathType(5)
|
|
8599
|
-
], exports.Star.prototype, "corners",
|
|
8603
|
+
], exports.Star.prototype, "corners", undefined);
|
|
8600
8604
|
__decorate([
|
|
8601
8605
|
pathType(0.382)
|
|
8602
|
-
], exports.Star.prototype, "innerRadius",
|
|
8606
|
+
], exports.Star.prototype, "innerRadius", undefined);
|
|
8603
8607
|
exports.Star = __decorate([
|
|
8604
8608
|
registerUI()
|
|
8605
8609
|
], exports.Star);
|
|
@@ -8621,10 +8625,10 @@ var LeaferUI = (function (exports) {
|
|
|
8621
8625
|
};
|
|
8622
8626
|
__decorate([
|
|
8623
8627
|
dataProcessor(ImageData)
|
|
8624
|
-
], exports.Image.prototype, "__",
|
|
8628
|
+
], exports.Image.prototype, "__", undefined);
|
|
8625
8629
|
__decorate([
|
|
8626
8630
|
boundsType('')
|
|
8627
|
-
], exports.Image.prototype, "url",
|
|
8631
|
+
], exports.Image.prototype, "url", undefined);
|
|
8628
8632
|
exports.Image = __decorate([
|
|
8629
8633
|
registerUI()
|
|
8630
8634
|
], exports.Image);
|
|
@@ -8687,25 +8691,25 @@ var LeaferUI = (function (exports) {
|
|
|
8687
8691
|
};
|
|
8688
8692
|
__decorate([
|
|
8689
8693
|
dataProcessor(CanvasData)
|
|
8690
|
-
], exports.Canvas.prototype, "__",
|
|
8694
|
+
], exports.Canvas.prototype, "__", undefined);
|
|
8691
8695
|
__decorate([
|
|
8692
8696
|
resizeType(100)
|
|
8693
|
-
], exports.Canvas.prototype, "width",
|
|
8697
|
+
], exports.Canvas.prototype, "width", undefined);
|
|
8694
8698
|
__decorate([
|
|
8695
8699
|
resizeType(100)
|
|
8696
|
-
], exports.Canvas.prototype, "height",
|
|
8700
|
+
], exports.Canvas.prototype, "height", undefined);
|
|
8697
8701
|
__decorate([
|
|
8698
8702
|
resizeType(1)
|
|
8699
|
-
], exports.Canvas.prototype, "pixelRatio",
|
|
8703
|
+
], exports.Canvas.prototype, "pixelRatio", undefined);
|
|
8700
8704
|
__decorate([
|
|
8701
8705
|
resizeType(true)
|
|
8702
|
-
], exports.Canvas.prototype, "smooth",
|
|
8706
|
+
], exports.Canvas.prototype, "smooth", undefined);
|
|
8703
8707
|
__decorate([
|
|
8704
8708
|
dataType(false)
|
|
8705
|
-
], exports.Canvas.prototype, "safeResize",
|
|
8709
|
+
], exports.Canvas.prototype, "safeResize", undefined);
|
|
8706
8710
|
__decorate([
|
|
8707
8711
|
resizeType()
|
|
8708
|
-
], exports.Canvas.prototype, "contextSettings",
|
|
8712
|
+
], exports.Canvas.prototype, "contextSettings", undefined);
|
|
8709
8713
|
exports.Canvas = __decorate([
|
|
8710
8714
|
registerUI()
|
|
8711
8715
|
], exports.Canvas);
|
|
@@ -8796,76 +8800,76 @@ var LeaferUI = (function (exports) {
|
|
|
8796
8800
|
};
|
|
8797
8801
|
__decorate([
|
|
8798
8802
|
dataProcessor(TextData)
|
|
8799
|
-
], exports.Text.prototype, "__",
|
|
8803
|
+
], exports.Text.prototype, "__", undefined);
|
|
8800
8804
|
__decorate([
|
|
8801
8805
|
boundsType(0)
|
|
8802
|
-
], exports.Text.prototype, "width",
|
|
8806
|
+
], exports.Text.prototype, "width", undefined);
|
|
8803
8807
|
__decorate([
|
|
8804
8808
|
boundsType(0)
|
|
8805
|
-
], exports.Text.prototype, "height",
|
|
8809
|
+
], exports.Text.prototype, "height", undefined);
|
|
8806
8810
|
__decorate([
|
|
8807
8811
|
dataType(false)
|
|
8808
|
-
], exports.Text.prototype, "resizeFontSize",
|
|
8812
|
+
], exports.Text.prototype, "resizeFontSize", undefined);
|
|
8809
8813
|
__decorate([
|
|
8810
8814
|
surfaceType('#000000')
|
|
8811
|
-
], exports.Text.prototype, "fill",
|
|
8815
|
+
], exports.Text.prototype, "fill", undefined);
|
|
8812
8816
|
__decorate([
|
|
8813
8817
|
affectStrokeBoundsType('outside')
|
|
8814
|
-
], exports.Text.prototype, "strokeAlign",
|
|
8818
|
+
], exports.Text.prototype, "strokeAlign", undefined);
|
|
8815
8819
|
__decorate([
|
|
8816
8820
|
hitType('all')
|
|
8817
|
-
], exports.Text.prototype, "hitFill",
|
|
8821
|
+
], exports.Text.prototype, "hitFill", undefined);
|
|
8818
8822
|
__decorate([
|
|
8819
8823
|
boundsType('')
|
|
8820
|
-
], exports.Text.prototype, "text",
|
|
8824
|
+
], exports.Text.prototype, "text", undefined);
|
|
8821
8825
|
__decorate([
|
|
8822
|
-
boundsType('
|
|
8823
|
-
], exports.Text.prototype, "fontFamily",
|
|
8826
|
+
boundsType('caption')
|
|
8827
|
+
], exports.Text.prototype, "fontFamily", undefined);
|
|
8824
8828
|
__decorate([
|
|
8825
8829
|
boundsType(12)
|
|
8826
|
-
], exports.Text.prototype, "fontSize",
|
|
8830
|
+
], exports.Text.prototype, "fontSize", undefined);
|
|
8827
8831
|
__decorate([
|
|
8828
8832
|
boundsType('normal')
|
|
8829
|
-
], exports.Text.prototype, "fontWeight",
|
|
8833
|
+
], exports.Text.prototype, "fontWeight", undefined);
|
|
8830
8834
|
__decorate([
|
|
8831
8835
|
boundsType(false)
|
|
8832
|
-
], exports.Text.prototype, "italic",
|
|
8836
|
+
], exports.Text.prototype, "italic", undefined);
|
|
8833
8837
|
__decorate([
|
|
8834
8838
|
boundsType('none')
|
|
8835
|
-
], exports.Text.prototype, "textCase",
|
|
8839
|
+
], exports.Text.prototype, "textCase", undefined);
|
|
8836
8840
|
__decorate([
|
|
8837
8841
|
boundsType('none')
|
|
8838
|
-
], exports.Text.prototype, "textDecoration",
|
|
8842
|
+
], exports.Text.prototype, "textDecoration", undefined);
|
|
8839
8843
|
__decorate([
|
|
8840
8844
|
boundsType(0)
|
|
8841
|
-
], exports.Text.prototype, "letterSpacing",
|
|
8845
|
+
], exports.Text.prototype, "letterSpacing", undefined);
|
|
8842
8846
|
__decorate([
|
|
8843
8847
|
boundsType({ type: 'percent', value: 1.5 })
|
|
8844
|
-
], exports.Text.prototype, "lineHeight",
|
|
8848
|
+
], exports.Text.prototype, "lineHeight", undefined);
|
|
8845
8849
|
__decorate([
|
|
8846
8850
|
boundsType(0)
|
|
8847
|
-
], exports.Text.prototype, "paraIndent",
|
|
8851
|
+
], exports.Text.prototype, "paraIndent", undefined);
|
|
8848
8852
|
__decorate([
|
|
8849
8853
|
boundsType(0)
|
|
8850
|
-
], exports.Text.prototype, "paraSpacing",
|
|
8854
|
+
], exports.Text.prototype, "paraSpacing", undefined);
|
|
8851
8855
|
__decorate([
|
|
8852
8856
|
boundsType('x')
|
|
8853
|
-
], exports.Text.prototype, "writingMode",
|
|
8857
|
+
], exports.Text.prototype, "writingMode", undefined);
|
|
8854
8858
|
__decorate([
|
|
8855
8859
|
boundsType('left')
|
|
8856
|
-
], exports.Text.prototype, "textAlign",
|
|
8860
|
+
], exports.Text.prototype, "textAlign", undefined);
|
|
8857
8861
|
__decorate([
|
|
8858
8862
|
boundsType('top')
|
|
8859
|
-
], exports.Text.prototype, "verticalAlign",
|
|
8863
|
+
], exports.Text.prototype, "verticalAlign", undefined);
|
|
8860
8864
|
__decorate([
|
|
8861
8865
|
boundsType(true)
|
|
8862
|
-
], exports.Text.prototype, "autoSizeAlign",
|
|
8866
|
+
], exports.Text.prototype, "autoSizeAlign", undefined);
|
|
8863
8867
|
__decorate([
|
|
8864
8868
|
boundsType('normal')
|
|
8865
|
-
], exports.Text.prototype, "textWrap",
|
|
8869
|
+
], exports.Text.prototype, "textWrap", undefined);
|
|
8866
8870
|
__decorate([
|
|
8867
8871
|
boundsType('show')
|
|
8868
|
-
], exports.Text.prototype, "textOverflow",
|
|
8872
|
+
], exports.Text.prototype, "textOverflow", undefined);
|
|
8869
8873
|
exports.Text = __decorate([
|
|
8870
8874
|
registerUI()
|
|
8871
8875
|
], exports.Text);
|
|
@@ -8878,10 +8882,10 @@ var LeaferUI = (function (exports) {
|
|
|
8878
8882
|
};
|
|
8879
8883
|
__decorate([
|
|
8880
8884
|
dataProcessor(PathData)
|
|
8881
|
-
], exports.Path.prototype, "__",
|
|
8885
|
+
], exports.Path.prototype, "__", undefined);
|
|
8882
8886
|
__decorate([
|
|
8883
8887
|
affectStrokeBoundsType('center')
|
|
8884
|
-
], exports.Path.prototype, "strokeAlign",
|
|
8888
|
+
], exports.Path.prototype, "strokeAlign", undefined);
|
|
8885
8889
|
exports.Path = __decorate([
|
|
8886
8890
|
registerUI()
|
|
8887
8891
|
], exports.Path);
|
|
@@ -8920,10 +8924,10 @@ var LeaferUI = (function (exports) {
|
|
|
8920
8924
|
};
|
|
8921
8925
|
__decorate([
|
|
8922
8926
|
dataProcessor(PenData)
|
|
8923
|
-
], exports.Pen.prototype, "__",
|
|
8927
|
+
], exports.Pen.prototype, "__", undefined);
|
|
8924
8928
|
__decorate([
|
|
8925
8929
|
penPathType()
|
|
8926
|
-
], exports.Pen.prototype, "path",
|
|
8930
|
+
], exports.Pen.prototype, "path", undefined);
|
|
8927
8931
|
exports.Pen = __decorate([
|
|
8928
8932
|
useModule(PathCreator, ['set', 'path', 'paint']),
|
|
8929
8933
|
registerUI()
|
|
@@ -10108,9 +10112,9 @@ var LeaferUI = (function (exports) {
|
|
|
10108
10112
|
}
|
|
10109
10113
|
return this.__hit(inner);
|
|
10110
10114
|
};
|
|
10111
|
-
leaf.__hitFill = function (inner) { var _a; return (_a = this.__hitCanvas) === null || _a ===
|
|
10112
|
-
leaf.__hitStroke = function (inner, strokeWidth) { var _a; return (_a = this.__hitCanvas) === null || _a ===
|
|
10113
|
-
leaf.__hitPixel = function (inner) { var _a; return (_a = this.__hitCanvas) === null || _a ===
|
|
10115
|
+
leaf.__hitFill = function (inner) { var _a; return (_a = this.__hitCanvas) === null || _a === undefined ? undefined : _a.hitFill(inner, this.__.windingRule); };
|
|
10116
|
+
leaf.__hitStroke = function (inner, strokeWidth) { var _a; return (_a = this.__hitCanvas) === null || _a === undefined ? undefined : _a.hitStroke(inner, strokeWidth); };
|
|
10117
|
+
leaf.__hitPixel = function (inner) { var _a; return (_a = this.__hitCanvas) === null || _a === undefined ? undefined : _a.hitPixel(inner, this.__layout.renderBounds, this.__hitCanvas.hitScale); };
|
|
10114
10118
|
leaf.__drawHitPath = function (canvas) { if (canvas)
|
|
10115
10119
|
this.__drawRenderPath(canvas); };
|
|
10116
10120
|
|
|
@@ -11149,7 +11153,7 @@ var LeaferUI = (function (exports) {
|
|
|
11149
11153
|
}
|
|
11150
11154
|
else {
|
|
11151
11155
|
if (!paint.patternTask) {
|
|
11152
|
-
paint.patternTask = ImageManager.patternTasker.add(() => __awaiter(this,
|
|
11156
|
+
paint.patternTask = ImageManager.patternTasker.add(() => __awaiter(this, undefined, undefined, function* () {
|
|
11153
11157
|
paint.patternTask = null;
|
|
11154
11158
|
if (canvas.bounds.hit(ui.__nowWorld))
|
|
11155
11159
|
createPattern(ui, paint, pixelRatio);
|
|
@@ -11305,7 +11309,7 @@ var LeaferUI = (function (exports) {
|
|
|
11305
11309
|
const end = shadow.length - 1;
|
|
11306
11310
|
toOffsetOutBounds$1(bounds, offsetOutBounds$1);
|
|
11307
11311
|
shadow.forEach((item, index) => {
|
|
11308
|
-
other.setWorldShadow((offsetOutBounds$1.offsetX + item.x * scaleX), (offsetOutBounds$1.offsetY + item.y * scaleY), item.blur * scaleX, item.color);
|
|
11312
|
+
other.setWorldShadow((offsetOutBounds$1.offsetX + item.x * scaleX), (offsetOutBounds$1.offsetY + item.y * scaleY), item.blur * scaleX, ColorConvert.string(item.color));
|
|
11309
11313
|
spreadScale = item.spread ? 1 + item.spread * 2 / (__layout.boxBounds.width + (__layout.strokeBoxSpread || 0) * 2) : 0;
|
|
11310
11314
|
drawWorldShadow(other, offsetOutBounds$1, spreadScale, shape);
|
|
11311
11315
|
copyBounds = bounds;
|
|
@@ -11381,7 +11385,7 @@ var LeaferUI = (function (exports) {
|
|
|
11381
11385
|
other.copyWorld(shape.canvas, shapeBounds, bounds, 'source-out');
|
|
11382
11386
|
copyBounds = bounds;
|
|
11383
11387
|
}
|
|
11384
|
-
other.fillWorld(copyBounds, item.color, 'source-in');
|
|
11388
|
+
other.fillWorld(copyBounds, ColorConvert.string(item.color), 'source-in');
|
|
11385
11389
|
if (ui.__worldFlipped) {
|
|
11386
11390
|
current.copyWorldByReset(other, copyBounds, nowWorld, item.blendMode);
|
|
11387
11391
|
}
|