@leafer-draw/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.
- package/dist/miniapp.cjs +5 -4
- package/dist/miniapp.esm.js +6 -5
- package/dist/miniapp.esm.min.js +1 -1
- package/dist/miniapp.esm.min.js.map +1 -1
- package/dist/miniapp.min.cjs +1 -1
- package/dist/miniapp.min.cjs.map +1 -1
- package/dist/miniapp.module.js +6 -5
- package/dist/miniapp.module.min.js +1 -1
- package/dist/miniapp.module.min.js.map +1 -1
- package/package.json +9 -9
package/dist/miniapp.module.js
CHANGED
|
@@ -6815,7 +6815,7 @@ class LeafLevelList {
|
|
|
6815
6815
|
}
|
|
6816
6816
|
}
|
|
6817
6817
|
|
|
6818
|
-
const version = "1.9.
|
|
6818
|
+
const version = "1.9.9";
|
|
6819
6819
|
|
|
6820
6820
|
class LeaferCanvas extends LeaferCanvasBase {
|
|
6821
6821
|
get allowBackgroundColor() {
|
|
@@ -10519,8 +10519,8 @@ function shadow(ui, current, shape) {
|
|
|
10519
10519
|
const sx = Math.abs(nowWorld.scaleX);
|
|
10520
10520
|
if (sx > 1) otherScale = 1 / sx;
|
|
10521
10521
|
}
|
|
10522
|
-
other.setWorldShadow(offsetOutBounds$1.offsetX + item.x * scaleX * otherScale, offsetOutBounds$1.offsetY + item.y * scaleY * otherScale, item.blur * scaleX * otherScale, ColorConvert.string(item.color));
|
|
10523
|
-
transform = getShadowTransform(ui, other, shape, item, offsetOutBounds$1, otherScale);
|
|
10522
|
+
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));
|
|
10523
|
+
transform = Effect.getShadowTransform(ui, other, shape, item, offsetOutBounds$1, otherScale);
|
|
10524
10524
|
if (transform) other.setTransform(transform);
|
|
10525
10525
|
drawWorldShadow(other, offsetOutBounds$1, shape);
|
|
10526
10526
|
if (transform) other.resetTransform();
|
|
@@ -10596,8 +10596,8 @@ function innerShadow(ui, current, shape) {
|
|
|
10596
10596
|
if (sx > 1) otherScale = 1 / sx;
|
|
10597
10597
|
}
|
|
10598
10598
|
other.save();
|
|
10599
|
-
other.setWorldShadow(offsetOutBounds.offsetX + item.x * scaleX * otherScale, offsetOutBounds.offsetY + item.y * scaleY * otherScale, item.blur * scaleX * otherScale);
|
|
10600
|
-
transform = getShadowTransform(ui, other, shape, item, offsetOutBounds, otherScale, true);
|
|
10599
|
+
other.setWorldShadow(offsetOutBounds.offsetX + (item.x || 0) * scaleX * otherScale, offsetOutBounds.offsetY + (item.y || 0) * scaleY * otherScale, (item.blur || 0) * scaleX * otherScale);
|
|
10600
|
+
transform = Effect.getShadowTransform(ui, other, shape, item, offsetOutBounds, otherScale, true);
|
|
10601
10601
|
if (transform) other.setTransform(transform);
|
|
10602
10602
|
drawWorldShadow(other, offsetOutBounds, shape);
|
|
10603
10603
|
other.restore();
|
|
@@ -11233,6 +11233,7 @@ const TextConvertModule = {
|
|
|
11233
11233
|
};
|
|
11234
11234
|
|
|
11235
11235
|
function string(color, opacity) {
|
|
11236
|
+
if (!color) return "#000";
|
|
11236
11237
|
const doOpacity = isNumber(opacity) && opacity < 1;
|
|
11237
11238
|
if (isString(color)) {
|
|
11238
11239
|
if (doOpacity && ColorConvert.object) color = ColorConvert.object(color); else return color;
|