Lorem ipsum dolor sit amet
{"ScriptPreparationCode":"const RKx = [\u0022x\u0022, \u0022width\u0022, \u0022left\u0022, \u0022right\u0022],\r\n RKy = [\u0022y\u0022, \u0022height\u0022, \u0022top\u0022, \u0022bottom\u0022],\r\n RKl = [\u0022height\u0022, \u0022width\u0022];\r\no={x:20,y:121};\r\ne=document.querySelector(\u0022h2\u0022);\r\nconvRectA=(e,o,r,z)=\u003E(\r\n z = outerWidth / innerWidth,\r\n r = e.getBoundingClientRect(),\r\n Object.fromEntries([...RKx.map(k =\u003E [k, r[k] * z \u002B o.x]), ...RKy.map(k =\u003E [k, r[k] * z \u002B o.y]), ...RKl.map(k =\u003E [k, r[k] * z])])\r\n),\r\nconvRectB=(e,o)=\u003E{\r\n let z = outerWidth / innerWidth,\r\n r = e.getBoundingClientRect(),\r\n x = r.x * z \u002B o.x,\r\n y = r.y * z \u002B o.y,\r\n w = r.width * z,\r\n h = r.height * z;\r\n return { \r\n bottom: y \u002B h,\r\n height: h,\r\n left: x,\r\n right: x \u002B w,\r\n top: y,\r\n width: w,\r\n x: x,\r\n y: y }\r\n};","TestCases":[{"Name":"Object.fromEntries","Code":"convRectA(e, o);","IsDeferred":false},{"Name":"manual modification","Code":"convRectB(e, o);","IsDeferred":false}]}