@leafer-ui/miniapp 2.1.8 → 2.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/miniapp.cjs +5 -6
- package/dist/miniapp.esm.js +5 -6
- package/dist/miniapp.esm.min.js +1 -1
- package/dist/miniapp.esm.min.js.map +1 -1
- package/dist/miniapp.min.cjs +1 -1
- package/dist/miniapp.min.cjs.map +1 -1
- package/dist/miniapp.module.js +8 -12
- package/dist/miniapp.module.min.js +1 -1
- package/dist/miniapp.module.min.js.map +1 -1
- package/package.json +10 -10
package/dist/miniapp.module.js
CHANGED
|
@@ -1256,6 +1256,7 @@ const BoundsHelper = {
|
|
|
1256
1256
|
},
|
|
1257
1257
|
copyAndSpread(t, bounds, spread, isShrink, side) {
|
|
1258
1258
|
const {x: x, y: y, width: width, height: height} = bounds;
|
|
1259
|
+
if (!spread) spread = 0;
|
|
1259
1260
|
if (isArray(spread)) {
|
|
1260
1261
|
const four = fourNumber(spread);
|
|
1261
1262
|
isShrink ? B.set(t, x + four[3], y + four[0], width - four[1] - four[3], height - four[2] - four[0]) : B.set(t, x - four[3], y - four[0], width + four[1] + four[3], height + four[2] + four[0]);
|
|
@@ -6984,7 +6985,7 @@ class LeafLevelList {
|
|
|
6984
6985
|
}
|
|
6985
6986
|
}
|
|
6986
6987
|
|
|
6987
|
-
const version = "2.1.
|
|
6988
|
+
const version = "2.1.10";
|
|
6988
6989
|
|
|
6989
6990
|
class LeaferCanvas extends LeaferCanvasBase {
|
|
6990
6991
|
get allowBackgroundColor() {
|
|
@@ -7300,7 +7301,10 @@ class Watcher {
|
|
|
7300
7301
|
if (this.running) this.target.emit(RenderEvent.REQUEST);
|
|
7301
7302
|
}
|
|
7302
7303
|
__onAttrChange(event) {
|
|
7303
|
-
|
|
7304
|
+
this.add(event.target);
|
|
7305
|
+
}
|
|
7306
|
+
add(leaf) {
|
|
7307
|
+
if (this.config.usePartLayout) this.__updatedList.add(leaf);
|
|
7304
7308
|
this.update();
|
|
7305
7309
|
}
|
|
7306
7310
|
__onChildEvent(event) {
|
|
@@ -8339,11 +8343,7 @@ class PolygonData extends UIData {
|
|
|
8339
8343
|
}
|
|
8340
8344
|
}
|
|
8341
8345
|
|
|
8342
|
-
class StarData extends UIData {
|
|
8343
|
-
get __boxStroke() {
|
|
8344
|
-
return !this.__pathInputed;
|
|
8345
|
-
}
|
|
8346
|
-
}
|
|
8346
|
+
class StarData extends UIData {}
|
|
8347
8347
|
|
|
8348
8348
|
class PathData extends UIData {
|
|
8349
8349
|
get __pathInputed() {
|
|
@@ -12278,13 +12278,9 @@ function createPattern(paint, ui, canvas, renderOptions) {
|
|
|
12278
12278
|
if (fixScale) scaleX *= fixScale, scaleY *= fixScale;
|
|
12279
12279
|
width *= scaleX;
|
|
12280
12280
|
height *= scaleY;
|
|
12281
|
-
if (gap) {
|
|
12281
|
+
if (gap && !brush) {
|
|
12282
12282
|
xGap = gap.x * scaleX / abs$1(data.scaleX || 1);
|
|
12283
12283
|
yGap = gap.y * scaleY / abs$1(data.scaleY || 1);
|
|
12284
|
-
if (brush) {
|
|
12285
|
-
const brushScale = PaintImage.getBrushScale(paint, ui);
|
|
12286
|
-
xGap /= brushScale, yGap /= brushScale;
|
|
12287
|
-
}
|
|
12288
12284
|
}
|
|
12289
12285
|
if (transform || scaleX !== 1 || scaleY !== 1) {
|
|
12290
12286
|
scaleX *= getFloorScale(width + (xGap || 0));
|