* Expands the node size to fit its content.
()
| 1449 | * Expands the node size to fit its content. |
| 1450 | */ |
| 1451 | expandToFitContent(): void { |
| 1452 | const newSize = this.computeSize() |
| 1453 | this.setSize([ |
| 1454 | Math.max(this.size[0], newSize[0]), |
| 1455 | Math.max(this.size[1], newSize[1]), |
| 1456 | ]) |
| 1457 | } |
| 1458 | |
| 1459 | /** |
| 1460 | * add a new property to this node |
no test coverage detected