Function: prepareNumericCellTween()
prepareNumericCellTween(
cells,from,end): (t) =>void
Defined in: tween/prepare.ts:51
Like prepareNumericTween, but bypasses property setters and writes directly to the backing Signal cells.
Skipping the setter avoids the mapper-lookup and _writeProp indirection on
every frame step. Only valid for numeric, mapper-free properties — the caller
is responsible for resolving the signal cells and capturing the from/end
values before calling this.
cells[i]— the signal cell for the i-th animated property.from[i]— start value for that property.end[i]— end value for that property.
The arrays are captured by the returned closure and reused each step, so the
per-frame cost is one cell.set(number) per property with no allocation.
Parameters
cells
Signal<number>[]
from
number[]
end
number[]
Returns
(t) => void