@visactor/vutils 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/cjs/color/Color.js +1 -1
  2. package/cjs/color/hexToRgb.js +1 -1
  3. package/cjs/color/hslToRgb.js +1 -1
  4. package/cjs/color/index.js +1 -1
  5. package/cjs/color/interpolate.js +1 -1
  6. package/cjs/color/rgbToHex.js +1 -1
  7. package/cjs/color/rgbToHsl.js +1 -1
  8. package/cjs/common/cloneDeep.js +2 -1
  9. package/cjs/common/constant.js +1 -2
  10. package/cjs/common/isEmpty.js +2 -1
  11. package/cjs/common/isEqual.js +1 -2
  12. package/cjs/common/isObjectLike.js +1 -1
  13. package/cjs/common/isPlainObject.js +1 -1
  14. package/cjs/common/isPrototype.js +1 -1
  15. package/cjs/common/isRegExp.js +1 -1
  16. package/cjs/common/isShallowEqual.js +1 -1
  17. package/cjs/common/isString.js +1 -1
  18. package/cjs/common/isType.js +1 -1
  19. package/cjs/common/isUndefined.js +1 -1
  20. package/cjs/common/isValid.js +1 -1
  21. package/cjs/common/isValidNumber.js +1 -2
  22. package/cjs/common/isValidUrl.js +1 -1
  23. package/cjs/common/lowerFirst.js +1 -1
  24. package/cjs/common/median.js +1 -1
  25. package/cjs/common/memoize.js +1 -1
  26. package/cjs/common/merge.js +1 -1
  27. package/cjs/common/mixin.js +1 -1
  28. package/cjs/common/number.js +1 -1
  29. package/cjs/data-structure/bounds.js +1 -1
  30. package/cjs/data-structure/hashTable.js +1 -1
  31. package/cjs/data-structure/index.js +1 -1
  32. package/cjs/data-structure/matrix.js +1 -1
  33. package/cjs/data-structure/point.js +1 -1
  34. package/cjs/fmin/blas1.js +1 -1
  35. package/cjs/fmin/conjugate-gradient.js +1 -1
  36. package/cjs/fmin/index.js +1 -1
  37. package/cjs/fmin/linesearch.js +2 -1
  38. package/cjs/fmin/nelder-mead.js +1 -1
  39. package/es/color/Color.js +1 -1
  40. package/es/color/hexToRgb.js +1 -1
  41. package/es/color/hslToRgb.js +1 -1
  42. package/es/color/index.js +1 -1
  43. package/es/color/interpolate.js +1 -1
  44. package/es/color/rgbToHex.js +1 -1
  45. package/es/color/rgbToHsl.js +1 -1
  46. package/es/common/cloneDeep.js +2 -1
  47. package/es/common/constant.js +1 -2
  48. package/es/common/isEmpty.js +2 -1
  49. package/es/common/isEqual.js +1 -2
  50. package/es/common/isObjectLike.js +1 -1
  51. package/es/common/isPlainObject.js +1 -1
  52. package/es/common/isPrototype.js +1 -1
  53. package/es/common/isRegExp.js +1 -1
  54. package/es/common/isShallowEqual.js +1 -1
  55. package/es/common/isString.js +1 -1
  56. package/es/common/isType.js +1 -1
  57. package/es/common/isUndefined.js +1 -1
  58. package/es/common/isValid.js +1 -1
  59. package/es/common/isValidNumber.js +1 -2
  60. package/es/common/isValidUrl.js +1 -1
  61. package/es/common/lowerFirst.js +1 -1
  62. package/es/common/median.js +1 -1
  63. package/es/common/memoize.js +1 -1
  64. package/es/common/merge.js +1 -1
  65. package/es/common/mixin.js +1 -1
  66. package/es/common/number.js +1 -1
  67. package/es/data-structure/bounds.js +1 -1
  68. package/es/data-structure/hashTable.js +1 -1
  69. package/es/data-structure/index.js +1 -1
  70. package/es/data-structure/matrix.js +1 -1
  71. package/es/data-structure/point.js +1 -1
  72. package/es/fmin/blas1.js +1 -1
  73. package/es/fmin/conjugate-gradient.js +1 -1
  74. package/es/fmin/index.js +1 -1
  75. package/es/fmin/linesearch.js +2 -1
  76. package/es/fmin/nelder-mead.js +1 -1
  77. package/package.json +17 -17
@@ -381,4 +381,4 @@ class RGB {
381
381
  }
382
382
 
383
383
  exports.RGB = RGB;
384
- //# sourceMappingURL=Color.js.map
384
+ //# sourceMappingURL=Color.js.map
@@ -10,4 +10,4 @@ function hexToRgb(str) {
10
10
  Object.defineProperty(exports, "__esModule", {
11
11
  value: !0
12
12
  }), exports.default = hexToRgb;
13
- //# sourceMappingURL=hexToRgb.js.map
13
+ //# sourceMappingURL=hexToRgb.js.map
@@ -18,4 +18,4 @@ function hslToRgb(h, s, l) {
18
18
  Object.defineProperty(exports, "__esModule", {
19
19
  value: !0
20
20
  }), exports.default = hslToRgb;
21
- //# sourceMappingURL=hslToRgb.js.map
21
+ //# sourceMappingURL=hslToRgb.js.map
@@ -77,4 +77,4 @@ Object.defineProperty(exports, "rgbToHsl", {
77
77
  return __importDefault(rgbToHsl_1).default;
78
78
  }
79
79
  }), __exportStar(require("./interpolate"), exports);
80
- //# sourceMappingURL=index.js.map
80
+ //# sourceMappingURL=index.js.map
@@ -15,4 +15,4 @@ function interpolateRgb(colorA, colorB) {
15
15
  }
16
16
 
17
17
  exports.interpolateRgb = interpolateRgb;
18
- //# sourceMappingURL=interpolate.js.map
18
+ //# sourceMappingURL=interpolate.js.map
@@ -7,4 +7,4 @@ function rgbToHex(r, g, b) {
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: !0
9
9
  }), exports.default = rgbToHex;
10
- //# sourceMappingURL=rgbToHex.js.map
10
+ //# sourceMappingURL=rgbToHex.js.map
@@ -16,4 +16,4 @@ function rgbToHsl(r, g, b) {
16
16
  Object.defineProperty(exports, "__esModule", {
17
17
  value: !0
18
18
  }), exports.default = rgbToHsl;
19
- //# sourceMappingURL=rgbToHsl.js.map
19
+ //# sourceMappingURL=rgbToHsl.js.map
@@ -27,4 +27,5 @@ function cloneDeep(value, ignoreWhen, excludeKeys) {
27
27
  return result;
28
28
  }
29
29
 
30
- exports.default = cloneDeep;
30
+ exports.default = cloneDeep;
31
+ //# sourceMappingURL=cloneDeep.js.map
@@ -13,5 +13,4 @@ Object.defineProperty(exports, "__esModule", {
13
13
  const isFunction_1 = __importDefault(require("./isFunction")), constant = value => (0,
14
14
  isFunction_1.default)(value) ? value : () => value;
15
15
 
16
- exports.default = constant;
17
- //# sourceMappingURL=constant.js.map
16
+ exports.default = constant;
@@ -22,4 +22,5 @@ function isEmpty(value) {
22
22
  return !0;
23
23
  }
24
24
 
25
- exports.default = isEmpty;
25
+ exports.default = isEmpty;
26
+ //# sourceMappingURL=isEmpty.js.map
@@ -45,5 +45,4 @@ function isEqual(a, b, options) {
45
45
  return !0;
46
46
  }
47
47
 
48
- exports.isEqual = isEqual;
49
- //# sourceMappingURL=isEqual.js.map
48
+ exports.isEqual = isEqual;
@@ -7,4 +7,4 @@ Object.defineProperty(exports, "__esModule", {
7
7
  const isObjectLike = value => "object" == typeof value && null !== value;
8
8
 
9
9
  exports.default = isObjectLike;
10
- //# sourceMappingURL=isObjectLike.js.map
10
+ //# sourceMappingURL=isObjectLike.js.map
@@ -19,4 +19,4 @@ const isObjectLike_1 = __importDefault(require("./isObjectLike")), isType_1 = __
19
19
  };
20
20
 
21
21
  exports.default = isPlainObject;
22
- //# sourceMappingURL=isPlainObject.js.map
22
+ //# sourceMappingURL=isPlainObject.js.map
@@ -10,4 +10,4 @@ const objectProto = Object.prototype, isPrototype = function(value) {
10
10
  };
11
11
 
12
12
  exports.default = isPrototype;
13
- //# sourceMappingURL=isPrototype.js.map
13
+ //# sourceMappingURL=isPrototype.js.map
@@ -13,4 +13,4 @@ Object.defineProperty(exports, "__esModule", {
13
13
  const isType_1 = __importDefault(require("./isType")), isRegExp = value => (0, isType_1.default)(value, "RegExp");
14
14
 
15
15
  exports.default = isRegExp;
16
- //# sourceMappingURL=isRegExp.js.map
16
+ //# sourceMappingURL=isRegExp.js.map
@@ -31,4 +31,4 @@ function isShallowEqual(objA, objB) {
31
31
  }
32
32
 
33
33
  exports.isShallowEqual = isShallowEqual;
34
- //# sourceMappingURL=isShallowEqual.js.map
34
+ //# sourceMappingURL=isShallowEqual.js.map
@@ -16,4 +16,4 @@ const isType_1 = __importDefault(require("./isType")), isString = (value, fuzzy
16
16
  };
17
17
 
18
18
  exports.default = isString;
19
- //# sourceMappingURL=isString.js.map
19
+ //# sourceMappingURL=isString.js.map
@@ -7,4 +7,4 @@ Object.defineProperty(exports, "__esModule", {
7
7
  const isType = (value, type) => Object.prototype.toString.call(value) === `[object ${type}]`;
8
8
 
9
9
  exports.default = isType;
10
- //# sourceMappingURL=isType.js.map
10
+ //# sourceMappingURL=isType.js.map
@@ -7,4 +7,4 @@ Object.defineProperty(exports, "__esModule", {
7
7
  const isUndefined = value => void 0 === value;
8
8
 
9
9
  exports.default = isUndefined;
10
- //# sourceMappingURL=isUndefined.js.map
10
+ //# sourceMappingURL=isUndefined.js.map
@@ -7,4 +7,4 @@ Object.defineProperty(exports, "__esModule", {
7
7
  const isValid = value => null != value;
8
8
 
9
9
  exports.default = isValid;
10
- //# sourceMappingURL=isValid.js.map
10
+ //# sourceMappingURL=isValid.js.map
@@ -13,5 +13,4 @@ Object.defineProperty(exports, "__esModule", {
13
13
  const isNumber_1 = __importDefault(require("./isNumber")), isValidNumber = value => (0,
14
14
  isNumber_1.default)(value) && Number.isFinite(value);
15
15
 
16
- exports.default = isValidNumber;
17
- //# sourceMappingURL=isValidNumber.js.map
16
+ exports.default = isValidNumber;
@@ -7,4 +7,4 @@ Object.defineProperty(exports, "__esModule", {
7
7
  const isValidUrl = value => new RegExp(/^(http(s)?:\/\/)\w+[^\s]+(\.[^\s]+){1,}$/).test(value);
8
8
 
9
9
  exports.isValidUrl = isValidUrl, exports.default = exports.isValidUrl;
10
- //# sourceMappingURL=isValidUrl.js.map
10
+ //# sourceMappingURL=isValidUrl.js.map
@@ -9,4 +9,4 @@ const lowerFirst = function(str) {
9
9
  };
10
10
 
11
11
  exports.default = lowerFirst;
12
- //# sourceMappingURL=lowerFirst.js.map
12
+ //# sourceMappingURL=lowerFirst.js.map
@@ -10,4 +10,4 @@ const ascending_1 = require("./ascending"), quantileSorted_1 = require("./quanti
10
10
  };
11
11
 
12
12
  exports.median = median;
13
- //# sourceMappingURL=median.js.map
13
+ //# sourceMappingURL=median.js.map
@@ -11,4 +11,4 @@ const memoize = func => {
11
11
  };
12
12
 
13
13
  exports.memoize = memoize;
14
- //# sourceMappingURL=memoize.js.map
14
+ //# sourceMappingURL=memoize.js.map
@@ -62,4 +62,4 @@ function merge(target, ...sources) {
62
62
  }
63
63
 
64
64
  exports.baseMerge = baseMerge, exports.default = merge;
65
- //# sourceMappingURL=merge.js.map
65
+ //# sourceMappingURL=merge.js.map
@@ -32,4 +32,4 @@ Object.defineProperty(exports, "__esModule", {
32
32
  value: !0
33
33
  }), exports.mixin = exports.defaults = exports.keys = void 0, exports.keys = keys,
34
34
  exports.defaults = defaults, exports.mixin = mixin;
35
- //# sourceMappingURL=mixin.js.map
35
+ //# sourceMappingURL=mixin.js.map
@@ -20,4 +20,4 @@ function isLess(a, b, relTol, absTol) {
20
20
  }
21
21
 
22
22
  exports.isNumberClose = isNumberClose, exports.isGreater = isGreater, exports.isLess = isLess;
23
- //# sourceMappingURL=number.js.map
23
+ //# sourceMappingURL=number.js.map
@@ -169,4 +169,4 @@ class OBBBounds extends Bounds {
169
169
  }
170
170
 
171
171
  exports.OBBBounds = OBBBounds;
172
- //# sourceMappingURL=bounds.js.map
172
+ //# sourceMappingURL=bounds.js.map
@@ -112,4 +112,4 @@ class HashTable {
112
112
  }
113
113
 
114
114
  exports.HashTable = HashTable;
115
- //# sourceMappingURL=hashTable.js.map
115
+ //# sourceMappingURL=hashTable.js.map
@@ -19,4 +19,4 @@ Object.defineProperty(exports, "__esModule", {
19
19
  value: !0
20
20
  }), __exportStar(require("./hashTable"), exports), __exportStar(require("./point"), exports),
21
21
  __exportStar(require("./bounds"), exports), __exportStar(require("./matrix"), exports);
22
- //# sourceMappingURL=index.js.map
22
+ //# sourceMappingURL=index.js.map
@@ -110,4 +110,4 @@ function normalTransform(out, origin, x, y, scaleX, scaleY, angle, rotateCenter)
110
110
  }
111
111
 
112
112
  exports.Matrix = Matrix, exports.normalTransform = normalTransform;
113
- //# sourceMappingURL=matrix.js.map
113
+ //# sourceMappingURL=matrix.js.map
@@ -78,4 +78,4 @@ class PolarPoint {
78
78
  }
79
79
 
80
80
  exports.PolarPoint = PolarPoint;
81
- //# sourceMappingURL=point.js.map
81
+ //# sourceMappingURL=point.js.map
package/cjs/fmin/blas1.js CHANGED
@@ -36,4 +36,4 @@ function gemv(output, A, x) {
36
36
 
37
37
  exports.zeros = zeros, exports.zerosM = zerosM, exports.norm2 = norm2, exports.scale = scale,
38
38
  exports.weightedSum = weightedSum, exports.gemv = gemv;
39
- //# sourceMappingURL=blas1.js.map
39
+ //# sourceMappingURL=blas1.js.map
@@ -46,4 +46,4 @@ function conjugateGradient(f, initial, params) {
46
46
  }
47
47
 
48
48
  exports.conjugateGradient = conjugateGradient;
49
- //# sourceMappingURL=conjugate-gradient.js.map
49
+ //# sourceMappingURL=conjugate-gradient.js.map
package/cjs/fmin/index.js CHANGED
@@ -19,4 +19,4 @@ Object.defineProperty(exports, "__esModule", {
19
19
  value: !0
20
20
  }), __exportStar(require("./blas1"), exports), __exportStar(require("./nelder-mead"), exports),
21
21
  __exportStar(require("./conjugate-gradient"), exports);
22
- //# sourceMappingURL=index.js.map
22
+ //# sourceMappingURL=index.js.map
@@ -29,4 +29,5 @@ function wolfeLineSearch(f, pk, current, next, a, c1, c2) {
29
29
  return a;
30
30
  }
31
31
 
32
- exports.wolfeLineSearch = wolfeLineSearch;
32
+ exports.wolfeLineSearch = wolfeLineSearch;
33
+ //# sourceMappingURL=linesearch.js.map
@@ -67,4 +67,4 @@ function nelderMead(f, x0, parameters) {
67
67
  }
68
68
 
69
69
  exports.nelderMead = nelderMead;
70
- //# sourceMappingURL=nelder-mead.js.map
70
+ //# sourceMappingURL=nelder-mead.js.map
package/es/color/Color.js CHANGED
@@ -366,4 +366,4 @@ export class RGB {
366
366
  return this.formatHex();
367
367
  }
368
368
  }
369
- //# sourceMappingURL=Color.js.map
369
+ //# sourceMappingURL=Color.js.map
@@ -4,4 +4,4 @@ export default function hexToRgb(str) {
4
4
  for (let i = strtIndex; i < str.length; i++) "#" !== str[i] && (i < strtIndex + 2 ? r += str[i] : i < strtIndex + 4 ? g += str[i] : i < strtIndex + 6 && (b += str[i]));
5
5
  return [ parseInt(r, 16), parseInt(g, 16), parseInt(b, 16) ];
6
6
  }
7
- //# sourceMappingURL=hexToRgb.js.map
7
+ //# sourceMappingURL=hexToRgb.js.map
@@ -12,4 +12,4 @@ export default function hslToRgb(h, s, l) {
12
12
  b: b
13
13
  };
14
14
  }
15
- //# sourceMappingURL=hslToRgb.js.map
15
+ //# sourceMappingURL=hslToRgb.js.map
package/es/color/index.js CHANGED
@@ -9,4 +9,4 @@ export { default as rgbToHex } from "./rgbToHex";
9
9
  export { default as rgbToHsl } from "./rgbToHsl";
10
10
 
11
11
  export * from "./interpolate";
12
- //# sourceMappingURL=index.js.map
12
+ //# sourceMappingURL=index.js.map
@@ -7,4 +7,4 @@ export function interpolateRgb(colorA, colorB) {
7
7
  return new RGB(r, g, b, opacityA * (1 - t) + opacityB * t);
8
8
  };
9
9
  }
10
- //# sourceMappingURL=interpolate.js.map
10
+ //# sourceMappingURL=interpolate.js.map
@@ -1,4 +1,4 @@
1
1
  export default function rgbToHex(r, g, b) {
2
2
  return Number((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
3
3
  }
4
- //# sourceMappingURL=rgbToHex.js.map
4
+ //# sourceMappingURL=rgbToHex.js.map
@@ -10,4 +10,4 @@ export default function rgbToHsl(r, g, b) {
10
10
  l: l
11
11
  };
12
12
  }
13
- //# sourceMappingURL=rgbToHsl.js.map
13
+ //# sourceMappingURL=rgbToHsl.js.map
@@ -22,4 +22,5 @@ export default function cloneDeep(value, ignoreWhen, excludeKeys) {
22
22
  excludeKeys && excludeKeys.includes(key.toString()) ? result[key] = subValue : result[key] = cloneDeep(subValue, ignoreWhen, excludeKeys);
23
23
  }
24
24
  return result;
25
- }
25
+ }
26
+ //# sourceMappingURL=cloneDeep.js.map
@@ -2,5 +2,4 @@ import isFunction from "./isFunction";
2
2
 
3
3
  const constant = value => isFunction(value) ? value : () => value;
4
4
 
5
- export default constant;
6
- //# sourceMappingURL=constant.js.map
5
+ export default constant;
@@ -18,4 +18,5 @@ function isEmpty(value) {
18
18
  return !0;
19
19
  }
20
20
 
21
- export default isEmpty;
21
+ export default isEmpty;
22
+ //# sourceMappingURL=isEmpty.js.map
@@ -35,5 +35,4 @@ export function isEqual(a, b, options) {
35
35
  if (!isEqual(a[key], b[key], options)) return !1;
36
36
  }
37
37
  return !0;
38
- }
39
- //# sourceMappingURL=isEqual.js.map
38
+ }
@@ -1,4 +1,4 @@
1
1
  const isObjectLike = value => "object" == typeof value && null !== value;
2
2
 
3
3
  export default isObjectLike;
4
- //# sourceMappingURL=isObjectLike.js.map
4
+ //# sourceMappingURL=isObjectLike.js.map
@@ -11,4 +11,4 @@ const isPlainObject = function(value) {
11
11
  };
12
12
 
13
13
  export default isPlainObject;
14
- //# sourceMappingURL=isPlainObject.js.map
14
+ //# sourceMappingURL=isPlainObject.js.map
@@ -4,4 +4,4 @@ const objectProto = Object.prototype, isPrototype = function(value) {
4
4
  };
5
5
 
6
6
  export default isPrototype;
7
- //# sourceMappingURL=isPrototype.js.map
7
+ //# sourceMappingURL=isPrototype.js.map
@@ -3,4 +3,4 @@ import isType from "./isType";
3
3
  const isRegExp = value => isType(value, "RegExp");
4
4
 
5
5
  export default isRegExp;
6
- //# sourceMappingURL=isRegExp.js.map
6
+ //# sourceMappingURL=isRegExp.js.map
@@ -19,4 +19,4 @@ export function isShallowEqual(objA, objB) {
19
19
  return Object.keys(objA).forEach((k => !!is(objA[k], objB[k]) || (ret = !1, ret))),
20
20
  ret;
21
21
  }
22
- //# sourceMappingURL=isShallowEqual.js.map
22
+ //# sourceMappingURL=isShallowEqual.js.map
@@ -6,4 +6,4 @@ const isString = (value, fuzzy = !1) => {
6
6
  };
7
7
 
8
8
  export default isString;
9
- //# sourceMappingURL=isString.js.map
9
+ //# sourceMappingURL=isString.js.map
@@ -1,4 +1,4 @@
1
1
  const isType = (value, type) => Object.prototype.toString.call(value) === `[object ${type}]`;
2
2
 
3
3
  export default isType;
4
- //# sourceMappingURL=isType.js.map
4
+ //# sourceMappingURL=isType.js.map
@@ -1,4 +1,4 @@
1
1
  const isUndefined = value => void 0 === value;
2
2
 
3
3
  export default isUndefined;
4
- //# sourceMappingURL=isUndefined.js.map
4
+ //# sourceMappingURL=isUndefined.js.map
@@ -1,4 +1,4 @@
1
1
  const isValid = value => null != value;
2
2
 
3
3
  export default isValid;
4
- //# sourceMappingURL=isValid.js.map
4
+ //# sourceMappingURL=isValid.js.map
@@ -2,5 +2,4 @@ import isNumber from "./isNumber";
2
2
 
3
3
  const isValidNumber = value => isNumber(value) && Number.isFinite(value);
4
4
 
5
- export default isValidNumber;
6
- //# sourceMappingURL=isValidNumber.js.map
5
+ export default isValidNumber;
@@ -1,4 +1,4 @@
1
1
  export const isValidUrl = value => new RegExp(/^(http(s)?:\/\/)\w+[^\s]+(\.[^\s]+){1,}$/).test(value);
2
2
 
3
3
  export default isValidUrl;
4
- //# sourceMappingURL=isValidUrl.js.map
4
+ //# sourceMappingURL=isValidUrl.js.map
@@ -3,4 +3,4 @@ const lowerFirst = function(str) {
3
3
  };
4
4
 
5
5
  export default lowerFirst;
6
- //# sourceMappingURL=lowerFirst.js.map
6
+ //# sourceMappingURL=lowerFirst.js.map
@@ -6,4 +6,4 @@ export const median = (values, isSorted) => {
6
6
  let sorted = values;
7
7
  return !0 !== isSorted && (sorted = values.sort(ascending)), quantileSorted(sorted, .5);
8
8
  };
9
- //# sourceMappingURL=median.js.map
9
+ //# sourceMappingURL=median.js.map
@@ -3,4 +3,4 @@ export const memoize = func => {
3
3
  return (...args) => (lastArgs && args.every(((val, i) => val === lastArgs[i])) || (lastArgs = args,
4
4
  lastResult = func(...args)), lastResult);
5
5
  };
6
- //# sourceMappingURL=memoize.js.map
6
+ //# sourceMappingURL=memoize.js.map
@@ -51,4 +51,4 @@ export default function merge(target, ...sources) {
51
51
  }
52
52
  return target;
53
53
  }
54
- //# sourceMappingURL=merge.js.map
54
+ //# sourceMappingURL=merge.js.map
@@ -25,4 +25,4 @@ export function mixin(target, source, override = !0) {
25
25
  }
26
26
  } else defaults(target, source, override);
27
27
  }
28
- //# sourceMappingURL=mixin.js.map
28
+ //# sourceMappingURL=mixin.js.map
@@ -12,4 +12,4 @@ export function isGreater(a, b, relTol, absTol) {
12
12
  export function isLess(a, b, relTol, absTol) {
13
13
  return a < b && !isNumberClose(a, b, relTol, absTol);
14
14
  }
15
- //# sourceMappingURL=number.js.map
15
+ //# sourceMappingURL=number.js.map
@@ -159,4 +159,4 @@ export class OBBBounds extends Bounds {
159
159
  }, this.angle, originPoint) ];
160
160
  }
161
161
  }
162
- //# sourceMappingURL=bounds.js.map
162
+ //# sourceMappingURL=bounds.js.map
@@ -102,4 +102,4 @@ export class HashTable {
102
102
  }
103
103
  toImmutableMap() {}
104
104
  }
105
- //# sourceMappingURL=hashTable.js.map
105
+ //# sourceMappingURL=hashTable.js.map
@@ -5,4 +5,4 @@ export * from "./point";
5
5
  export * from "./bounds";
6
6
 
7
7
  export * from "./matrix";
8
- //# sourceMappingURL=index.js.map
8
+ //# sourceMappingURL=index.js.map
@@ -103,4 +103,4 @@ export function normalTransform(out, origin, x, y, scaleX, scaleY, angle, rotate
103
103
  out.e = oe + oa * rotateCenterX + oc * rotateCenterY - a1 * offsetX - c1 * offsetY,
104
104
  out.f = of + ob * rotateCenterX + od * rotateCenterY - b1 * offsetX - d1 * offsetY;
105
105
  }
106
- //# sourceMappingURL=matrix.js.map
106
+ //# sourceMappingURL=matrix.js.map
@@ -62,4 +62,4 @@ export class PolarPoint {
62
62
  return this.r = r, this.theta = theta, this;
63
63
  }
64
64
  }
65
- //# sourceMappingURL=point.js.map
65
+ //# sourceMappingURL=point.js.map
package/es/fmin/blas1.js CHANGED
@@ -27,4 +27,4 @@ export function weightedSum(ret, w1, v1, w2, v2) {
27
27
  export function gemv(output, A, x) {
28
28
  for (let i = 0; i < output.length; ++i) output[i] = dotProduct(A[i], x);
29
29
  }
30
- //# sourceMappingURL=blas1.js.map
30
+ //# sourceMappingURL=blas1.js.map
@@ -40,4 +40,4 @@ export function conjugateGradient(f, initial, params) {
40
40
  alpha: a
41
41
  }), current;
42
42
  }
43
- //# sourceMappingURL=conjugate-gradient.js.map
43
+ //# sourceMappingURL=conjugate-gradient.js.map
package/es/fmin/index.js CHANGED
@@ -3,4 +3,4 @@ export * from "./blas1";
3
3
  export * from "./nelder-mead";
4
4
 
5
5
  export * from "./conjugate-gradient";
6
- //# sourceMappingURL=index.js.map
6
+ //# sourceMappingURL=index.js.map
@@ -23,4 +23,5 @@ export function wolfeLineSearch(f, pk, current, next, a, c1, c2) {
23
23
  phi_old = phi, a0 = a, a *= 2;
24
24
  }
25
25
  return a;
26
- }
26
+ }
27
+ //# sourceMappingURL=linesearch.js.map
@@ -59,4 +59,4 @@ export function nelderMead(f, x0, parameters) {
59
59
  x: simplex[0]
60
60
  };
61
61
  }
62
- //# sourceMappingURL=nelder-mead.js.map
62
+ //# sourceMappingURL=nelder-mead.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vutils",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "main": "cjs/index.js",
5
5
  "module": "es/index.js",
6
6
  "types": "es/index.d.ts",
@@ -20,30 +20,20 @@
20
20
  "utility"
21
21
  ],
22
22
  "sideEffects": false,
23
- "scripts": {
24
- "compile": "tsc --noEmit",
25
- "eslint": "eslint --debug --fix src/",
26
- "build": "bundle",
27
- "dev": "bundle --clean -f es -w",
28
- "start": "vite ./vite",
29
- "test": "jest",
30
- "test-check": "DEBUG=jest jest --forceExit --detectOpenHandles --silent false --verbose false --runInBand",
31
- "test-cov": "jest -w 16 --coverage"
32
- },
33
23
  "devDependencies": {
34
- "@internal/bundler": "0.0.1",
35
- "@internal/eslint-config": "0.0.1",
36
- "@internal/ts-config": "0.0.1",
37
24
  "@rushstack/eslint-patch": "~1.1.4",
38
25
  "eslint": "~8.18.0",
39
26
  "vite": "3.2.6",
40
- "@internal/jest-config": "0.0.1",
41
27
  "jest": "~29.5.0",
42
28
  "@jest/globals": "~29.5.0",
43
29
  "ts-jest": "~29.1.0",
44
30
  "@types/jest": "~29.5.0",
45
31
  "typescript": "4.9.5",
46
- "@types/node": "*"
32
+ "@types/node": "*",
33
+ "@internal/bundler": "0.0.1",
34
+ "@internal/eslint-config": "0.0.1",
35
+ "@internal/jest-config": "0.0.1",
36
+ "@internal/ts-config": "0.0.1"
47
37
  },
48
38
  "dependencies": {
49
39
  "eventemitter3": "^4.0.7",
@@ -52,5 +42,15 @@
52
42
  },
53
43
  "publishConfig": {
54
44
  "access": "public"
45
+ },
46
+ "scripts": {
47
+ "compile": "tsc --noEmit",
48
+ "eslint": "eslint --debug --fix src/",
49
+ "build": "bundle",
50
+ "dev": "bundle --clean -f es -w",
51
+ "start": "vite ./vite",
52
+ "test": "jest",
53
+ "test-check": "DEBUG=jest jest --forceExit --detectOpenHandles --silent false --verbose false --runInBand",
54
+ "test-cov": "jest -w 16 --coverage"
55
55
  }
56
- }
56
+ }