(basis = 100, vertical: boolean | undefined)
| 101 | } |
| 102 | |
| 103 | insert(basis = 100, vertical: boolean | undefined) { |
| 104 | if (vertical === undefined) { |
| 105 | vertical = !this.vertical; |
| 106 | } |
| 107 | |
| 108 | if (this.children.length === 0) { |
| 109 | this.children.splice(0, 0, new Portion(basis, vertical)); |
| 110 | } |
| 111 | |
| 112 | this.children.splice(0, 0, new Portion(basis, vertical)); |
| 113 | |
| 114 | this.updateBorders(); |
| 115 | } |
| 116 | |
| 117 | insertVertical(basis = 100) { |
| 118 | this.insert(basis, true); |
no test coverage detected