Runtime API
Scene graph, nodes, components, assets, input, signals and camera APIs used by games and editor previews.
Interfaces
| Interface | Description |
|---|---|
| TransformProperties | - |
| SpriteProperties | - |
| VectorProperties | - |
| TextProperties | - |
| ContainerProperties | - |
| Locator2DProperties | - |
| Camera2DProperties | - |
| HitArea2DProperties | - |
| PlayAudioProperties | - |
| ComponentPropertyPatch | - |
| ComponentCatalogSlot | Render slot declared by catalog.render.slots. |
| ComponentCatalogComponent | Engine component definition stored in the catalog. |
| ComponentCatalog | Component/render catalog passed to loadSceneInstance. |
| ResolvedComponentPatch | Normalized property patch handed to a component renderer's apply. |
| ComponentCore | Read-only component projection shared by editor snapshots (docs/177 §6). |
| Node | Public SDK node facade handed to module handlers/renderers (docs/177 §3.2). |
| ComponentHandle | Public SDK component handle handed to module handlers/renderers. |
| Scene | Minimal public SDK scene facade (see @suity/runtime/sdk for the full type). |
| ComponentContext | Unified component context handed to module handlers (docs/177 §4.1). |
| EditorNodeSnapshot | Read-only node projection used by editor snapshots (docs/177 §6). |
| EditorComponentSnapshot | Read-only component snapshot used by editor node snapshots. |
| EditorAssetInfo | Asset descriptor returned by the editor asset facade. |
| EditorAssetPickOptions | - |
| EditorAssetApi | Editor asset facade: runtime resolve/load plus workspace operations. |
| EditorTransactionHandle | - |
| EditorTransactionApi | Editor write gateway; document writes must go through this API. |
| EditorUndoApi | - |
| EditorPreviewSessionOptions | - |
| EditorPreviewApi | - |
| EditorUiHost | - |
| EditorContext | Unified editor extension context (docs/177 §6). node / component / scene use the same SDK types as runtime; tx / undo / preview / ui and selection are editor-only extensions. |
| EditorNodeView | Editor-side view handed to module renderers. |
| EditorRenderServices | Adapter-owned helpers exposed to editor renderers. |
| EditorRenderContext | Editor module renderer context (docs/177 S5). |
| EditorRenderer | Editor module renderer implementation. |
| ModuleComponentHandler | Public-SDK module handler; node / component are never runtime classes. |
| ComponentHandlerContext | Context handed to legacy (pre-S4) runtime component handlers. |
| ComponentHandler | Legacy lifecycle handler still accepted by SceneLoadContext.handlers. |
| RendererServices | Engine-provided renderer services (docs/177 §7), decoupled from node handles. |
| ModuleRenderContext | Per-render-owner context handed to a registered renderer. |
| ComponentRenderer | Renderer implementation for one component type. |
| EngineSystem | - |
| ComponentApiContext | Context passed to a module component API factory (docs/125 S2 / 177 S7). |
| EngineModule | A module runtime entry point activated by loadSceneInstance. |
| EngineModuleHost | - |
| ModuleHostOptions | - |
| ModuleRegistry | - |
| CustomPropertiesProperties | Stored shape of the suity.customProperties component properties. |
| ComponentPropertyTypes | Component type -> strongly typed property fields. |
| SvgVectorDisplayOptions | Inputs for createVectorDisplay. Most app code should use suity.vector nodes instead of calling this directly. |
| SvgVectorDisplayResult | Result of createVectorDisplay. |
| SuitySceneComponent | Component DTO as stored in scene/prefab documents. |
| SuitySceneNode | Node DTO as stored in scene/prefab documents. |
| SuitySceneDocument | Scene or Prefab document (same core format, different kind). |
| ResolvedAsset | Resolved asset reference returned by the SuityAssets SDK. |
| AssetResolver | Asset resolver abstraction used by runtime loading and Prefab expansion. |
| InputActionDef | - |
| KeyBinding | - |
| InputState | Scene input state (docs/109 §5). Controllers read actions, never key codes. |
| SceneLoadContext | Options for loadSceneInstance. |
| NodeCullArea | Node-local culling rectangle in the node view's own coordinates (docs/161 §3.1). The container's world transform applies translation, rotation and scale; child visuals are culled with the node as one AABB. |
| InstantiatePrefabOptions | Options for SceneInstance.instantiatePrefab. |
| RuntimeComponentInput | Component input accepted by SceneInstance.addNode. |
| AddNodeOptions | Options for SceneInstance.addNode. |
| MoveNodeOptions | Options for reparenting/reordering runtime nodes. |
| TagsQuery | - |
| NodeQuery | - |
| RuntimeNodeSnapshot | One node in a runtime snapshot. |
| RuntimeSceneSnapshot | Read-only runtime-tree snapshot; never writes back to the scene document. |
| PrefabInstanceInfo | Prefab instance metadata exposed on a scene node handle. |
| PixiNodeView | Per-node Pixi view. |
| SceneComponentHandle | App-facing component handle with its owning node. |
| CustomPropertySchemas | Project/engine schema augmentation point for custom properties. |
| CustomPropertiesComponentHandle | suity.customProperties handle. |
| NodeSignal | One dispatched node signal passed to signals.on / signals.onAny. |
| SignalWatchOptions | Options accepted by signals.watch*. |
| SetResult | Result of signals.set(...). |
| StateDescriptor | Type metadata returned by signals.describe(...) (docs/130). |
| SignalSnapshot | Ordered provider entries plus a flat first-registration-wins view. |
| SignalProvider | State provider contract accepted by NodeSignals.registerSignalProvider. |
| SignalFieldOptions | Full per-field options for NodeSignals.provideSignal(signalName, fields). Provide get for a derived value, set for writable state, or value for a writable cell initialized to value. Omit both accessors and set writable: false for a read-only cell. |
| NodeSignals | Node-local state-provider facade exposed to scripts/apps (docs/130 S5). registerSignalProvider/provideSignal let scripts publish their own state; the script handler scopes and disposes registrations automatically for a script's node. |
| ScriptClassLike | Structural script class accepted by SceneNodeHandle.addScript. A ScriptComponent subclass satisfies it through name and the optional static runtimeKey / displayName. |
| SceneNodeHandle | - |
| CustomPropertyEntry | One entry in suity.customProperties.values. |
| CustomPropertyReferenceAccepts | Constraints that narrow which node/component/asset a reference may target. |
| CustomProperties | Stored shape of the suity.customProperties component properties. |
| Locator2D | Stored shape of the suity.locator2d component properties. |
| HitArea2D | Stored shape of the suity.hitArea2d component properties. |
| HitAreaLocalRect | Local-space rectangle read from suity.hitArea2d. |
| HitAreaWorldRect | World-space hit-area rectangle, including rotation/scale from the node view. |
| AnimationEventPayload | Payload dispatched when playback crosses a sprite animation event frame. |
| SceneIssue | Structured runtime issue. Also replayed through assetMissing/error. |
| CameraView | Runtime view of the scene main camera, in scene-root coordinates. |
| SceneInstance | Loaded scene instance. |
| SceneLoader | Low-level loader that builds a Pixi display tree. |
| ScriptModuleLoadInput | Injected ESM loader used by unit tests and non-browser hosts. |
| ScriptHandlerOptions | - |
Type Aliases
| Type Alias | Description |
|---|---|
| ComponentPropertyPath | Path relative to a component's properties; "asset" addresses the asset field. |
| EditorSceneOp | - |
| EditorRendererFactory | - |
| ComponentRendererFactory | - |
| RuntimeAssetLoader | - |
| ComponentApiFactory | Builds the public runtime methods attached to one component handle. |
| PropsFor | - |
| SvgPartsHidden | Named SVG parts to hide. |
| InputActionType | - |
| TypedComponentHandle | Component handle plus direct field accessors generated from the catalog. |
| CustomPropertySchemaDefault | - |
| ComponentHandleFor | - |
| SignalValue | JSON-safe value accepted by node state providers (docs/130). |
| SignalFieldType | - |
| SignalFieldSpec | One field in provideSignal(...): - a JSON value → writable cell initialized to it (type inferred); - () => value → read-only getter (type sampled once); - options object → explicit control. |
| SignalFields | Map of field name → spec accepted by provideSignal(...). |
| CustomPropertyType | Value types supported by suity.customProperties. |
| CustomPropertyReference | Stored value for type: "reference". |
| LocatorShape | Locator marker shape. |
| SceneEvent | Scene events. |
| SceneIssueSeverity | - |
| ScriptModuleLoader | - |
Variables
| Variable | Description |
|---|---|
| ENGINE_ID | Engine id used by engine.json, scene documents and the asset manifest. |
| ENGINE_PROFILE | Engine profile used by scene documents (engineProfile). |
| ENGINE_VERSION | Semantic engine version, also exposed in engine.json and the manifest. |
| TRANSFORM_TYPE | Transform component type. Every spatial node should have exactly one. |
| SPRITE_TYPE | Texture-bound sprite component type. |
| VECTOR_TYPE | SVG vector component type (vector Graphics + raster fallback). |
| TEXT_TYPE | Text box component type (suity.text). |
| CONTAINER_TYPE | Container/group component type (alpha, zIndex). |
| CUSTOM_PROPERTIES_TYPE | User-defined typed values and references component type. |
| LOCATOR2D_TYPE | Point/rectangle/circle locator component type (editor-only preview). |
| HIT_AREA2D_TYPE | Local-space rectangle hit-area component type (data only). |
| CAMERA2D_TYPE | Orthographic 2D camera component type. |
| PLAY_AUDIO_TYPE | Audio playback component type routed through the project mixer. |
| BUTTON_TYPE | Button interaction component type paired with a render component. |
| IMAGE_TYPE | Sized image component type with explicit width/height and a fit mode. |
| TRANSFORM_COMPONENT | Minimal transform descriptor shared by runtime and editor. |
| COMPONENTS | Full Pixi component catalog, generated from src/components.js. |
| PIXI_CATALOG | Effective catalog used when no catalog is supplied. |
| MODULE_ABI_VERSION | Module ABI version implemented by this runtime. |
| PIXI_BUILTIN_MODULE | Built-in module contributing sprite/vector renderers. |
| assets | Asset helpers backed by the global SuityAssets SDK (suity-assets.js). |
| SCRIPT_COMPONENT_TYPE | Core scene component type that mounts a script asset. |
| SIGNAL_REFRESH_KEY | Global reserved event key ("$refresh", docs/176). Not a signal name and not a provider field: dispatched on a signal to say its source data is updated; watch* re-reads the provider field instead of using the payload value. |
Functions
| Function | Description |
|---|---|
| createModuleRegistry | - |
| createModuleHost | - |
| createVectorDisplay | Renders SVG text into a Pixi container (vector + per-element raster fallback). |
| readCustomProperties | Returns a flattened { name: value } map for the nearest suity.customProperties component. type, accepts and other entry metadata are intentionally omitted; use handle.component(CUSTOM_PROPERTIES_TYPE) for the raw structure or the reference helpers when they become available. |
| readCustomReference | Reads one structured reference from the node's custom-property component. |
| resolveCustomReference | Resolves a node/component reference inside the owner's document scope. |
| resolveCustomAsset | Resolves an asset reference using the owner's document aliases. Returns null for non-asset references or unresolved assets. |
| getLocatorWorldPoint | Returns the locator's world position (the node origin transformed by the node's current view), or null when the node has no locator. |
| hitTestNode | Tests a global point against the node's local-space suity.hitArea2d rectangle. Returns false when the node has no hit area or its size is non-positive. |
| getHitAreaLocalRect | Reads the node's suity.hitArea2d rectangle in local space. x / y are the rectangle center offsets from the node origin. Returns null when the node has no hit area or its size is non-positive. |
| getHitAreaWorldRect | Reads the node's suity.hitArea2d rectangle in world space, including the node view's current translation, rotation and scale. Corners are ordered top-left, top-right, bottom-right, bottom-left. Returns null when the node has no hit area or its size is non-positive. |
| createSceneLoader | Creates a low-level scene loader. |
| loadSceneInstance | Loads a scene and returns a queryable instance. |
| createScriptHandler | Loads a built script manifest/bundle and returns a ready-to-inject suity.script component handler (docs/140 S3). |
