Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/webxr

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/webxr - npm Package Compare versions

Comparing version 0.5.13 to 0.5.14

63

webxr/index.d.ts

@@ -332,11 +332,2 @@ // Most of this was hand written and... more or less copied from the following

getViewerPose(referenceSpace: XRReferenceSpace): XRViewerPose | undefined;
/**
* XRFrame is extended to contain detectedMeshes attribute
* which contains all meshes that are still tracked in the frame.
*
* The set is initially empty and will be populated by the update meshes algorithm.
* If this attribute is accessed when the frame is not active, the user agent MUST throw InvalidStateError.
*/
readonly detectedMeshes: XRMeshSet;
}

@@ -666,5 +657,19 @@

polygon: DOMPointReadOnly[];
lastChangedTime: number;
lastChangedTime: DOMHighResTimeStamp;
}
interface XRFrame {
/**
* XRFrame is extended to contain detectedPlanes attribute which contains
* all planes that are still tracked in the frame.
*
* The set is initially empty and will be populated by the update planes
* algorithm. If this attribute is accessed when the frame is not active,
* the user agent MUST throw InvalidStateError.
*
* @see https://immersive-web.github.io/real-world-geometry/plane-detection.html#plane-set
*/
readonly detectedPlanes?: XRPlaneSet;
}
declare abstract class XRPlane implements XRPlane {}

@@ -683,20 +688,32 @@

interface XRFrame {
/**
* XRFrame is extended to contain detectedMeshes attribute
* which contains all meshes that are still tracked in the frame.
*
* The set is initially empty and will be populated by the update meshes algorithm.
* If this attribute is accessed when the frame is not active, the user agent
* MUST throw InvalidStateError.
*
* @see https://immersive-web.github.io/real-world-meshing/#mesh-set
*/
readonly detectedMeshes?: XRMeshSet;
}
declare abstract class XRMesh implements XRMesh {}
interface XRSession {
// Legacy
updateWorldTrackingState?: (options: {
planeDetectionState?: { enabled: boolean } | undefined;
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
}) => void | undefined;
/**
* XRSession is extended to contain the initiateRoomCapture method which,
* if supported, will ask the XR Compositor to capture the current room layout.
* It is up to the XRCompositor if this will replace or augment the set of tracked planes.
* The user agent MAY also ignore this call, for instance if it doesn’t support a manual room
* capture more or if it determines that the room is already set up.
* The initiateRoomCapture method MUST only be able to be called once per XRSession.
*
* @see https://immersive-web.github.io/real-world-geometry/plane-detection.html#plane-set
*/
initiateRoomCapture?(): Promise<undefined>;
}
interface XRFrame {
worldInformation?:
| {
detectedPlanes?: XRPlaneSet | undefined;
}
| undefined;
}
/**

@@ -703,0 +720,0 @@ * The XRHand interface is pair iterator (an ordered map) with the key being the hand

{
"name": "@types/webxr",
"version": "0.5.13",
"version": "0.5.14",
"description": "TypeScript definitions for webxr",

@@ -38,4 +38,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webxr",

"dependencies": {},
"typesPublisherContentHash": "38c52862c74ba5ba86b35b138be53e194e780ceadb37968804ed042e7496b75f",
"typesPublisherContentHash": "dd221716e47d68ed89a60cd1e831d4a78038a133fadc01f6b138a83a1b3408b6",
"typeScriptVersion": "4.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Sat, 03 Feb 2024 10:07:14 GMT
* Last updated: Thu, 08 Feb 2024 19:06:46 GMT
* Dependencies: none

@@ -14,0 +14,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc