refactor: clean architecture and remove unused code
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { Vector3Tuple } from "@/types/three/three";
|
||||
import type { Vector3Tuple } from "../three/three";
|
||||
|
||||
export interface MapNode {
|
||||
name: string;
|
||||
|
||||
@@ -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[];
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
export type InteractableKind = "grab" | "trigger";
|
||||
|
||||
interface TriggerInteractableHandle {
|
||||
kind: "trigger";
|
||||
label: string;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user