@xtctwins/tctwins-core 1.0.35 → 1.0.37
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.
- package/dist/tctwins-core.es.js +19106 -18570
- package/dist/tctwins-core.min.es.js +67 -34
- package/package.json +7 -5
- package/types/viewer/scene/models/SceneModel.d.ts +703 -683
- package/types/viewer/scene/scene/Scene.d.ts +17 -1
|
@@ -10,6 +10,7 @@ import { VBOSceneModel } from "../models/VBOSceneModel/VBOSceneModel";
|
|
|
10
10
|
import { Mesh } from "../mesh";
|
|
11
11
|
import { Node } from "../nodes";
|
|
12
12
|
import { Input } from "../input/input";
|
|
13
|
+
import { SceneModel } from "../models";
|
|
13
14
|
|
|
14
15
|
export declare type TickEvent = {
|
|
15
16
|
/** The ID of this Scene. */
|
|
@@ -77,6 +78,18 @@ export declare class Scene extends Component {
|
|
|
77
78
|
*/
|
|
78
79
|
on(event: "tick", callback: (tickEvent: TickEvent) => void, scope?: any): string;
|
|
79
80
|
|
|
81
|
+
/**
|
|
82
|
+
* fired when scene.aabb is update
|
|
83
|
+
* @param event
|
|
84
|
+
* @param callback
|
|
85
|
+
*/
|
|
86
|
+
on(event: "aabb", callback: (aabb: Float32Array | Float64Array) => void): void;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* return lights objects
|
|
90
|
+
*/
|
|
91
|
+
get lightsObject(): any;
|
|
92
|
+
|
|
80
93
|
/**
|
|
81
94
|
* The epoch time (in milliseconds since 1970) when this Scene was instantiated.
|
|
82
95
|
*/
|
|
@@ -195,7 +208,7 @@ export declare class Scene extends Component {
|
|
|
195
208
|
* Each {@link Entity} is mapped here by {@link Entity.id} when {@link Entity.isModel} is ````true````.
|
|
196
209
|
* @type {{String:Entity}}
|
|
197
210
|
*/
|
|
198
|
-
get models(): { [key: string]:
|
|
211
|
+
get models(): { [key: string]: SceneModel };
|
|
199
212
|
|
|
200
213
|
/**
|
|
201
214
|
* Map of {@link Entity}s that represents objects.
|
|
@@ -664,6 +677,8 @@ export declare class Scene extends Component {
|
|
|
664
677
|
*/
|
|
665
678
|
get aabb(): number[];
|
|
666
679
|
|
|
680
|
+
get aabbs(): any;
|
|
681
|
+
|
|
667
682
|
get sao(): SAO;
|
|
668
683
|
|
|
669
684
|
get input(): Input;
|
|
@@ -891,3 +906,4 @@ export declare class Scene extends Component {
|
|
|
891
906
|
*/
|
|
892
907
|
destroy(callback?: Function): void;
|
|
893
908
|
}
|
|
909
|
+
|