@primestyleai/tryon 5.10.14 → 5.10.15
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/react/index.js +374 -374
- package/dist/react/index.js.map +1 -1
- package/dist/storefront/primestyle-tryon.js +8 -3
- package/package.json +1 -1
|
@@ -17754,7 +17754,7 @@ function MeasurementOverlay({ lines, fitRows, show, imgWidth, imgHeight }) {
|
|
|
17754
17754
|
const delay = i * 0.35;
|
|
17755
17755
|
const curvePath = `M ${x1} ${cy} Q ${midX} ${cy + curveDepth} ${x2} ${cy}`;
|
|
17756
17756
|
const lineLen = width * 1.05;
|
|
17757
|
-
const labelText = fitRow ? fitRow.fit === "good" ? "
|
|
17757
|
+
const labelText = fitRow ? fitRow.fit === "good" ? "Perfect Fit" : fitRow.isLength ? fitRow.fit.includes("short") || fitRow.fit.includes("tight") ? "Short" : "Long" : fitRow.fit.includes("tight") ? "Tight" : "Loose" : label;
|
|
17758
17758
|
const labelFont = Math.round(14 * scale);
|
|
17759
17759
|
const labelWidthEst = labelText.length * labelFont * 0.62;
|
|
17760
17760
|
const rightSpace = W2 - x2 - 12 * scale;
|
|
@@ -18194,8 +18194,13 @@ function SectionDetailView({
|
|
|
18194
18194
|
return "";
|
|
18195
18195
|
};
|
|
18196
18196
|
const fitBadgeLabel = (fit, isLen) => {
|
|
18197
|
-
if (
|
|
18198
|
-
if (fit === "
|
|
18197
|
+
if (fit === "good") return t2("PERFECT FIT");
|
|
18198
|
+
if (isLen && (fit.includes("short") || fit === "tight" || fit === "too-tight" || fit === "a-bit-tight")) {
|
|
18199
|
+
return fit === "a-bit-tight" || fit === "a-bit-short" ? t2("A BIT SHORT") : fit.includes("too") ? t2("TOO SHORT") : t2("SHORT");
|
|
18200
|
+
}
|
|
18201
|
+
if (isLen && (fit.includes("long") || fit === "loose" || fit === "too-loose" || fit === "a-bit-loose")) {
|
|
18202
|
+
return fit === "a-bit-loose" || fit === "a-bit-long" ? t2("A BIT LONG") : fit.includes("too") ? t2("TOO LONG") : t2("LONG");
|
|
18203
|
+
}
|
|
18199
18204
|
if (fit === "a-bit-tight") return t2("SLIGHTLY TIGHT");
|
|
18200
18205
|
if (fit === "a-bit-loose") return t2("SLIGHT EASE");
|
|
18201
18206
|
if (fit.includes("tight")) return t2("TIGHT");
|