def bounds.point

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

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

561def bounds.point(+b: Bounds, +p: Point) -> Bounds:
562  Bounds{x0, y0, x1, y1} = b
563  Point{x, y} = p
564  Bounds{U.min(x0, x), U.min(y0, y), U.max(x1, x), U.max(y1, y)}

Uses (4)

Used by (6)