def bounds.safe

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

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

2566def bounds.safe(+box: Bounds) -> Bounds:
2567  U.choose(Bounds, bounds.finite(box), box, Bounds{F32.neg(1.0e30), F32.neg(1.0e30), 1.0e30, 1.0e30})

Uses (4)

Used by (1)