MCPcopy Create free account
hub / github.com/microsoft/SandDance / savePref

Function savePref

packages/sanddance-explorer/src/partialInsight.ts:66–75  ·  view source on GitHub ↗
(prefs: Prefs, chart: SandDance.specs.Chart, role: string, column: string, partialInsight: Partial<SandDance.specs.Insight>)

Source from the content-addressed store, hash-verified

64}
65
66export function savePref(prefs: Prefs, chart: SandDance.specs.Chart, role: string, column: string, partialInsight: Partial<SandDance.specs.Insight>) {
67 const SpecTypePrefs = prefs[chart] || {};
68 prefs[chart] = SpecTypePrefs;
69
70 const rolePrefs = SpecTypePrefs[role] || {};
71 SpecTypePrefs[role] = rolePrefs;
72
73 rolePrefs[column] = SandDance.VegaDeckGl.util.deepMerge({}, rolePrefs[column], partialInsight);
74 return rolePrefs[column];
75}

Callers 3

_changeInsightMethod · 0.90
renderMethod · 0.90
saveSignalValuePrefFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected