@leafer-draw/miniapp 2.2.7 → 2.2.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.
@@ -2992,7 +2992,7 @@ const PathCommandNodeHelper = {
2992
2992
  toCommand(_nodes) {
2993
2993
  return [];
2994
2994
  },
2995
- toNode(_data) {
2995
+ toNode(_data, _filterSamePoint) {
2996
2996
  return [];
2997
2997
  }
2998
2998
  };
@@ -4883,6 +4883,13 @@ const LeafHelper = {
4883
4883
  if (!fromWorld) fromWorld = leaf.__nowWorld;
4884
4884
  if (leaf.__worldFlipped || Platform.fullImageShadow) currentCanvas.copyWorldByReset(fromCanvas, fromWorld, leaf.__nowWorld, blendMode, onlyResetTransform); else currentCanvas.copyWorldToInner(fromCanvas, fromWorld, leaf.__layout.renderBounds, blendMode);
4885
4885
  },
4886
+ clip(leaf, canvas, options) {
4887
+ if (leaf.__worldOpacity) {
4888
+ canvas.setWorld(leaf.__nowWorld = leaf.__getNowWorld(options));
4889
+ leaf.__drawRenderPath(canvas);
4890
+ canvas.clipUI(leaf);
4891
+ }
4892
+ },
4886
4893
  renderComplex(_leaf, _canvas, _options) {},
4887
4894
  updateComplex(_leaf) {},
4888
4895
  checkComplex(_leaf) {},
@@ -6258,11 +6265,7 @@ const LeafRender = {
6258
6265
  }
6259
6266
  },
6260
6267
  __clip(canvas, options) {
6261
- if (this.__worldOpacity) {
6262
- canvas.setWorld(this.__nowWorld = this.__getNowWorld(options));
6263
- this.__drawRenderPath(canvas);
6264
- canvas.clipUI(this);
6265
- }
6268
+ LeafHelper.clip(this, canvas, options);
6266
6269
  },
6267
6270
  __updateWorldOpacity() {
6268
6271
  this.__worldOpacity = this.__.visible ? this.parent ? this.parent.__worldOpacity * this.__.opacity : this.__.opacity : 0;
@@ -7043,7 +7046,7 @@ class LeafLevelList {
7043
7046
  }
7044
7047
  }
7045
7048
 
7046
- const version = "2.2.7";
7049
+ const version = "2.2.9";
7047
7050
 
7048
7051
  class LeaferCanvas extends LeaferCanvasBase {
7049
7052
  get allowBackgroundColor() {