PageSourceSearch

https://p5js.org/_astro/index.z0PIr7rG.js

js p5js.org collected 2026-09-24 08:25:41 UTC 572 bytes, 1 lines download raw bytes

1import{A as c,d as l,_ as m}from"./hooks.module.BJiD9_M9.js";import{u as p}from"./jsxRuntime.module.CWllZeke.js";const g=({width:e,...i})=>{const n=c(null),[s,a]=l(1);return m(()=>{const t=()=>{const r=n.current,o=r?.parentElement?.parentElement;if(!r||!o)return;const f=o.getBoundingClientRect().width;a(f/e)};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[e]),p("iframe",{width:e,...i,style:{position:"absolute",top:0,left:0,transform:`scale(${s.toFixed(4)})`,transformOrigin:"top left"},ref:n})};export{g as ScalingIframe};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.