MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / resize

Function resize

src/tailwind/Backgrounds/Lightfall/Lightfall.jsx:257–261  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

255 meshRef.current = mesh;
256
257 const resize = () => {
258 const rect = container.getBoundingClientRect();
259 renderer.setSize(rect.width, rect.height);
260 uniforms.iResolution.value = [gl.drawingBufferWidth, gl.drawingBufferHeight, 1];
261 };
262
263 resize();
264 const ro = new ResizeObserver(resize);

Callers 1

LightfallFunction · 0.70

Calls 1

setSizeMethod · 0.45

Tested by

no test coverage detected