(location: number[])
| 876 | } |
| 877 | |
| 878 | isViewVisible(location: number[]): boolean { |
| 879 | const [rest, index] = tail(location); |
| 880 | const [, parent] = this.getNode(rest); |
| 881 | |
| 882 | if (!(parent instanceof BranchNode)) { |
| 883 | throw new Error('Invalid from location'); |
| 884 | } |
| 885 | |
| 886 | return parent.isChildVisible(index); |
| 887 | } |
| 888 | |
| 889 | setViewVisible(location: number[], visible: boolean): void { |
| 890 | if (this.hasMaximizedView()) { |