New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

oribella-rotate

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oribella-rotate - npm Package Compare versions

Comparing version 0.3.5 to 0.4.0

29

CHANGELOG.md

@@ -0,3 +1,18 @@

<a name="0.4.0"></a>
# 0.4.0 (2016-02-22)
### Features
* **pointers:** expose pointer object with `page` and `client` properties containing points ([21030de](https://github.com/oribella/rotate/commit/21030de))
### BREAKING CHANGES
* pointers:
<a name="0.3.5"></a>
## [0.3.5](https://github.com/oribella/rotate/compare/v0.3.4...v0.3.5) (2015-12-19)
## 0.3.5 (2015-12-19)

@@ -8,3 +23,3 @@

<a name="0.3.4"></a>
## [0.3.4](https://github.com/oribella/rotate/compare/v0.3.3...v0.3.4) (2015-12-13)
## [0.3.4](https://github.com/oribella/rotate/compare/492cec8...v0.3.4) (2015-12-13)

@@ -19,3 +34,3 @@

<a name="0.3.3"></a>
## [0.3.3](https://github.com/oribella/rotate/compare/v0.3.2...v0.3.3) (2015-12-11)
## [0.3.3](https://github.com/oribella/rotate/compare/fa658af...v0.3.3) (2015-12-11)

@@ -30,3 +45,3 @@

<a name="0.3.2"></a>
## [0.3.2](https://github.com/oribella/rotate/compare/v0.3.1...v0.3.2) (2015-12-11)
## [0.3.2](https://github.com/oribella/rotate/compare/d047f84...v0.3.2) (2015-12-11)

@@ -41,3 +56,3 @@

<a name="0.3.1"></a>
## [0.3.1](https://github.com/oribella/rotate/compare/v0.3.0...v0.3.1) (2015-12-10)
## [0.3.1](https://github.com/oribella/rotate/compare/9234aeb...v0.3.1) (2015-12-10)

@@ -52,3 +67,3 @@

<a name="0.3.0"></a>
# [0.3.0](https://github.com/oribella/rotate/compare/v0.2.0...v0.3.0) (2015-12-10)
# [0.3.0](https://github.com/oribella/rotate/compare/4d0a35f...v0.3.0) (2015-12-10)

@@ -64,3 +79,3 @@

<a name="0.2.0"></a>
# [0.2.0](https://github.com/oribella/rotate/compare/0.1.0...v0.2.0) (2015-08-16)
# 0.2.0 (2015-08-16)

@@ -67,0 +82,0 @@

@@ -50,6 +50,6 @@ define(["exports", "oribella-framework"], function (exports, _oribellaFramework) {

key: "start",
value: function start(event, pagePoints) {
this.data.pagePoints = pagePoints;
this.startPoint1 = pagePoints[0];
this.startPoint2 = pagePoints[1];
value: function start(event, pointers) {
this.data.pointers = pointers;
this.startPoint1 = pointers[0].page;
this.startPoint2 = pointers[1] && pointers[1].page;
this.result = this.subscriber.down(event, this.data, this.element);

@@ -60,10 +60,10 @@ return _oribellaFramework.RETURN_FLAG.map(this.result);

key: "update",
value: function update(event, pagePoints) {
this.data.pagePoints = pagePoints;
value: function update(event, pointers) {
this.data.pointers = pointers;
if (!this.startPoint2) {
this.startPoint2 = pagePoints[1];
this.startPoint2 = pointers[1].page;
}
this.currentPoint1 = pagePoints[0];
this.currentPoint2 = pagePoints[1];
this.currentPoint1 = pointers[0].page;
this.currentPoint2 = pointers[1].page;

@@ -73,3 +73,3 @@ this.data.rotation = this.calculateRotation(this.startPoint1, this.startPoint2, this.currentPoint1, this.currentPoint2);

if (Math.abs(this.data.rotation) < this.subscriber.options.rotationThreshold) {
return;
return undefined;
}

@@ -87,4 +87,4 @@

key: "end",
value: function end(event, pagePoints) {
this.data.pagePoints = pagePoints;
value: function end(event, pointers) {
this.data.pointers = pointers;
this.result = this.subscriber.end(event, this.data, this.element);

@@ -95,4 +95,4 @@ return _oribellaFramework.RETURN_FLAG.map(this.result);

key: "cancel",
value: function cancel(event, pagePoints) {
this.data.pagePoints = pagePoints;
value: function cancel(event, pointers) {
this.data.pointers = pointers;
this.subscriber.cancel(event, this.data, this.element);

@@ -99,0 +99,0 @@ }

@@ -51,6 +51,6 @@ "use strict";

key: "start",
value: function start(event, pagePoints) {
this.data.pagePoints = pagePoints;
this.startPoint1 = pagePoints[0];
this.startPoint2 = pagePoints[1];
value: function start(event, pointers) {
this.data.pointers = pointers;
this.startPoint1 = pointers[0].page;
this.startPoint2 = pointers[1] && pointers[1].page;
this.result = this.subscriber.down(event, this.data, this.element);

@@ -61,10 +61,10 @@ return _oribellaFramework.RETURN_FLAG.map(this.result);

key: "update",
value: function update(event, pagePoints) {
this.data.pagePoints = pagePoints;
value: function update(event, pointers) {
this.data.pointers = pointers;
if (!this.startPoint2) {
this.startPoint2 = pagePoints[1];
this.startPoint2 = pointers[1].page;
}
this.currentPoint1 = pagePoints[0];
this.currentPoint2 = pagePoints[1];
this.currentPoint1 = pointers[0].page;
this.currentPoint2 = pointers[1].page;

@@ -74,3 +74,3 @@ this.data.rotation = this.calculateRotation(this.startPoint1, this.startPoint2, this.currentPoint1, this.currentPoint2);

if (Math.abs(this.data.rotation) < this.subscriber.options.rotationThreshold) {
return;
return undefined;
}

@@ -88,4 +88,4 @@

key: "end",
value: function end(event, pagePoints) {
this.data.pagePoints = pagePoints;
value: function end(event, pointers) {
this.data.pointers = pointers;
this.result = this.subscriber.end(event, this.data, this.element);

@@ -96,4 +96,4 @@ return _oribellaFramework.RETURN_FLAG.map(this.result);

key: "cancel",
value: function cancel(event, pagePoints) {
this.data.pagePoints = pagePoints;
value: function cancel(event, pointers) {
this.data.pointers = pointers;
this.subscriber.cancel(event, this.data, this.element);

@@ -100,0 +100,0 @@ }

@@ -55,6 +55,6 @@ System.register(["oribella-framework"], function (_export) {

key: "start",
value: function start(event, pagePoints) {
this.data.pagePoints = pagePoints;
this.startPoint1 = pagePoints[0];
this.startPoint2 = pagePoints[1];
value: function start(event, pointers) {
this.data.pointers = pointers;
this.startPoint1 = pointers[0].page;
this.startPoint2 = pointers[1] && pointers[1].page;
this.result = this.subscriber.down(event, this.data, this.element);

@@ -65,10 +65,10 @@ return RETURN_FLAG.map(this.result);

key: "update",
value: function update(event, pagePoints) {
this.data.pagePoints = pagePoints;
value: function update(event, pointers) {
this.data.pointers = pointers;
if (!this.startPoint2) {
this.startPoint2 = pagePoints[1];
this.startPoint2 = pointers[1].page;
}
this.currentPoint1 = pagePoints[0];
this.currentPoint2 = pagePoints[1];
this.currentPoint1 = pointers[0].page;
this.currentPoint2 = pointers[1].page;

@@ -78,3 +78,3 @@ this.data.rotation = this.calculateRotation(this.startPoint1, this.startPoint2, this.currentPoint1, this.currentPoint2);

if (Math.abs(this.data.rotation) < this.subscriber.options.rotationThreshold) {
return;
return undefined;
}

@@ -92,4 +92,4 @@

key: "end",
value: function end(event, pagePoints) {
this.data.pagePoints = pagePoints;
value: function end(event, pointers) {
this.data.pointers = pointers;
this.result = this.subscriber.end(event, this.data, this.element);

@@ -100,4 +100,4 @@ return RETURN_FLAG.map(this.result);

key: "cancel",
value: function cancel(event, pagePoints) {
this.data.pagePoints = pagePoints;
value: function cancel(event, pointers) {
this.data.pointers = pointers;
this.subscriber.cancel(event, this.data, this.element);

@@ -104,0 +104,0 @@ }

{
"name": "oribella-rotate",
"version": "0.3.5",
"version": "0.4.0",
"description": "Rotate gesture",

@@ -27,3 +27,3 @@ "license": "MIT",

"dependencies": {
"oribella-framework": "npm:oribella-framework@^0.3.4"
"oribella-framework": "npm:oribella-framework@^0.4.0"
},

@@ -33,12 +33,12 @@ "devDependencies": {

"babel-runtime": "npm:babel-runtime@^5.8.24",
"core-js": "npm:core-js@^1.2.6"
"core-js": "npm:core-js@^2.1.0"
}
},
"dependencies": {
"oribella-framework": "^0.3.4"
"oribella-framework": "^0.4.0"
},
"devDependencies": {
"jspm": "^0.16.15",
"oribella-dev": "^0.1.7"
"oribella-dev": "^0.1.22"
}
}

@@ -30,17 +30,17 @@ import {RETURN_FLAG, GESTURE_STARTED, Point} from "oribella-framework";

}
start(event, pagePoints) {
this.data.pagePoints = pagePoints;
this.startPoint1 = pagePoints[0];
this.startPoint2 = pagePoints[1];
start(event, pointers) {
this.data.pointers = pointers;
this.startPoint1 = pointers[0].page;
this.startPoint2 = pointers[1] && pointers[1].page;
this.result = this.subscriber.down(event, this.data, this.element);
return RETURN_FLAG.map(this.result);
}
update(event, pagePoints) {
this.data.pagePoints = pagePoints;
update(event, pointers) {
this.data.pointers = pointers;
if (!this.startPoint2) {
this.startPoint2 = pagePoints[1];
this.startPoint2 = pointers[1].page;
}
this.currentPoint1 = pagePoints[0];
this.currentPoint2 = pagePoints[1];
this.currentPoint1 = pointers[0].page;
this.currentPoint2 = pointers[1].page;

@@ -50,3 +50,3 @@ this.data.rotation = this.calculateRotation(this.startPoint1, this.startPoint2, this.currentPoint1, this.currentPoint2);

if (Math.abs(this.data.rotation) < this.subscriber.options.rotationThreshold) {
return;
return undefined;
}

@@ -63,11 +63,11 @@

}
end(event, pagePoints) {
this.data.pagePoints = pagePoints;
end(event, pointers) {
this.data.pointers = pointers;
this.result = this.subscriber.end(event, this.data, this.element);
return RETURN_FLAG.map(this.result);
}
cancel(event, pagePoints) {
this.data.pagePoints = pagePoints;
cancel(event, pointers) {
this.data.pointers = pointers;
this.subscriber.cancel(event, this.data, this.element);
}
}
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