@uiw/react-drag-event-interactive
Advanced tools
Comparing version 1.4.2 to 1.4.3
@@ -97,3 +97,2 @@ "use strict"; | ||
Interactive.displayName = 'Interactive'; | ||
var _default = Interactive; | ||
exports["default"] = _default; | ||
var _default = exports["default"] = Interactive; |
@@ -21,3 +21,3 @@ "use strict"; | ||
// Check if an event was triggered by touch | ||
var isTouch = function isTouch(event) { | ||
var isTouch = exports.isTouch = function isTouch(event) { | ||
return 'touches' in event; | ||
@@ -29,4 +29,3 @@ }; | ||
// https://github.com/facebook/react/issues/19651 | ||
exports.isTouch = isTouch; | ||
var preventDefaultMove = function preventDefaultMove(event) { | ||
var preventDefaultMove = exports.preventDefaultMove = function preventDefaultMove(event) { | ||
!isTouch(event) && event.preventDefault && event.preventDefault(); | ||
@@ -37,4 +36,3 @@ }; | ||
// 2 times shorter then `Math.min(Math.max(a,b),c)` | ||
exports.preventDefaultMove = preventDefaultMove; | ||
var clamp = function clamp(number) { | ||
var clamp = exports.clamp = function clamp(number) { | ||
var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; | ||
@@ -44,5 +42,4 @@ var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; | ||
}; | ||
exports.clamp = clamp; | ||
// Returns a relative position of the pointer inside the node's bounding box | ||
var getRelativePosition = function getRelativePosition(node, event) { | ||
var getRelativePosition = exports.getRelativePosition = function getRelativePosition(node, event) { | ||
var rect = node.getBoundingClientRect(); | ||
@@ -60,3 +57,2 @@ | ||
}; | ||
}; | ||
exports.getRelativePosition = getRelativePosition; | ||
}; |
{ | ||
"name": "@uiw/react-drag-event-interactive", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"description": "react drag event interactive", | ||
@@ -5,0 +5,0 @@ "homepage": "https://uiwjs.github.io/react-color/#/drag-event-interactive", |
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
23575
423