@leafer-ui/miniapp 1.9.8 → 1.9.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.
@@ -6815,7 +6815,7 @@ class LeafLevelList {
6815
6815
  }
6816
6816
  }
6817
6817
 
6818
- const version = "1.9.8";
6818
+ const version = "1.9.9";
6819
6819
 
6820
6820
  class LeaferCanvas extends LeaferCanvasBase {
6821
6821
  get allowBackgroundColor() {
@@ -12203,8 +12203,8 @@ function shadow(ui, current, shape) {
12203
12203
  const sx = Math.abs(nowWorld.scaleX);
12204
12204
  if (sx > 1) otherScale = 1 / sx;
12205
12205
  }
12206
- other.setWorldShadow(offsetOutBounds$1.offsetX + item.x * scaleX * otherScale, offsetOutBounds$1.offsetY + item.y * scaleY * otherScale, item.blur * scaleX * otherScale, ColorConvert.string(item.color));
12207
- transform = getShadowTransform(ui, other, shape, item, offsetOutBounds$1, otherScale);
12206
+ other.setWorldShadow(offsetOutBounds$1.offsetX + (item.x || 0) * scaleX * otherScale, offsetOutBounds$1.offsetY + (item.y || 0) * scaleY * otherScale, (item.blur || 0) * scaleX * otherScale, ColorConvert.string(item.color));
12207
+ transform = Effect.getShadowTransform(ui, other, shape, item, offsetOutBounds$1, otherScale);
12208
12208
  if (transform) other.setTransform(transform);
12209
12209
  drawWorldShadow(other, offsetOutBounds$1, shape);
12210
12210
  if (transform) other.resetTransform();
@@ -12280,8 +12280,8 @@ function innerShadow(ui, current, shape) {
12280
12280
  if (sx > 1) otherScale = 1 / sx;
12281
12281
  }
12282
12282
  other.save();
12283
- other.setWorldShadow(offsetOutBounds.offsetX + item.x * scaleX * otherScale, offsetOutBounds.offsetY + item.y * scaleY * otherScale, item.blur * scaleX * otherScale);
12284
- transform = getShadowTransform(ui, other, shape, item, offsetOutBounds, otherScale, true);
12283
+ other.setWorldShadow(offsetOutBounds.offsetX + (item.x || 0) * scaleX * otherScale, offsetOutBounds.offsetY + (item.y || 0) * scaleY * otherScale, (item.blur || 0) * scaleX * otherScale);
12284
+ transform = Effect.getShadowTransform(ui, other, shape, item, offsetOutBounds, otherScale, true);
12285
12285
  if (transform) other.setTransform(transform);
12286
12286
  drawWorldShadow(other, offsetOutBounds, shape);
12287
12287
  other.restore();
@@ -12917,6 +12917,7 @@ const TextConvertModule = {
12917
12917
  };
12918
12918
 
12919
12919
  function string(color, opacity) {
12920
+ if (!color) return "#000";
12920
12921
  const doOpacity = isNumber(opacity) && opacity < 1;
12921
12922
  if (isString(color)) {
12922
12923
  if (doOpacity && ColorConvert.object) color = ColorConvert.object(color); else return color;