(node: Node<T>, x: number, y: number, parentKey: Key | null)
| 657 | } |
| 658 | |
| 659 | protected buildChild(node: Node<T>, x: number, y: number, parentKey: Key | null): LayoutNode { |
| 660 | if (this.isValid(node, this.orientation === 'horizontal' ? x : y)) { |
| 661 | return this.layoutNodes.get(node.key)!; |
| 662 | } |
| 663 | |
| 664 | let layoutNode = this.buildNode(node, x, y); |
| 665 | |
| 666 | layoutNode.layoutInfo.parentKey = parentKey ?? null; |
| 667 | layoutNode.layoutInfo.allowOverflow = true; |
| 668 | this.layoutNodes.set(node.key, layoutNode); |
| 669 | return layoutNode; |
| 670 | } |
| 671 | |
| 672 | protected buildNode(node: Node<T>, x: number, y: number): LayoutNode { |
| 673 | switch (node.type) { |
no test coverage detected