Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

oribella-swipe

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oribella-swipe - npm Package Compare versions

Comparing version 0.3.5 to 0.3.6

10

CHANGELOG.md

@@ -0,1 +1,11 @@

<a name="0.3.6"></a>
## [0.3.6](https://github.com/oribella/swipe/compare/v0.3.5...v0.3.6) (2015-12-13)
### Bug Fixes
* **dist:** update ([123be1a](https://github.com/oribella/swipe/commit/123be1a))
<a name="0.3.5"></a>

@@ -2,0 +12,0 @@ ## [0.3.5](https://github.com/oribella/swipe/compare/v0.3.4...v0.3.5) (2015-12-11)

33

dist/amd/index.js

@@ -1,34 +0,13 @@

"use strict";
define(["exports", "oribella-framework", "./swipe-data"], function (exports, _oribellaFramework, _swipeData) {
"use strict";
define(["exports", "oribella-framework", "./swipe-data"], function (exports, _oribellaFramework, _swipeData) {
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Swipe = undefined;
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
var _createClass = (function () {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
return function (Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
return Constructor;
};
})();
var Swipe = exports.Swipe = (function () {
var Swipe = (function () {
_createClass(Swipe, null, [{

@@ -101,2 +80,4 @@ key: "defaultOptions",

})();
exports.Swipe = Swipe;
});

@@ -1,4 +0,4 @@

"use strict";
define(["exports"], function (exports) {
"use strict";
define(["exports"], function (exports) {
Object.defineProperty(exports, "__esModule", {

@@ -8,27 +8,7 @@ value: true

function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
var _createClass = (function () {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
return function (Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
return Constructor;
};
})();
var SwipeData = exports.SwipeData = (function () {
var SwipeData = (function () {
function SwipeData(maxObservations) {

@@ -86,2 +66,4 @@ _classCallCheck(this, SwipeData);

})();
exports.SwipeData = SwipeData;
});
"use strict";
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Swipe = undefined;
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var _oribellaFramework = require("oribella-framework");

@@ -14,5 +15,3 @@

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var Swipe = exports.Swipe = (function () {
var Swipe = (function () {
_createClass(Swipe, null, [{

@@ -84,2 +83,4 @@ key: "defaultOptions",

return Swipe;
})();
})();
exports.Swipe = Swipe;
"use strict";
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
Object.defineProperty(exports, "__esModule", {

@@ -9,5 +7,7 @@ value: true

var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var SwipeData = exports.SwipeData = (function () {
var SwipeData = (function () {
function SwipeData(maxObservations) {

@@ -64,2 +64,4 @@ _classCallCheck(this, SwipeData);

return SwipeData;
})();
})();
exports.SwipeData = SwipeData;

@@ -1,12 +0,10 @@

"use strict";
System.register(["oribella-framework", "./swipe-data"], function (_export) {
var RETURN_FLAG, GESTURE_STARTED, SwipeData, _createClass, Swipe;
"use strict";
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
var RETURN_FLAG, GESTURE_STARTED, SwipeData, Swipe;
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
return {

@@ -20,21 +18,3 @@ setters: [function (_oribellaFramework) {

execute: function () {
_createClass = (function () {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
return function (Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
return Constructor;
};
})();
_export("Swipe", Swipe = (function () {
Swipe = (function () {
_createClass(Swipe, null, [{

@@ -77,9 +57,6 @@ key: "defaultOptions",

this.data.pagePoints = pagePoints;
if (pagePoints[0].distanceTo(this.startPoint) < this.subscriber.options.radiusThreshold) {
return undefined;
}
this.swipeData.addObservation(pagePoints[0]);
if (!this[GESTURE_STARTED]) {

@@ -110,3 +87,3 @@ this.result = this.subscriber.start(event, this.data, this.element);

return Swipe;
})());
})();

@@ -113,0 +90,0 @@ _export("Swipe", Swipe);

@@ -1,34 +0,14 @@

"use strict";
System.register([], function (_export) {
var _createClass, SwipeData;
"use strict";
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
var SwipeData;
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
return {
setters: [],
execute: function () {
_createClass = (function () {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
return function (Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
return Constructor;
};
})();
_export("SwipeData", SwipeData = (function () {
SwipeData = (function () {
function SwipeData(maxObservations) {

@@ -47,3 +27,2 @@ _classCallCheck(this, SwipeData);

}
this.timeSeries.push({

@@ -62,3 +41,2 @@ timeStamp: +new Date(),

}
o1 = this.timeSeries[this.timeSeries.length - 1];

@@ -68,3 +46,3 @@ o2 = this.timeSeries[0];

elapsed = o1.timeStamp - o2.timeStamp;
v = 1000 * dist / (1 + elapsed);
v = 1000 * dist / (1 + elapsed); //pixels per second
return 0.8 * v + 0.2 * velocity;

@@ -80,3 +58,2 @@ }

}
o1 = this.timeSeries[this.timeSeries.length - 1];

@@ -86,2 +63,3 @@ o2 = this.timeSeries[this.timeSeries.length - 2];

dy = o1.point.y - o2.point.y;
return [dx, dy];

@@ -92,3 +70,3 @@ }

return SwipeData;
})());
})();

@@ -95,0 +73,0 @@ _export("SwipeData", SwipeData);

{
"name": "oribella-swipe",
"version": "0.3.5",
"version": "0.3.6",
"description": "Swipe gesture",

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc