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

Function loadDisplaySettings

graph-ui/src/galaxy/density.ts:375–393  ·  view source on GitHub ↗
(store: DisplayStore, project: string)

Source from the content-addressed store, hash-verified

373 * eingestellt hat, soll die Galaxie sehen, fuer die dieses Panel gebaut ist.
374 */
375export function loadDisplaySettings(store: DisplayStore, project: string): GraphDisplaySettings {
376 if (project.length === 0) {
377 return { ...DEFAULT_GRAPH_DISPLAY };
378 }
379 let raw: string | null;
380 try {
381 raw = store.getItem(displayKey(project));
382 } catch {
383 return { ...DEFAULT_GRAPH_DISPLAY };
384 }
385 if (raw === null) {
386 return { ...DEFAULT_GRAPH_DISPLAY };
387 }
388 try {
389 return clampDisplaySettings(JSON.parse(raw));
390 } catch {
391 return { ...DEFAULT_GRAPH_DISPLAY };
392 }
393}
394
395/** Die Wahl speichern. Liefert, was jetzt gilt. */
396export function saveDisplaySettings(

Callers 2

ProjectWindowViewFunction · 0.90

Calls 3

displayKeyFunction · 0.85
clampDisplaySettingsFunction · 0.85
getItemMethod · 0.65

Tested by

no test coverage detected