@jsplumb/util
Advanced tools
Comparing version 5.4.1 to 5.5.0
@@ -468,2 +468,5 @@ 'use strict'; | ||
} | ||
function sgn(x) { | ||
return x < 0 ? -1 : x > 0 ? 1 : 0; | ||
} | ||
function wrap(wrappedFunction, newFunction, returnOnThisValue) { | ||
@@ -1013,2 +1016,3 @@ return function () { | ||
exports.setToArray = setToArray; | ||
exports.sgn = sgn; | ||
exports.snapToGrid = snapToGrid; | ||
@@ -1015,0 +1019,0 @@ exports.subtract = subtract; |
@@ -464,2 +464,5 @@ function filterList(list, value, missingIsFalse) { | ||
} | ||
function sgn(x) { | ||
return x < 0 ? -1 : x > 0 ? 1 : 0; | ||
} | ||
function wrap(wrappedFunction, newFunction, returnOnThisValue) { | ||
@@ -954,2 +957,2 @@ return function () { | ||
export { EventGenerator, OptimisticEventGenerator, TWO_PI, add, addToDictionary, addToList, addWithFunction, arraysEqual, clone, each, encloses, extend, fastTrim, filterList, filterNull, findAllWithFunction, findWithFunction, forEach, fromArray, functionChain, getAllWithFunction, getFromSetWithFunction, getWithFunction, getsert, gradient, insertSorted, intersects, isAssignableFrom, isBoolean, isDate, isEmpty, isFunction, isNamedFunction, isNumber, isObject, isString, lineIntersection, lineLength, lineRectangleIntersection, log, logEnabled, map, merge, normal, objectsEqual, perpendicularLineTo, pointOnLine, populate, quadrant, remove, removeWithFunction, replace, rotateAnchorOrientation, rotatePoint, setToArray, snapToGrid, subtract, suggest, theta, uuid, wrap }; | ||
export { EventGenerator, OptimisticEventGenerator, TWO_PI, add, addToDictionary, addToList, addWithFunction, arraysEqual, clone, each, encloses, extend, fastTrim, filterList, filterNull, findAllWithFunction, findWithFunction, forEach, fromArray, functionChain, getAllWithFunction, getFromSetWithFunction, getWithFunction, getsert, gradient, insertSorted, intersects, isAssignableFrom, isBoolean, isDate, isEmpty, isFunction, isNamedFunction, isNumber, isObject, isString, lineIntersection, lineLength, lineRectangleIntersection, log, logEnabled, map, merge, normal, objectsEqual, perpendicularLineTo, pointOnLine, populate, quadrant, remove, removeWithFunction, replace, rotateAnchorOrientation, rotatePoint, setToArray, sgn, snapToGrid, subtract, suggest, theta, uuid, wrap }; |
@@ -470,2 +470,5 @@ (function (global, factory) { | ||
} | ||
function sgn(x) { | ||
return x < 0 ? -1 : x > 0 ? 1 : 0; | ||
} | ||
function wrap(wrappedFunction, newFunction, returnOnThisValue) { | ||
@@ -1015,2 +1018,3 @@ return function () { | ||
exports.setToArray = setToArray; | ||
exports.sgn = sgn; | ||
exports.snapToGrid = snapToGrid; | ||
@@ -1017,0 +1021,0 @@ exports.subtract = subtract; |
{ | ||
"name": "@jsplumb/util", | ||
"version": "5.4.1", | ||
"version": "5.5.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "js/jsplumb.util.cjs.js", |
@@ -707,2 +707,8 @@ /** | ||
/** | ||
* Replacement for Math.sign, which IE11 does not support. | ||
* @param x | ||
*/ | ||
export declare function sgn(x: number): -1 | 0 | 1; | ||
/** | ||
* Defines the width and height of some element. | ||
@@ -709,0 +715,0 @@ * @public |
110212
3650