@leafer-ui/worker 1.3.2 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/worker.cjs +11 -10
- package/dist/worker.cjs.map +1 -0
- package/dist/worker.esm.js +11 -10
- package/dist/worker.esm.js.map +1 -0
- package/dist/worker.esm.min.js +2 -1
- package/dist/worker.esm.min.js.map +1 -0
- package/dist/worker.js +248 -242
- package/dist/worker.js.map +1 -0
- package/dist/worker.min.cjs +2 -1
- package/dist/worker.min.cjs.map +1 -0
- package/dist/worker.min.js +2 -1
- package/dist/worker.min.js.map +1 -0
- package/dist/worker.module.js +248 -242
- package/dist/worker.module.js.map +1 -0
- package/dist/worker.module.min.js +2 -1
- package/dist/worker.module.min.js.map +1 -0
- package/package.json +15 -15
package/dist/worker.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;
|
|
@@ -3824,10 +3824,10 @@ var LeaferUI = (function (exports) {
|
|
|
3824
3824
|
return decorateLeafAttr(defaultValue, (key) => attr({
|
|
3825
3825
|
set(value) {
|
|
3826
3826
|
if (this.__setAttr(key, value)) {
|
|
3827
|
-
this.__layout.matrixChanged || this.__layout.matrixChange();
|
|
3828
3827
|
this.__hasAutoLayout = !!(this.origin || this.around || this.flow);
|
|
3829
3828
|
if (!this.__local)
|
|
3830
3829
|
this.__layout.createLocal();
|
|
3830
|
+
doBoundsType(this);
|
|
3831
3831
|
}
|
|
3832
3832
|
}
|
|
3833
3833
|
}));
|
|
@@ -4210,55 +4210,62 @@ var LeaferUI = (function (exports) {
|
|
|
4210
4210
|
y += t.y;
|
|
4211
4211
|
transition ? t.animate({ x, y }, transition) : (t.x = x, t.y = y);
|
|
4212
4212
|
},
|
|
4213
|
-
zoomOfWorld(t, origin, scaleX, scaleY, resize) {
|
|
4214
|
-
L.zoomOfLocal(t, getTempLocal(t, origin), scaleX, scaleY, resize);
|
|
4213
|
+
zoomOfWorld(t, origin, scaleX, scaleY, resize, transition) {
|
|
4214
|
+
L.zoomOfLocal(t, getTempLocal(t, origin), scaleX, scaleY, resize, transition);
|
|
4215
4215
|
},
|
|
4216
|
-
zoomOfLocal(t, origin, scaleX, scaleY = scaleX, resize) {
|
|
4217
|
-
|
|
4216
|
+
zoomOfLocal(t, origin, scaleX, scaleY = scaleX, resize, transition) {
|
|
4217
|
+
const o = t.__localMatrix;
|
|
4218
|
+
if (typeof scaleY !== 'number') {
|
|
4219
|
+
if (scaleY)
|
|
4220
|
+
transition = scaleY;
|
|
4221
|
+
scaleY = scaleX;
|
|
4222
|
+
}
|
|
4223
|
+
copy$7(matrix$1, o);
|
|
4218
4224
|
scaleOfOuter$2(matrix$1, origin, scaleX, scaleY);
|
|
4219
4225
|
if (t.origin || t.around) {
|
|
4220
|
-
L.setTransform(t, matrix$1, resize);
|
|
4226
|
+
L.setTransform(t, matrix$1, resize, transition);
|
|
4221
4227
|
}
|
|
4222
4228
|
else {
|
|
4223
|
-
|
|
4224
|
-
|
|
4229
|
+
const x = t.x + matrix$1.e - o.e, y = t.y + matrix$1.f - o.f;
|
|
4230
|
+
if (transition && !resize)
|
|
4231
|
+
t.animate({ x, y, scaleX: t.scaleX * scaleX, scaleY: t.scaleY * scaleY }, transition);
|
|
4232
|
+
else
|
|
4233
|
+
t.x = x, t.y = y, t.scaleResize(scaleX, scaleY, resize !== true);
|
|
4225
4234
|
}
|
|
4226
4235
|
},
|
|
4227
|
-
rotateOfWorld(t, origin, angle) {
|
|
4228
|
-
L.rotateOfLocal(t, getTempLocal(t, origin), angle);
|
|
4236
|
+
rotateOfWorld(t, origin, angle, transition) {
|
|
4237
|
+
L.rotateOfLocal(t, getTempLocal(t, origin), angle, transition);
|
|
4229
4238
|
},
|
|
4230
|
-
rotateOfLocal(t, origin, angle) {
|
|
4231
|
-
|
|
4239
|
+
rotateOfLocal(t, origin, angle, transition) {
|
|
4240
|
+
const o = t.__localMatrix;
|
|
4241
|
+
copy$7(matrix$1, o);
|
|
4232
4242
|
rotateOfOuter$2(matrix$1, origin, angle);
|
|
4233
|
-
if (t.origin || t.around)
|
|
4234
|
-
L.setTransform(t, matrix$1);
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
moveByMatrix(t, matrix$1);
|
|
4238
|
-
t.rotation = MathHelper.formatRotation(t.rotation + angle);
|
|
4239
|
-
}
|
|
4243
|
+
if (t.origin || t.around)
|
|
4244
|
+
L.setTransform(t, matrix$1, false, transition);
|
|
4245
|
+
else
|
|
4246
|
+
t.set({ x: t.x + matrix$1.e - o.e, y: t.y + matrix$1.f - o.f, rotation: MathHelper.formatRotation(t.rotation + angle) }, transition);
|
|
4240
4247
|
},
|
|
4241
|
-
skewOfWorld(t, origin, skewX, skewY, resize) {
|
|
4242
|
-
L.skewOfLocal(t, getTempLocal(t, origin), skewX, skewY, resize);
|
|
4248
|
+
skewOfWorld(t, origin, skewX, skewY, resize, transition) {
|
|
4249
|
+
L.skewOfLocal(t, getTempLocal(t, origin), skewX, skewY, resize, transition);
|
|
4243
4250
|
},
|
|
4244
|
-
skewOfLocal(t, origin, skewX, skewY = 0, resize) {
|
|
4251
|
+
skewOfLocal(t, origin, skewX, skewY = 0, resize, transition) {
|
|
4245
4252
|
copy$7(matrix$1, t.__localMatrix);
|
|
4246
4253
|
skewOfOuter(matrix$1, origin, skewX, skewY);
|
|
4247
|
-
L.setTransform(t, matrix$1, resize);
|
|
4254
|
+
L.setTransform(t, matrix$1, resize, transition);
|
|
4248
4255
|
},
|
|
4249
|
-
transformWorld(t, transform, resize) {
|
|
4256
|
+
transformWorld(t, transform, resize, transition) {
|
|
4250
4257
|
copy$7(matrix$1, t.worldTransform);
|
|
4251
4258
|
multiplyParent$2(matrix$1, transform);
|
|
4252
4259
|
if (t.parent)
|
|
4253
4260
|
divideParent(matrix$1, t.parent.worldTransform);
|
|
4254
|
-
L.setTransform(t, matrix$1, resize);
|
|
4261
|
+
L.setTransform(t, matrix$1, resize, transition);
|
|
4255
4262
|
},
|
|
4256
|
-
transform(t, transform, resize) {
|
|
4263
|
+
transform(t, transform, resize, transition) {
|
|
4257
4264
|
copy$7(matrix$1, t.localTransform);
|
|
4258
4265
|
multiplyParent$2(matrix$1, transform);
|
|
4259
|
-
L.setTransform(t, matrix$1, resize);
|
|
4266
|
+
L.setTransform(t, matrix$1, resize, transition);
|
|
4260
4267
|
},
|
|
4261
|
-
setTransform(t, transform, resize) {
|
|
4268
|
+
setTransform(t, transform, resize, transition) {
|
|
4262
4269
|
const data = t.__, originPoint = data.origin && L.getInnerOrigin(t, data.origin);
|
|
4263
4270
|
const layout = getLayout(transform, originPoint, data.around && L.getInnerOrigin(t, data.around));
|
|
4264
4271
|
if (resize) {
|
|
@@ -4273,7 +4280,7 @@ var LeaferUI = (function (exports) {
|
|
|
4273
4280
|
t.scaleResize(scaleX, scaleY, false);
|
|
4274
4281
|
}
|
|
4275
4282
|
else
|
|
4276
|
-
t.set(layout);
|
|
4283
|
+
t.set(layout, transition);
|
|
4277
4284
|
},
|
|
4278
4285
|
getFlipTransform(t, axis) {
|
|
4279
4286
|
const m = getMatrixData();
|
|
@@ -4310,11 +4317,6 @@ var LeaferUI = (function (exports) {
|
|
|
4310
4317
|
};
|
|
4311
4318
|
const L = LeafHelper;
|
|
4312
4319
|
const { updateAllMatrix: updateAllMatrix$3, updateMatrix: updateMatrix$2, updateAllWorldOpacity: updateAllWorldOpacity$1, updateAllChange: updateAllChange$1 } = L;
|
|
4313
|
-
function moveByMatrix(t, matrix) {
|
|
4314
|
-
const { e, f } = t.__localMatrix;
|
|
4315
|
-
t.x += matrix.e - e;
|
|
4316
|
-
t.y += matrix.f - f;
|
|
4317
|
-
}
|
|
4318
4320
|
function getTempLocal(t, world) {
|
|
4319
4321
|
t.__layout.update();
|
|
4320
4322
|
return t.parent ? PointHelper.tempToInnerOf(world, t.parent.__world) : world;
|
|
@@ -5178,8 +5180,7 @@ var LeaferUI = (function (exports) {
|
|
|
5178
5180
|
__updateAutoLayout() {
|
|
5179
5181
|
this.__layout.matrixChanged = true;
|
|
5180
5182
|
if (this.isBranch) {
|
|
5181
|
-
|
|
5182
|
-
this.leafer.layouter.addExtra(this);
|
|
5183
|
+
this.__extraUpdate();
|
|
5183
5184
|
if (this.__.flow) {
|
|
5184
5185
|
if (this.__layout.boxChanged)
|
|
5185
5186
|
this.__updateFlowLayout();
|
|
@@ -5332,7 +5333,7 @@ var LeaferUI = (function (exports) {
|
|
|
5332
5333
|
get __worldFlipped() { return this.__world.scaleX < 0 || this.__world.scaleY < 0; }
|
|
5333
5334
|
get __onlyHitMask() { return this.__hasMask && !this.__.hitChildren; }
|
|
5334
5335
|
get __ignoreHitWorld() { return (this.__hasMask || this.__hasEraser) && this.__.hitChildren; }
|
|
5335
|
-
get __inLazyBounds() {
|
|
5336
|
+
get __inLazyBounds() { return this.leaferIsCreated && this.leafer.lazyBounds.hit(this.__world); }
|
|
5336
5337
|
get pathInputed() { return this.__.__pathInputed; }
|
|
5337
5338
|
set event(map) { this.on(map); }
|
|
5338
5339
|
constructor(data) {
|
|
@@ -5443,6 +5444,10 @@ var LeaferUI = (function (exports) {
|
|
|
5443
5444
|
forceRender(_bounds, _sync) {
|
|
5444
5445
|
this.forceUpdate('surface');
|
|
5445
5446
|
}
|
|
5447
|
+
__extraUpdate() {
|
|
5448
|
+
if (this.leaferIsReady)
|
|
5449
|
+
this.leafer.layouter.addExtra(this);
|
|
5450
|
+
}
|
|
5446
5451
|
__updateWorldMatrix() { }
|
|
5447
5452
|
__updateLocalMatrix() { }
|
|
5448
5453
|
__updateWorldBounds() { }
|
|
@@ -5585,11 +5590,11 @@ var LeaferUI = (function (exports) {
|
|
|
5585
5590
|
const layer = this.leafer ? this.leafer.zoomLayer : this;
|
|
5586
5591
|
return layer.getWorldPoint(page, relative, distance, change);
|
|
5587
5592
|
}
|
|
5588
|
-
setTransform(matrix, resize) {
|
|
5589
|
-
setTransform(this, matrix, resize);
|
|
5593
|
+
setTransform(matrix, resize, transition) {
|
|
5594
|
+
setTransform(this, matrix, resize, transition);
|
|
5590
5595
|
}
|
|
5591
|
-
transform(matrix, resize) {
|
|
5592
|
-
transform(this, matrix, resize);
|
|
5596
|
+
transform(matrix, resize, transition) {
|
|
5597
|
+
transform(this, matrix, resize, transition);
|
|
5593
5598
|
}
|
|
5594
5599
|
move(x, y, transition) {
|
|
5595
5600
|
moveLocal(this, x, y, transition);
|
|
@@ -5597,32 +5602,32 @@ var LeaferUI = (function (exports) {
|
|
|
5597
5602
|
moveInner(x, y, transition) {
|
|
5598
5603
|
moveWorld(this, x, y, true, transition);
|
|
5599
5604
|
}
|
|
5600
|
-
scaleOf(origin, scaleX, scaleY, resize) {
|
|
5601
|
-
zoomOfLocal(this, getLocalOrigin(this, origin), scaleX, scaleY, resize);
|
|
5605
|
+
scaleOf(origin, scaleX, scaleY, resize, transition) {
|
|
5606
|
+
zoomOfLocal(this, getLocalOrigin(this, origin), scaleX, scaleY, resize, transition);
|
|
5602
5607
|
}
|
|
5603
|
-
rotateOf(origin, rotation) {
|
|
5604
|
-
rotateOfLocal(this, getLocalOrigin(this, origin), rotation);
|
|
5608
|
+
rotateOf(origin, rotation, transition) {
|
|
5609
|
+
rotateOfLocal(this, getLocalOrigin(this, origin), rotation, transition);
|
|
5605
5610
|
}
|
|
5606
|
-
skewOf(origin, skewX, skewY, resize) {
|
|
5607
|
-
skewOfLocal(this, getLocalOrigin(this, origin), skewX, skewY, resize);
|
|
5611
|
+
skewOf(origin, skewX, skewY, resize, transition) {
|
|
5612
|
+
skewOfLocal(this, getLocalOrigin(this, origin), skewX, skewY, resize, transition);
|
|
5608
5613
|
}
|
|
5609
|
-
transformWorld(worldTransform, resize) {
|
|
5610
|
-
transformWorld(this, worldTransform, resize);
|
|
5614
|
+
transformWorld(worldTransform, resize, transition) {
|
|
5615
|
+
transformWorld(this, worldTransform, resize, transition);
|
|
5611
5616
|
}
|
|
5612
5617
|
moveWorld(x, y, transition) {
|
|
5613
5618
|
moveWorld(this, x, y, false, transition);
|
|
5614
5619
|
}
|
|
5615
|
-
scaleOfWorld(worldOrigin, scaleX, scaleY, resize) {
|
|
5616
|
-
zoomOfWorld(this, worldOrigin, scaleX, scaleY, resize);
|
|
5620
|
+
scaleOfWorld(worldOrigin, scaleX, scaleY, resize, transition) {
|
|
5621
|
+
zoomOfWorld(this, worldOrigin, scaleX, scaleY, resize, transition);
|
|
5617
5622
|
}
|
|
5618
5623
|
rotateOfWorld(worldOrigin, rotation) {
|
|
5619
5624
|
rotateOfWorld(this, worldOrigin, rotation);
|
|
5620
5625
|
}
|
|
5621
|
-
skewOfWorld(worldOrigin, skewX, skewY, resize) {
|
|
5622
|
-
skewOfWorld(this, worldOrigin, skewX, skewY, resize);
|
|
5626
|
+
skewOfWorld(worldOrigin, skewX, skewY, resize, transition) {
|
|
5627
|
+
skewOfWorld(this, worldOrigin, skewX, skewY, resize, transition);
|
|
5623
5628
|
}
|
|
5624
|
-
flip(axis) {
|
|
5625
|
-
transform(this, getFlipTransform(this, axis));
|
|
5629
|
+
flip(axis, transition) {
|
|
5630
|
+
transform(this, getFlipTransform(this, axis), false, transition);
|
|
5626
5631
|
}
|
|
5627
5632
|
scaleResize(scaleX, scaleY = scaleX, _noResize) {
|
|
5628
5633
|
this.scaleX *= scaleX;
|
|
@@ -6010,7 +6015,7 @@ var LeaferUI = (function (exports) {
|
|
|
6010
6015
|
}
|
|
6011
6016
|
}
|
|
6012
6017
|
|
|
6013
|
-
const version = "1.
|
|
6018
|
+
const version = "1.4.0";
|
|
6014
6019
|
|
|
6015
6020
|
class LeaferCanvas extends LeaferCanvasBase {
|
|
6016
6021
|
get allowBackgroundColor() { return true; }
|
|
@@ -6355,7 +6360,7 @@ var LeaferUI = (function (exports) {
|
|
|
6355
6360
|
}
|
|
6356
6361
|
partLayout() {
|
|
6357
6362
|
var _a;
|
|
6358
|
-
if (!((_a = this.__updatedList) === null || _a ===
|
|
6363
|
+
if (!((_a = this.__updatedList) === null || _a === undefined ? undefined : _a.length))
|
|
6359
6364
|
return;
|
|
6360
6365
|
const t = Run.start('PartLayout');
|
|
6361
6366
|
const { target, __updatedList: updateList } = this;
|
|
@@ -6926,6 +6931,7 @@ var LeaferUI = (function (exports) {
|
|
|
6926
6931
|
return t.fill && this.__hasStroke;
|
|
6927
6932
|
}
|
|
6928
6933
|
get __clipAfterFill() { const t = this; return (t.cornerRadius || t.innerShadow || t.__pathInputed); }
|
|
6934
|
+
get __hasSurface() { const t = this; return (t.fill || t.stroke); }
|
|
6929
6935
|
get __autoWidth() { return !this._width; }
|
|
6930
6936
|
get __autoHeight() { return !this._height; }
|
|
6931
6937
|
get __autoSide() { return !this._width || !this._height; }
|
|
@@ -7429,199 +7435,199 @@ var LeaferUI = (function (exports) {
|
|
|
7429
7435
|
};
|
|
7430
7436
|
__decorate([
|
|
7431
7437
|
dataProcessor(UIData)
|
|
7432
|
-
], exports.UI.prototype, "__",
|
|
7438
|
+
], exports.UI.prototype, "__", undefined);
|
|
7433
7439
|
__decorate([
|
|
7434
7440
|
zoomLayerType()
|
|
7435
|
-
], exports.UI.prototype, "zoomLayer",
|
|
7441
|
+
], exports.UI.prototype, "zoomLayer", undefined);
|
|
7436
7442
|
__decorate([
|
|
7437
7443
|
dataType('')
|
|
7438
|
-
], exports.UI.prototype, "id",
|
|
7444
|
+
], exports.UI.prototype, "id", undefined);
|
|
7439
7445
|
__decorate([
|
|
7440
7446
|
dataType('')
|
|
7441
|
-
], exports.UI.prototype, "name",
|
|
7447
|
+
], exports.UI.prototype, "name", undefined);
|
|
7442
7448
|
__decorate([
|
|
7443
7449
|
dataType('')
|
|
7444
|
-
], exports.UI.prototype, "className",
|
|
7450
|
+
], exports.UI.prototype, "className", undefined);
|
|
7445
7451
|
__decorate([
|
|
7446
7452
|
surfaceType('pass-through')
|
|
7447
|
-
], exports.UI.prototype, "blendMode",
|
|
7453
|
+
], exports.UI.prototype, "blendMode", undefined);
|
|
7448
7454
|
__decorate([
|
|
7449
7455
|
opacityType(1)
|
|
7450
|
-
], exports.UI.prototype, "opacity",
|
|
7456
|
+
], exports.UI.prototype, "opacity", undefined);
|
|
7451
7457
|
__decorate([
|
|
7452
7458
|
visibleType(true)
|
|
7453
|
-
], exports.UI.prototype, "visible",
|
|
7459
|
+
], exports.UI.prototype, "visible", undefined);
|
|
7454
7460
|
__decorate([
|
|
7455
7461
|
surfaceType(false)
|
|
7456
|
-
], exports.UI.prototype, "locked",
|
|
7462
|
+
], exports.UI.prototype, "locked", undefined);
|
|
7457
7463
|
__decorate([
|
|
7458
7464
|
sortType(0)
|
|
7459
|
-
], exports.UI.prototype, "zIndex",
|
|
7465
|
+
], exports.UI.prototype, "zIndex", undefined);
|
|
7460
7466
|
__decorate([
|
|
7461
7467
|
maskType(false)
|
|
7462
|
-
], exports.UI.prototype, "mask",
|
|
7468
|
+
], exports.UI.prototype, "mask", undefined);
|
|
7463
7469
|
__decorate([
|
|
7464
7470
|
eraserType(false)
|
|
7465
|
-
], exports.UI.prototype, "eraser",
|
|
7471
|
+
], exports.UI.prototype, "eraser", undefined);
|
|
7466
7472
|
__decorate([
|
|
7467
7473
|
positionType(0, true)
|
|
7468
|
-
], exports.UI.prototype, "x",
|
|
7474
|
+
], exports.UI.prototype, "x", undefined);
|
|
7469
7475
|
__decorate([
|
|
7470
7476
|
positionType(0, true)
|
|
7471
|
-
], exports.UI.prototype, "y",
|
|
7477
|
+
], exports.UI.prototype, "y", undefined);
|
|
7472
7478
|
__decorate([
|
|
7473
7479
|
boundsType(100, true)
|
|
7474
|
-
], exports.UI.prototype, "width",
|
|
7480
|
+
], exports.UI.prototype, "width", undefined);
|
|
7475
7481
|
__decorate([
|
|
7476
7482
|
boundsType(100, true)
|
|
7477
|
-
], exports.UI.prototype, "height",
|
|
7483
|
+
], exports.UI.prototype, "height", undefined);
|
|
7478
7484
|
__decorate([
|
|
7479
7485
|
scaleType(1, true)
|
|
7480
|
-
], exports.UI.prototype, "scaleX",
|
|
7486
|
+
], exports.UI.prototype, "scaleX", undefined);
|
|
7481
7487
|
__decorate([
|
|
7482
7488
|
scaleType(1, true)
|
|
7483
|
-
], exports.UI.prototype, "scaleY",
|
|
7489
|
+
], exports.UI.prototype, "scaleY", undefined);
|
|
7484
7490
|
__decorate([
|
|
7485
7491
|
rotationType(0, true)
|
|
7486
|
-
], exports.UI.prototype, "rotation",
|
|
7492
|
+
], exports.UI.prototype, "rotation", undefined);
|
|
7487
7493
|
__decorate([
|
|
7488
7494
|
rotationType(0, true)
|
|
7489
|
-
], exports.UI.prototype, "skewX",
|
|
7495
|
+
], exports.UI.prototype, "skewX", undefined);
|
|
7490
7496
|
__decorate([
|
|
7491
7497
|
rotationType(0, true)
|
|
7492
|
-
], exports.UI.prototype, "skewY",
|
|
7498
|
+
], exports.UI.prototype, "skewY", undefined);
|
|
7493
7499
|
__decorate([
|
|
7494
7500
|
positionType(0, true)
|
|
7495
|
-
], exports.UI.prototype, "offsetX",
|
|
7501
|
+
], exports.UI.prototype, "offsetX", undefined);
|
|
7496
7502
|
__decorate([
|
|
7497
7503
|
positionType(0, true)
|
|
7498
|
-
], exports.UI.prototype, "offsetY",
|
|
7504
|
+
], exports.UI.prototype, "offsetY", undefined);
|
|
7499
7505
|
__decorate([
|
|
7500
7506
|
positionType(0, true)
|
|
7501
|
-
], exports.UI.prototype, "scrollX",
|
|
7507
|
+
], exports.UI.prototype, "scrollX", undefined);
|
|
7502
7508
|
__decorate([
|
|
7503
7509
|
positionType(0, true)
|
|
7504
|
-
], exports.UI.prototype, "scrollY",
|
|
7510
|
+
], exports.UI.prototype, "scrollY", undefined);
|
|
7505
7511
|
__decorate([
|
|
7506
7512
|
autoLayoutType()
|
|
7507
|
-
], exports.UI.prototype, "origin",
|
|
7513
|
+
], exports.UI.prototype, "origin", undefined);
|
|
7508
7514
|
__decorate([
|
|
7509
7515
|
autoLayoutType()
|
|
7510
|
-
], exports.UI.prototype, "around",
|
|
7516
|
+
], exports.UI.prototype, "around", undefined);
|
|
7511
7517
|
__decorate([
|
|
7512
7518
|
dataType(false)
|
|
7513
|
-
], exports.UI.prototype, "lazy",
|
|
7519
|
+
], exports.UI.prototype, "lazy", undefined);
|
|
7514
7520
|
__decorate([
|
|
7515
7521
|
naturalBoundsType(1)
|
|
7516
|
-
], exports.UI.prototype, "pixelRatio",
|
|
7522
|
+
], exports.UI.prototype, "pixelRatio", undefined);
|
|
7517
7523
|
__decorate([
|
|
7518
7524
|
pathInputType()
|
|
7519
|
-
], exports.UI.prototype, "path",
|
|
7525
|
+
], exports.UI.prototype, "path", undefined);
|
|
7520
7526
|
__decorate([
|
|
7521
7527
|
pathType()
|
|
7522
|
-
], exports.UI.prototype, "windingRule",
|
|
7528
|
+
], exports.UI.prototype, "windingRule", undefined);
|
|
7523
7529
|
__decorate([
|
|
7524
7530
|
pathType(true)
|
|
7525
|
-
], exports.UI.prototype, "closed",
|
|
7531
|
+
], exports.UI.prototype, "closed", undefined);
|
|
7526
7532
|
__decorate([
|
|
7527
7533
|
boundsType(0)
|
|
7528
|
-
], exports.UI.prototype, "padding",
|
|
7534
|
+
], exports.UI.prototype, "padding", undefined);
|
|
7529
7535
|
__decorate([
|
|
7530
7536
|
boundsType(false)
|
|
7531
|
-
], exports.UI.prototype, "lockRatio",
|
|
7537
|
+
], exports.UI.prototype, "lockRatio", undefined);
|
|
7532
7538
|
__decorate([
|
|
7533
7539
|
boundsType()
|
|
7534
|
-
], exports.UI.prototype, "widthRange",
|
|
7540
|
+
], exports.UI.prototype, "widthRange", undefined);
|
|
7535
7541
|
__decorate([
|
|
7536
7542
|
boundsType()
|
|
7537
|
-
], exports.UI.prototype, "heightRange",
|
|
7543
|
+
], exports.UI.prototype, "heightRange", undefined);
|
|
7538
7544
|
__decorate([
|
|
7539
7545
|
dataType(false)
|
|
7540
|
-
], exports.UI.prototype, "draggable",
|
|
7546
|
+
], exports.UI.prototype, "draggable", undefined);
|
|
7541
7547
|
__decorate([
|
|
7542
7548
|
dataType()
|
|
7543
|
-
], exports.UI.prototype, "dragBounds",
|
|
7549
|
+
], exports.UI.prototype, "dragBounds", undefined);
|
|
7544
7550
|
__decorate([
|
|
7545
7551
|
dataType(false)
|
|
7546
|
-
], exports.UI.prototype, "editable",
|
|
7552
|
+
], exports.UI.prototype, "editable", undefined);
|
|
7547
7553
|
__decorate([
|
|
7548
7554
|
hitType(true)
|
|
7549
|
-
], exports.UI.prototype, "hittable",
|
|
7555
|
+
], exports.UI.prototype, "hittable", undefined);
|
|
7550
7556
|
__decorate([
|
|
7551
7557
|
hitType('path')
|
|
7552
|
-
], exports.UI.prototype, "hitFill",
|
|
7558
|
+
], exports.UI.prototype, "hitFill", undefined);
|
|
7553
7559
|
__decorate([
|
|
7554
7560
|
strokeType('path')
|
|
7555
|
-
], exports.UI.prototype, "hitStroke",
|
|
7561
|
+
], exports.UI.prototype, "hitStroke", undefined);
|
|
7556
7562
|
__decorate([
|
|
7557
7563
|
hitType(false)
|
|
7558
|
-
], exports.UI.prototype, "hitBox",
|
|
7564
|
+
], exports.UI.prototype, "hitBox", undefined);
|
|
7559
7565
|
__decorate([
|
|
7560
7566
|
hitType(true)
|
|
7561
|
-
], exports.UI.prototype, "hitChildren",
|
|
7567
|
+
], exports.UI.prototype, "hitChildren", undefined);
|
|
7562
7568
|
__decorate([
|
|
7563
7569
|
hitType(true)
|
|
7564
|
-
], exports.UI.prototype, "hitSelf",
|
|
7570
|
+
], exports.UI.prototype, "hitSelf", undefined);
|
|
7565
7571
|
__decorate([
|
|
7566
7572
|
hitType()
|
|
7567
|
-
], exports.UI.prototype, "hitRadius",
|
|
7573
|
+
], exports.UI.prototype, "hitRadius", undefined);
|
|
7568
7574
|
__decorate([
|
|
7569
7575
|
cursorType('')
|
|
7570
|
-
], exports.UI.prototype, "cursor",
|
|
7576
|
+
], exports.UI.prototype, "cursor", undefined);
|
|
7571
7577
|
__decorate([
|
|
7572
7578
|
surfaceType()
|
|
7573
|
-
], exports.UI.prototype, "fill",
|
|
7579
|
+
], exports.UI.prototype, "fill", undefined);
|
|
7574
7580
|
__decorate([
|
|
7575
7581
|
strokeType()
|
|
7576
|
-
], exports.UI.prototype, "stroke",
|
|
7582
|
+
], exports.UI.prototype, "stroke", undefined);
|
|
7577
7583
|
__decorate([
|
|
7578
7584
|
strokeType('inside')
|
|
7579
|
-
], exports.UI.prototype, "strokeAlign",
|
|
7585
|
+
], exports.UI.prototype, "strokeAlign", undefined);
|
|
7580
7586
|
__decorate([
|
|
7581
7587
|
strokeType(1)
|
|
7582
|
-
], exports.UI.prototype, "strokeWidth",
|
|
7588
|
+
], exports.UI.prototype, "strokeWidth", undefined);
|
|
7583
7589
|
__decorate([
|
|
7584
7590
|
strokeType(false)
|
|
7585
|
-
], exports.UI.prototype, "strokeWidthFixed",
|
|
7591
|
+
], exports.UI.prototype, "strokeWidthFixed", undefined);
|
|
7586
7592
|
__decorate([
|
|
7587
7593
|
strokeType('none')
|
|
7588
|
-
], exports.UI.prototype, "strokeCap",
|
|
7594
|
+
], exports.UI.prototype, "strokeCap", undefined);
|
|
7589
7595
|
__decorate([
|
|
7590
7596
|
strokeType('miter')
|
|
7591
|
-
], exports.UI.prototype, "strokeJoin",
|
|
7597
|
+
], exports.UI.prototype, "strokeJoin", undefined);
|
|
7592
7598
|
__decorate([
|
|
7593
7599
|
strokeType()
|
|
7594
|
-
], exports.UI.prototype, "dashPattern",
|
|
7600
|
+
], exports.UI.prototype, "dashPattern", undefined);
|
|
7595
7601
|
__decorate([
|
|
7596
7602
|
strokeType()
|
|
7597
|
-
], exports.UI.prototype, "dashOffset",
|
|
7603
|
+
], exports.UI.prototype, "dashOffset", undefined);
|
|
7598
7604
|
__decorate([
|
|
7599
7605
|
strokeType(10)
|
|
7600
|
-
], exports.UI.prototype, "miterLimit",
|
|
7606
|
+
], exports.UI.prototype, "miterLimit", undefined);
|
|
7601
7607
|
__decorate([
|
|
7602
7608
|
pathType(0)
|
|
7603
|
-
], exports.UI.prototype, "cornerRadius",
|
|
7609
|
+
], exports.UI.prototype, "cornerRadius", undefined);
|
|
7604
7610
|
__decorate([
|
|
7605
7611
|
pathType()
|
|
7606
|
-
], exports.UI.prototype, "cornerSmoothing",
|
|
7612
|
+
], exports.UI.prototype, "cornerSmoothing", undefined);
|
|
7607
7613
|
__decorate([
|
|
7608
7614
|
effectType()
|
|
7609
|
-
], exports.UI.prototype, "shadow",
|
|
7615
|
+
], exports.UI.prototype, "shadow", undefined);
|
|
7610
7616
|
__decorate([
|
|
7611
7617
|
effectType()
|
|
7612
|
-
], exports.UI.prototype, "innerShadow",
|
|
7618
|
+
], exports.UI.prototype, "innerShadow", undefined);
|
|
7613
7619
|
__decorate([
|
|
7614
7620
|
effectType()
|
|
7615
|
-
], exports.UI.prototype, "blur",
|
|
7621
|
+
], exports.UI.prototype, "blur", undefined);
|
|
7616
7622
|
__decorate([
|
|
7617
7623
|
effectType()
|
|
7618
|
-
], exports.UI.prototype, "backgroundBlur",
|
|
7624
|
+
], exports.UI.prototype, "backgroundBlur", undefined);
|
|
7619
7625
|
__decorate([
|
|
7620
7626
|
effectType()
|
|
7621
|
-
], exports.UI.prototype, "grayscale",
|
|
7627
|
+
], exports.UI.prototype, "grayscale", undefined);
|
|
7622
7628
|
__decorate([
|
|
7623
7629
|
dataType({})
|
|
7624
|
-
], exports.UI.prototype, "data",
|
|
7630
|
+
], exports.UI.prototype, "data", undefined);
|
|
7625
7631
|
__decorate([
|
|
7626
7632
|
rewrite(exports.Leaf.prototype.reset)
|
|
7627
7633
|
], exports.UI.prototype, "reset", null);
|
|
@@ -7682,7 +7688,7 @@ var LeaferUI = (function (exports) {
|
|
|
7682
7688
|
};
|
|
7683
7689
|
__decorate([
|
|
7684
7690
|
dataProcessor(GroupData)
|
|
7685
|
-
], exports.Group.prototype, "__",
|
|
7691
|
+
], exports.Group.prototype, "__", undefined);
|
|
7686
7692
|
exports.Group = __decorate([
|
|
7687
7693
|
useModule(exports.Branch),
|
|
7688
7694
|
registerUI()
|
|
@@ -7853,8 +7859,6 @@ var LeaferUI = (function (exports) {
|
|
|
7853
7859
|
__setAttr(attrName, newValue) {
|
|
7854
7860
|
if (this.canvas) {
|
|
7855
7861
|
if (canvasSizeAttrs.includes(attrName)) {
|
|
7856
|
-
if (!newValue)
|
|
7857
|
-
debug$1.warn(attrName + ' is 0');
|
|
7858
7862
|
this.__changeCanvasSize(attrName, newValue);
|
|
7859
7863
|
}
|
|
7860
7864
|
else if (attrName === 'fill') {
|
|
@@ -8057,10 +8061,10 @@ var LeaferUI = (function (exports) {
|
|
|
8057
8061
|
exports.Leafer.list = new LeafList();
|
|
8058
8062
|
__decorate([
|
|
8059
8063
|
dataProcessor(LeaferData)
|
|
8060
|
-
], exports.Leafer.prototype, "__",
|
|
8064
|
+
], exports.Leafer.prototype, "__", undefined);
|
|
8061
8065
|
__decorate([
|
|
8062
8066
|
boundsType()
|
|
8063
|
-
], exports.Leafer.prototype, "pixelRatio",
|
|
8067
|
+
], exports.Leafer.prototype, "pixelRatio", undefined);
|
|
8064
8068
|
exports.Leafer = Leafer_1 = __decorate([
|
|
8065
8069
|
registerUI()
|
|
8066
8070
|
], exports.Leafer);
|
|
@@ -8073,7 +8077,7 @@ var LeaferUI = (function (exports) {
|
|
|
8073
8077
|
};
|
|
8074
8078
|
__decorate([
|
|
8075
8079
|
dataProcessor(RectData)
|
|
8076
|
-
], exports.Rect.prototype, "__",
|
|
8080
|
+
], exports.Rect.prototype, "__", undefined);
|
|
8077
8081
|
exports.Rect = __decorate([
|
|
8078
8082
|
useModule(RectRender),
|
|
8079
8083
|
rewriteAble(),
|
|
@@ -8098,6 +8102,8 @@ var LeaferUI = (function (exports) {
|
|
|
8098
8102
|
const data = this.__;
|
|
8099
8103
|
if (this.children.length) {
|
|
8100
8104
|
if (data.__autoSide) {
|
|
8105
|
+
if (data.__hasSurface)
|
|
8106
|
+
this.__extraUpdate();
|
|
8101
8107
|
super.__updateBoxBounds();
|
|
8102
8108
|
const { boxBounds } = this.__layout;
|
|
8103
8109
|
if (!data.__autoSize) {
|
|
@@ -8162,13 +8168,13 @@ var LeaferUI = (function (exports) {
|
|
|
8162
8168
|
};
|
|
8163
8169
|
__decorate([
|
|
8164
8170
|
dataProcessor(BoxData)
|
|
8165
|
-
], exports.Box.prototype, "__",
|
|
8171
|
+
], exports.Box.prototype, "__", undefined);
|
|
8166
8172
|
__decorate([
|
|
8167
8173
|
dataType(false)
|
|
8168
|
-
], exports.Box.prototype, "resizeChildren",
|
|
8174
|
+
], exports.Box.prototype, "resizeChildren", undefined);
|
|
8169
8175
|
__decorate([
|
|
8170
8176
|
affectRenderBoundsType('show')
|
|
8171
|
-
], exports.Box.prototype, "overflow",
|
|
8177
|
+
], exports.Box.prototype, "overflow", undefined);
|
|
8172
8178
|
__decorate([
|
|
8173
8179
|
rewrite(rect$1.__updateStrokeSpread)
|
|
8174
8180
|
], exports.Box.prototype, "__updateStrokeSpread", null);
|
|
@@ -8207,13 +8213,13 @@ var LeaferUI = (function (exports) {
|
|
|
8207
8213
|
};
|
|
8208
8214
|
__decorate([
|
|
8209
8215
|
dataProcessor(FrameData)
|
|
8210
|
-
], exports.Frame.prototype, "__",
|
|
8216
|
+
], exports.Frame.prototype, "__", undefined);
|
|
8211
8217
|
__decorate([
|
|
8212
8218
|
surfaceType('#FFFFFF')
|
|
8213
|
-
], exports.Frame.prototype, "fill",
|
|
8219
|
+
], exports.Frame.prototype, "fill", undefined);
|
|
8214
8220
|
__decorate([
|
|
8215
8221
|
affectRenderBoundsType('hide')
|
|
8216
|
-
], exports.Frame.prototype, "overflow",
|
|
8222
|
+
], exports.Frame.prototype, "overflow", undefined);
|
|
8217
8223
|
exports.Frame = __decorate([
|
|
8218
8224
|
registerUI()
|
|
8219
8225
|
], exports.Frame);
|
|
@@ -8260,16 +8266,16 @@ var LeaferUI = (function (exports) {
|
|
|
8260
8266
|
};
|
|
8261
8267
|
__decorate([
|
|
8262
8268
|
dataProcessor(EllipseData)
|
|
8263
|
-
], exports.Ellipse.prototype, "__",
|
|
8269
|
+
], exports.Ellipse.prototype, "__", undefined);
|
|
8264
8270
|
__decorate([
|
|
8265
8271
|
pathType(0)
|
|
8266
|
-
], exports.Ellipse.prototype, "innerRadius",
|
|
8272
|
+
], exports.Ellipse.prototype, "innerRadius", undefined);
|
|
8267
8273
|
__decorate([
|
|
8268
8274
|
pathType(0)
|
|
8269
|
-
], exports.Ellipse.prototype, "startAngle",
|
|
8275
|
+
], exports.Ellipse.prototype, "startAngle", undefined);
|
|
8270
8276
|
__decorate([
|
|
8271
8277
|
pathType(0)
|
|
8272
|
-
], exports.Ellipse.prototype, "endAngle",
|
|
8278
|
+
], exports.Ellipse.prototype, "endAngle", undefined);
|
|
8273
8279
|
exports.Ellipse = __decorate([
|
|
8274
8280
|
registerUI()
|
|
8275
8281
|
], exports.Ellipse);
|
|
@@ -8328,22 +8334,22 @@ var LeaferUI = (function (exports) {
|
|
|
8328
8334
|
};
|
|
8329
8335
|
__decorate([
|
|
8330
8336
|
dataProcessor(LineData)
|
|
8331
|
-
], exports.Line.prototype, "__",
|
|
8337
|
+
], exports.Line.prototype, "__", undefined);
|
|
8332
8338
|
__decorate([
|
|
8333
8339
|
affectStrokeBoundsType('center')
|
|
8334
|
-
], exports.Line.prototype, "strokeAlign",
|
|
8340
|
+
], exports.Line.prototype, "strokeAlign", undefined);
|
|
8335
8341
|
__decorate([
|
|
8336
8342
|
boundsType(0)
|
|
8337
|
-
], exports.Line.prototype, "height",
|
|
8343
|
+
], exports.Line.prototype, "height", undefined);
|
|
8338
8344
|
__decorate([
|
|
8339
8345
|
pathType()
|
|
8340
|
-
], exports.Line.prototype, "points",
|
|
8346
|
+
], exports.Line.prototype, "points", undefined);
|
|
8341
8347
|
__decorate([
|
|
8342
8348
|
pathType(0)
|
|
8343
|
-
], exports.Line.prototype, "curve",
|
|
8349
|
+
], exports.Line.prototype, "curve", undefined);
|
|
8344
8350
|
__decorate([
|
|
8345
8351
|
pathType(false)
|
|
8346
|
-
], exports.Line.prototype, "closed",
|
|
8352
|
+
], exports.Line.prototype, "closed", undefined);
|
|
8347
8353
|
exports.Line = __decorate([
|
|
8348
8354
|
registerUI()
|
|
8349
8355
|
], exports.Line);
|
|
@@ -8376,16 +8382,16 @@ var LeaferUI = (function (exports) {
|
|
|
8376
8382
|
};
|
|
8377
8383
|
__decorate([
|
|
8378
8384
|
dataProcessor(PolygonData)
|
|
8379
|
-
], exports.Polygon.prototype, "__",
|
|
8385
|
+
], exports.Polygon.prototype, "__", undefined);
|
|
8380
8386
|
__decorate([
|
|
8381
8387
|
pathType(3)
|
|
8382
|
-
], exports.Polygon.prototype, "sides",
|
|
8388
|
+
], exports.Polygon.prototype, "sides", undefined);
|
|
8383
8389
|
__decorate([
|
|
8384
8390
|
pathType()
|
|
8385
|
-
], exports.Polygon.prototype, "points",
|
|
8391
|
+
], exports.Polygon.prototype, "points", undefined);
|
|
8386
8392
|
__decorate([
|
|
8387
8393
|
pathType(0)
|
|
8388
|
-
], exports.Polygon.prototype, "curve",
|
|
8394
|
+
], exports.Polygon.prototype, "curve", undefined);
|
|
8389
8395
|
__decorate([
|
|
8390
8396
|
rewrite(line.__updateRenderPath)
|
|
8391
8397
|
], exports.Polygon.prototype, "__updateRenderPath", null);
|
|
@@ -8417,13 +8423,13 @@ var LeaferUI = (function (exports) {
|
|
|
8417
8423
|
};
|
|
8418
8424
|
__decorate([
|
|
8419
8425
|
dataProcessor(StarData)
|
|
8420
|
-
], exports.Star.prototype, "__",
|
|
8426
|
+
], exports.Star.prototype, "__", undefined);
|
|
8421
8427
|
__decorate([
|
|
8422
8428
|
pathType(5)
|
|
8423
|
-
], exports.Star.prototype, "corners",
|
|
8429
|
+
], exports.Star.prototype, "corners", undefined);
|
|
8424
8430
|
__decorate([
|
|
8425
8431
|
pathType(0.382)
|
|
8426
|
-
], exports.Star.prototype, "innerRadius",
|
|
8432
|
+
], exports.Star.prototype, "innerRadius", undefined);
|
|
8427
8433
|
exports.Star = __decorate([
|
|
8428
8434
|
registerUI()
|
|
8429
8435
|
], exports.Star);
|
|
@@ -8445,10 +8451,10 @@ var LeaferUI = (function (exports) {
|
|
|
8445
8451
|
};
|
|
8446
8452
|
__decorate([
|
|
8447
8453
|
dataProcessor(ImageData)
|
|
8448
|
-
], exports.Image.prototype, "__",
|
|
8454
|
+
], exports.Image.prototype, "__", undefined);
|
|
8449
8455
|
__decorate([
|
|
8450
8456
|
boundsType('')
|
|
8451
|
-
], exports.Image.prototype, "url",
|
|
8457
|
+
], exports.Image.prototype, "url", undefined);
|
|
8452
8458
|
exports.Image = __decorate([
|
|
8453
8459
|
registerUI()
|
|
8454
8460
|
], exports.Image);
|
|
@@ -8511,25 +8517,25 @@ var LeaferUI = (function (exports) {
|
|
|
8511
8517
|
};
|
|
8512
8518
|
__decorate([
|
|
8513
8519
|
dataProcessor(CanvasData)
|
|
8514
|
-
], exports.Canvas.prototype, "__",
|
|
8520
|
+
], exports.Canvas.prototype, "__", undefined);
|
|
8515
8521
|
__decorate([
|
|
8516
8522
|
resizeType(100)
|
|
8517
|
-
], exports.Canvas.prototype, "width",
|
|
8523
|
+
], exports.Canvas.prototype, "width", undefined);
|
|
8518
8524
|
__decorate([
|
|
8519
8525
|
resizeType(100)
|
|
8520
|
-
], exports.Canvas.prototype, "height",
|
|
8526
|
+
], exports.Canvas.prototype, "height", undefined);
|
|
8521
8527
|
__decorate([
|
|
8522
8528
|
resizeType(1)
|
|
8523
|
-
], exports.Canvas.prototype, "pixelRatio",
|
|
8529
|
+
], exports.Canvas.prototype, "pixelRatio", undefined);
|
|
8524
8530
|
__decorate([
|
|
8525
8531
|
resizeType(true)
|
|
8526
|
-
], exports.Canvas.prototype, "smooth",
|
|
8532
|
+
], exports.Canvas.prototype, "smooth", undefined);
|
|
8527
8533
|
__decorate([
|
|
8528
8534
|
dataType(false)
|
|
8529
|
-
], exports.Canvas.prototype, "safeResize",
|
|
8535
|
+
], exports.Canvas.prototype, "safeResize", undefined);
|
|
8530
8536
|
__decorate([
|
|
8531
8537
|
resizeType()
|
|
8532
|
-
], exports.Canvas.prototype, "contextSettings",
|
|
8538
|
+
], exports.Canvas.prototype, "contextSettings", undefined);
|
|
8533
8539
|
exports.Canvas = __decorate([
|
|
8534
8540
|
registerUI()
|
|
8535
8541
|
], exports.Canvas);
|
|
@@ -8620,76 +8626,76 @@ var LeaferUI = (function (exports) {
|
|
|
8620
8626
|
};
|
|
8621
8627
|
__decorate([
|
|
8622
8628
|
dataProcessor(TextData)
|
|
8623
|
-
], exports.Text.prototype, "__",
|
|
8629
|
+
], exports.Text.prototype, "__", undefined);
|
|
8624
8630
|
__decorate([
|
|
8625
8631
|
boundsType(0)
|
|
8626
|
-
], exports.Text.prototype, "width",
|
|
8632
|
+
], exports.Text.prototype, "width", undefined);
|
|
8627
8633
|
__decorate([
|
|
8628
8634
|
boundsType(0)
|
|
8629
|
-
], exports.Text.prototype, "height",
|
|
8635
|
+
], exports.Text.prototype, "height", undefined);
|
|
8630
8636
|
__decorate([
|
|
8631
8637
|
dataType(false)
|
|
8632
|
-
], exports.Text.prototype, "resizeFontSize",
|
|
8638
|
+
], exports.Text.prototype, "resizeFontSize", undefined);
|
|
8633
8639
|
__decorate([
|
|
8634
8640
|
surfaceType('#000000')
|
|
8635
|
-
], exports.Text.prototype, "fill",
|
|
8641
|
+
], exports.Text.prototype, "fill", undefined);
|
|
8636
8642
|
__decorate([
|
|
8637
8643
|
affectStrokeBoundsType('outside')
|
|
8638
|
-
], exports.Text.prototype, "strokeAlign",
|
|
8644
|
+
], exports.Text.prototype, "strokeAlign", undefined);
|
|
8639
8645
|
__decorate([
|
|
8640
8646
|
hitType('all')
|
|
8641
|
-
], exports.Text.prototype, "hitFill",
|
|
8647
|
+
], exports.Text.prototype, "hitFill", undefined);
|
|
8642
8648
|
__decorate([
|
|
8643
8649
|
boundsType('')
|
|
8644
|
-
], exports.Text.prototype, "text",
|
|
8650
|
+
], exports.Text.prototype, "text", undefined);
|
|
8645
8651
|
__decorate([
|
|
8646
|
-
boundsType('
|
|
8647
|
-
], exports.Text.prototype, "fontFamily",
|
|
8652
|
+
boundsType('caption')
|
|
8653
|
+
], exports.Text.prototype, "fontFamily", undefined);
|
|
8648
8654
|
__decorate([
|
|
8649
8655
|
boundsType(12)
|
|
8650
|
-
], exports.Text.prototype, "fontSize",
|
|
8656
|
+
], exports.Text.prototype, "fontSize", undefined);
|
|
8651
8657
|
__decorate([
|
|
8652
8658
|
boundsType('normal')
|
|
8653
|
-
], exports.Text.prototype, "fontWeight",
|
|
8659
|
+
], exports.Text.prototype, "fontWeight", undefined);
|
|
8654
8660
|
__decorate([
|
|
8655
8661
|
boundsType(false)
|
|
8656
|
-
], exports.Text.prototype, "italic",
|
|
8662
|
+
], exports.Text.prototype, "italic", undefined);
|
|
8657
8663
|
__decorate([
|
|
8658
8664
|
boundsType('none')
|
|
8659
|
-
], exports.Text.prototype, "textCase",
|
|
8665
|
+
], exports.Text.prototype, "textCase", undefined);
|
|
8660
8666
|
__decorate([
|
|
8661
8667
|
boundsType('none')
|
|
8662
|
-
], exports.Text.prototype, "textDecoration",
|
|
8668
|
+
], exports.Text.prototype, "textDecoration", undefined);
|
|
8663
8669
|
__decorate([
|
|
8664
8670
|
boundsType(0)
|
|
8665
|
-
], exports.Text.prototype, "letterSpacing",
|
|
8671
|
+
], exports.Text.prototype, "letterSpacing", undefined);
|
|
8666
8672
|
__decorate([
|
|
8667
8673
|
boundsType({ type: 'percent', value: 1.5 })
|
|
8668
|
-
], exports.Text.prototype, "lineHeight",
|
|
8674
|
+
], exports.Text.prototype, "lineHeight", undefined);
|
|
8669
8675
|
__decorate([
|
|
8670
8676
|
boundsType(0)
|
|
8671
|
-
], exports.Text.prototype, "paraIndent",
|
|
8677
|
+
], exports.Text.prototype, "paraIndent", undefined);
|
|
8672
8678
|
__decorate([
|
|
8673
8679
|
boundsType(0)
|
|
8674
|
-
], exports.Text.prototype, "paraSpacing",
|
|
8680
|
+
], exports.Text.prototype, "paraSpacing", undefined);
|
|
8675
8681
|
__decorate([
|
|
8676
8682
|
boundsType('x')
|
|
8677
|
-
], exports.Text.prototype, "writingMode",
|
|
8683
|
+
], exports.Text.prototype, "writingMode", undefined);
|
|
8678
8684
|
__decorate([
|
|
8679
8685
|
boundsType('left')
|
|
8680
|
-
], exports.Text.prototype, "textAlign",
|
|
8686
|
+
], exports.Text.prototype, "textAlign", undefined);
|
|
8681
8687
|
__decorate([
|
|
8682
8688
|
boundsType('top')
|
|
8683
|
-
], exports.Text.prototype, "verticalAlign",
|
|
8689
|
+
], exports.Text.prototype, "verticalAlign", undefined);
|
|
8684
8690
|
__decorate([
|
|
8685
8691
|
boundsType(true)
|
|
8686
|
-
], exports.Text.prototype, "autoSizeAlign",
|
|
8692
|
+
], exports.Text.prototype, "autoSizeAlign", undefined);
|
|
8687
8693
|
__decorate([
|
|
8688
8694
|
boundsType('normal')
|
|
8689
|
-
], exports.Text.prototype, "textWrap",
|
|
8695
|
+
], exports.Text.prototype, "textWrap", undefined);
|
|
8690
8696
|
__decorate([
|
|
8691
8697
|
boundsType('show')
|
|
8692
|
-
], exports.Text.prototype, "textOverflow",
|
|
8698
|
+
], exports.Text.prototype, "textOverflow", undefined);
|
|
8693
8699
|
exports.Text = __decorate([
|
|
8694
8700
|
registerUI()
|
|
8695
8701
|
], exports.Text);
|
|
@@ -8702,10 +8708,10 @@ var LeaferUI = (function (exports) {
|
|
|
8702
8708
|
};
|
|
8703
8709
|
__decorate([
|
|
8704
8710
|
dataProcessor(PathData)
|
|
8705
|
-
], exports.Path.prototype, "__",
|
|
8711
|
+
], exports.Path.prototype, "__", undefined);
|
|
8706
8712
|
__decorate([
|
|
8707
8713
|
affectStrokeBoundsType('center')
|
|
8708
|
-
], exports.Path.prototype, "strokeAlign",
|
|
8714
|
+
], exports.Path.prototype, "strokeAlign", undefined);
|
|
8709
8715
|
exports.Path = __decorate([
|
|
8710
8716
|
registerUI()
|
|
8711
8717
|
], exports.Path);
|
|
@@ -8744,10 +8750,10 @@ var LeaferUI = (function (exports) {
|
|
|
8744
8750
|
};
|
|
8745
8751
|
__decorate([
|
|
8746
8752
|
dataProcessor(PenData)
|
|
8747
|
-
], exports.Pen.prototype, "__",
|
|
8753
|
+
], exports.Pen.prototype, "__", undefined);
|
|
8748
8754
|
__decorate([
|
|
8749
8755
|
penPathType()
|
|
8750
|
-
], exports.Pen.prototype, "path",
|
|
8756
|
+
], exports.Pen.prototype, "path", undefined);
|
|
8751
8757
|
exports.Pen = __decorate([
|
|
8752
8758
|
useModule(PathCreator, ['set', 'path', 'paint']),
|
|
8753
8759
|
registerUI()
|
|
@@ -9514,10 +9520,9 @@ var LeaferUI = (function (exports) {
|
|
|
9514
9520
|
}
|
|
9515
9521
|
}
|
|
9516
9522
|
pointerMoveReal(data) {
|
|
9517
|
-
const { dragHover, dragDistance } = this.p;
|
|
9518
9523
|
this.emit(exports.PointerEvent.BEFORE_MOVE, data, this.defaultPath);
|
|
9519
9524
|
if (this.downData) {
|
|
9520
|
-
const canDrag = PointHelper.getDistance(this.downData, data) > dragDistance;
|
|
9525
|
+
const canDrag = PointHelper.getDistance(this.downData, data) > this.p.dragDistance;
|
|
9521
9526
|
if (canDrag) {
|
|
9522
9527
|
if (this.waitTap)
|
|
9523
9528
|
this.pointerWaitCancel();
|
|
@@ -9529,9 +9534,8 @@ var LeaferUI = (function (exports) {
|
|
|
9529
9534
|
this.updateHoverData(data);
|
|
9530
9535
|
this.checkPath(data);
|
|
9531
9536
|
this.emit(exports.PointerEvent.MOVE, data);
|
|
9532
|
-
|
|
9533
|
-
|
|
9534
|
-
if (this.dragger.dragging) {
|
|
9537
|
+
this.pointerHover(data);
|
|
9538
|
+
if (this.dragging) {
|
|
9535
9539
|
this.dragger.dragOverOrOut(data);
|
|
9536
9540
|
this.dragger.dragEnterOrLeave(data);
|
|
9537
9541
|
}
|
|
@@ -9612,7 +9616,8 @@ var LeaferUI = (function (exports) {
|
|
|
9612
9616
|
this.updateCursor();
|
|
9613
9617
|
}
|
|
9614
9618
|
pointerHover(data) {
|
|
9615
|
-
if (this.canHover) {
|
|
9619
|
+
if (this.canHover && !(this.dragging && !this.p.dragHover)) {
|
|
9620
|
+
data.path || (data.path = new LeafList());
|
|
9616
9621
|
this.pointerOverOrOut(data);
|
|
9617
9622
|
this.pointerEnterOrLeave(data);
|
|
9618
9623
|
}
|
|
@@ -9932,9 +9937,9 @@ var LeaferUI = (function (exports) {
|
|
|
9932
9937
|
}
|
|
9933
9938
|
return this.__hit(inner);
|
|
9934
9939
|
};
|
|
9935
|
-
leaf.__hitFill = function (inner) { var _a; return (_a = this.__hitCanvas) === null || _a ===
|
|
9936
|
-
leaf.__hitStroke = function (inner, strokeWidth) { var _a; return (_a = this.__hitCanvas) === null || _a ===
|
|
9937
|
-
leaf.__hitPixel = function (inner) { var _a; return (_a = this.__hitCanvas) === null || _a ===
|
|
9940
|
+
leaf.__hitFill = function (inner) { var _a; return (_a = this.__hitCanvas) === null || _a === undefined ? undefined : _a.hitFill(inner, this.__.windingRule); };
|
|
9941
|
+
leaf.__hitStroke = function (inner, strokeWidth) { var _a; return (_a = this.__hitCanvas) === null || _a === undefined ? undefined : _a.hitStroke(inner, strokeWidth); };
|
|
9942
|
+
leaf.__hitPixel = function (inner) { var _a; return (_a = this.__hitCanvas) === null || _a === undefined ? undefined : _a.hitPixel(inner, this.__layout.renderBounds, this.__hitCanvas.hitScale); };
|
|
9938
9943
|
leaf.__drawHitPath = function (canvas) { if (canvas)
|
|
9939
9944
|
this.__drawRenderPath(canvas); };
|
|
9940
9945
|
|
|
@@ -10669,7 +10674,7 @@ var LeaferUI = (function (exports) {
|
|
|
10669
10674
|
}
|
|
10670
10675
|
else {
|
|
10671
10676
|
if (!paint.patternTask) {
|
|
10672
|
-
paint.patternTask = ImageManager.patternTasker.add(() => __awaiter(this,
|
|
10677
|
+
paint.patternTask = ImageManager.patternTasker.add(() => __awaiter(this, undefined, undefined, function* () {
|
|
10673
10678
|
paint.patternTask = null;
|
|
10674
10679
|
if (canvas.bounds.hit(ui.__nowWorld))
|
|
10675
10680
|
createPattern(ui, paint, pixelRatio);
|
|
@@ -10825,7 +10830,7 @@ var LeaferUI = (function (exports) {
|
|
|
10825
10830
|
const end = shadow.length - 1;
|
|
10826
10831
|
toOffsetOutBounds$1(bounds, offsetOutBounds$1);
|
|
10827
10832
|
shadow.forEach((item, index) => {
|
|
10828
|
-
other.setWorldShadow((offsetOutBounds$1.offsetX + item.x * scaleX), (offsetOutBounds$1.offsetY + item.y * scaleY), item.blur * scaleX, item.color);
|
|
10833
|
+
other.setWorldShadow((offsetOutBounds$1.offsetX + item.x * scaleX), (offsetOutBounds$1.offsetY + item.y * scaleY), item.blur * scaleX, ColorConvert.string(item.color));
|
|
10829
10834
|
spreadScale = item.spread ? 1 + item.spread * 2 / (__layout.boxBounds.width + (__layout.strokeBoxSpread || 0) * 2) : 0;
|
|
10830
10835
|
drawWorldShadow(other, offsetOutBounds$1, spreadScale, shape);
|
|
10831
10836
|
copyBounds = bounds;
|
|
@@ -10901,7 +10906,7 @@ var LeaferUI = (function (exports) {
|
|
|
10901
10906
|
other.copyWorld(shape.canvas, shapeBounds, bounds, 'source-out');
|
|
10902
10907
|
copyBounds = bounds;
|
|
10903
10908
|
}
|
|
10904
|
-
other.fillWorld(copyBounds, item.color, 'source-in');
|
|
10909
|
+
other.fillWorld(copyBounds, ColorConvert.string(item.color), 'source-in');
|
|
10905
10910
|
if (ui.__worldFlipped) {
|
|
10906
10911
|
current.copyWorldByReset(other, copyBounds, nowWorld, item.blendMode);
|
|
10907
10912
|
}
|
|
@@ -11259,11 +11264,11 @@ var LeaferUI = (function (exports) {
|
|
|
11259
11264
|
function layoutChar(drawData, style, width, _height) {
|
|
11260
11265
|
const { rows } = drawData;
|
|
11261
11266
|
const { textAlign, paraIndent, letterSpacing } = style;
|
|
11262
|
-
let charX, addWordWidth, indentWidth, mode, wordChar;
|
|
11267
|
+
let charX, addWordWidth, indentWidth, mode, wordChar, wordsLength;
|
|
11263
11268
|
rows.forEach(row => {
|
|
11264
11269
|
if (row.words) {
|
|
11265
|
-
indentWidth = paraIndent && row.paraStart ? paraIndent : 0;
|
|
11266
|
-
addWordWidth = (width && (textAlign === 'justify' || textAlign === 'both') &&
|
|
11270
|
+
indentWidth = paraIndent && row.paraStart ? paraIndent : 0, wordsLength = row.words.length;
|
|
11271
|
+
addWordWidth = (width && (textAlign === 'justify' || textAlign === 'both') && wordsLength > 1) ? (width - row.width - indentWidth) / (wordsLength - 1) : 0;
|
|
11267
11272
|
mode = (letterSpacing || row.isOverflow) ? CharMode : (addWordWidth > 0.01 ? WordMode : TextMode);
|
|
11268
11273
|
if (row.isOverflow && !letterSpacing)
|
|
11269
11274
|
row.textMode = true;
|
|
@@ -11275,7 +11280,7 @@ var LeaferUI = (function (exports) {
|
|
|
11275
11280
|
row.x += indentWidth;
|
|
11276
11281
|
charX = row.x;
|
|
11277
11282
|
row.data = [];
|
|
11278
|
-
row.words.forEach(word => {
|
|
11283
|
+
row.words.forEach((word, index) => {
|
|
11279
11284
|
if (mode === WordMode) {
|
|
11280
11285
|
wordChar = { char: '', x: charX };
|
|
11281
11286
|
charX = toWordChar(word.data, charX, wordChar);
|
|
@@ -11285,7 +11290,7 @@ var LeaferUI = (function (exports) {
|
|
|
11285
11290
|
else {
|
|
11286
11291
|
charX = toChar(word.data, charX, row.data, row.isOverflow);
|
|
11287
11292
|
}
|
|
11288
|
-
if (addWordWidth && (!row.paraEnd || textAlign === 'both')) {
|
|
11293
|
+
if (addWordWidth && (!row.paraEnd || textAlign === 'both') && (index !== wordsLength - 1)) {
|
|
11289
11294
|
charX += addWordWidth;
|
|
11290
11295
|
row.width += addWordWidth;
|
|
11291
11296
|
}
|
|
@@ -11711,3 +11716,4 @@ var LeaferUI = (function (exports) {
|
|
|
11711
11716
|
return exports;
|
|
11712
11717
|
|
|
11713
11718
|
})({});
|
|
11719
|
+
//# sourceMappingURL=worker.js.map
|