Skip to main content

Interface: MobjectOptions

Defined in: src/core/MobjectTypes.ts:39

Options accepted by the base Mobject constructor.

userId is a user-defined string identifier, separate from the internal Mobject.id uuid. Use it to look a mobject up later with Scene.getMobject(id) without holding the original JS reference.

Properties​

userId?​

optional userId: string

Defined in: src/core/MobjectTypes.ts:45

Optional user-defined string identifier for lookup via Scene.getMobject(). Distinct from the internal id uuid. Not required to be unique; the lookup returns the first match.