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

Function setEdgeMotionPreference

graph-ui/src/graph/edge-motion.ts:11–15  ·  view source on GitHub ↗
(enabled: boolean)

Source from the content-addressed store, hash-verified

9 try { const value = window.localStorage.getItem(KEY); return value === null ? fallback : value !== 'off'; } catch { return fallback; }
10}
11export function setEdgeMotionPreference(enabled: boolean): void {
12 fallback = enabled;
13 try { window.localStorage.setItem(KEY, enabled ? 'on' : 'off'); sessionPreference = undefined; } catch { sessionPreference = enabled; }
14 window.dispatchEvent(new Event(CHANGE));
15}
16const reducedMotion = () => typeof window.matchMedia === 'function' && window.matchMedia('(prefers-reduced-motion: reduce)').matches;
17const subscribers = new Set<() => void>();
18let detach: (() => void) | undefined;

Callers 1

Calls 1

setItemMethod · 0.65

Tested by

no test coverage detected