(theme: Theme, name: string)
| 241 | } |
| 242 | |
| 243 | export function getAxisTheme(theme: Theme, name: string) { |
| 244 | const { xAxis, yAxis, circularAxis } = theme; |
| 245 | let axisTheme; |
| 246 | |
| 247 | if (name === AxisType.X) { |
| 248 | axisTheme = xAxis; |
| 249 | } else if (Array.isArray(yAxis)) { |
| 250 | axisTheme = name === AxisType.Y ? yAxis[0] : yAxis[1]; |
| 251 | } else if (name === RadialAxisType.CIRCULAR) { |
| 252 | axisTheme = circularAxis; |
| 253 | } else { |
| 254 | axisTheme = yAxis; |
| 255 | } |
| 256 | |
| 257 | return axisTheme; |
| 258 | } |
| 259 | |
| 260 | function getRotationDegree( |
| 261 | distance: number, |
no outgoing calls
no test coverage detected