MANUAL STUDY / RESPONSIVE + OFFSCREEN

The canvas has two sizes.

Ten focused modes compare CSS layout, drawing-buffer sizing, device pixels, worker transfer, event proxies, and normalized-coordinate picking.

Preparing responsive study—
Creating a scene that reports both the CSS display rectangle and the drawing buffer…

Official pages use clientWidth/clientHeight, setSize(width, height, false), devicePixelRatio, OffscreenCanvas transfer, worker message handlers, an ElementProxyReceiver, and worker-side Raycaster picking. This route keeps those contracts visible with local scene fixtures.

WebGLRenderer · OffscreenCanvas · Raycaster

THREE.JS FOUNDATIONS / TWO CANVAS SIZES