MCPcopy Create free account
hub / github.com/error311/FileRise / getAppZoomScale

Function getAppZoomScale

public/js/dragAndDrop.js:39–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37function getCards() { return CARD_IDS.map(id => $(id)).filter(Boolean); }
38
39function getAppZoomScale() {
40 const raw = getComputedStyle(document.documentElement)
41 .getPropertyValue('--app-zoom')
42 .trim();
43 const n = parseFloat(raw);
44 if (!Number.isFinite(n) || n <= 0) return 1;
45 return Math.min(4, Math.max(0.1, n));
46}
47
48function readLayout() {
49 try { return JSON.parse(localStorage.getItem(LAYOUT_KEY) || '{}'); }

Callers 1

createCardGhostFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected