Skip to content

Commit 4bb8aaa

Browse files
authored
Fix title vrdisp (#4860)
* VRDisplay hardwareunitid and resetPost titles incorrect * VRDisplay - everything mark deprecated
1 parent 4905da8 commit 4bb8aaa

File tree

3 files changed

+25
-34
lines changed

3 files changed

+25
-34
lines changed

files/en-us/web/api/vrdisplay/hardwareunitid/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: VRDevice.hardwareUnitId
2+
title: VRDisplay.hardwareUnitId
33
slug: Web/API/VRDisplay/hardwareUnitId
44
tags:
55
- API

files/en-us/web/api/vrdisplay/index.html

Lines changed: 23 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -22,62 +22,53 @@
2222
<h2 id="Properties">Properties</h2>
2323

2424
<dl>
25-
<dt>{{domxref("VRDisplay.capabilities")}} {{readonlyInline}}</dt>
25+
<dt>{{domxref("VRDisplay.capabilities")}} {{readonlyInline}}{{deprecated_inline}}</dt>
2626
<dd>Returns a {{domxref("VRDisplayCapabilities")}} object that indicates the various capabilities of the <code>VRDisplay</code>.</dd>
27-
<dt>{{domxref("VRDisplay.depthFar")}}</dt>
27+
<dt>{{domxref("VRDisplay.depthFar")}} {{deprecated_inline}}</dt>
2828
<dd>Gets and sets the z-depth defining the far plane of the <a href="https://en.wikipedia.org/wiki/Viewing_frustum">eye view frustum</a>, i.e. the furthest viewable boundary of the scene.</dd>
29-
<dt>{{domxref("VRDisplay.depthNear")}}</dt>
29+
<dt>{{domxref("VRDisplay.depthNear")}} {{deprecated_inline}}</dt>
3030
<dd>Gets and sets the z-depth defining the near plane of the <a href="https://en.wikipedia.org/wiki/Viewing_frustum">eye view frustum</a>, i.e. the nearest viewable boundary of the scene.</dd>
31-
<dt>{{domxref("VRDisplay.displayId")}} {{readonlyInline}}</dt>
31+
<dt>{{domxref("VRDisplay.displayId")}} {{readonlyInline}} {{deprecated_inline}}</dt>
3232
<dd>Returns an identifier for this particular VRDisplay, which is also used as an association point in the <a href="/en-US/docs/Web/API/Gamepad_API">Gamepad API</a> (see {{domxref("Gamepad.displayId")}}).</dd>
33-
<dt>{{domxref("VRDisplay.displayName")}} {{readonlyInline}}</dt>
33+
<dt>{{domxref("VRDisplay.displayName")}} {{readonlyInline}} {{deprecated_inline}}</dt>
3434
<dd>Returns a human-readable name to identify the <code>VRDisplay</code>.</dd>
35-
<dt>{{domxref("VRDisplay.isConnected")}} {{readonlyInline}}</dt>
35+
<dt>{{domxref("VRDisplay.hardwareUnitId")}} {{deprecated_inline}}</dt>
36+
<dd>Returns a {{domxref("DOMString")}} defining the shared ID of the display, and any other devices that are part of that hardware set (e.g. controllers). This is no longer needed, and has been removed from the spec. Displays now use {{domxref("VRDisplay.displayId")}}, and corresponsing controllers will now return the same ID under {{domxref("Gamepad.displayId")}}.</dd>
37+
<dt>{{domxref("VRDisplay.isConnected")}} {{readonlyInline}} {{deprecated_inline}}</dt>
3638
<dd>Returns a {{domxref("Boolean")}} indicating whether the <code>VRDisplay</code> is connected to the computer.</dd>
37-
<dt>{{domxref("VRDisplay.isPresenting")}} {{readonlyInline}}</dt>
39+
<dt>{{domxref("VRDisplay.isPresenting")}} {{readonlyInline}} {{deprecated_inline}}</dt>
3840
<dd>Returns a {{domxref("Boolean")}} indicating whether the <code>VRDisplay</code> is currently having content presented through it.</dd>
39-
<dt>{{domxref("VRDisplay.stageParameters")}} {{readonlyInline}}</dt>
41+
<dt>{{domxref("VRDisplay.stageParameters")}} {{readonlyInline}} {{deprecated_inline}}</dt>
4042
<dd>Returns a {{domxref("VRStageParameters")}} object containing room-scale parameters, if the <code>VRDisplay</code> is capable of supporting room-scale experiences.</dd>
4143
</dl>
4244

4345
<h2 id="Methods">Methods</h2>
4446

4547
<dl>
46-
<dt>{{domxref("VRDisplay.getEyeParameters()")}}</dt>
48+
<dt>{{domxref("VRDisplay.getEyeParameters()")}} {{deprecated_inline}}</dt>
4749
<dd>Returns the {{domxref("VREyeParameters")}} object containing the eye parameters for the specified eye.</dd>
48-
<dt>{{domxref("VRDisplay.getFrameData()")}}</dt>
50+
<dt>{{domxref("VRDisplay.getFrameData()")}} {{deprecated_inline}}</dt>
4951
<dd>Accepts a {{domxref("VRFrameData")}} object and populates it with the information required to render the current frame.</dd>
50-
<dt>{{domxref("VRDisplay.getLayers()")}}</dt>
52+
<dt>{{domxref("VRDisplay.getImmediatePose()")}} {{deprecated_inline}}</dt>
53+
<dd>Returns a {{domxref("VRPose")}} object defining the current pose of the <code>VRDisplay</code>, with no prediction applied. This is no longer needed, and has been removed from the spec.</dd>
54+
<dt>{{domxref("VRDisplay.getLayers()")}} {{deprecated_inline}}</dt>
5155
<dd>Returns the layers currently being presented by the <code>VRDisplay</code>.</dd>
52-
<dt>{{domxref("VRDisplay.resetPose()")}}</dt>
56+
<dt>{{domxref("VRDisplay.getPose()")}} {{deprecated_inline}}</dt>
57+
<dd>Returns a {{domxref("VRPose")}} object defining the future predicted pose of the <code>VRDisplay</code> as it will be when the current frame is actually presented. <strong>This method is deprecated — instead, you should use {{domxref("VRDisplay.getFrameData()")}}, which also provides a {{domxref("VRPose")}} object.</strong></dd>
58+
<dt>{{domxref("VRDisplay.resetPose()")}} {{deprecated_inline}}</dt>
5359
<dd>Resets the pose for this <code>VRDisplay</code>, treating its current {{domxref("VRPose.position")}} and {{domxref("VRPose.orientation")}} as the "origin/zero" values.</dd>
54-
<dt>{{domxref("VRDisplay.cancelAnimationFrame()")}}</dt>
60+
<dt>{{domxref("VRDisplay.cancelAnimationFrame()")}} {{deprecated_inline}}</dt>
5561
<dd>A special implementation of {{domxref("Window.cancelAnimationFrame")}} that allows callbacks registered with {{domxref("VRDisplay.requestAnimationFrame()")}} to be unregistered.</dd>
56-
<dt>{{domxref("VRDisplay.requestAnimationFrame()")}}</dt>
62+
<dt>{{domxref("VRDisplay.requestAnimationFrame()")}} {{deprecated_inline}}</dt>
5763
<dd>A special implementation of {{domxref("Window.requestAnimationFrame")}} containing a callback function that will be called every time a new frame of the <code>VRDisplay</code> presentation is rendered.</dd>
58-
<dt>{{domxref("VRDisplay.requestPresent()")}}</dt>
64+
<dt>{{domxref("VRDisplay.requestPresent()")}} {{deprecated_inline}}</dt>
5965
<dd>Starts the <code>VRDisplay</code> presenting a scene.</dd>
60-
<dt>{{domxref("VRDisplay.exitPresent()")}}</dt>
66+
<dt>{{domxref("VRDisplay.exitPresent()")}} {{deprecated_inline}}</dt>
6167
<dd>Stops the <code>VRDisplay</code> presenting a scene.</dd>
62-
<dt>{{domxref("VRDisplay.submitFrame()")}}</dt>
68+
<dt>{{domxref("VRDisplay.submitFrame()")}} {{deprecated_inline}}</dt>
6369
<dd>Captures the current state of the {{domxref("VRLayerInit")}} currently being presented and displays it on the <code>VRDisplay</code>.</dd>
6470
</dl>
6571

66-
<h3 id="Deprecated_methods">Deprecated methods</h3>
67-
68-
<dl>
69-
<dt>{{domxref("VRDisplay.getPose()")}} {{deprecated_inline}}</dt>
70-
<dd>Returns a {{domxref("VRPose")}} object defining the future predicted pose of the <code>VRDisplay</code> as it will be when the current frame is actually presented. <strong>This method is deprecated — instead, you should use {{domxref("VRDisplay.getFrameData()")}}, which also provides a {{domxref("VRPose")}} object.</strong></dd>
71-
</dl>
72-
73-
<h3 id="Obsolete_methods">Obsolete methods</h3>
74-
75-
<dl>
76-
<dt>{{domxref("VRDisplay.getImmediatePose()")}} {{deprecated_inline}}</dt>
77-
<dd>Returns a {{domxref("VRPose")}} object defining the current pose of the <code>VRDisplay</code>, with no prediction applied. This is no longer needed, and has been removed from the spec.</dd>
78-
<dt>{{domxref("VRDisplay.hardwareUnitId")}} {{deprecated_inline}}</dt>
79-
<dd>Returns a {{domxref("DOMString")}} defining the shared ID of the display, and any other devices that are part of that hardware set (e.g. controllers). This is no longer needed, and has been removed from the spec. Displays now use {{domxref("VRDisplay.displayId")}}, and corresponsing controllers will now return the same ID under {{domxref("Gamepad.displayId")}}.</dd>
80-
</dl>
8172

8273
<h2 id="Examples">Examples</h2>
8374

files/en-us/web/api/vrdisplay/resetpose/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: VRDevice.resetPose()
2+
title: VRDisplay.resetPose()
33
slug: Web/API/VRDisplay/resetPose
44
tags:
55
- API

0 commit comments

Comments
 (0)