()
| 29 | } |
| 30 | |
| 31 | trim() { |
| 32 | // Trim invisible nodes |
| 33 | if (this.nodes.length === 1 && this.nodes[0].getNodeLayout().isInvisible()) { |
| 34 | const node = this.nodes[0] |
| 35 | if (node.childSetOrder.length === 1) { |
| 36 | const childSet = node.getChildSet(node.childSetOrder[0]) |
| 37 | this.nodes = childSet.children |
| 38 | this.nodeCategory = childSet.nodeCategory |
| 39 | } |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | isEmpty() { |
| 44 | return this.nodes.length === 0 |
no test coverage detected