better async components

This commit is contained in:
Yeicor
2024-02-24 12:21:16 +01:00
parent 4d529aec66
commit 3795e512cc
3 changed files with 27 additions and 19 deletions

View File

@@ -6,8 +6,7 @@ import type {ModelViewerElement} from '@google/model-viewer';
import type {ModelScene} from "@google/model-viewer/lib/three-components/ModelScene";
import {mdiCursorDefaultClick} from '@mdi/js';
import type {Intersection, Material, Object3D} from "three";
const {Raycaster} = await import("three");
import {Raycaster} from "three";
export type MObject3D = Object3D & {
userData: { noHit?: boolean },