@jsplumb/util
Advanced tools
Comparing version 5.0.0-RC9 to 5.0.0
@@ -28,5 +28,2 @@ 'use strict'; | ||
} | ||
function isArray(a) { | ||
return Array.isArray(a); | ||
} | ||
function isNumber(n) { | ||
@@ -41,5 +38,2 @@ return Object.prototype.toString.call(n) === "[object Number]"; | ||
} | ||
function isNull(s) { | ||
return s == null; | ||
} | ||
function isObject(o) { | ||
@@ -65,10 +59,2 @@ return o == null ? false : Object.prototype.toString.call(o) === "[object Object]"; | ||
} | ||
var IS = { | ||
anObject: function anObject(o) { | ||
return o == null ? false : Object.prototype.toString.call(o) === "[object Object]"; | ||
}, | ||
aString: function aString(o) { | ||
return isString(o); | ||
} | ||
}; | ||
function clone(a) { | ||
@@ -83,3 +69,3 @@ if (isString(a)) { | ||
return a; | ||
} else if (isArray(a)) { | ||
} else if (Array.isArray(a)) { | ||
var _b = []; | ||
@@ -90,3 +76,3 @@ for (var i = 0; i < a.length; i++) { | ||
return _b; | ||
} else if (IS.anObject(a)) { | ||
} else if (isObject(a)) { | ||
var c = {}; | ||
@@ -129,3 +115,3 @@ for (var j in a) { | ||
ar = []; | ||
ar.push.apply(ar, isArray(c[i]) ? c[i] : [c[i]]); | ||
ar.push.apply(ar, Array.isArray(c[i]) ? c[i] : [c[i]]); | ||
ar.push(b[i]); | ||
@@ -136,5 +122,5 @@ c[i] = ar; | ||
} else { | ||
if (isArray(b[i])) { | ||
if (Array.isArray(b[i])) { | ||
ar = []; | ||
if (isArray(c[i])) { | ||
if (Array.isArray(c[i])) { | ||
ar.push.apply(ar, c[i]); | ||
@@ -144,4 +130,4 @@ } | ||
c[i] = ar; | ||
} else if (IS.anObject(b[i])) { | ||
if (!IS.anObject(c[i])) { | ||
} else if (isObject(b[i])) { | ||
if (!isObject(c[i])) { | ||
c[i] = {}; | ||
@@ -157,2 +143,66 @@ } | ||
} | ||
function _areEqual(a, b) { | ||
if (a != null && b == null) { | ||
return false; | ||
} else { | ||
if ((a == null || isString(a) || isBoolean(a) || isNumber(a)) && a !== b) { | ||
return false; | ||
} else { | ||
if (Array.isArray(a)) { | ||
if (!Array.isArray(b)) { | ||
return false; | ||
} else { | ||
if (!arraysEqual(a, b)) { | ||
return false; | ||
} | ||
} | ||
} else if (isObject(a)) { | ||
if (!isObject(a)) { | ||
return false; | ||
} else { | ||
if (!objectsEqual(a, b)) { | ||
return false; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
return true; | ||
} | ||
function arraysEqual(a, b) { | ||
if (a == null && b == null) { | ||
return true; | ||
} else if (a == null && b != null) { | ||
return false; | ||
} else if (a != null && b == null) { | ||
return false; | ||
} | ||
if (a.length !== b.length) { | ||
return false; | ||
} else { | ||
for (var i = 0; i < a.length; i++) { | ||
if (!_areEqual(a[i], b[i])) { | ||
return false; | ||
} | ||
} | ||
} | ||
return true; | ||
} | ||
function objectsEqual(a, b) { | ||
if (a == null && b == null) { | ||
return true; | ||
} else if (a == null && b != null) { | ||
return false; | ||
} else if (a != null && b == null) { | ||
return false; | ||
} | ||
for (var key in a) { | ||
var va = a[key], | ||
vb = b[key]; | ||
if (!_areEqual(va, vb)) { | ||
return false; | ||
} | ||
} | ||
return true; | ||
} | ||
function replace(inObj, path, value) { | ||
@@ -225,3 +275,3 @@ if (inObj == null) { | ||
return d(values); | ||
} else if (isArray(d)) { | ||
} else if (Array.isArray(d)) { | ||
var r = []; | ||
@@ -232,3 +282,3 @@ for (var i = 0; i < d.length; i++) { | ||
return r; | ||
} else if (IS.anObject(d)) { | ||
} else if (isObject(d)) { | ||
var s = {}; | ||
@@ -265,7 +315,7 @@ for (var j in d) { | ||
} | ||
function findAllWithFunction(a, f) { | ||
function findAllWithFunction(a, predicate) { | ||
var o = []; | ||
if (a) { | ||
for (var i = 0; i < a.length; i++) { | ||
if (f(a[i])) { | ||
if (predicate(a[i])) { | ||
o.push(i); | ||
@@ -423,3 +473,3 @@ } | ||
} | ||
if ( typeof console !== "undefined") { | ||
if (typeof console !== "undefined") { | ||
try { | ||
@@ -451,14 +501,2 @@ var msg = arguments[arguments.length - 1]; | ||
} | ||
function sortHelper(_array, _fn) { | ||
return _array.sort(_fn); | ||
} | ||
function _mergeOverrides(def, values) { | ||
var m = extend({}, def); | ||
for (var _i3 in values) { | ||
if (values[_i3]) { | ||
m[_i3] = values[_i3]; | ||
} | ||
} | ||
return m; | ||
} | ||
function getsert(map, key, valueGenerator) { | ||
@@ -570,2 +608,15 @@ if (!map.has(key)) { | ||
function _isNativeReflectConstruct() { | ||
if (typeof Reflect === "undefined" || !Reflect.construct) return false; | ||
if (Reflect.construct.sham) return false; | ||
if (typeof Proxy === "function") return true; | ||
try { | ||
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | ||
return true; | ||
} catch (e) { | ||
return false; | ||
} | ||
} | ||
function _assertThisInitialized(self) { | ||
@@ -587,4 +638,22 @@ if (self === void 0) { | ||
var EventGenerator = | ||
function () { | ||
function _createSuper(Derived) { | ||
var hasNativeReflectConstruct = _isNativeReflectConstruct(); | ||
return function _createSuperInternal() { | ||
var Super = _getPrototypeOf(Derived), | ||
result; | ||
if (hasNativeReflectConstruct) { | ||
var NewTarget = _getPrototypeOf(this).constructor; | ||
result = Reflect.construct(Super, arguments, NewTarget); | ||
} else { | ||
result = Super.apply(this, arguments); | ||
} | ||
return _possibleConstructorReturn(this, result); | ||
}; | ||
} | ||
var EventGenerator = function () { | ||
function EventGenerator() { | ||
@@ -710,8 +779,8 @@ _classCallCheck(this, EventGenerator); | ||
}(); | ||
var OptimisticEventGenerator = | ||
function (_EventGenerator) { | ||
var OptimisticEventGenerator = function (_EventGenerator) { | ||
_inherits(OptimisticEventGenerator, _EventGenerator); | ||
var _super = _createSuper(OptimisticEventGenerator); | ||
function OptimisticEventGenerator() { | ||
_classCallCheck(this, OptimisticEventGenerator); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(OptimisticEventGenerator).apply(this, arguments)); | ||
return _super.apply(this, arguments); | ||
} | ||
@@ -906,6 +975,4 @@ _createClass(OptimisticEventGenerator, [{ | ||
exports.EventGenerator = EventGenerator; | ||
exports.IS = IS; | ||
exports.OptimisticEventGenerator = OptimisticEventGenerator; | ||
exports.TWO_PI = TWO_PI; | ||
exports._mergeOverrides = _mergeOverrides; | ||
exports.add = add; | ||
@@ -915,2 +982,3 @@ exports.addToDictionary = addToDictionary; | ||
exports.addWithFunction = addWithFunction; | ||
exports.arraysEqual = arraysEqual; | ||
exports.clone = clone; | ||
@@ -935,3 +1003,2 @@ exports.each = each; | ||
exports.intersects = intersects; | ||
exports.isArray = isArray; | ||
exports.isAssignableFrom = isAssignableFrom; | ||
@@ -943,3 +1010,2 @@ exports.isBoolean = isBoolean; | ||
exports.isNamedFunction = isNamedFunction; | ||
exports.isNull = isNull; | ||
exports.isNumber = isNumber; | ||
@@ -956,2 +1022,3 @@ exports.isObject = isObject; | ||
exports.normal = normal; | ||
exports.objectsEqual = objectsEqual; | ||
exports.perpendicularLineTo = perpendicularLineTo; | ||
@@ -968,3 +1035,2 @@ exports.pointOnLine = pointOnLine; | ||
exports.snapToGrid = snapToGrid; | ||
exports.sortHelper = sortHelper; | ||
exports.subtract = subtract; | ||
@@ -971,0 +1037,0 @@ exports.suggest = suggest; |
@@ -24,5 +24,2 @@ function filterList(list, value, missingIsFalse) { | ||
} | ||
function isArray(a) { | ||
return Array.isArray(a); | ||
} | ||
function isNumber(n) { | ||
@@ -37,5 +34,2 @@ return Object.prototype.toString.call(n) === "[object Number]"; | ||
} | ||
function isNull(s) { | ||
return s == null; | ||
} | ||
function isObject(o) { | ||
@@ -61,10 +55,2 @@ return o == null ? false : Object.prototype.toString.call(o) === "[object Object]"; | ||
} | ||
var IS = { | ||
anObject: function anObject(o) { | ||
return o == null ? false : Object.prototype.toString.call(o) === "[object Object]"; | ||
}, | ||
aString: function aString(o) { | ||
return isString(o); | ||
} | ||
}; | ||
function clone(a) { | ||
@@ -79,3 +65,3 @@ if (isString(a)) { | ||
return a; | ||
} else if (isArray(a)) { | ||
} else if (Array.isArray(a)) { | ||
var _b = []; | ||
@@ -86,3 +72,3 @@ for (var i = 0; i < a.length; i++) { | ||
return _b; | ||
} else if (IS.anObject(a)) { | ||
} else if (isObject(a)) { | ||
var c = {}; | ||
@@ -125,3 +111,3 @@ for (var j in a) { | ||
ar = []; | ||
ar.push.apply(ar, isArray(c[i]) ? c[i] : [c[i]]); | ||
ar.push.apply(ar, Array.isArray(c[i]) ? c[i] : [c[i]]); | ||
ar.push(b[i]); | ||
@@ -132,5 +118,5 @@ c[i] = ar; | ||
} else { | ||
if (isArray(b[i])) { | ||
if (Array.isArray(b[i])) { | ||
ar = []; | ||
if (isArray(c[i])) { | ||
if (Array.isArray(c[i])) { | ||
ar.push.apply(ar, c[i]); | ||
@@ -140,4 +126,4 @@ } | ||
c[i] = ar; | ||
} else if (IS.anObject(b[i])) { | ||
if (!IS.anObject(c[i])) { | ||
} else if (isObject(b[i])) { | ||
if (!isObject(c[i])) { | ||
c[i] = {}; | ||
@@ -153,2 +139,66 @@ } | ||
} | ||
function _areEqual(a, b) { | ||
if (a != null && b == null) { | ||
return false; | ||
} else { | ||
if ((a == null || isString(a) || isBoolean(a) || isNumber(a)) && a !== b) { | ||
return false; | ||
} else { | ||
if (Array.isArray(a)) { | ||
if (!Array.isArray(b)) { | ||
return false; | ||
} else { | ||
if (!arraysEqual(a, b)) { | ||
return false; | ||
} | ||
} | ||
} else if (isObject(a)) { | ||
if (!isObject(a)) { | ||
return false; | ||
} else { | ||
if (!objectsEqual(a, b)) { | ||
return false; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
return true; | ||
} | ||
function arraysEqual(a, b) { | ||
if (a == null && b == null) { | ||
return true; | ||
} else if (a == null && b != null) { | ||
return false; | ||
} else if (a != null && b == null) { | ||
return false; | ||
} | ||
if (a.length !== b.length) { | ||
return false; | ||
} else { | ||
for (var i = 0; i < a.length; i++) { | ||
if (!_areEqual(a[i], b[i])) { | ||
return false; | ||
} | ||
} | ||
} | ||
return true; | ||
} | ||
function objectsEqual(a, b) { | ||
if (a == null && b == null) { | ||
return true; | ||
} else if (a == null && b != null) { | ||
return false; | ||
} else if (a != null && b == null) { | ||
return false; | ||
} | ||
for (var key in a) { | ||
var va = a[key], | ||
vb = b[key]; | ||
if (!_areEqual(va, vb)) { | ||
return false; | ||
} | ||
} | ||
return true; | ||
} | ||
function replace(inObj, path, value) { | ||
@@ -221,3 +271,3 @@ if (inObj == null) { | ||
return d(values); | ||
} else if (isArray(d)) { | ||
} else if (Array.isArray(d)) { | ||
var r = []; | ||
@@ -228,3 +278,3 @@ for (var i = 0; i < d.length; i++) { | ||
return r; | ||
} else if (IS.anObject(d)) { | ||
} else if (isObject(d)) { | ||
var s = {}; | ||
@@ -261,7 +311,7 @@ for (var j in d) { | ||
} | ||
function findAllWithFunction(a, f) { | ||
function findAllWithFunction(a, predicate) { | ||
var o = []; | ||
if (a) { | ||
for (var i = 0; i < a.length; i++) { | ||
if (f(a[i])) { | ||
if (predicate(a[i])) { | ||
o.push(i); | ||
@@ -419,3 +469,3 @@ } | ||
} | ||
if ( typeof console !== "undefined") { | ||
if (typeof console !== "undefined") { | ||
try { | ||
@@ -447,14 +497,2 @@ var msg = arguments[arguments.length - 1]; | ||
} | ||
function sortHelper(_array, _fn) { | ||
return _array.sort(_fn); | ||
} | ||
function _mergeOverrides(def, values) { | ||
var m = extend({}, def); | ||
for (var _i3 in values) { | ||
if (values[_i3]) { | ||
m[_i3] = values[_i3]; | ||
} | ||
} | ||
return m; | ||
} | ||
function getsert(map, key, valueGenerator) { | ||
@@ -566,2 +604,15 @@ if (!map.has(key)) { | ||
function _isNativeReflectConstruct() { | ||
if (typeof Reflect === "undefined" || !Reflect.construct) return false; | ||
if (Reflect.construct.sham) return false; | ||
if (typeof Proxy === "function") return true; | ||
try { | ||
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | ||
return true; | ||
} catch (e) { | ||
return false; | ||
} | ||
} | ||
function _assertThisInitialized(self) { | ||
@@ -583,4 +634,22 @@ if (self === void 0) { | ||
var EventGenerator = | ||
function () { | ||
function _createSuper(Derived) { | ||
var hasNativeReflectConstruct = _isNativeReflectConstruct(); | ||
return function _createSuperInternal() { | ||
var Super = _getPrototypeOf(Derived), | ||
result; | ||
if (hasNativeReflectConstruct) { | ||
var NewTarget = _getPrototypeOf(this).constructor; | ||
result = Reflect.construct(Super, arguments, NewTarget); | ||
} else { | ||
result = Super.apply(this, arguments); | ||
} | ||
return _possibleConstructorReturn(this, result); | ||
}; | ||
} | ||
var EventGenerator = function () { | ||
function EventGenerator() { | ||
@@ -706,8 +775,8 @@ _classCallCheck(this, EventGenerator); | ||
}(); | ||
var OptimisticEventGenerator = | ||
function (_EventGenerator) { | ||
var OptimisticEventGenerator = function (_EventGenerator) { | ||
_inherits(OptimisticEventGenerator, _EventGenerator); | ||
var _super = _createSuper(OptimisticEventGenerator); | ||
function OptimisticEventGenerator() { | ||
_classCallCheck(this, OptimisticEventGenerator); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(OptimisticEventGenerator).apply(this, arguments)); | ||
return _super.apply(this, arguments); | ||
} | ||
@@ -901,2 +970,2 @@ _createClass(OptimisticEventGenerator, [{ | ||
export { EventGenerator, IS, OptimisticEventGenerator, TWO_PI, _mergeOverrides, add, addToDictionary, addToList, addWithFunction, clone, each, encloses, extend, fastTrim, filterList, filterNull, findAllWithFunction, findWithFunction, forEach, fromArray, functionChain, getAllWithFunction, getFromSetWithFunction, getWithFunction, getsert, gradient, insertSorted, intersects, isArray, isAssignableFrom, isBoolean, isDate, isEmpty, isFunction, isNamedFunction, isNull, isNumber, isObject, isString, lineIntersection, lineLength, lineRectangleIntersection, log, logEnabled, map, merge, normal, perpendicularLineTo, pointOnLine, populate, quadrant, remove, removeWithFunction, replace, rotateAnchorOrientation, rotatePoint, setToArray, snapToGrid, sortHelper, 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, snapToGrid, subtract, suggest, theta, uuid, wrap }; |
@@ -30,5 +30,2 @@ (function (global, factory) { | ||
} | ||
function isArray(a) { | ||
return Array.isArray(a); | ||
} | ||
function isNumber(n) { | ||
@@ -43,5 +40,2 @@ return Object.prototype.toString.call(n) === "[object Number]"; | ||
} | ||
function isNull(s) { | ||
return s == null; | ||
} | ||
function isObject(o) { | ||
@@ -67,10 +61,2 @@ return o == null ? false : Object.prototype.toString.call(o) === "[object Object]"; | ||
} | ||
var IS = { | ||
anObject: function anObject(o) { | ||
return o == null ? false : Object.prototype.toString.call(o) === "[object Object]"; | ||
}, | ||
aString: function aString(o) { | ||
return isString(o); | ||
} | ||
}; | ||
function clone(a) { | ||
@@ -85,3 +71,3 @@ if (isString(a)) { | ||
return a; | ||
} else if (isArray(a)) { | ||
} else if (Array.isArray(a)) { | ||
var _b = []; | ||
@@ -92,3 +78,3 @@ for (var i = 0; i < a.length; i++) { | ||
return _b; | ||
} else if (IS.anObject(a)) { | ||
} else if (isObject(a)) { | ||
var c = {}; | ||
@@ -131,3 +117,3 @@ for (var j in a) { | ||
ar = []; | ||
ar.push.apply(ar, isArray(c[i]) ? c[i] : [c[i]]); | ||
ar.push.apply(ar, Array.isArray(c[i]) ? c[i] : [c[i]]); | ||
ar.push(b[i]); | ||
@@ -138,5 +124,5 @@ c[i] = ar; | ||
} else { | ||
if (isArray(b[i])) { | ||
if (Array.isArray(b[i])) { | ||
ar = []; | ||
if (isArray(c[i])) { | ||
if (Array.isArray(c[i])) { | ||
ar.push.apply(ar, c[i]); | ||
@@ -146,4 +132,4 @@ } | ||
c[i] = ar; | ||
} else if (IS.anObject(b[i])) { | ||
if (!IS.anObject(c[i])) { | ||
} else if (isObject(b[i])) { | ||
if (!isObject(c[i])) { | ||
c[i] = {}; | ||
@@ -159,2 +145,66 @@ } | ||
} | ||
function _areEqual(a, b) { | ||
if (a != null && b == null) { | ||
return false; | ||
} else { | ||
if ((a == null || isString(a) || isBoolean(a) || isNumber(a)) && a !== b) { | ||
return false; | ||
} else { | ||
if (Array.isArray(a)) { | ||
if (!Array.isArray(b)) { | ||
return false; | ||
} else { | ||
if (!arraysEqual(a, b)) { | ||
return false; | ||
} | ||
} | ||
} else if (isObject(a)) { | ||
if (!isObject(a)) { | ||
return false; | ||
} else { | ||
if (!objectsEqual(a, b)) { | ||
return false; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
return true; | ||
} | ||
function arraysEqual(a, b) { | ||
if (a == null && b == null) { | ||
return true; | ||
} else if (a == null && b != null) { | ||
return false; | ||
} else if (a != null && b == null) { | ||
return false; | ||
} | ||
if (a.length !== b.length) { | ||
return false; | ||
} else { | ||
for (var i = 0; i < a.length; i++) { | ||
if (!_areEqual(a[i], b[i])) { | ||
return false; | ||
} | ||
} | ||
} | ||
return true; | ||
} | ||
function objectsEqual(a, b) { | ||
if (a == null && b == null) { | ||
return true; | ||
} else if (a == null && b != null) { | ||
return false; | ||
} else if (a != null && b == null) { | ||
return false; | ||
} | ||
for (var key in a) { | ||
var va = a[key], | ||
vb = b[key]; | ||
if (!_areEqual(va, vb)) { | ||
return false; | ||
} | ||
} | ||
return true; | ||
} | ||
function replace(inObj, path, value) { | ||
@@ -227,3 +277,3 @@ if (inObj == null) { | ||
return d(values); | ||
} else if (isArray(d)) { | ||
} else if (Array.isArray(d)) { | ||
var r = []; | ||
@@ -234,3 +284,3 @@ for (var i = 0; i < d.length; i++) { | ||
return r; | ||
} else if (IS.anObject(d)) { | ||
} else if (isObject(d)) { | ||
var s = {}; | ||
@@ -267,7 +317,7 @@ for (var j in d) { | ||
} | ||
function findAllWithFunction(a, f) { | ||
function findAllWithFunction(a, predicate) { | ||
var o = []; | ||
if (a) { | ||
for (var i = 0; i < a.length; i++) { | ||
if (f(a[i])) { | ||
if (predicate(a[i])) { | ||
o.push(i); | ||
@@ -425,3 +475,3 @@ } | ||
} | ||
if ( typeof console !== "undefined") { | ||
if (typeof console !== "undefined") { | ||
try { | ||
@@ -453,14 +503,2 @@ var msg = arguments[arguments.length - 1]; | ||
} | ||
function sortHelper(_array, _fn) { | ||
return _array.sort(_fn); | ||
} | ||
function _mergeOverrides(def, values) { | ||
var m = extend({}, def); | ||
for (var _i3 in values) { | ||
if (values[_i3]) { | ||
m[_i3] = values[_i3]; | ||
} | ||
} | ||
return m; | ||
} | ||
function getsert(map, key, valueGenerator) { | ||
@@ -572,2 +610,15 @@ if (!map.has(key)) { | ||
function _isNativeReflectConstruct() { | ||
if (typeof Reflect === "undefined" || !Reflect.construct) return false; | ||
if (Reflect.construct.sham) return false; | ||
if (typeof Proxy === "function") return true; | ||
try { | ||
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | ||
return true; | ||
} catch (e) { | ||
return false; | ||
} | ||
} | ||
function _assertThisInitialized(self) { | ||
@@ -589,4 +640,22 @@ if (self === void 0) { | ||
var EventGenerator = | ||
function () { | ||
function _createSuper(Derived) { | ||
var hasNativeReflectConstruct = _isNativeReflectConstruct(); | ||
return function _createSuperInternal() { | ||
var Super = _getPrototypeOf(Derived), | ||
result; | ||
if (hasNativeReflectConstruct) { | ||
var NewTarget = _getPrototypeOf(this).constructor; | ||
result = Reflect.construct(Super, arguments, NewTarget); | ||
} else { | ||
result = Super.apply(this, arguments); | ||
} | ||
return _possibleConstructorReturn(this, result); | ||
}; | ||
} | ||
var EventGenerator = function () { | ||
function EventGenerator() { | ||
@@ -712,8 +781,8 @@ _classCallCheck(this, EventGenerator); | ||
}(); | ||
var OptimisticEventGenerator = | ||
function (_EventGenerator) { | ||
var OptimisticEventGenerator = function (_EventGenerator) { | ||
_inherits(OptimisticEventGenerator, _EventGenerator); | ||
var _super = _createSuper(OptimisticEventGenerator); | ||
function OptimisticEventGenerator() { | ||
_classCallCheck(this, OptimisticEventGenerator); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(OptimisticEventGenerator).apply(this, arguments)); | ||
return _super.apply(this, arguments); | ||
} | ||
@@ -908,6 +977,4 @@ _createClass(OptimisticEventGenerator, [{ | ||
exports.EventGenerator = EventGenerator; | ||
exports.IS = IS; | ||
exports.OptimisticEventGenerator = OptimisticEventGenerator; | ||
exports.TWO_PI = TWO_PI; | ||
exports._mergeOverrides = _mergeOverrides; | ||
exports.add = add; | ||
@@ -917,2 +984,3 @@ exports.addToDictionary = addToDictionary; | ||
exports.addWithFunction = addWithFunction; | ||
exports.arraysEqual = arraysEqual; | ||
exports.clone = clone; | ||
@@ -937,3 +1005,2 @@ exports.each = each; | ||
exports.intersects = intersects; | ||
exports.isArray = isArray; | ||
exports.isAssignableFrom = isAssignableFrom; | ||
@@ -945,3 +1012,2 @@ exports.isBoolean = isBoolean; | ||
exports.isNamedFunction = isNamedFunction; | ||
exports.isNull = isNull; | ||
exports.isNumber = isNumber; | ||
@@ -958,2 +1024,3 @@ exports.isObject = isObject; | ||
exports.normal = normal; | ||
exports.objectsEqual = objectsEqual; | ||
exports.perpendicularLineTo = perpendicularLineTo; | ||
@@ -970,3 +1037,2 @@ exports.pointOnLine = pointOnLine; | ||
exports.snapToGrid = snapToGrid; | ||
exports.sortHelper = sortHelper; | ||
exports.subtract = subtract; | ||
@@ -973,0 +1039,0 @@ exports.suggest = suggest; |
{ | ||
"name": "@jsplumb/util", | ||
"version": "5.0.0-RC9", | ||
"description": "", | ||
"main": "js/jsplumb.util.cjs.js", | ||
"module": "js/jsplumb.util.es.js", | ||
"directories": { | ||
"doc": "doc", | ||
"test": "tests" | ||
}, | ||
"files": [ | ||
"**/*.d.ts", | ||
"js/jsplumb.util.umd.js", | ||
"js/jsplumb.util.cjs.js", | ||
"js/jsplumb.util.es.js" | ||
], | ||
"types": "types/index.d.ts", | ||
"scripts": {}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/jsplumb/jsplumb.git", | ||
"directory": "ts/util" | ||
}, | ||
"keywords": [ | ||
"javascript", | ||
"svg", | ||
"visual", | ||
"connectivity" | ||
], | ||
"author": "jsPlumb (hello@jsplumbtoolkit.com)", | ||
"license": "(MIT OR GPL-2.0)", | ||
"dependencies": {}, | ||
"devDependencies": {}, | ||
"publishConfig": { | ||
"registry": "http://registry.npmjs.org" | ||
} | ||
"name": "@jsplumb/util", | ||
"version": "5.0.0", | ||
"description": "", | ||
"main": "js/jsplumb.util.cjs.js", | ||
"module": "js/jsplumb.util.es.js", | ||
"directories": { | ||
"doc": "doc", | ||
"test": "tests" | ||
}, | ||
"files": [ | ||
"util.d.ts", | ||
"js/jsplumb.util.umd.js", | ||
"js/jsplumb.util.cjs.js", | ||
"js/jsplumb.util.es.js" | ||
], | ||
"types": "util.d.ts", | ||
"scripts": {}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/jsplumb/jsplumb.git", | ||
"directory": "ts/util" | ||
}, | ||
"keywords": [ | ||
"javascript", | ||
"svg", | ||
"visual", | ||
"connectivity" | ||
], | ||
"author": "jsPlumb (hello@jsplumbtoolkit.com)", | ||
"license": "(MIT OR GPL-2.0)", | ||
"dependencies": {}, | ||
"devDependencies": {} | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
110078
3642
1
5