Skip to main content

Function: deserializeMobject()

deserializeMobject(mob, state): void

Defined in: core/StateManager.ts:134

Restore a mobject's properties from a previously captured state. Applies position, rotation, scale, style, and VMobject points. Does NOT add/remove children -- it restores properties of existing children matched by array index (same order as when serialized).

Parameters

mob

Mobject

The mobject to restore

state

MobjectState

The state to apply

Returns

void