(node: Node<T>, x: number, y: number, parentKey: Key | null)
| 464 | } |
| 465 | |
| 466 | protected buildChild(node: Node<T>, x: number, y: number, parentKey: Key | null): LayoutNode { |
| 467 | if (this.isValid(node, this.orientation === 'horizontal' ? x : y)) { |
| 468 | return this.layoutNodes.get(node.key)!; |
| 469 | } |
| 470 | |
| 471 | let layoutNode = this.buildNode(node, x, y); |
| 472 | |
| 473 | layoutNode.layoutInfo.parentKey = parentKey ?? null; |
| 474 | layoutNode.layoutInfo.allowOverflow = true; |
| 475 | this.layoutNodes.set(node.key, layoutNode); |
| 476 | return layoutNode; |
| 477 | } |
| 478 | |
| 479 | protected buildNode(node: Node<T>, x: number, y: number): LayoutNode { |
| 480 | switch (node.type) { |
no test coverage detected