Optional function to get the shape for a node. Used to calculate correct port positions for shaped nodes.
NodeShape? Function(Node node)? nodeShape;