@leafer-draw/worker 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/worker.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
|
class LeaferCanvas extends LeaferCanvasBase {
|
|
6628
6631
|
get allowBackgroundColor() {
|
|
6629
6632
|
return true;
|