MCPcopy Index your code
hub / github.com/simstudioai/sim / parseAxes

Function parseAxes

apps/sim/lib/pptx-renderer/renderer/chart-renderer.ts:1187–1198  ·  view source on GitHub ↗

Parse value axis and category axis from plotArea. Also checks dateAx as category fallback.

(
  plotArea: SafeXmlNode,
  ctx: RenderContext
)

Source from the content-addressed store, hash-verified

1185
1186/** Parse value axis and category axis from plotArea. Also checks dateAx as category fallback. */
1187function parseAxes(
1188 plotArea: SafeXmlNode,
1189 ctx: RenderContext
1190): { valueAxis: AxisInfo; categoryAxis: AxisInfo } {
1191 const valAx = plotArea.child('valAx')
1192 const catAx = plotArea.child('catAx')
1193 const dateAx = plotArea.child('dateAx')
1194 return {
1195 valueAxis: parseAxisNode(valAx, ctx),
1196 categoryAxis: catAx.exists() ? parseAxisNode(catAx, ctx) : parseAxisNode(dateAx, ctx),
1197 }
1198}
1199
1200/**
1201 * Parse scatter/bubble axes: two valAx nodes differentiated by axPos.

Callers 4

buildBarChartOptionFunction · 0.85
buildLineChartOptionFunction · 0.85
buildRadarChartOptionFunction · 0.85
buildStockChartOptionFunction · 0.85

Calls 3

parseAxisNodeFunction · 0.85
childMethod · 0.80
existsMethod · 0.80

Tested by

no test coverage detected