Interface: MobjectSerializer<T>
Defined in: src/serialization/types.ts:76
A pair of functions that convert between a concrete mobject and its props.
serialize returns only the type-specific, constructor-relevant props. The
transform, style, and children are captured generically by the framework, so
a serializer never repeats them.
Type Parameters
T
Properties
deserialize()
deserialize: (
props) =>T
Defined in: src/serialization/types.ts:78
Parameters
props
Record<string, unknown>
Returns
T
serialize()
serialize: (
mobject) =>Record<string,unknown>
Defined in: src/serialization/types.ts:77
Parameters
mobject
T
Returns
Record<string, unknown>