hyperframes 0.6.49 → 0.6.50

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.
Files changed (2) hide show
  1. package/dist/cli.js +10 -4
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -54,7 +54,7 @@ var VERSION;
54
54
  var init_version = __esm({
55
55
  "src/version.ts"() {
56
56
  "use strict";
57
- VERSION = true ? "0.6.49" : "0.0.0-dev";
57
+ VERSION = true ? "0.6.50" : "0.0.0-dev";
58
58
  }
59
59
  });
60
60
 
@@ -30120,7 +30120,11 @@ async function pageScreenshotCapture(page, options) {
30120
30120
  format: isPng ? "png" : "jpeg",
30121
30121
  quality: isPng ? void 0 : options.quality ?? 80,
30122
30122
  fromSurface: true,
30123
- captureBeyondViewport: false,
30123
+ // The explicit clip rect constrains output to exact composition
30124
+ // dimensions. The viewport-boundary pre-clip from captureBeyondViewport:
30125
+ // false is redundant, and Chrome's compositor rounds it inward under
30126
+ // multi-tab load — clipping the bottom/right edge of tall viewports.
30127
+ captureBeyondViewport: true,
30124
30128
  optimizeForSpeed: !isPng,
30125
30129
  clip
30126
30130
  });
@@ -30135,7 +30139,8 @@ async function captureScreenshotWithAlpha(page, width, height) {
30135
30139
  const result = await client.send("Page.captureScreenshot", {
30136
30140
  format: "png",
30137
30141
  fromSurface: true,
30138
- captureBeyondViewport: false,
30142
+ captureBeyondViewport: true,
30143
+ // see pageScreenshotCapture for rationale
30139
30144
  optimizeForSpeed: false,
30140
30145
  // `true` uses a zero-alpha-aware fast path that crushes real alpha values — observed empirically, CDP docs don't spell it out
30141
30146
  clip: { x: 0, y: 0, width, height, scale: 1 }
@@ -30164,7 +30169,8 @@ async function captureAlphaPng(page, width, height) {
30164
30169
  const result = await client.send("Page.captureScreenshot", {
30165
30170
  format: "png",
30166
30171
  fromSurface: true,
30167
- captureBeyondViewport: false,
30172
+ captureBeyondViewport: true,
30173
+ // see pageScreenshotCapture for rationale
30168
30174
  optimizeForSpeed: false,
30169
30175
  // must be false to preserve alpha
30170
30176
  clip: { x: 0, y: 0, width, height, scale: 1 }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperframes",
3
- "version": "0.6.49",
3
+ "version": "0.6.50",
4
4
  "description": "HyperFrames CLI — create, preview, and render HTML video compositions",
5
5
  "repository": {
6
6
  "type": "git",