leafer-game 2.2.7 → 2.2.8
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 +20 -7
- package/dist/web.min.js +1 -1
- package/dist/web.min.js.map +1 -1
- package/dist/web.module.js +20 -7
- 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
|
@@ -4582,6 +4582,13 @@ var LeaferUI = function(exports) {
|
|
|
4582
4582
|
if (!fromWorld) fromWorld = leaf.__nowWorld;
|
|
4583
4583
|
if (leaf.__worldFlipped || Platform.fullImageShadow) currentCanvas.copyWorldByReset(fromCanvas, fromWorld, leaf.__nowWorld, blendMode, onlyResetTransform); else currentCanvas.copyWorldToInner(fromCanvas, fromWorld, leaf.__layout.renderBounds, blendMode);
|
|
4584
4584
|
},
|
|
4585
|
+
clip(leaf, canvas, options) {
|
|
4586
|
+
if (leaf.__worldOpacity) {
|
|
4587
|
+
canvas.setWorld(leaf.__nowWorld = leaf.__getNowWorld(options));
|
|
4588
|
+
leaf.__drawRenderPath(canvas);
|
|
4589
|
+
canvas.clipUI(leaf);
|
|
4590
|
+
}
|
|
4591
|
+
},
|
|
4585
4592
|
renderComplex(_leaf, _canvas, _options) {},
|
|
4586
4593
|
updateComplex(_leaf) {},
|
|
4587
4594
|
checkComplex(_leaf) {},
|
|
@@ -5858,11 +5865,7 @@ var LeaferUI = function(exports) {
|
|
|
5858
5865
|
}
|
|
5859
5866
|
},
|
|
5860
5867
|
__clip(canvas, options) {
|
|
5861
|
-
|
|
5862
|
-
canvas.setWorld(this.__nowWorld = this.__getNowWorld(options));
|
|
5863
|
-
this.__drawRenderPath(canvas);
|
|
5864
|
-
canvas.clipUI(this);
|
|
5865
|
-
}
|
|
5868
|
+
LeafHelper.clip(this, canvas, options);
|
|
5866
5869
|
},
|
|
5867
5870
|
__updateWorldOpacity() {
|
|
5868
5871
|
this.__worldOpacity = this.__.visible ? this.parent ? this.parent.__worldOpacity * this.__.opacity : this.__.opacity : 0;
|
|
@@ -6623,7 +6626,7 @@ var LeaferUI = function(exports) {
|
|
|
6623
6626
|
this.levelMap = null;
|
|
6624
6627
|
}
|
|
6625
6628
|
}
|
|
6626
|
-
const version = "2.2.
|
|
6629
|
+
const version = "2.2.8";
|
|
6627
6630
|
const debug$5 = Debug.get("LeaferCanvas");
|
|
6628
6631
|
class LeaferCanvas extends LeaferCanvasBase {
|
|
6629
6632
|
set zIndex(zIndex) {
|
|
@@ -7686,7 +7689,17 @@ var LeaferUI = function(exports) {
|
|
|
7686
7689
|
});
|
|
7687
7690
|
options.topList = new LeafList;
|
|
7688
7691
|
target.__render(canvas, options);
|
|
7689
|
-
if (options.topList.length) options.topList.forEach(item =>
|
|
7692
|
+
if (options.topList.length) options.topList.forEach(item => {
|
|
7693
|
+
const {parent: parent} = item;
|
|
7694
|
+
if (parent && parent.isBranchLeaf && parent.overflow !== "show") {
|
|
7695
|
+
canvas.save();
|
|
7696
|
+
LeafHelper.clip(parent, canvas, topOptions);
|
|
7697
|
+
item.__render(canvas, topOptions);
|
|
7698
|
+
canvas.restore();
|
|
7699
|
+
} else {
|
|
7700
|
+
item.__render(canvas, topOptions);
|
|
7701
|
+
}
|
|
7702
|
+
});
|
|
7690
7703
|
};
|
|
7691
7704
|
function effectType(defaultValue) {
|
|
7692
7705
|
return decorateLeafAttr(defaultValue, key => attr({
|