@wemap/providers 3.1.21 → 3.1.22
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/package.json
CHANGED
|
@@ -64,6 +64,6 @@
|
|
|
64
64
|
"lint": "eslint --ext .js,.jsx --quiet src",
|
|
65
65
|
"test": "mocha -r esm \"src/**/*.spec.js\""
|
|
66
66
|
},
|
|
67
|
-
"version": "3.1.
|
|
68
|
-
"gitHead": "
|
|
67
|
+
"version": "3.1.22",
|
|
68
|
+
"gitHead": "bea4fae93149e5fdce099a3c832b423569e9d0f0"
|
|
69
69
|
}
|
|
@@ -4,8 +4,8 @@ import { Attitude } from '@wemap/geo';
|
|
|
4
4
|
import Provider from '../../Provider';
|
|
5
5
|
import EventType from '../../../events/EventType';
|
|
6
6
|
import {
|
|
7
|
-
RelativeAttitude, AbsoluteAttitude
|
|
8
|
-
} from '../../../Providers';
|
|
7
|
+
RelativeAttitude, AbsoluteAttitude, AbsoluteAttitudeFromBrowser
|
|
8
|
+
} from '../../../Providers.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Absolute attitude provider gives the device attitude in East-North-Up (ENU) frame
|
|
@@ -90,7 +90,8 @@ class AbsoluteAttitudeFromRelAttProvider extends Provider {
|
|
|
90
90
|
/**
|
|
91
91
|
* Use absolute attitude events only when they are not from this provider
|
|
92
92
|
*/
|
|
93
|
-
if (absoluteAttitudeEvent.providersStack.includes(this.pname)
|
|
93
|
+
if (absoluteAttitudeEvent.providersStack.includes(this.pname)
|
|
94
|
+
|| absoluteAttitudeEvent.providersStack.includes(AbsoluteAttitudeFromBrowser.pname)) {
|
|
94
95
|
return;
|
|
95
96
|
}
|
|
96
97
|
this.absoluteAttitudeEvent = absoluteAttitudeEvent;
|