"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[38119],{3905:(e,r,t)=>{t.d(r,{Zo:()=>u,kt:()=>v});var n=t(67294);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(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||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var c=n.createContext({}),l=function(e){var r=n.useContext(c),t=r;return e&&(t="function"==typeof e?e(r):i(i({},r),e)),t},u=function(e){var r=l(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)}},f=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),f=l(t),v=o,d=f["".concat(c,".").concat(v)]||f[v]||s[v]||a;return t?n.createElement(d,i(i({ref:r},u),{},{components:t})):n.createElement(d,i({ref:r},u))}));function v(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=f;var p={};for(var c in r)hasOwnProperty.call(r,c)&&(p[c]=r[c]);p.originalType=e,p.mdxType="string"==typeof e?e:o,i[1]=p;for(var l=2;l{t.r(r),t.d(r,{assets:()=>l,contentTitle:()=>p,default:()=>f,frontMatter:()=>i,metadata:()=>c,toc:()=>u});t(67294);var n=t(3905);function o(){return o=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}const i={sidebar_label:"Viewport.deviceScaleFactor"},p="Viewport.deviceScaleFactor property",c={unversionedId:"api/puppeteer.viewport.devicescalefactor",id:"version-18.1.0/api/puppeteer.viewport.devicescalefactor",title:"Viewport.deviceScaleFactor property",description:"Specify device scale factor. See devicePixelRatio for more info.",source:"@site/versioned_docs/version-18.1.0/api/puppeteer.viewport.devicescalefactor.md",sourceDirName:"api",slug:"/api/puppeteer.viewport.devicescalefactor",permalink:"/api/puppeteer.viewport.devicescalefactor",draft:!1,tags:[],version:"18.1.0",frontMatter:{sidebar_label:"Viewport.deviceScaleFactor"},sidebar:"sidebar",previous:{title:"Viewport",permalink:"/api/puppeteer.viewport"},next:{title:"Viewport.hasTouch",permalink:"/api/puppeteer.viewport.hastouch"}},l={},u=[],s={toc:u};function f(e){var{components:r}=e,t=a(e,["components"]);return(0,n.kt)("wrapper",o({},s,t,{components:r,mdxType:"MDXLayout"}),(0,n.kt)("h1",o({},{id:"viewportdevicescalefactor-property"}),"Viewport.deviceScaleFactor property"),(0,n.kt)("p",null,"Specify device scale factor. See ",(0,n.kt)("a",o({parentName:"p"},{href:"https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio"}),"devicePixelRatio")," for more info."),(0,n.kt)("p",null,(0,n.kt)("strong",{parentName:"p"},"Signature:")),(0,n.kt)("pre",null,(0,n.kt)("code",o({parentName:"pre"},{className:"language-typescript"}),"interface Viewport {\n deviceScaleFactor?: number;\n}\n")))}f.isMDXComponent=!0}}]);