Comparing version 0.13.0 to 0.13.1
@@ -179,2 +179,6 @@ 'use strict'; | ||
DragDropMonitor.prototype.getSourceClientOffset = function getSourceClientOffset() { | ||
return this.dragOffsetStore.getSourceClientOffset(); | ||
}; | ||
DragDropMonitor.prototype.getClientOffset = function getClientOffset() { | ||
@@ -181,0 +185,0 @@ return this.dragOffsetStore.getClientOffset(); |
@@ -91,7 +91,23 @@ 'use strict'; | ||
DragOffsetStore.prototype.getDifferenceFromInitialOffset = function getDifferenceFromInitialOffset() { | ||
DragOffsetStore.prototype.getSourceClientOffset = function getSourceClientOffset() { | ||
var _state = this.state; | ||
var clientOffset = _state.clientOffset; | ||
var initialClientOffset = _state.initialClientOffset; | ||
var initialSourceClientOffset = _state.initialSourceClientOffset; | ||
if (!clientOffset || !initialClientOffset || !initialSourceClientOffset) { | ||
return null; | ||
} | ||
return { | ||
x: clientOffset.x + initialSourceClientOffset.x - initialClientOffset.x, | ||
y: clientOffset.y + initialSourceClientOffset.y - initialClientOffset.y | ||
}; | ||
}; | ||
DragOffsetStore.prototype.getDifferenceFromInitialOffset = function getDifferenceFromInitialOffset() { | ||
var _state2 = this.state; | ||
var clientOffset = _state2.clientOffset; | ||
var initialClientOffset = _state2.initialClientOffset; | ||
if (!clientOffset || !initialClientOffset) { | ||
@@ -98,0 +114,0 @@ return null; |
{ | ||
"name": "dnd-core", | ||
"version": "0.13.0", | ||
"version": "0.13.1", | ||
"description": "Drag and drop sans the GUI", | ||
@@ -5,0 +5,0 @@ "main": "dist-modules/index.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
289747
3447