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

Function parseByIndex

apps/sim/lib/pptx-renderer/renderer/group-renderer.ts:79–84  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

77 // Cycle diagram: 3 pie sectors + 3 circular arrows → one circle (3 equal 120° sectors) centered in the diagram.
78 const parsedChildren = new Map<number, BaseNodeData | undefined>()
79 const parseByIndex = (index: number): BaseNodeData | undefined => {
80 if (!parsedChildren.has(index)) {
81 parsedChildren.set(index, parseGroupChild(node.children[index], ctx))
82 }
83 return parsedChildren.get(index)
84 }
85
86 let pieCommon: { x: number; y: number; w: number; h: number } | null = null
87 if (node.children.length === 6 && chExt.w > 0 && chExt.h > 0) {

Callers 1

renderGroupFunction · 0.85

Calls 3

parseGroupChildFunction · 0.85
setMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected