mirror of
https://github.com/storytold/gridcraft.git
synced 2026-12-01 18:26:05 -06:00
fill::trends_that_apply answers for Linear Trend and Growth Trend from one read of the source, checking each cell's number and sign without fitting a line or curve, and the right-drag menu calls it once instead of calling trend_applies for each trend. Both return false, without reading any source cell, when the source or target holds more than MAX_FILL_CELLS cells or the target does not hold the source in a corner, the same checks edit.autoFill applies. New engine tests fill a two-column source down and a two-row source across with each trend and check every value, and check that undo after a Linear Trend fill restores the targets and leaves the source as it was.