refactor: clean architecture and remove unused code

This commit is contained in:
Tom Boullay
2026-04-30 13:33:28 +02:00
parent b1187b68ae
commit cfb1eaf39a
30 changed files with 303 additions and 696 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Vector3Tuple } from "@/types/three/three";
import type { Vector3Tuple } from "../three/three";
export interface MapNode {
name: string;
+4 -4
View File
@@ -14,7 +14,7 @@ export interface HandTrackingHand {
score: number;
}
export type HandTrackingUsageStatus = "inactive" | "available" | "active";
type HandTrackingUsageStatus = "inactive" | "available" | "active";
export type HandTrackingStatus =
| "idle"
@@ -42,19 +42,19 @@ export interface HandTrackingFrameMessage {
image: string;
}
export interface HandTrackingHandsMessage {
interface HandTrackingHandsMessage {
type: "hands";
timestamp: number;
hands: HandTrackingHand[];
}
export interface HandTrackingStatusMessage {
interface HandTrackingStatusMessage {
type: "status";
timestamp: number;
status: string;
}
export interface HandTrackingErrorMessage {
interface HandTrackingErrorMessage {
type: "error";
timestamp: number;
hands: HandTrackingHand[];
-2
View File
@@ -1,5 +1,3 @@
export type InteractableKind = "grab" | "trigger";
interface TriggerInteractableHandle {
kind: "trigger";
label: string;
+8
View File
@@ -2,6 +2,14 @@ import type { Octree } from "three/addons/math/Octree.js";
export type Vector3Tuple = [number, number, number];
export type Vector3Scale = Vector3Tuple | number;
export interface ModelTransformProps {
position?: Vector3Tuple;
rotation?: Vector3Tuple;
scale?: Vector3Scale;
}
export type ColliderShape = "cuboid" | "ball" | "hull";
export type OctreeReadyHandler = (octree: Octree) => void;