leafer-game 2.1.8 → 2.1.9
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/web.js +7 -12
- package/dist/web.min.js +1 -1
- package/dist/web.min.js.map +1 -1
- package/dist/web.module.js +7 -12
- package/dist/web.module.min.js +1 -1
- package/dist/web.module.min.js.map +1 -1
- package/package.json +12 -12
package/dist/web.js
CHANGED
|
@@ -6568,7 +6568,7 @@ var LeaferUI = function(exports) {
|
|
|
6568
6568
|
this.levelMap = null;
|
|
6569
6569
|
}
|
|
6570
6570
|
}
|
|
6571
|
-
const version = "2.1.
|
|
6571
|
+
const version = "2.1.9";
|
|
6572
6572
|
const debug$5 = Debug.get("LeaferCanvas");
|
|
6573
6573
|
class LeaferCanvas extends LeaferCanvasBase {
|
|
6574
6574
|
set zIndex(zIndex) {
|
|
@@ -6905,7 +6905,10 @@ var LeaferUI = function(exports) {
|
|
|
6905
6905
|
if (this.running) this.target.emit(RenderEvent.REQUEST);
|
|
6906
6906
|
}
|
|
6907
6907
|
__onAttrChange(event) {
|
|
6908
|
-
|
|
6908
|
+
this.add(event.target);
|
|
6909
|
+
}
|
|
6910
|
+
add(leaf) {
|
|
6911
|
+
if (this.config.usePartLayout) this.__updatedList.add(leaf);
|
|
6909
6912
|
this.update();
|
|
6910
6913
|
}
|
|
6911
6914
|
__onChildEvent(event) {
|
|
@@ -7891,11 +7894,7 @@ var LeaferUI = function(exports) {
|
|
|
7891
7894
|
return this.points || this.__pathInputed;
|
|
7892
7895
|
}
|
|
7893
7896
|
}
|
|
7894
|
-
class StarData extends UIData {
|
|
7895
|
-
get __boxStroke() {
|
|
7896
|
-
return !this.__pathInputed;
|
|
7897
|
-
}
|
|
7898
|
-
}
|
|
7897
|
+
class StarData extends UIData {}
|
|
7899
7898
|
class PathData extends UIData {
|
|
7900
7899
|
get __pathInputed() {
|
|
7901
7900
|
return 2;
|
|
@@ -11658,13 +11657,9 @@ var LeaferUI = function(exports) {
|
|
|
11658
11657
|
if (fixScale) scaleX *= fixScale, scaleY *= fixScale;
|
|
11659
11658
|
width *= scaleX;
|
|
11660
11659
|
height *= scaleY;
|
|
11661
|
-
if (gap) {
|
|
11660
|
+
if (gap && !brush) {
|
|
11662
11661
|
xGap = gap.x * scaleX / abs$2(data.scaleX || 1);
|
|
11663
11662
|
yGap = gap.y * scaleY / abs$2(data.scaleY || 1);
|
|
11664
|
-
if (brush) {
|
|
11665
|
-
const brushScale = PaintImage.getBrushScale(paint, ui);
|
|
11666
|
-
xGap /= brushScale, yGap /= brushScale;
|
|
11667
|
-
}
|
|
11668
11663
|
}
|
|
11669
11664
|
if (transform || scaleX !== 1 || scaleY !== 1) {
|
|
11670
11665
|
scaleX *= getFloorScale(width + (xGap || 0));
|