(path: string)
| 26 | |
| 27 | export const normalize = ({ expression, ..._settings }: PlotInput, _path: string, data: Data) => { |
| 28 | const get = (path: string) => { |
| 29 | if ('value' in data[path]) return data[path].value |
| 30 | return undefined // TODO should throw |
| 31 | } |
| 32 | const value = parseExpression(expression, get) as (v: number) => any |
| 33 | const settings = { ...defaultSettings, ..._settings } |
| 34 | return { value, settings: settings as InternalPlotSettings } |
no outgoing calls
no test coverage detected