Skip to main content

Module transform_diff

Module transform_diff 

Source
Expand description

TransformDiff (SPEC §7): turns an edit script between two keyed sequences of parts into choreographed animation, so unchanged parts slide, moved parts arc and only real changes fade or morph.

Structs§

DiffStyle
Choreography of a TransformDiff.
Group
Mobjects in the scene grouped into keyed parts, e.g. a text’s glyphs grouped into tokens. Derefs to the ids, so it can be passed wherever &[MobjectId] is expected.
Layout
Shapes grouped into keyed parts and lines, not yet in a scene: what a Group is added from or transforms into. Fields are as in Group.
TransformDiff
Animates a Group into a new arrangement planned by diffing part keys; made by Group::transform_diff.

Enums§

Phasing
When each kind of op animates within the clip.
ReplaceStyle
How replaced parts change.