@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / types
types
Type Aliases
| Type Alias | Description |
|---|---|
| EntityId | Numeric identifier for an entity. Entities are pure ids — all data lives in components attached to the entity. |
| EcsEntityKind | Built-in entity kinds recognized by the ECS factory registry. Each kind maps to an object factory in core/factories/objects/* that creates the baseline component set. |
| EcsEntityEditorKind | EcsEntityKind extended with editor-only utility entities (gizmos, helpers). |
| SelectionListener | Callback invoked when the selected entity changes. null indicates a deselection. |
| TextInput | - |
| FloatInput | - |
| ColorInput | - |
| Vector2Input | - |
| Vector3Input | - |
| SliderInput | - |
| DropdownOption | - |
| DropdownInput | - |
| CheckboxInput | - |
| ToggleInput | - |
| AssetInput | - |
| ComponentInput | - |
| WorldEntityView | Lightweight, read-only view of an entity returned by World.getEntityById. Contains the entity id and its current component list at the moment of the lookup. Re-query each frame rather than caching across ticks. |
| ParentLookup | Result of a parent lookup. parent is null for entities at the root or for entities without a ParentId component. |
| Vec3 | Loose 3D vector accepted by raycast and other spatial helpers. Either a live THREE.Vector3 or a plain { x, y, z } object — both are normalized internally before use. |
| IntersectionResult | Single hit returned by World.raycast / World.raycastFrom. Pairs the standard THREE.Intersection (threeResult) with the owning entity id (when the hit traces back to a registered ECS entity). entityId is null if the hit object is not part of any tracked entity (e.g. an editor helper). |

