File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545 },
4646 {
4747 "name" : " webkit" ,
48- "revision" : " 2298 " ,
48+ "revision" : " 2299 " ,
4949 "installByDefault" : true ,
5050 "revisionOverrides" : {
5151 "mac14" : " 2251" ,
Original file line number Diff line number Diff line change @@ -6402,6 +6402,10 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
64026402 * Coordinate system used by supplied coordinates.
64036403 */
64046404 export type CoordinateSystem = "Viewport" | "Page" ;
6405+ /**
6406+ * Image format used to encode a captured snapshot.
6407+ */
6408+ export type ImageFormat = "png" | "jpeg" | "webp" ;
64056409 /**
64066410 * Same-Site policy of a cookie.
64076411 */
@@ -6996,10 +7000,18 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
69967000 * By default, screenshot is inflated by device scale factor to avoid blurry image. This flag disables it.
69977001 */
69987002 omitDeviceScaleFactor ?: boolean ;
7003+ /**
7004+ * Image format of the resulting snapshot. Defaults to "png".
7005+ */
7006+ format ?: ImageFormat ;
7007+ /**
7008+ * Compression quality from 0 to 100 (ignored for the "png" format). Defaults to 80.
7009+ */
7010+ quality ?: number ;
69997011 }
70007012 export type snapshotRectReturnValue = {
70017013 /**
7002- * Base64-encoded image data (PNG) .
7014+ * Base64-encoded image data.
70037015 */
70047016 dataURL : string ;
70057017 }
You can’t perform that action at this time.
0 commit comments