Skip to main content

Function: serializeMobject()

serializeMobject(mob): MobjectState

Defined in: core/StateManager.ts:96

Capture a JSON-serializable snapshot of a mobject and its hierarchy. Non-destructive: does not modify the mobject in any way.

Parameters

mob

Mobject

The mobject to serialize

Returns

MobjectState

A deep, JSON-safe MobjectState