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

Function updateThemeEditor

app/src/lib/toTheme.ts:251–262  ·  view source on GitHub ↗
(theme: Partial<FFTheme>)

Source from the content-addressed store, hash-verified

249}
250
251export function updateThemeEditor(theme: Partial<FFTheme>) {
252 useDoc.setState((doc) => ({
253 ...doc,
254 meta: {
255 ...doc.meta,
256 themeEditor: {
257 ...getThemeEditor(doc),
258 ...theme,
259 },
260 },
261 }));
262}
263
264function isHierarchical(layoutName: string) {
265 return ["dagre", "klay", "layered", "mrtree"].includes(layoutName);

Callers 1

onChangeFunction · 0.90

Calls 1

getThemeEditorFunction · 0.85

Tested by

no test coverage detected