(nd: TableNode)
| 52 | // The parent node may be wider than the sum of its child nodes, |
| 53 | // so the width difference needs to be allocated to the rightmost child node. |
| 54 | const adjustWidth = (nd: TableNode) => { |
| 55 | if (nd.parent && nd.borderFlags["right"]) { |
| 56 | nd.width = nd.parent.x + nd.parent.width - x; |
| 57 | } |
| 58 | nd.x = x; |
| 59 | }; |
| 60 | |
| 61 | const accWidth = (w: number) => { |
| 62 | x += w; |