@galacean/engine-xr-webxr 1.6.4 → 1.6.5
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/dist/browser.js +5 -4
- package/dist/browser.js.map +1 -1
- package/dist/browser.min.js +1 -1
- package/dist/browser.min.js.map +1 -1
- package/dist/main.js +5 -4
- package/dist/main.js.map +1 -1
- package/dist/module.js +5 -4
- package/dist/module.js.map +1 -1
- package/package.json +4 -4
package/dist/browser.js
CHANGED
|
@@ -4775,7 +4775,8 @@
|
|
|
4775
4775
|
var options = {
|
|
4776
4776
|
requiredFeatures: [
|
|
4777
4777
|
"local"
|
|
4778
|
-
]
|
|
4778
|
+
],
|
|
4779
|
+
optionalFeatures: []
|
|
4779
4780
|
};
|
|
4780
4781
|
var promiseArr = [];
|
|
4781
4782
|
for(var i = 0, n = platformFeatures.length; i < n; i++){
|
|
@@ -4912,7 +4913,7 @@
|
|
|
4912
4913
|
/**
|
|
4913
4914
|
* @internal
|
|
4914
4915
|
*/ _proto._assembleOptions = function _assembleOptions(options) {
|
|
4915
|
-
options.
|
|
4916
|
+
options.optionalFeatures.push("anchors");
|
|
4916
4917
|
};
|
|
4917
4918
|
_proto._addAnchor = function _addAnchor(session, frame, requestTracking) {
|
|
4918
4919
|
if (!session || !frame) {
|
|
@@ -5029,7 +5030,7 @@
|
|
|
5029
5030
|
/**
|
|
5030
5031
|
* @internal
|
|
5031
5032
|
*/ _proto._assembleOptions = function _assembleOptions(options) {
|
|
5032
|
-
options.
|
|
5033
|
+
options.optionalFeatures.push("image-tracking");
|
|
5033
5034
|
var _this = this, images = _this._images;
|
|
5034
5035
|
var promiseArr = [];
|
|
5035
5036
|
if (images) {
|
|
@@ -5142,7 +5143,7 @@
|
|
|
5142
5143
|
/**
|
|
5143
5144
|
* @internal
|
|
5144
5145
|
*/ _proto._assembleOptions = function _assembleOptions(options) {
|
|
5145
|
-
options.
|
|
5146
|
+
options.optionalFeatures.push("plane-detection");
|
|
5146
5147
|
};
|
|
5147
5148
|
_proto._updatePlane = function _updatePlane(frame, space, trackedPlane) {
|
|
5148
5149
|
var pose = trackedPlane.pose, polygon = trackedPlane.polygon, xrPlane = trackedPlane.xrPlane;
|