Pilates
Preparing search index...
@pilates/diff
diff
Function diff
diff
(
prev
:
Frame
|
null
,
next
:
Frame
)
:
CellChange
[]
Compute the minimal set of cell-level updates needed to transform
prev
into
next
.
If
prev
is
null
or its dimensions differ from
next
's, every visible cell of
next
is emitted (a full repaint).
Otherwise, only cells whose grapheme, fg, bg, width, or attribute bitmask changed are emitted.
Continuation slots (width 0) are never emitted directly — they are re-painted as a side-effect of writing the leading wide grapheme.
Parameters
prev
:
Frame
|
null
next
:
Frame
Returns
CellChange
[]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Pilates
Loading...
Compute the minimal set of cell-level updates needed to transform
previntonext.previsnullor its dimensions differ fromnext's, every visible cell ofnextis emitted (a full repaint).