@vosjs/cli 0.45.1 → 0.45.2

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.
@@ -391,7 +391,8 @@ import {
391
391
  resolvePins,
392
392
  spanOutputExtent,
393
393
  zoomCoversRect,
394
- cameraModel
394
+ cameraModel,
395
+ unionFitLevel
395
396
  } from "@vosjs/studio-core";
396
397
  import { TYPEFACE_CATALOG, findFontFamily, findTypeface } from "@vosjs/shared";
397
398
  var STEP_KINDS_ALL = [
@@ -1792,8 +1793,14 @@ function framingWarnings(docIn, doc, zoom, overlays, warnings) {
1792
1793
  0.02,
1793
1794
  cameraModel(docIn.frame)
1794
1795
  )) {
1796
+ const together = unionFitLevel(
1797
+ { x: x0 * w, y: y0 * h, w: rect.w * w, h: rect.h * h },
1798
+ w,
1799
+ h
1800
+ );
1801
+ const fix = together < 1.2 ? `the ${under.length} presses under it do not share one window at any zoom, so split it, one span per press (vos plan replans auto spans)` : together < z.level ? `lower the level to ${together.toFixed(2)}\xD7 or below, or split the span` : `move cx/cy toward it`;
1795
1802
  warnings.push(
1796
- `${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`
1803
+ `${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; ${fix}`
1797
1804
  );
1798
1805
  }
1799
1806
  }
@@ -12666,4 +12673,4 @@ export {
12666
12673
  verbHelp,
12667
12674
  run
12668
12675
  };
12669
- //# sourceMappingURL=chunk-4HW2XR5K.js.map
12676
+ //# sourceMappingURL=chunk-ZVIKNQVK.js.map