@aibee/crc-bmap 0.12.29 → 0.12.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Object3D } from "three";
|
|
1
|
+
import { Object3D, Object3DEventMap } from "three";
|
|
2
2
|
import { Context } from "../context/context";
|
|
3
3
|
import { GLTF } from "three/examples/jsm/loaders/GLTFLoader";
|
|
4
4
|
import { PolygonGeometry } from "../types";
|
|
@@ -13,7 +13,12 @@ export interface GlbModelOptions {
|
|
|
13
13
|
center_x: number;
|
|
14
14
|
center_y: number;
|
|
15
15
|
}
|
|
16
|
-
export
|
|
16
|
+
export type GlbModelEventMap = {
|
|
17
|
+
"load-model-end": {
|
|
18
|
+
object: GLTF;
|
|
19
|
+
};
|
|
20
|
+
} & Object3DEventMap;
|
|
21
|
+
export declare class GlbModel extends Object3D<GlbModelEventMap> {
|
|
17
22
|
context: Context;
|
|
18
23
|
model: GLTF | null;
|
|
19
24
|
options: GlbModelOptions;
|