@solid-labs/fab-one-widget 1.1.4 → 1.1.5
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/{GirthManagerWidget-DOJUu-Fk.js → GirthManagerWidget-DfZSvg5n.js} +36 -36
- package/dist/GirthManagerWidget-DfZSvg5n.js.map +1 -0
- package/dist/girth-manager-ui/src/components/CircumferenceMeasurements.d.ts +1 -1
- package/dist/girth-manager-ui/src/components/CircumferenceSlice.d.ts +1 -1
- package/dist/girth-manager-ui/src/components/TransverseView.d.ts +1 -1
- package/dist/girth-manager-ui/src/components/VerticalDimension.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/web-component.js +1 -1
- package/package.json +1 -1
- package/dist/GirthManagerWidget-DOJUu-Fk.js.map +0 -1
|
@@ -926,7 +926,7 @@ let __tla = (async () => {
|
|
|
926
926
|
depthWrite: false
|
|
927
927
|
});
|
|
928
928
|
return new Y.Mesh(c, a);
|
|
929
|
-
}, er = ({ bvh: e, geometry: r, yPosition: n, color: o = "#00ff00", labelX: s, onDataChange: l, displayUnit: c = "
|
|
929
|
+
}, er = ({ bvh: e, geometry: r, yPosition: n, color: o = "#00ff00", labelX: s, onDataChange: l, displayUnit: c = "cm", useInnerSurface: a = false, formValue: t, lineWidth: g = 1.5, wasmLoopPoints: d, wasmCircumference: u }) => {
|
|
930
930
|
const f = J(() => d && u != null ? null : Ve(e, r, n, a), [
|
|
931
931
|
e,
|
|
932
932
|
r,
|
|
@@ -1065,7 +1065,7 @@ let __tla = (async () => {
|
|
|
1065
1065
|
minWidth: 52,
|
|
1066
1066
|
textAlign: "right"
|
|
1067
1067
|
},
|
|
1068
|
-
children: c === "inch" ? (S / 25.4).toFixed(2) : S.toFixed(1)
|
|
1068
|
+
children: c === "inch" ? (S / 25.4).toFixed(2) : (S / 10).toFixed(1)
|
|
1069
1069
|
}),
|
|
1070
1070
|
i("span", {
|
|
1071
1071
|
style: {
|
|
@@ -1073,7 +1073,7 @@ let __tla = (async () => {
|
|
|
1073
1073
|
color: "rgba(255,255,255,0.6)",
|
|
1074
1074
|
fontFamily: "monospace"
|
|
1075
1075
|
},
|
|
1076
|
-
children: c === "inch" ? "in" : "
|
|
1076
|
+
children: c === "inch" ? "in" : "cm"
|
|
1077
1077
|
})
|
|
1078
1078
|
]
|
|
1079
1079
|
}),
|
|
@@ -1107,7 +1107,7 @@ let __tla = (async () => {
|
|
|
1107
1107
|
},
|
|
1108
1108
|
children: [
|
|
1109
1109
|
v > 0 ? "+" : "",
|
|
1110
|
-
c === "inch" ? (v / 25.4).toFixed(2) : v.toFixed(1)
|
|
1110
|
+
c === "inch" ? (v / 25.4).toFixed(2) : (v / 10).toFixed(1)
|
|
1111
1111
|
]
|
|
1112
1112
|
}),
|
|
1113
1113
|
y("span", {
|
|
@@ -1118,7 +1118,7 @@ let __tla = (async () => {
|
|
|
1118
1118
|
},
|
|
1119
1119
|
children: [
|
|
1120
1120
|
"from ",
|
|
1121
|
-
c === "inch" ? (t / 25.4).toFixed(2) : t.toFixed(
|
|
1121
|
+
c === "inch" ? (t / 25.4).toFixed(2) : (t / 10).toFixed(1)
|
|
1122
1122
|
]
|
|
1123
1123
|
})
|
|
1124
1124
|
]
|
|
@@ -1130,7 +1130,7 @@ let __tla = (async () => {
|
|
|
1130
1130
|
})
|
|
1131
1131
|
]
|
|
1132
1132
|
});
|
|
1133
|
-
}, tr = Ao(er), nr = ({ mesh: e, startY: r, endY: n, spacing: o, modelSize: s, onMeasurementsChange: l, reverseOrder: c = false, displayUnit: a = "
|
|
1133
|
+
}, tr = Ao(er), nr = ({ mesh: e, startY: r, endY: n, spacing: o, modelSize: s, onMeasurementsChange: l, reverseOrder: c = false, displayUnit: a = "cm", useInnerSurface: t = false, formMeasurements: g, originY: d, wasmSlices: u }) => {
|
|
1134
1134
|
const f = ue(/* @__PURE__ */ new Map()), h = e.geometry, S = $n(h), p = J(() => {
|
|
1135
1135
|
if (u) {
|
|
1136
1136
|
let z = [
|
|
@@ -1224,7 +1224,7 @@ let __tla = (async () => {
|
|
|
1224
1224
|
}, or = (e, r) => {
|
|
1225
1225
|
const n = Math.abs(e - r);
|
|
1226
1226
|
return n <= 7 ? "#4caf50" : n <= 15 ? "#ff9800" : "#f44336";
|
|
1227
|
-
}, rr = ({ mesh: e, greenY: r, modelSize: n, displayUnit: o = "
|
|
1227
|
+
}, rr = ({ mesh: e, greenY: r, modelSize: n, displayUnit: o = "cm", bottomY: s, formHeight: l }) => {
|
|
1228
1228
|
var _a;
|
|
1229
1229
|
const c = e.geometry;
|
|
1230
1230
|
c.computeBoundingBox();
|
|
@@ -1303,9 +1303,9 @@ let __tla = (async () => {
|
|
|
1303
1303
|
pointerEvents: "none"
|
|
1304
1304
|
},
|
|
1305
1305
|
children: [
|
|
1306
|
-
o === "inch" ? (t / 25.4).toFixed(2) : t.toFixed(1),
|
|
1306
|
+
o === "inch" ? (t / 25.4).toFixed(2) : (t / 10).toFixed(1),
|
|
1307
1307
|
" ",
|
|
1308
|
-
o === "inch" ? "in" : "
|
|
1308
|
+
o === "inch" ? "in" : "cm"
|
|
1309
1309
|
]
|
|
1310
1310
|
}),
|
|
1311
1311
|
v && y("div", {
|
|
@@ -1338,7 +1338,7 @@ let __tla = (async () => {
|
|
|
1338
1338
|
},
|
|
1339
1339
|
children: [
|
|
1340
1340
|
M > 0 ? "+" : "",
|
|
1341
|
-
o === "inch" ? (M / 25.4).toFixed(2) : M.toFixed(1)
|
|
1341
|
+
o === "inch" ? (M / 25.4).toFixed(2) : (M / 10).toFixed(1)
|
|
1342
1342
|
]
|
|
1343
1343
|
}),
|
|
1344
1344
|
y("span", {
|
|
@@ -1349,7 +1349,7 @@ let __tla = (async () => {
|
|
|
1349
1349
|
},
|
|
1350
1350
|
children: [
|
|
1351
1351
|
"from ",
|
|
1352
|
-
o === "inch" ? (l / 25.4).toFixed(2) : l.toFixed(
|
|
1352
|
+
o === "inch" ? (l / 25.4).toFixed(2) : (l / 10).toFixed(1)
|
|
1353
1353
|
]
|
|
1354
1354
|
})
|
|
1355
1355
|
]
|
|
@@ -1580,7 +1580,7 @@ let __tla = (async () => {
|
|
|
1580
1580
|
color: "#fff",
|
|
1581
1581
|
lineHeight: "20px"
|
|
1582
1582
|
},
|
|
1583
|
-
children: e ? "Units detected as meters - converted to
|
|
1583
|
+
children: e ? "Units detected as meters - converted to cm" : "Units detected as cm"
|
|
1584
1584
|
}),
|
|
1585
1585
|
i("button", {
|
|
1586
1586
|
onClick: r,
|
|
@@ -1645,7 +1645,7 @@ let __tla = (async () => {
|
|
|
1645
1645
|
})), Fn = (e, r) => {
|
|
1646
1646
|
const n = Math.abs(e - r);
|
|
1647
1647
|
return n <= 7 ? "#4caf50" : n <= 15 ? "#ff9800" : "#f44336";
|
|
1648
|
-
}, cr = ({ mesh: e, upperY: r, originY: n, modelSize: o, meshColor: s = "#c8c8c8", displayUnit: l = "
|
|
1648
|
+
}, cr = ({ mesh: e, upperY: r, originY: n, modelSize: o, meshColor: s = "#c8c8c8", displayUnit: l = "cm", formML: c, formAP: a }) => {
|
|
1649
1649
|
const t = e.geometry, g = J(() => new Ct(t, {
|
|
1650
1650
|
maxLeafTris: zt
|
|
1651
1651
|
}), [
|
|
@@ -1678,7 +1678,7 @@ let __tla = (async () => {
|
|
|
1678
1678
|
}, [
|
|
1679
1679
|
d,
|
|
1680
1680
|
n
|
|
1681
|
-
]), b = (w) => l === "inch" ? (w / 25.4).toFixed(2) : w.toFixed(1), x = l === "inch" ? "in" : "
|
|
1681
|
+
]), b = (w) => l === "inch" ? (w / 25.4).toFixed(2) : (w / 10).toFixed(1), x = l === "inch" ? "in" : "cm";
|
|
1682
1682
|
return y(_e, {
|
|
1683
1683
|
children: [
|
|
1684
1684
|
i("mesh", {
|
|
@@ -1780,7 +1780,7 @@ let __tla = (async () => {
|
|
|
1780
1780
|
},
|
|
1781
1781
|
children: [
|
|
1782
1782
|
w > 0 ? "+" : "",
|
|
1783
|
-
l === "inch" ? (w / 25.4).toFixed(2) : w.toFixed(1)
|
|
1783
|
+
l === "inch" ? (w / 25.4).toFixed(2) : (w / 10).toFixed(1)
|
|
1784
1784
|
]
|
|
1785
1785
|
}),
|
|
1786
1786
|
y("span", {
|
|
@@ -1791,7 +1791,7 @@ let __tla = (async () => {
|
|
|
1791
1791
|
},
|
|
1792
1792
|
children: [
|
|
1793
1793
|
"from ",
|
|
1794
|
-
l === "inch" ? (c / 25.4).toFixed(2) : c.toFixed(
|
|
1794
|
+
l === "inch" ? (c / 25.4).toFixed(2) : (c / 10).toFixed(1)
|
|
1795
1795
|
]
|
|
1796
1796
|
})
|
|
1797
1797
|
]
|
|
@@ -1880,7 +1880,7 @@ let __tla = (async () => {
|
|
|
1880
1880
|
},
|
|
1881
1881
|
children: [
|
|
1882
1882
|
w > 0 ? "+" : "",
|
|
1883
|
-
l === "inch" ? (w / 25.4).toFixed(2) : w.toFixed(1)
|
|
1883
|
+
l === "inch" ? (w / 25.4).toFixed(2) : (w / 10).toFixed(1)
|
|
1884
1884
|
]
|
|
1885
1885
|
}),
|
|
1886
1886
|
y("span", {
|
|
@@ -1891,7 +1891,7 @@ let __tla = (async () => {
|
|
|
1891
1891
|
},
|
|
1892
1892
|
children: [
|
|
1893
1893
|
"from ",
|
|
1894
|
-
l === "inch" ? (a / 25.4).toFixed(2) : a.toFixed(
|
|
1894
|
+
l === "inch" ? (a / 25.4).toFixed(2) : (a / 10).toFixed(1)
|
|
1895
1895
|
]
|
|
1896
1896
|
})
|
|
1897
1897
|
]
|
|
@@ -2075,11 +2075,11 @@ let __tla = (async () => {
|
|
|
2075
2075
|
if (!f) return {};
|
|
2076
2076
|
const L = {};
|
|
2077
2077
|
return x.forEach((O, re) => {
|
|
2078
|
-
f[re] != null && f[re] !== 0 && (L[O] = f[re].toFixed(1));
|
|
2078
|
+
f[re] != null && f[re] !== 0 && (L[O] = (f[re] / 10).toFixed(1));
|
|
2079
2079
|
}), L;
|
|
2080
|
-
}), [A, C] = B(h && h > 0 ? h.toFixed(1) : ""), [z, D] = B(""), [E, _] = B(""), [W, P] = B(""), [R, $] = B(""), N = e === "AK" ? "Perineum to Distal (Axial)" : "MPT to Distal (Axial)", oe = e === "AK" ? "M/L at Perineum" : "M/L at MPT", ie = e === "AK" ? "A/P at Perineum" : "A/P at MPT", se = J(() => x.map((L) => {
|
|
2080
|
+
}), [A, C] = B(h && h > 0 ? (h / 10).toFixed(1) : ""), [z, D] = B(""), [E, _] = B(""), [W, P] = B(""), [R, $] = B(""), N = e === "AK" ? "Perineum to Distal (Axial)" : "MPT to Distal (Axial)", oe = e === "AK" ? "M/L at Perineum" : "M/L at MPT", ie = e === "AK" ? "A/P at Perineum" : "A/P at MPT", se = J(() => x.map((L) => {
|
|
2081
2081
|
const O = v[L];
|
|
2082
|
-
return O != null && O !== "" && !isNaN(parseFloat(O)) ? parseFloat(O) : 0;
|
|
2082
|
+
return O != null && O !== "" && !isNaN(parseFloat(O)) ? parseFloat(O) * 10 : 0;
|
|
2083
2083
|
}), [
|
|
2084
2084
|
x,
|
|
2085
2085
|
v
|
|
@@ -2090,7 +2090,7 @@ let __tla = (async () => {
|
|
|
2090
2090
|
se,
|
|
2091
2091
|
t
|
|
2092
2092
|
]), ee(() => {
|
|
2093
|
-
const L = A !== "" && !isNaN(parseFloat(A)) ? parseFloat(A) : void 0;
|
|
2093
|
+
const L = A !== "" && !isNaN(parseFloat(A)) ? parseFloat(A) * 10 : void 0;
|
|
2094
2094
|
g == null ? void 0 : g(L);
|
|
2095
2095
|
}, [
|
|
2096
2096
|
A,
|
|
@@ -2098,13 +2098,13 @@ let __tla = (async () => {
|
|
|
2098
2098
|
]);
|
|
2099
2099
|
const K = e === "AK" ? z : W, te = e === "AK" ? E : R;
|
|
2100
2100
|
ee(() => {
|
|
2101
|
-
const L = K !== "" && !isNaN(parseFloat(K)) ? parseFloat(K) : void 0;
|
|
2101
|
+
const L = K !== "" && !isNaN(parseFloat(K)) ? parseFloat(K) * 10 : void 0;
|
|
2102
2102
|
d == null ? void 0 : d(L);
|
|
2103
2103
|
}, [
|
|
2104
2104
|
K,
|
|
2105
2105
|
d
|
|
2106
2106
|
]), ee(() => {
|
|
2107
|
-
const L = te !== "" && !isNaN(parseFloat(te)) ? parseFloat(te) : void 0;
|
|
2107
|
+
const L = te !== "" && !isNaN(parseFloat(te)) ? parseFloat(te) * 10 : void 0;
|
|
2108
2108
|
u == null ? void 0 : u(L);
|
|
2109
2109
|
}, [
|
|
2110
2110
|
te,
|
|
@@ -2124,7 +2124,7 @@ let __tla = (async () => {
|
|
|
2124
2124
|
A
|
|
2125
2125
|
]), Q = fe(() => {
|
|
2126
2126
|
if (!G) return;
|
|
2127
|
-
const L = (re) => re !== "" && !isNaN(parseFloat(re)) ? parseFloat(re) : void 0, O = L(A) ?? 0;
|
|
2127
|
+
const L = (re) => re !== "" && !isNaN(parseFloat(re)) ? parseFloat(re) * 10 : void 0, O = L(A) ?? 0;
|
|
2128
2128
|
c({
|
|
2129
2129
|
circumferences: se,
|
|
2130
2130
|
frontalHeight: O,
|
|
@@ -2149,14 +2149,14 @@ let __tla = (async () => {
|
|
|
2149
2149
|
const q = n[re];
|
|
2150
2150
|
if (q) {
|
|
2151
2151
|
const H = q.modifiedValue ?? q.originalValue;
|
|
2152
|
-
L[O] = H.toFixed(1);
|
|
2152
|
+
L[O] = (H / 10).toFixed(1);
|
|
2153
2153
|
}
|
|
2154
|
-
}), M(L), o > 0 && C(o.toFixed(1)), s > 0) {
|
|
2155
|
-
const O = s.toFixed(1);
|
|
2154
|
+
}), M(L), o > 0 && C((o / 10).toFixed(1)), s > 0) {
|
|
2155
|
+
const O = (s / 10).toFixed(1);
|
|
2156
2156
|
e === "AK" ? D(O) : P(O);
|
|
2157
2157
|
}
|
|
2158
2158
|
if (l > 0) {
|
|
2159
|
-
const O = l.toFixed(1);
|
|
2159
|
+
const O = (l / 10).toFixed(1);
|
|
2160
2160
|
e === "AK" ? _(O) : $(O);
|
|
2161
2161
|
}
|
|
2162
2162
|
}, [
|
|
@@ -2260,7 +2260,7 @@ let __tla = (async () => {
|
|
|
2260
2260
|
lineHeight: "19px"
|
|
2261
2261
|
},
|
|
2262
2262
|
children: [
|
|
2263
|
-
"Values in
|
|
2263
|
+
"Values in cm, ",
|
|
2264
2264
|
p,
|
|
2265
2265
|
"\u2033",
|
|
2266
2266
|
" spacing. ",
|
|
@@ -3660,7 +3660,7 @@ let __tla = (async () => {
|
|
|
3660
3660
|
});
|
|
3661
3661
|
}
|
|
3662
3662
|
const Rr = ({ config: e, spacingType: r, scanUrl: n, formMeasurements: o, onComplete: s, isDebugUser: l = false, onAnalyticsEvent: c, wasmModule: a }) => {
|
|
3663
|
-
const [t, g] = B(null), [d, u] = B(0), [f, h] = B(false), [S, p] = B(false), [b, x] = B(""), [w, v] = B("3D"), [M, A] = B(r === "AK" ? 2 : 1), [C, z] = B(false), [D, E] = B(null), [_, W] = B(r ?? null), [P, R] = B("
|
|
3663
|
+
const [t, g] = B(null), [d, u] = B(0), [f, h] = B(false), [S, p] = B(false), [b, x] = B(""), [w, v] = B("3D"), [M, A] = B(r === "AK" ? 2 : 1), [C, z] = B(false), [D, E] = B(null), [_, W] = B(r ?? null), [P, R] = B("cm"), [$, N] = B(false), [oe, ie] = B(""), [se, K] = B(false), [te, G] = B(false), [Q, pe] = B(false), [L, O] = B(false), [re, q] = B(null), [H, Z] = B(null), [le, me] = B(null), [he, ae] = B(false), [U, X] = B([]), [Pe, Fe] = B(null), [Ge, xe] = B(null), [ze, At] = B(null), [rt, Yt] = B(null), [jn, Kt] = B(false), [it, Zt] = B(null), [Mt, Le] = B(null), [Re, Gn] = B(false), [qt, Xn] = B(br), [$e, Ut] = B("obj"), [Se, Ft] = B(o), [Oe, kt] = B(true), [Xe, Ue] = B(false), [Pt, Jt] = B(false), [We, st] = B(false), Ye = ue(false), [Yn, lt] = B(false), [Lt, Qt] = B(() => {
|
|
3664
3664
|
try {
|
|
3665
3665
|
return localStorage.getItem("gm_helpTipDismissed") !== "1";
|
|
3666
3666
|
} catch {
|
|
@@ -5111,18 +5111,18 @@ let __tla = (async () => {
|
|
|
5111
5111
|
},
|
|
5112
5112
|
children: [
|
|
5113
5113
|
i("button", {
|
|
5114
|
-
onClick: () => R("
|
|
5114
|
+
onClick: () => R("cm"),
|
|
5115
5115
|
style: {
|
|
5116
5116
|
padding: "6px 14px",
|
|
5117
5117
|
fontSize: 13,
|
|
5118
|
-
fontWeight: P === "
|
|
5119
|
-
backgroundColor: P === "
|
|
5120
|
-
color: P === "
|
|
5118
|
+
fontWeight: P === "cm" ? 600 : 400,
|
|
5119
|
+
backgroundColor: P === "cm" ? "rgb(12, 67, 173)" : "#fff",
|
|
5120
|
+
color: P === "cm" ? "#fff" : "#666",
|
|
5121
5121
|
border: "none",
|
|
5122
5122
|
cursor: "pointer",
|
|
5123
5123
|
fontFamily: "system-ui, sans-serif"
|
|
5124
5124
|
},
|
|
5125
|
-
children: "
|
|
5125
|
+
children: "cm"
|
|
5126
5126
|
}),
|
|
5127
5127
|
i("button", {
|
|
5128
5128
|
onClick: () => R("inch"),
|