|
@@ -17,7 +17,7 @@ Create a new viewport with the specified `settings`.
|
17
|
17
|
* `hudContainer: HTMLDivElement, optional`. An overlay that will be displayed in front of the augmented scene. It must be a direct child of `container` in the DOM tree.
|
18
|
18
|
* `resolution: Resolution, optional`. The [resolution](resolution.md) of the virtual scene.
|
19
|
19
|
* `canvas: HTMLCanvasElement, optional`. An existing canvas on which the virtual scene will be drawn. The engine automatically creates a canvas. You should only specify an existing canvas if you must. Experimental.
|
20
|
|
- * `style: string, optional.` The [viewport style](#style). *Since:* 0.2.1
|
|
20
|
+ * `style: string, optional.` The [viewport style](#style). *Since:* 0.3.0
|
21
|
21
|
|
22
|
22
|
**Returns**
|
23
|
23
|
|
|
@@ -76,7 +76,7 @@ The style determines the way the viewport appears on the screen. Different style
|
76
|
76
|
|
77
|
77
|
The default style is `"best-fit"` in immersive mode, or `"inline"` in inline mode.
|
78
|
78
|
|
79
|
|
-*Since:* 0.2.1
|
|
79
|
+*Since:* 0.3.0
|
80
|
80
|
|
81
|
81
|
### fullscreen
|
82
|
82
|
|
|
@@ -84,7 +84,7 @@ The default style is `"best-fit"` in immersive mode, or `"inline"` in inline mod
|
84
|
84
|
|
85
|
85
|
Whether or not the viewport [container](#container) is being displayed in fullscreen mode.
|
86
|
86
|
|
87
|
|
-*Since:* 0.2.1
|
|
87
|
+*Since:* 0.3.0
|
88
|
88
|
|
89
|
89
|
### fullscreenAvailable
|
90
|
90
|
|
|
@@ -92,7 +92,7 @@ Whether or not the viewport [container](#container) is being displayed in fullsc
|
92
|
92
|
|
93
|
93
|
Checks the availability of the fullscreen mode on the current platform and page.
|
94
|
94
|
|
95
|
|
-*Since:* 0.2.1
|
|
95
|
+*Since:* 0.3.0
|
96
|
96
|
|
97
|
97
|
|
98
|
98
|
|
|
@@ -108,7 +108,7 @@ Make a request to the user agent so that the viewport [container](#container) is
|
108
|
108
|
|
109
|
109
|
At the time of this writing, the fullscreen mode is [not supported on iPhone](https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullscreen#browser_compatibility). An alternative way to create a fullscreen experience is to set the viewport [style](#style) to `"stretch"` in a [web app](https://developer.mozilla.org/en-US/docs/Web/Manifest/display).
|
110
|
110
|
|
111
|
|
-*Since:* 0.2.1
|
|
111
|
+*Since:* 0.3.0
|
112
|
112
|
|
113
|
113
|
**Returns**
|
114
|
114
|
|
|
@@ -139,7 +139,7 @@ button.addEventListener('click', toggleFullscreen);
|
139
|
139
|
|
140
|
140
|
Exit fullscreen mode.
|
141
|
141
|
|
142
|
|
-*Since:* 0.2.1
|
|
142
|
+*Since:* 0.3.0
|
143
|
143
|
|
144
|
144
|
**Returns**
|
145
|
145
|
|