@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / components / SelectionTransformState
Class: SelectionTransformState
Defined in: components/SelectionTransformState.ts:16
Singleton-style component (attached once to a system entity) that mirrors the editor's current transform-gizmo state into the ECS world. Persisted in snapshots so undo/redo restores the exact gizmo configuration.
Extends
Constructors
Constructor
ts
new SelectionTransformState(
transform?,
space?,
selectedEntityId?): SelectionTransformState;Defined in: components/SelectionTransformState.ts:24
Parameters
| Parameter | Type | Default value |
|---|---|---|
transform | TransformModeValue | "translate" |
space | TransformSpaceValue | "world" |
selectedEntityId | number | null | null |
Returns
SelectionTransformState
Overrides
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
transform | TransformModeValue | Active gizmo mode (translate, rotate, or scale). | components/SelectionTransformState.ts:18 |
space | TransformSpaceValue | Reference frame for the gizmo (world or local). | components/SelectionTransformState.ts:20 |
selectedEntityId | number | null | Currently selected entity id, or null if nothing is selected. | components/SelectionTransformState.ts:22 |

