@primestyleai/tryon 5.10.144 → 5.10.170

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.
@@ -1,11 +1,15 @@
1
1
  import type { FitAreaInfo } from "../types";
2
2
  import type { MeasurementLines } from "../pose-detect";
3
3
  export type GranularFit = "good" | "tight" | "loose" | "a-bit-tight" | "a-bit-loose" | "too-tight" | "too-loose";
4
- /** Compute granular fit label for a single measurement.
5
- * Anything within < 1 unit-inch (1 in / 2.54 cm / 25.4 mm) of the chart
6
- * range counts as "perfect fit" a 0.2 in delta on the inseam is below
7
- * visual perception and should not pop a "render visibly tight" prompt
8
- * directive on the try-on render. */
4
+ /** Compute granular fit label for a single measurement. Mirrors the
5
+ * backend deterministic engine's edge-based thresholds so the FIT
6
+ * DIRECTIVES the SDK ships to /tryon match what the user reads in the
7
+ * table:
8
+ * - "good" : in chart range OR within ½" / 1.27 cm of nearest edge
9
+ * - "a-bit-X" : ½"–1" past the edge
10
+ * - "X" : 1"–2" past the edge
11
+ * - "too-X" : > 2" past the edge
12
+ * Where X is tight (over upper edge) or loose (under lower edge). */
9
13
  export declare function computeFit(userValue: number, chartRange: string, unit?: "in" | "cm" | "mm"): GranularFit;
10
14
  /**
11
15
  * Build FitAreaInfo[] from matchDetails + optional pose coordinates.
@@ -29,6 +33,8 @@ export declare function buildFitInfo(matchDetails: Array<{
29
33
  */
30
34
  export declare function buildSilhouetteContext(sizingResult: {
31
35
  recommendedSize?: string;
36
+ recommendedLength?: string | null;
37
+ unit?: string;
32
38
  matchDetails?: Array<{
33
39
  measurement: string;
34
40
  userValue: string;
@@ -55,6 +61,7 @@ selectedSizeOverride?: string,
55
61
  * prime directive can include the model's frame. */
56
62
  userHeight?: string, userWeight?: string): {
57
63
  recommendedSize?: string;
64
+ recommendedSizeMeasurements?: string;
58
65
  sizeChartSummary?: string;
59
66
  userMeasurementsText?: string;
60
67
  userHeight?: string;