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

Function parseRow

apps/sim/lib/pptx-renderer/model/nodes/table-node.ts:63–72  ·  view source on GitHub ↗

* Parse a table row (`a:tr`).

(trNode: SafeXmlNode)

Source from the content-addressed store, hash-verified

61 * Parse a table row (`a:tr`).
62 */
63function parseRow(trNode: SafeXmlNode): TableRow {
64 const height = emuToPx(trNode.numAttr('h') ?? 0)
65 const cells: TableCell[] = []
66
67 for (const tcNode of trNode.children('tc')) {
68 cells.push(parseCell(tcNode))
69 }
70
71 return { height, cells }
72}
73
74/**
75 * Locate the `a:tbl` element inside a graphicFrame.

Callers 1

parseTableNodeFunction · 0.85

Calls 5

emuToPxFunction · 0.90
parseCellFunction · 0.85
numAttrMethod · 0.80
childrenMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected