(type: TableNodeType)
| 59 | y: number; |
| 60 | |
| 61 | constructor(type: TableNodeType) { |
| 62 | this.type = type; |
| 63 | this.id = ""; |
| 64 | this.row = 0; |
| 65 | this.span = isTableType(type) ? 0 : 1; // dummyTable span is calculated later |
| 66 | this.width = 0; |
| 67 | this.text = ""; |
| 68 | this.level = 0; |
| 69 | this.x = 0; |
| 70 | this.y = 0; |
| 71 | this.borderFlags = { |
| 72 | left: false, |
| 73 | right: false, |
| 74 | top: false, |
| 75 | bottom: false, |
| 76 | }; |
| 77 | this.classNames = []; |
| 78 | this.heads = []; |
| 79 | } |
| 80 | |
| 81 | clone(fields?: Partial<TableNode>) { |
| 82 | const nd = new TableNode(this.type); |
nothing calls this directly
no test coverage detected