@galacean/engine-design 2.0.0-alpha.49 → 2.0.0-alpha.50
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/engine-design",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.50",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
],
|
|
18
18
|
"types": "types/index.d.ts",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@galacean/engine-math": "2.0.0-alpha.
|
|
20
|
+
"@galacean/engine-math": "2.0.0-alpha.50"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"b:types": "tsc"
|
|
@@ -7,7 +7,7 @@ export interface IJoint {
|
|
|
7
7
|
/**
|
|
8
8
|
* The connected collider.
|
|
9
9
|
*/
|
|
10
|
-
setConnectedCollider(value: ICollider): void;
|
|
10
|
+
setConnectedCollider(value: ICollider | null | undefined): void;
|
|
11
11
|
/**
|
|
12
12
|
* The connected anchor position.
|
|
13
13
|
* @remarks If connectedCollider is set, this anchor is relative offset, or the anchor is world position.
|
package/types/xr/IXRDevice.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export interface IXRDevice {
|
|
|
20
20
|
* @param engine - The engine.
|
|
21
21
|
* @param type - The type of the feature.
|
|
22
22
|
*/
|
|
23
|
-
createPlatformFeature(type: number, ...args: any[]): IXRPlatformFeature;
|
|
23
|
+
createPlatformFeature(type: number, ...args: any[]): IXRPlatformFeature | null;
|
|
24
24
|
/**
|
|
25
25
|
* Request a session.
|
|
26
26
|
* @param engine - The engine
|
package/types/xr/IXRSession.d.ts
CHANGED
|
@@ -16,11 +16,11 @@ export interface IXRSession {
|
|
|
16
16
|
/**
|
|
17
17
|
* Returns the current frame rate.
|
|
18
18
|
*/
|
|
19
|
-
get frameRate(): number;
|
|
19
|
+
get frameRate(): number | undefined;
|
|
20
20
|
/**
|
|
21
21
|
* Returns the frame rate supported by the device.
|
|
22
22
|
*/
|
|
23
|
-
get supportedFrameRates(): Float32Array;
|
|
23
|
+
get supportedFrameRates(): Float32Array | undefined;
|
|
24
24
|
/**
|
|
25
25
|
* Returns the device's default main framebuffer.
|
|
26
26
|
*/
|
|
@@ -41,7 +41,7 @@ export interface IXRSession {
|
|
|
41
41
|
/**
|
|
42
42
|
* Return fixed foveation of camera.
|
|
43
43
|
*/
|
|
44
|
-
getFixedFoveation(): number;
|
|
44
|
+
getFixedFoveation(): number | undefined;
|
|
45
45
|
/**
|
|
46
46
|
* Add event listener for XR session.
|
|
47
47
|
*/
|