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.
- package/dist/cli.js +10 -4
- 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.
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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 }
|