puppeteer/assets/js/511ba129.95bffb1e.js
2021-10-07 15:21:45 +00:00

1 line
4.5 KiB
JavaScript

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[32237],{3905:function(e,n,t){t.d(n,{Zo:function(){return c},kt:function(){return s}});var r=t(67294);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function p(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(Object(t),!0).forEach((function(n){o(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function l(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},p=Object.keys(e);for(r=0;r<p.length;r++)t=p[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(e);for(r=0;r<p.length;r++)t=p[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var a=r.createContext({}),i=function(e){var n=r.useContext(a),t=n;return e&&(t="function"==typeof e?e(n):u(u({},n),e)),t},c=function(e){var n=i(e.components);return r.createElement(a.Provider,{value:n},e.children)},d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},m=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,p=e.originalType,a=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),m=i(t),s=o,b=m["".concat(a,".").concat(s)]||m[s]||d[s]||p;return t?r.createElement(b,u(u({ref:n},c),{},{components:t})):r.createElement(b,u({ref:n},c))}));function s(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var p=t.length,u=new Array(p);u[0]=m;var l={};for(var a in n)hasOwnProperty.call(n,a)&&(l[a]=n[a]);l.originalType=e,l.mdxType="string"==typeof e?e:o,u[1]=l;for(var i=2;i<p;i++)u[i]=t[i];return r.createElement.apply(null,u)}return r.createElement.apply(null,t)}m.displayName="MDXCreateElement"},67431:function(e,n,t){t.r(n),t.d(n,{frontMatter:function(){return l},contentTitle:function(){return a},metadata:function(){return i},toc:function(){return c},default:function(){return m}});var r=t(87462),o=t(63366),p=(t(67294),t(3905)),u=["components"],l={},a=void 0,i={unversionedId:"puppeteer.elementhandle.boundingbox",id:"puppeteer.elementhandle.boundingbox",isDocsHomePage:!1,title:"puppeteer.elementhandle.boundingbox",description:"Home &gt; puppeteer &gt; ElementHandle &gt; boundingBox",source:"@site/docs/puppeteer.elementhandle.boundingbox.md",sourceDirName:".",slug:"/puppeteer.elementhandle.boundingbox",permalink:"/puppeteer/docs/next/puppeteer.elementhandle.boundingbox",editUrl:"https://github.com/facebook/puppeteer/edit/main/website/docs/puppeteer.elementhandle.boundingbox.md",version:"current",frontMatter:{},sidebar:"docs",previous:{title:"puppeteer.elementhandle.aselement",permalink:"/puppeteer/docs/next/puppeteer.elementhandle.aselement"},next:{title:"puppeteer.elementhandle.boxmodel",permalink:"/puppeteer/docs/next/puppeteer.elementhandle.boxmodel"}},c=[{value:"ElementHandle.boundingBox() method",id:"elementhandleboundingbox-method",children:[]}],d={toc:c};function m(e){var n=e.components,t=(0,o.Z)(e,u);return(0,p.kt)("wrapper",(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,p.kt)("p",null,(0,p.kt)("a",{parentName:"p",href:"/puppeteer/docs/next/index"},"Home")," ",">"," ",(0,p.kt)("a",{parentName:"p",href:"/puppeteer/docs/next/puppeteer"},"puppeteer")," ",">"," ",(0,p.kt)("a",{parentName:"p",href:"/puppeteer/docs/next/puppeteer.elementhandle"},"ElementHandle")," ",">"," ",(0,p.kt)("a",{parentName:"p",href:"/puppeteer/docs/next/puppeteer.elementhandle.boundingbox"},"boundingBox")),(0,p.kt)("h2",{id:"elementhandleboundingbox-method"},"ElementHandle.boundingBox() method"),(0,p.kt)("p",null,"This method returns the bounding box of the element (relative to the main frame), or ",(0,p.kt)("inlineCode",{parentName:"p"},"null")," if the element is not visible."),(0,p.kt)("b",null,"Signature:"),(0,p.kt)("pre",null,(0,p.kt)("code",{parentName:"pre",className:"language-typescript"},"boundingBox(): Promise<BoundingBox | null>;\n")),(0,p.kt)("b",null,"Returns:"),(0,p.kt)("p",null,"Promise","<",(0,p.kt)("a",{parentName:"p",href:"/puppeteer/docs/next/puppeteer.boundingbox"},"BoundingBox")," ","|"," null",">"))}m.isMDXComponent=!0}}]);