(fields?: Partial<TableNode>)
| 79 | } |
| 80 | |
| 81 | clone(fields?: Partial<TableNode>) { |
| 82 | const nd = new TableNode(this.type); |
| 83 | Object.assign(nd, this); |
| 84 | nd.borderFlags = { ...this.borderFlags }; |
| 85 | nd.classNames = [...this.classNames]; |
| 86 | Object.assign(nd, fields); |
| 87 | return nd; |
| 88 | } |
| 89 | |
| 90 | // Sets the text content of the node and calculates its initial width based on the text length. |
| 91 | setText(t: string) { |