@solid-labs/fab-one-widget 1.1.7 → 1.1.8
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.
|
@@ -4119,12 +4119,15 @@ let __tla = (async () => {
|
|
|
4119
4119
|
G
|
|
4120
4120
|
]), tt = J(() => {
|
|
4121
4121
|
var _a;
|
|
4122
|
-
if (!d || G.length <
|
|
4123
|
-
if (te) return Math.abs(G[0].position.y - G[2].position.y);
|
|
4122
|
+
if (!d || G.length < 1) return 0;
|
|
4124
4123
|
const m = d.geometry;
|
|
4125
4124
|
m.computeBoundingBox();
|
|
4126
|
-
const L = ((_a = m.boundingBox) == null ? void 0 : _a.min.y) ?? 0;
|
|
4127
|
-
|
|
4125
|
+
const L = ((_a = m.boundingBox) == null ? void 0 : _a.min.y) ?? 0, R = G[0].position.y;
|
|
4126
|
+
if (te && G.length >= 3) {
|
|
4127
|
+
const W = Math.abs(R - G[2].position.y);
|
|
4128
|
+
if (W > 0.5) return W;
|
|
4129
|
+
}
|
|
4130
|
+
return Math.abs(R - L);
|
|
4128
4131
|
}, [
|
|
4129
4132
|
d,
|
|
4130
4133
|
G,
|