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

Function edgeMotionPreference

graph-ui/src/graph/edge-motion.ts:7–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5let fallback = true;
6let sessionPreference: boolean | undefined;
7export function edgeMotionPreference(): boolean {
8 if (sessionPreference !== undefined) return sessionPreference;
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; }

Callers 1

motionSnapshotFunction · 0.85

Calls 1

getItemMethod · 0.65

Tested by

no test coverage detected