@primestyleai/tryon 4.3.2 → 4.4.0

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.
@@ -231,6 +231,7 @@ const en = {
231
231
  "Tall": "Tall",
232
232
  "Plus": "Plus",
233
233
  "Optional — improve accuracy & save to profile": "Optional — improve accuracy & save to profile",
234
+ "Optional — improve accuracy": "Optional — improve accuracy",
234
235
  "Height": "Height",
235
236
  "Weight": "Weight",
236
237
  "Fill in what you know — more measurements = better accuracy.": "Fill in what you know — more measurements = better accuracy.",
@@ -323,6 +324,7 @@ const en = {
323
324
  "Try-on result": "Try-on result",
324
325
  "Download": "Download",
325
326
  "Start Over": "Start Over",
327
+ "See your try-on": "See your try-on",
326
328
  "Try Another": "Try Another",
327
329
  // ── Errors ──────────────────────────────────────────
328
330
  "Something went wrong": "Something went wrong",
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Pose landmark detection using MediaPipe Pose Landmarker.
3
+ * Loaded dynamically from CDN — zero bundle size impact.
4
+ * Returns normalized (0-1) coordinates for measurement lines.
5
+ */
6
+ export interface MeasurementLines {
7
+ chest: {
8
+ y: number;
9
+ x1: number;
10
+ x2: number;
11
+ };
12
+ waist: {
13
+ y: number;
14
+ x1: number;
15
+ x2: number;
16
+ };
17
+ hips: {
18
+ y: number;
19
+ x1: number;
20
+ x2: number;
21
+ };
22
+ }
23
+ /**
24
+ * Detect pose landmarks on an image and return measurement line positions.
25
+ * Coordinates are normalized 0-1 (percentage of image width/height).
26
+ */
27
+ export declare function detectMeasurementLines(imageSrc: string): Promise<MeasurementLines | null>;
@@ -1,5 +1,5 @@
1
- import { c as createT, A as ApiClient, S as SseClient, i as isValidImageFile, a as compressImage } from "./index-CILUifQv.js";
2
- import { P, b, T, d, r } from "./index-CILUifQv.js";
1
+ import { c as createT, A as ApiClient, S as SseClient, i as isValidImageFile, a as compressImage } from "./index-CZHknuGH.js";
2
+ import { P, b, T, d, r } from "./index-CZHknuGH.js";
3
3
  function detectProductImage() {
4
4
  const ogImage = document.querySelector(
5
5
  'meta[property="og:image"]'