@wemap/positioning 2.3.3 → 2.3.4

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
@@ -81,5 +81,5 @@
81
81
  "lint": "eslint --ext .js,.jsx --quiet src",
82
82
  "test": "mocha -r esm \"src/**/*.spec.js\""
83
83
  },
84
- "version": "2.3.3"
84
+ "version": "2.3.4"
85
85
  }
package/src/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import InclinationProvider from './providers/computed/InclinationProvider';
1
+ import InclinationProvider from './providers/others/InclinationProvider';
2
2
  import PositioningHandler from './PositioningHandler';
3
3
  import EventType from './events/EventType';
4
4
  import { ProvidersName } from './providers/ProvidersList';
package/fix_imu.patch DELETED
@@ -1,30 +0,0 @@
1
- diff --git a/src/providers/others/ImuProvider.js b/src/providers/others/ImuProvider.js
2
- index c1e294f..c22095e 100644
3
- --- a/src/providers/others/ImuProvider.js
4
- +++ b/src/providers/others/ImuProvider.js
5
- @@ -3,6 +3,7 @@ import {
6
- Browser, BrowserUtils
7
- } from '@wemap/utils';
8
-
9
- +import isnumber from 'lodash.isnumber';
10
- import Provider from '../Provider';
11
- import EventType from '../../events/EventType';
12
- import MissingAccelerometerError from '../../errors/MissingAccelerometerError';
13
- @@ -129,7 +130,7 @@ class ImuProvider extends Provider {
14
- x, y, z
15
- } = e.accelerationIncludingGravity;
16
-
17
- - if (x && y && z) {
18
- + if (isnumber(x) && isnumber(y) && isnumber(z)) {
19
- acc = [x, y, z];
20
-
21
- if (BrowserUtils.name === Browser.SAFARI) {
22
- @@ -161,7 +162,7 @@ class ImuProvider extends Provider {
23
- alpha, beta, gamma
24
- } = e.rotationRate;
25
-
26
- - if (alpha && beta && gamma) {
27
- + if (isnumber(alpha) && isnumber(beta) && isnumber(gamma)) {
28
- gyr = [deg2rad(alpha), deg2rad(beta), deg2rad(gamma)];
29
- }
30
- }