Skip to content

Commit a62a19d

Browse files
committed
Build files updated for the new v2.0.3
1 parent 4777b60 commit a62a19d

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

dist/gyronorm.complete.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2351,8 +2351,8 @@ window.FULLTILT = FULLTILT;
23512351
* JavaScript project for accessing and normalizing the accelerometer and gyroscope data on mobile devices
23522352
*
23532353
* @author Doruk Eker <dorukeker@gmail.com>
2354-
* @copyright 2015 Doruk Eker <http://dorukeker.com>
2355-
* @version 2.0.2
2354+
* @copyright Doruk Eker <http://dorukeker.com>
2355+
* @version 2.0.3
23562356
* @license MIT License | http://opensource.org/licenses/MIT
23572357
*/
23582358

@@ -2439,7 +2439,7 @@ window.FULLTILT = FULLTILT;
24392439
*
24402440
* Initialize GyroNorm instance function
24412441
*
2442-
* @param object options - values are as follows. If set in the init function they overwrite the default option values
2442+
* @param object options - values are as follows. If set in the init function they overwrite the default option values
24432443
* @param int options.frequency
24442444
* @param boolean options.gravityNormalized
24452445
* @param boolean options.orientationBase
@@ -2465,7 +2465,7 @@ window.FULLTILT = FULLTILT;
24652465
var deviceMotionPromise = new FULLTILT.getDeviceMotion().then(function(controller) {
24662466
_dm = controller;
24672467
// Set gravity coefficient
2468-
_gravityCoefficient = (_dm.getScreenAdjustedAccelerationIncludingGravity().z > 0) ? 1 : -1;
2468+
_gravityCoefficient = (_dm.getScreenAdjustedAccelerationIncludingGravity().z > 0) ? -1 : 1;
24692469
});
24702470

24712471
return Promise.all([deviceOrientationPromise, deviceMotionPromise]).then(function() {
@@ -2523,7 +2523,7 @@ window.FULLTILT = FULLTILT;
25232523
/*
25242524
*
25252525
* Toggles if to normalize gravity related values
2526-
*
2526+
*
25272527
* @param boolean flag
25282528
*
25292529
*/
@@ -2537,7 +2537,7 @@ window.FULLTILT = FULLTILT;
25372537
* Sets the current head direction as alpha = 0
25382538
* Can only be used if device orientation is being tracked, values are not screen adjusted, value type is GyroNorm.EULER and orientation base is GyroNorm.GAME
25392539
*
2540-
* @return: If head direction is set successfully returns true, else false
2540+
* @return: If head direction is set successfully returns true, else false
25412541
*
25422542
*/
25432543
GyroNorm.prototype.setHeadDirection = function() {
@@ -2572,9 +2572,9 @@ window.FULLTILT = FULLTILT;
25722572
/*
25732573
*
25742574
* Returns if certain type of event is available on the device
2575-
*
2575+
*
25762576
* @param string _eventType - possible values are "deviceorientation" , "devicemotion" , "compassneedscalibration"
2577-
*
2577+
*
25782578
* @return true if event is available false if not
25792579
*
25802580
*/

dist/gyronorm.complete.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/gyronorm.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
* JavaScript project for accessing and normalizing the accelerometer and gyroscope data on mobile devices
33
*
44
* @author Doruk Eker <dorukeker@gmail.com>
5-
* @copyright 2015 Doruk Eker <http://dorukeker.com>
6-
* @version 2.0.2
5+
* @copyright Doruk Eker <http://dorukeker.com>
6+
* @version 2.0.3
77
* @license MIT License | http://opensource.org/licenses/MIT
88
*/
99

@@ -90,7 +90,7 @@
9090
*
9191
* Initialize GyroNorm instance function
9292
*
93-
* @param object options - values are as follows. If set in the init function they overwrite the default option values
93+
* @param object options - values are as follows. If set in the init function they overwrite the default option values
9494
* @param int options.frequency
9595
* @param boolean options.gravityNormalized
9696
* @param boolean options.orientationBase
@@ -116,7 +116,7 @@
116116
var deviceMotionPromise = new FULLTILT.getDeviceMotion().then(function(controller) {
117117
_dm = controller;
118118
// Set gravity coefficient
119-
_gravityCoefficient = (_dm.getScreenAdjustedAccelerationIncludingGravity().z > 0) ? 1 : -1;
119+
_gravityCoefficient = (_dm.getScreenAdjustedAccelerationIncludingGravity().z > 0) ? -1 : 1;
120120
});
121121

122122
return Promise.all([deviceOrientationPromise, deviceMotionPromise]).then(function() {
@@ -174,7 +174,7 @@
174174
/*
175175
*
176176
* Toggles if to normalize gravity related values
177-
*
177+
*
178178
* @param boolean flag
179179
*
180180
*/
@@ -188,7 +188,7 @@
188188
* Sets the current head direction as alpha = 0
189189
* Can only be used if device orientation is being tracked, values are not screen adjusted, value type is GyroNorm.EULER and orientation base is GyroNorm.GAME
190190
*
191-
* @return: If head direction is set successfully returns true, else false
191+
* @return: If head direction is set successfully returns true, else false
192192
*
193193
*/
194194
GyroNorm.prototype.setHeadDirection = function() {
@@ -223,9 +223,9 @@
223223
/*
224224
*
225225
* Returns if certain type of event is available on the device
226-
*
226+
*
227227
* @param string _eventType - possible values are "deviceorientation" , "devicemotion" , "compassneedscalibration"
228-
*
228+
*
229229
* @return true if event is available false if not
230230
*
231231
*/

dist/gyronorm.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)