(prefs: Prefs, chart: SandDance.specs.Chart, role: string, column: string, partialInsight: Partial<SandDance.specs.Insight>)
| 64 | } |
| 65 | |
| 66 | export 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 | } |
no outgoing calls
no test coverage detected