add scale factor to set viewport for retina screenshots (#691)

* device scale

* fix node.js daemon

* fix cargo fmt formatting for scale factor code

* fixes
This commit is contained in:
Chris Tate
2026-03-09 11:10:22 -05:00
committed by GitHub
parent a0bd0c2f0f
commit 644a4f5b63
9 changed files with 157 additions and 11 deletions
+1
View File
@@ -270,6 +270,7 @@ const viewportSchema = baseCommandSchema.extend({
action: z.literal('viewport'),
width: z.number().positive(),
height: z.number().positive(),
deviceScaleFactor: z.number().positive().optional(),
});
const userAgentSchema = baseCommandSchema.extend({