|
@@ -169,7 +169,7 @@ declare class XRRay {
|
|
matrix: Float32Array;
|
|
matrix: Float32Array;
|
|
}
|
|
}
|
|
|
|
|
|
-enum XRHitTestTrackableType {
|
|
|
|
|
|
+declare enum XRHitTestTrackableType {
|
|
"point",
|
|
"point",
|
|
"plane"
|
|
"plane"
|
|
}
|
|
}
|
|
@@ -184,7 +184,7 @@ interface XRTransientInputHitTestResult {
|
|
}
|
|
}
|
|
|
|
|
|
interface XRHitTestResult {
|
|
interface XRHitTestResult {
|
|
- getPose(baseSpace: XRSpace): XRPose?;
|
|
|
|
|
|
+ getPose(baseSpace: XRSpace): XRPose | undefined;
|
|
}
|
|
}
|
|
|
|
|
|
interface XRHitTestSource {
|
|
interface XRHitTestSource {
|
|
@@ -202,7 +202,7 @@ interface XRHitTestOptionsInit {
|
|
}
|
|
}
|
|
|
|
|
|
interface XRTransientInputHitTestOptionsInit {
|
|
interface XRTransientInputHitTestOptionsInit {
|
|
- profile: DOMString;
|
|
|
|
|
|
+ profile: string;
|
|
entityTypes?: Array<XRHitTestTrackableType>;
|
|
entityTypes?: Array<XRHitTestTrackableType>;
|
|
offsetRay?: XRRay;
|
|
offsetRay?: XRRay;
|
|
}
|
|
}
|