(seriesModel: SeriesModel, stylePath: string)
| 50 | } |
| 51 | |
| 52 | function getDefaultColorKey(seriesModel: SeriesModel, stylePath: string): 'stroke' | 'fill' { |
| 53 | // return defaultColorKey[stylePath] || |
| 54 | const colorKey = seriesModel.visualDrawType |
| 55 | || defaultColorKey[stylePath as 'itemStyle' | 'lineStyle']; |
| 56 | |
| 57 | if (!colorKey) { |
| 58 | console.warn(`Unknown style type '${stylePath}'.`); |
| 59 | return 'fill'; |
| 60 | } |
| 61 | |
| 62 | return colorKey; |
| 63 | } |
| 64 | |
| 65 | type ColorCallback = (params: CallbackDataParams) => ZRColor; |
| 66 |
no outgoing calls
no test coverage detected