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

Function useEdgeMotion

graph-ui/src/graph/edge-motion.ts:34–36  ·  view source on GitHub ↗
(active = true)

Source from the content-addressed store, hash-verified

32}
33const motionSnapshot = () => edgeMotionPreference() && !reducedMotion() && !document.hidden;
34export function useEdgeMotion(active = true): boolean {
35 return useSyncExternalStore(subscribe, motionSnapshot, () => false) && active;
36}
37export function useEdgeMotionPreference(): { enabled: boolean; reduced: boolean; setEnabled: typeof setEdgeMotionPreference } {
38 const enabled = useSyncExternalStore(subscribe, edgeMotionPreference, () => false);
39 const reduced = useSyncExternalStore(subscribe, reducedMotion, () => true);

Callers 3

EdgeLinesFunction · 0.90
ProbeFunction · 0.90
EdgePulseLayerFunction · 0.90

Calls

no outgoing calls

Tested by 1

ProbeFunction · 0.72