@xeokit/xeokit-sdk 2.3.0-beta-33 → 2.3.0-beta-35
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/xeokit-sdk.cjs.js +60 -73
- package/dist/xeokit-sdk.es.js +60 -73
- package/dist/xeokit-sdk.es5.js +7 -20
- package/dist/xeokit-sdk.min.cjs.js +1 -1
- package/dist/xeokit-sdk.min.es.js +1 -1
- package/dist/xeokit-sdk.min.es5.js +1 -1
- package/package.json +1 -2
- package/types/viewer/scene/scene/Scene.d.ts +21 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xeokit/xeokit-sdk",
|
|
3
|
-
"version": "2.3.0-beta-
|
|
3
|
+
"version": "2.3.0-beta-35",
|
|
4
4
|
"description": "Web Programming Toolkit for 3D/2D BIM and AEC Graphics",
|
|
5
5
|
"module": "/dist/xeokit-sdk.es.js",
|
|
6
6
|
"main": "/dist/xeokit-sdk.cjs.js",
|
|
@@ -47,7 +47,6 @@
|
|
|
47
47
|
"homepage": "https://xeokit.io",
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@loaders.gl/core": "^3.2.6",
|
|
50
|
-
"@loaders.gl/draco": "^3.2.6",
|
|
51
50
|
"@loaders.gl/gltf": "^3.2.6",
|
|
52
51
|
"@loaders.gl/las": "^3.2.6",
|
|
53
52
|
"web-ifc": "^0.0.35"
|
|
@@ -10,6 +10,19 @@ import { VBOSceneModel } from "../models/VBOSceneModel/VBOSceneModel";
|
|
|
10
10
|
import { Mesh } from "../mesh";
|
|
11
11
|
import { Node } from "../nodes";
|
|
12
12
|
|
|
13
|
+
export declare type TickEvent = {
|
|
14
|
+
/** The ID of this Scene. */
|
|
15
|
+
sceneID: string;
|
|
16
|
+
/** The time in seconds since 1970 that this Scene was instantiated. */
|
|
17
|
+
startTime: Number;
|
|
18
|
+
/** The time in seconds since 1970 of this "tick" event. */
|
|
19
|
+
time: Number;
|
|
20
|
+
/** The time of the previous "tick" event from this Scene.. */
|
|
21
|
+
prevTime: Number;
|
|
22
|
+
/** The time in seconds since the previous "tick" event from this Scene. */
|
|
23
|
+
deltaTime: Number;
|
|
24
|
+
};
|
|
25
|
+
|
|
13
26
|
export declare class Scene extends Component {
|
|
14
27
|
|
|
15
28
|
/**
|
|
@@ -52,6 +65,14 @@ export declare class Scene extends Component {
|
|
|
52
65
|
*/
|
|
53
66
|
on(event: "objectVisibility", callback: (entity: VBOSceneModel | Mesh | Node) => void, scope?: any): string;
|
|
54
67
|
|
|
68
|
+
/**
|
|
69
|
+
* Fired on each game loop iteration.
|
|
70
|
+
* @event event The tick event
|
|
71
|
+
* @param callback Called fired on the event
|
|
72
|
+
* @param scope Scope for the callback
|
|
73
|
+
*/
|
|
74
|
+
on(event: "tick", callback: (tickEvent: TickEvent) => void, scope?: any): string;
|
|
75
|
+
|
|
55
76
|
/**
|
|
56
77
|
* The epoch time (in milliseconds since 1970) when this Scene was instantiated.
|
|
57
78
|
*/
|