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

Function copyPrefToNewState

docs/app/js/sanddance-app.js:19395–19400  ·  view source on GitHub ↗
(prefs, chart, role, columnName)

Source from the content-addressed store, hash-verified

19393 partialInsight.signalValues[signalName] = signalValue;
19394}
19395function copyPrefToNewState(prefs, chart, role, columnName) {
19396 const specTypePrefs = (0, _sanddanceReact.SandDance).VegaDeckGl.util.deepMerge({}, prefs["*"], prefs[chart]);
19397 const rolePrefs = (0, _sanddanceReact.SandDance).VegaDeckGl.util.deepMerge({}, specTypePrefs["*"], specTypePrefs[role]);
19398 const partialInsight = (0, _sanddanceReact.SandDance).VegaDeckGl.util.deepMerge({}, rolePrefs["*"], rolePrefs[columnName]);
19399 return partialInsight;
19400}
19401function savePref(prefs, chart, role, column, partialInsight) {
19402 const SpecTypePrefs = prefs[chart] || {};
19403 prefs[chart] = SpecTypePrefs;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected