"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[55899],{3905:(e,r,t)=>{t.d(r,{Zo:()=>l,kt:()=>f});var n=t(67294);function p(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function i(e){for(var r=1;r=0||(p[t]=e[t]);return p}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(p[t]=e[t])}return p}var c=n.createContext({}),u=function(e){var r=n.useContext(c),t=r;return e&&(t="function"==typeof e?e(r):i(i({},r),e)),t},l=function(e){var r=u(e.components);return n.createElement(c.Provider,{value:r},e.children)},s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},v=n.forwardRef((function(e,r){var t=e.components,p=e.mdxType,o=e.originalType,c=e.parentName,l=a(e,["components","mdxType","originalType","parentName"]),v=u(t),f=p,d=v["".concat(c,".").concat(f)]||v[f]||s[f]||o;return t?n.createElement(d,i(i({ref:r},l),{},{components:t})):n.createElement(d,i({ref:r},l))}));function f(e,r){var t=arguments,p=r&&r.mdxType;if("string"==typeof e||p){var o=t.length,i=new Array(o);i[0]=v;var a={};for(var c in r)hasOwnProperty.call(r,c)&&(a[c]=r[c]);a.originalType=e,a.mdxType="string"==typeof e?e:p,i[1]=a;for(var u=2;u{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>i,default:()=>s,frontMatter:()=>o,metadata:()=>a,toc:()=>u});var n=t(87462),p=(t(67294),t(3905));const o={},i="Device.viewport property",a={unversionedId:"api/puppeteer.device.viewport",id:"api/puppeteer.device.viewport",title:"Device.viewport property",description:"Signature:",source:"@site/../docs/api/puppeteer.device.viewport.md",sourceDirName:"api",slug:"/api/puppeteer.device.viewport",permalink:"/api/puppeteer.device.viewport",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"sidebar",previous:{title:"Device.userAgent property",permalink:"/api/puppeteer.device.useragent"},next:{title:"devices variable",permalink:"/api/puppeteer.devices"}},c={},u=[],l={toc:u};function s(e){let{components:r,...t}=e;return(0,p.kt)("wrapper",(0,n.Z)({},l,t,{components:r,mdxType:"MDXLayout"}),(0,p.kt)("h1",{id:"deviceviewport-property"},"Device.viewport property"),(0,p.kt)("p",null,(0,p.kt)("strong",{parentName:"p"},"Signature:")),(0,p.kt)("pre",null,(0,p.kt)("code",{parentName:"pre",className:"language-typescript"},"viewport: {\n width: number;\n height: number;\n deviceScaleFactor: number;\n isMobile: boolean;\n hasTouch: boolean;\n isLandscape: boolean;\n}\n")))}s.isMDXComponent=!0}}]);