@leafer/miniapp 1.6.5 → 1.6.7

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.
@@ -6233,7 +6233,7 @@ class LeafLevelList {
6233
6233
  }
6234
6234
  }
6235
6235
 
6236
- const version = "1.6.5";
6236
+ const version = "1.6.7";
6237
6237
 
6238
6238
  class LeaferCanvas extends LeaferCanvasBase {
6239
6239
  get allowBackgroundColor() { return false; }
@@ -7668,7 +7668,7 @@ const UIRender = {
7668
7668
  __drawAfterFill(canvas, options) {
7669
7669
  if (this.__.__clipAfterFill) {
7670
7670
  canvas.save();
7671
- canvas.clipUI();
7671
+ canvas.clipUI(this);
7672
7672
  this.__drawContent(canvas, options);
7673
7673
  canvas.restore();
7674
7674
  }
@@ -9065,7 +9065,7 @@ let Text = class Text extends UI {
9065
9065
  const box = this.__box;
9066
9066
  if (box)
9067
9067
  box.__nowWorld = this.__nowWorld, box.__draw(canvas, options, originCanvas);
9068
- if (this.textEditing && !Export.running)
9068
+ if (this.textEditing && !options.exporting)
9069
9069
  return;
9070
9070
  super.__draw(canvas, options, originCanvas);
9071
9071
  }
@@ -17945,7 +17945,7 @@ const ExportModule = {
17945
17945
  let { x, y, width, height } = new Bounds(renderBounds).scale(scaleData.scaleX, scaleData.scaleY);
17946
17946
  if (clip)
17947
17947
  x += clip.x, y += clip.y, width = clip.width, height = clip.height;
17948
- const renderOptions = { matrix: matrix.scale(1 / scaleData.scaleX, 1 / scaleData.scaleY).invert().translate(-x, -y).withScale(1 / scaleX * scaleData.scaleX, 1 / scaleY * scaleData.scaleY) };
17948
+ const renderOptions = { exporting: true, matrix: matrix.scale(1 / scaleData.scaleX, 1 / scaleData.scaleY).invert().translate(-x, -y).withScale(1 / scaleX * scaleData.scaleX, 1 / scaleY * scaleData.scaleY) };
17949
17949
  let canvas = Creator.canvas({ width: Math.floor(width), height: Math.floor(height), pixelRatio, smooth, contextSettings });
17950
17950
  let sliceLeaf;
17951
17951
  if (slice) {