修复
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
yinsx
2026-01-05 16:09:36 +08:00
parent ebbd21916e
commit b9cbb58a9d
14 changed files with 460 additions and 321 deletions

37
src/event/types.ts Normal file
View File

@ -0,0 +1,37 @@
import { Scene } from '@babylonjs/core/scene';
export type ModelLoadProgressDetail = {
url?: string;
lengthComputable?: boolean;
loadedBytes?: number;
totalBytes?: number;
};
export type ModelLoadProgressPayload = {
loaded: number;
total: number;
url?: string;
urls?: string[];
success?: boolean;
progress?: number;
percentage?: number;
detail?: ModelLoadProgressDetail;
};
export type ModelLoadErrorPayload = {
url: string;
error?: unknown;
};
export type ModelLoadedPayload = {
urls: string[];
};
export type ModelClickPayload = {
meshName?: string;
};
export type SceneReadyPayload = {
scene: Scene | null;
};