fix: archi

This commit is contained in:
Tom Boullay
2026-04-27 10:53:50 +02:00
parent 089763713a
commit 0e9d711be5
16 changed files with 242 additions and 192 deletions
+12 -2
View File
@@ -1,12 +1,22 @@
export type InteractableKind = "grab" | "trigger";
export interface InteractableHandle {
kind: InteractableKind;
export interface TriggerInteractableHandle {
kind: "trigger";
label: string;
onPress: () => void;
}
export interface GrabInteractableHandle {
kind: "grab";
label: string;
onPress: () => void;
onRelease: () => void;
}
export type InteractableHandle =
| TriggerInteractableHandle
| GrabInteractableHandle;
export interface InteractionSnapshot {
focused: InteractableHandle | null;
holding: boolean;