MCPcopy Create free account
hub / github.com/algorithmicsuperintelligence/openevolve / updateDimensions

Function updateDimensions

scripts/static/js/state.js:6–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4export function setWidth(w) { width = w; }
5export function setHeight(h) { height = h; }
6export function updateDimensions() {
7 width = window.innerWidth;
8 const toolbar = document.getElementById('toolbar');
9 const toolbarHeight = toolbar ? toolbar.offsetHeight : 0;
10 height = window.innerHeight - toolbarHeight;
11}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected