@vosjs/cli 0.30.1 → 0.31.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.
@@ -214,7 +214,8 @@ import {
214
214
  ratedSegments,
215
215
  recommendedExportResolution,
216
216
  spanOutputExtent,
217
- zoomCoversRect
217
+ zoomCoversRect,
218
+ cameraModel
218
219
  } from "@vosjs/studio-core";
219
220
  import { TYPEFACE_CATALOG, findFontFamily, findTypeface } from "@vosjs/shared";
220
221
  var STEP_KINDS_ALL = [
@@ -771,6 +772,12 @@ function lintDoc(docIn) {
771
772
  problems.push(`frame.${k} must be 0..1 (got ${String(v)})`);
772
773
  }
773
774
  }
775
+ const cam = frame.camera;
776
+ if (cam !== void 0 && cam !== "card" && cam !== "stage") {
777
+ problems.push(
778
+ `frame.camera must be "card" or "stage" (got ${String(cam)}); absent = card, the clamped magnifier every older take was cut with`
779
+ );
780
+ }
774
781
  }
775
782
  if (frame) {
776
783
  const fit = frame.fit;
@@ -1476,7 +1483,13 @@ function framingWarnings(docIn, doc, zoom, overlays, warnings) {
1476
1483
  y1 = Math.max(y1, (c.rect.y + c.rect.h) / h);
1477
1484
  }
1478
1485
  const rect = { x: x0, y: y0, w: x1 - x0, h: y1 - y0 };
1479
- if (!zoomCoversRect({ level: z.level, cx: z.cx, cy: z.cy }, rect, layout)) {
1486
+ if (!zoomCoversRect(
1487
+ { level: z.level, cx: z.cx, cy: z.cy },
1488
+ rect,
1489
+ layout,
1490
+ 0.02,
1491
+ cameraModel(docIn.frame)
1492
+ )) {
1480
1493
  warnings.push(
1481
1494
  `${spanName("zoom", z)}: points beside what was clicked at ${under[0].t.toFixed(1)}s \u2014 the target (center ${((x0 + x1) / 2).toFixed(2)}, ${((y0 + y1) / 2).toFixed(2)}) sits outside the visible window; move cx/cy toward it or lower the level`
1482
1495
  );
@@ -10615,4 +10628,4 @@ export {
10615
10628
  convertAgentBrowser,
10616
10629
  run
10617
10630
  };
10618
- //# sourceMappingURL=chunk-N5CNC3B7.js.map
10631
+ //# sourceMappingURL=chunk-APVJ4MDJ.js.map