Function: saveMobjectState()
saveMobjectState(
mob):MobjectState
Defined in: core/StateManager.ts:416
Save the current state of a mobject using JSON-serializable snapshots. Stores:
- A JSON-serializable MobjectState on
mob.__savedMobjectState - A deep copy on
mob.savedState(for Restore animation compatibility)
This is the functional counterpart to mob.saveState(). Both produce
identical results; use whichever API style you prefer.
Parameters
mob
The mobject to save
Returns
The captured MobjectState