The rows a scroll's strip draws (spec/10 §4.9, spec/12 §5.2), the table half of
visualize's Visualize.Backend.CanvasIncremental.filter_to_regions/3: Macaw.Draw reads
columns, never a table (macaw_draw spec/06 §1.1), so the Frame reads a layer's two pixel columns,
asks Macaw.Draw.Render.Incremental.filter_to_regions/2 which rows lie in the strip,
and keeps those rows of its table by index, from the packed columns, never row by row
(spec/12 §3). A tick therefore carries its strip, not its window.
Summary
Functions
The rows of table whose pixel position, the columns {x, y} (already scaled), lies
inside one of regions, bounds inclusive, with neighbors: (0 by default) rows kept
either side of each run so a line reaches into the strip from outside it.
Functions
@spec filter_to_regions( Macaw.Data.Table.t(), [Macaw.Draw.Render.Incremental.region()], {String.t(), String.t()}, keyword() ) :: Macaw.Data.Table.t() | {:error, [Macaw.Base.Fault.t()]}
The rows of table whose pixel position, the columns {x, y} (already scaled), lies
inside one of regions, bounds inclusive, with neighbors: (0 by default) rows kept
either side of each run so a line reaches into the strip from outside it.
iex> table = Macaw.Data.Table.new!([{"px", :number, [10, 790, 795]}, {"py", :number, [20, 300, 700]}])
iex> kept = Macaw.Frame.Render.Strip.filter_to_regions(table, [{780.0, 0.0, 20.0, 600.0}], {"px", "py"})
iex> Macaw.Data.Table.column(kept, "px")
[790]