MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / gfResize

Function gfResize

web/rusense/app/views/sensing.js:117–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115 const gfCanvas = $('#gf-canvas');
116 const gfCtx = gfCanvas.getContext('2d');
117 const gfResize = () => { gfCanvas.width = gfCanvas.clientWidth; gfCanvas.height = gfCanvas.clientHeight; };
118 gfResize();
119 window.addEventListener('resize', gfResize);
120

Callers 1

mountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected