def bounds.merge

gralha-svg-render@0.1.0.1 · svg.bend:1830

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U

1830def bounds.merge(a: Bounds, b: Bounds) -> Bounds:
1831  Bounds{x0, y0, x1, y1} = a
1832  Bounds{u0, v0, u1, v1} = b
1833  Bounds{U.min(x0, u0), U.min(y0, v0), U.max(x1, u1), U.max(y1, v1)}

Uses (3)

Used by (6)