leafer-ui 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/web.cjs +5 -4
- package/dist/web.esm.js +6 -5
- package/dist/web.esm.min.js +1 -1
- package/dist/web.esm.min.js.map +1 -1
- package/dist/web.js +6 -5
- package/dist/web.min.cjs +1 -1
- package/dist/web.min.cjs.map +1 -1
- package/dist/web.min.js +1 -1
- package/dist/web.min.js.map +1 -1
- package/dist/web.module.js +6 -5
- package/dist/web.module.min.js +1 -1
- package/dist/web.module.min.js.map +1 -1
- package/package.json +11 -11
package/dist/web.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
|
const debug$5 = Debug.get("LeaferCanvas");
|
|
6821
6821
|
|
|
@@ -12472,8 +12472,8 @@ function shadow(ui, current, shape) {
|
|
|
12472
12472
|
const sx = Math.abs(nowWorld.scaleX);
|
|
12473
12473
|
if (sx > 1) otherScale = 1 / sx;
|
|
12474
12474
|
}
|
|
12475
|
-
other.setWorldShadow(offsetOutBounds$1.offsetX + item.x * scaleX * otherScale, offsetOutBounds$1.offsetY + item.y * scaleY * otherScale, item.blur * scaleX * otherScale, ColorConvert.string(item.color));
|
|
12476
|
-
transform = getShadowTransform(ui, other, shape, item, offsetOutBounds$1, otherScale);
|
|
12475
|
+
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));
|
|
12476
|
+
transform = Effect.getShadowTransform(ui, other, shape, item, offsetOutBounds$1, otherScale);
|
|
12477
12477
|
if (transform) other.setTransform(transform);
|
|
12478
12478
|
drawWorldShadow(other, offsetOutBounds$1, shape);
|
|
12479
12479
|
if (transform) other.resetTransform();
|
|
@@ -12549,8 +12549,8 @@ function innerShadow(ui, current, shape) {
|
|
|
12549
12549
|
if (sx > 1) otherScale = 1 / sx;
|
|
12550
12550
|
}
|
|
12551
12551
|
other.save();
|
|
12552
|
-
other.setWorldShadow(offsetOutBounds.offsetX + item.x * scaleX * otherScale, offsetOutBounds.offsetY + item.y * scaleY * otherScale, item.blur * scaleX * otherScale);
|
|
12553
|
-
transform = getShadowTransform(ui, other, shape, item, offsetOutBounds, otherScale, true);
|
|
12552
|
+
other.setWorldShadow(offsetOutBounds.offsetX + (item.x || 0) * scaleX * otherScale, offsetOutBounds.offsetY + (item.y || 0) * scaleY * otherScale, (item.blur || 0) * scaleX * otherScale);
|
|
12553
|
+
transform = Effect.getShadowTransform(ui, other, shape, item, offsetOutBounds, otherScale, true);
|
|
12554
12554
|
if (transform) other.setTransform(transform);
|
|
12555
12555
|
drawWorldShadow(other, offsetOutBounds, shape);
|
|
12556
12556
|
other.restore();
|
|
@@ -13186,6 +13186,7 @@ const TextConvertModule = {
|
|
|
13186
13186
|
};
|
|
13187
13187
|
|
|
13188
13188
|
function string(color, opacity) {
|
|
13189
|
+
if (!color) return "#000";
|
|
13189
13190
|
const doOpacity = isNumber(opacity) && opacity < 1;
|
|
13190
13191
|
if (isString(color)) {
|
|
13191
13192
|
if (doOpacity && ColorConvert.object) color = ColorConvert.object(color); else return color;
|