"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[48954],{3905:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>m});varn=r(67294);functiona(e,t,r){returntine?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}functionp(e,t){varr=Object.keys(e);if(Object.getOwnPropertySymbols){varn=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}returnr}functioni(e){for(vart=1;t<arguments.length;t++){varr=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}returne}functionl(e,t){if(null==e)return{};varr,n,a=function(e,t){if(null==e)return{};varr,n,a={},p=Object.keys(e);for(n=0;n<p.length;n++)r=p[n],t.indexOf(r)>=0||(a[r]=e[r]);returna}(e,t);if(Object.getOwnPropertySymbols){varp=Object.getOwnPropertySymbols(e);for(n=0;n<p.length;n++)r=p[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}returna}varo=n.createContext({}),u=function(e){vart=n.useContext(o),r=t;returne&&(r="function"==typeofe?e(t):i(i({},t),e)),r},c=function(e){vart=u(e.components);returnn.createElement(o.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){vart=e.children;returnn.createElement(n.Fragment,{},t)}},s=n.forwardRef((function(e,t){varr=e.components,a=e.mdxType,p=e.originalType,o=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),s=u(r),m=a,f=s["".concat(o,".").concat(m)]||s[m]||d[m]||p;returnr?n.createElement(f,i(i({ref:t},c),{},{components:r})):n.createElement(f,i({ref:t},c))}));functionm(e,t){varr=arguments,a=t&&t.mdxType;if("string"==typeofe||a){varp=r.length,i=newArray(p);i[0]=s;varl={};for(varoint)hasOwnProperty.call(t,o)&&(l[o]=t[o]);l.originalType=e,l.mdxType="string"==typeofe?e:a,i[1]=l;for(varu=2;u<p;u++)i[u]=r[u];returnn.createElement.apply(null,i)}returnn.createElement.apply(null,r)}s.displayName="MDXCreateElement"},64012:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>o,contentTitle:()=>i,default:()=>d,frontMatter:()=>p,metadata:()=>l,toc:()=>u});varn=r(87462),a=(r(67294),r(3905));constp={sidebar_label:"Viewport"},i="Viewport interface",l={unversionedId:"api/puppeteer.viewport",id:"api/puppeteer.viewport",title:"Viewport interface",description:"Sets the viewport of the page.",source:"@site/../docs/api/puppeteer.viewport.md",sourceDirName:"api",slug:"/api/puppeteer.viewport",permalink:"/next/api/puppeteer.viewport",draft:!1,tags:[],version:"current",frontMatter:{sidebar_label:"Viewport"},sidebar:"sidebar",previous:{title:"TracingOptions.screenshots",permalink:"/next/api/puppeteer.tracingoptions.screenshots"},next:{title:"Viewport.deviceScaleFactor",permalink:"/next/api/puppeteer.viewport.devicescalefactor"}},o={},u=[{value:"Properties",id:"properties",level:2}],c={toc:u};functiond(e){let{components:t,...r}=e;return(0,a.kt)("wrapper",(0,n.Z)({},c,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"viewport-interface"},"Viewport interface"),(0,a.kt)("p",null,"Sets the viewport of the page."),(0,a.kt)("p",null,(0,a.kt)("strong",{parentName:"p"},"Signature:")),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-typescript"},"export interface Viewport\n")),(0,a.kt)("h2",{id:"properties"},"Properties"),(0,a.kt)("table",null,(0,a.kt)("thead",{parentName:"table"},(0,a.kt)("tr",{parentName:"thead"},(0,a.kt)("th",{parentName:"tr",align:null},"Property"),(0,a.kt)("th",{parentName:"tr",align:null},"Modifiers"),(0,a.kt)("th",{parentName:"tr",align:null},"Type"),(0,a.kt)("th",{parentName:"tr",align:null},"Description"))),(0,a.kt)("tbody",{parentName:"table"},(0,a.kt)("tr",{parentName:"tbody"},(0,a.kt)("td",{parentName:"tr",align:null},(0,a.kt)("a",{parentName:"td",href:"/next/api/puppeteer.viewport.devicescalefactor"},"deviceScaleFactor?")),(0,a.kt)("td",{parentName:"tr",al