def filter.convolution.bounds

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

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

4963# Resource domains need exact edges; geometric coverage bounds include a tolerance.
4964def filter.convolution.bounds(box: Bounds, +units: Matrix) -> Bounds:
4965  Bounds{x0, y0, x1, y1} = box
4966  +left = x0
4967  +top = y0
4968  +right = x1
4969  +bottom = y1
4970  bounds.point(bounds.point(bounds.point(bounds.point(bounds.empty(), matrix.point(units, Point{left, top})), matrix.point(units, Point{right, top})), matrix.point(units, Point{left, bottom})), matrix.point(units, Point{right, bottom}))

Uses (6)

Used by (1)