MCPcopy
hub / github.com/nhn/tui.chart / getAxisTheme

Function getAxisTheme

apps/chart/src/helpers/axes.ts:243–258  ·  view source on GitHub ↗
(theme: Theme, name: string)

Source from the content-addressed store, hash-verified

241}
242
243export 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
260function getRotationDegree(
261 distance: number,

Callers 6

renderMethod · 0.90
renderMethod · 0.90
renderMethod · 0.90
getSecondaryYAxisDataFunction · 0.90
setAxesDataFunction · 0.90
setAxesDataFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected