API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classSerializationRegistry
Bidirectional name ↔ constructor ↔ NodeSerializer registry backing the scene serializer. Serialize resolves a node to its serializer by walking the constructor's prototype chain (so a subclass without its own registration inherits the nearest registered base serializer - nearest across this registry *and* its fallback, never the nearest one this registry happens to know); deserialize resolves by type name. Core registers the built-in node types; extensions contribute their own via the Extension.serializers binding.
import { SerializationRegistry } from '@codexo/exojs'Bidirectional name ↔ constructor ↔ NodeSerializer registry backing the scene serializer.
Serialize resolves a node to its serializer by walking the constructor's prototype chain (so a subclass without its own registration inherits the nearest registered base serializer - nearest across this registry *and* its fallback, never the nearest one this registry happens to know); deserialize resolves by type name. Core registers the built-in node types; extensions contribute their own via the Extension.serializers binding.
new(_fallback: SerializationRegistry | null): SerializationRegistryhasType(typeName: string): booleanregister(typeName: string, ctor: SceneNodeConstructorAny abstract or concrete SceneNode constructor usable as a serialization key.<T>, serializer: NodeSerializerBidirectional serializer for one scene-graph node type. Registered against a type name + constructor in a SerializationRegistry. The framework owns the common…<T>): void