def filter.window.span
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport Base
import gralha-text-scan@0.1.0.1/scan.bend as U
4745def filter.window.span(window: FilterWindow, tile: Bounds) -> U32:
4746 FilterWindow{region, inverse, exact} = window
4747 +local = bounds.transform(tile, inverse)
4748 +box = region
4749 U.choose(U32, bounds.overlap(box, local), filter.window.contains(box, local), 0)