It’s that layout algorithm where you ask all of your subviews, “How big would you want to be if you had [this much space]?” then tell them, “Okay, I’m giving you [this much space], lay out your subviews.”
I don’t know the name for it! But it meant the table was easy: it just takes max() of all the heights and widths for the cells in every row and column.
I draw the wires in a second pass using the world coordinates of the THREE.Object3Ds post-layout.