(seriesModel: SeriesModel, stylePath: string)
| 40 | } as const; |
| 41 | |
| 42 | function getStyleMapper(seriesModel: SeriesModel, stylePath: string) { |
| 43 | const styleMapper = seriesModel.visualStyleMapper |
| 44 | || defaultStyleMappers[stylePath as 'itemStyle' | 'lineStyle']; |
| 45 | if (!styleMapper) { |
| 46 | console.warn(`Unknown style type '${stylePath}'.`); |
| 47 | return defaultStyleMappers.itemStyle; |
| 48 | } |
| 49 | return styleMapper; |
| 50 | } |
| 51 | |
| 52 | function getDefaultColorKey(seriesModel: SeriesModel, stylePath: string): 'stroke' | 'fill' { |
| 53 | // return defaultColorKey[stylePath] || |