* Parse a table row (`a:tr`).
(trNode: SafeXmlNode)
| 61 | * Parse a table row (`a:tr`). |
| 62 | */ |
| 63 | function 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. |