MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / rect

Function rect

graph-ui/tools/handtest-fixes-galaxy.mjs:634–634  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

632async function pathLayout(page) {
633 return page.evaluate(() => {
634 const rect = (el) => { const r = el.getBoundingClientRect(); return { left: r.left, right: r.right, top: r.top, bottom: r.bottom, text: el.textContent?.trim() ?? '' }; };
635 const labels = [...document.querySelectorAll('.atlas-galaxy-path-label')].map(rect).filter((r) => r.right > r.left);
636 const names = [...document.querySelectorAll('.atlas-galaxy-path-node b, .atlas-galaxy-root-marker b')].map(rect).filter((r) => r.right > r.left);
637 const rings = [...document.querySelectorAll('.atlas-galaxy-path-node > i, .atlas-galaxy-root-marker > i')].map(rect);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected