def node_bounds(*nodes):
    """Get the min and max for the x- and y-coordinates for an iterable of `daft.Node`s."""
    xs = list(n.x for n in nodes)
    ys = list(n.y for n in nodes)
    return (min(xs), max(xs)), (min(ys), max(ys))