MCPcopy
hub / github.com/tone-row/flowchart-fun / onChange

Function onChange

app/src/components/Tabs/ThemeTab.tsx:107–111  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

105 return data.theme.layoutName;
106 },
107 onChange(value) {
108 // reset zoom here
109 useGraphStore.setState({ autoFit: true });
110 updateThemeEditor({ layoutName: value as LayoutName });
111 },
112 options: [
113 { value: "dagre", label: "Dagre" },
114 { value: "klay", label: "Klay" },

Callers

nothing calls this directly

Calls 1

updateThemeEditorFunction · 0.90

Tested by

no test coverage detected