@visactor/vutils 0.9.2-alpha.4 → 0.9.2-alpha.5

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 (41) hide show
  1. package/cjs/common/ascending.js +1 -2
  2. package/cjs/common/debounce.js +2 -1
  3. package/cjs/common/isArrayLike.js +1 -2
  4. package/cjs/common/isNull.js +2 -1
  5. package/cjs/common/isShallowEqual.js +1 -2
  6. package/cjs/common/isString.js +1 -1
  7. package/cjs/common/isType.js +1 -1
  8. package/cjs/common/isUndefined.js +1 -1
  9. package/cjs/common/isValid.js +1 -1
  10. package/cjs/common/isValidNumber.js +1 -1
  11. package/cjs/common/isValidUrl.js +1 -1
  12. package/cjs/common/lowerFirst.js +1 -1
  13. package/cjs/data-structure/bounds.js +1 -1
  14. package/cjs/data-structure/hashTable.js +2 -1
  15. package/cjs/data-structure/index.js +1 -1
  16. package/cjs/data-structure/matrix.js +1 -1
  17. package/cjs/data-structure/point.js +1 -1
  18. package/cjs/geo/index.js +1 -1
  19. package/cjs/geo/interface.js +1 -1
  20. package/cjs/geo/invariant.js +1 -1
  21. package/es/common/ascending.js +1 -2
  22. package/es/common/debounce.js +2 -1
  23. package/es/common/isArrayLike.js +1 -2
  24. package/es/common/isNull.js +2 -1
  25. package/es/common/isShallowEqual.js +1 -2
  26. package/es/common/isString.js +1 -1
  27. package/es/common/isType.js +1 -1
  28. package/es/common/isUndefined.js +1 -1
  29. package/es/common/isValid.js +1 -1
  30. package/es/common/isValidNumber.js +1 -1
  31. package/es/common/isValidUrl.js +1 -1
  32. package/es/common/lowerFirst.js +1 -1
  33. package/es/data-structure/bounds.js +1 -1
  34. package/es/data-structure/hashTable.js +2 -1
  35. package/es/data-structure/index.js +1 -1
  36. package/es/data-structure/matrix.js +1 -1
  37. package/es/data-structure/point.js +1 -1
  38. package/es/geo/index.js +1 -1
  39. package/es/geo/interface.js +1 -1
  40. package/es/geo/invariant.js +1 -1
  41. package/package.json +3 -3
@@ -6,5 +6,4 @@ function ascending(a, b) {
6
6
 
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: !0
9
- }), exports.ascending = void 0, exports.ascending = ascending;
10
- //# sourceMappingURL=ascending.js.map
9
+ }), exports.ascending = void 0, exports.ascending = ascending;
@@ -72,4 +72,5 @@ function debounce(func, wait, options) {
72
72
  }, debounced;
73
73
  }
74
74
 
75
- hasRaf = !1, exports.default = debounce;
75
+ hasRaf = !1, exports.default = debounce;
76
+ //# sourceMappingURL=debounce.js.map
@@ -8,5 +8,4 @@ const isArrayLike = function(value) {
8
8
  return null !== value && "function" != typeof value && Number.isFinite(value.length);
9
9
  };
10
10
 
11
- exports.default = isArrayLike;
12
- //# sourceMappingURL=isArrayLike.js.map
11
+ exports.default = isArrayLike;
@@ -6,4 +6,5 @@ Object.defineProperty(exports, "__esModule", {
6
6
 
7
7
  const isNull = value => null === value;
8
8
 
9
- exports.default = isNull;
9
+ exports.default = isNull;
10
+ //# sourceMappingURL=isNull.js.map
@@ -30,5 +30,4 @@ function isShallowEqual(objA, objB) {
30
30
  ret;
31
31
  }
32
32
 
33
- exports.isShallowEqual = isShallowEqual;
34
- //# sourceMappingURL=isShallowEqual.js.map
33
+ exports.isShallowEqual = isShallowEqual;
@@ -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) => 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
@@ -14,4 +14,4 @@ const isNumber_1 = __importDefault(require("./isNumber")), isValidNumber = value
14
14
  isNumber_1.default)(value) && Number.isFinite(value);
15
15
 
16
16
  exports.default = isValidNumber;
17
- //# sourceMappingURL=isValidNumber.js.map
17
+ //# sourceMappingURL=isValidNumber.js.map
@@ -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
@@ -136,4 +136,4 @@ exports.AABBBounds = AABBBounds;
136
136
  class OBBBounds extends Bounds {}
137
137
 
138
138
  exports.OBBBounds = OBBBounds;
139
- //# sourceMappingURL=bounds.js.map
139
+ //# sourceMappingURL=bounds.js.map
@@ -111,4 +111,5 @@ class HashTable {
111
111
  toImmutableMap() {}
112
112
  }
113
113
 
114
- exports.HashTable = HashTable;
114
+ exports.HashTable = HashTable;
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/geo/index.js CHANGED
@@ -18,4 +18,4 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
18
18
  Object.defineProperty(exports, "__esModule", {
19
19
  value: !0
20
20
  }), __exportStar(require("./invariant"), exports), __exportStar(require("./interface"), exports);
21
- //# sourceMappingURL=index.js.map
21
+ //# sourceMappingURL=index.js.map
@@ -3,4 +3,4 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  });
6
- //# sourceMappingURL=interface.js.map
6
+ //# sourceMappingURL=interface.js.map
@@ -42,4 +42,4 @@ function destination(point, distance, bearing, options = {}) {
42
42
  }
43
43
 
44
44
  exports.isPointInPolygon = isPointInPolygon, exports.destination = destination;
45
- //# sourceMappingURL=invariant.js.map
45
+ //# sourceMappingURL=invariant.js.map
@@ -1,4 +1,3 @@
1
1
  export function ascending(a, b) {
2
2
  return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
3
- }
4
- //# sourceMappingURL=ascending.js.map
3
+ }
@@ -64,4 +64,5 @@ function debounce(func, wait, options) {
64
64
 
65
65
  hasRaf = !1;
66
66
 
67
- export default debounce;
67
+ export default debounce;
68
+ //# sourceMappingURL=debounce.js.map
@@ -2,5 +2,4 @@ const isArrayLike = function(value) {
2
2
  return null !== value && "function" != typeof value && Number.isFinite(value.length);
3
3
  };
4
4
 
5
- export default isArrayLike;
6
- //# sourceMappingURL=isArrayLike.js.map
5
+ export default isArrayLike;
@@ -1,3 +1,4 @@
1
1
  const isNull = value => null === value;
2
2
 
3
- export default isNull;
3
+ export default isNull;
4
+ //# sourceMappingURL=isNull.js.map
@@ -18,5 +18,4 @@ export function isShallowEqual(objA, objB) {
18
18
  let ret = !0;
19
19
  return Object.keys(objA).forEach((k => !!is(objA[k], objB[k]) || (ret = !1, ret))),
20
20
  ret;
21
- }
22
- //# sourceMappingURL=isShallowEqual.js.map
21
+ }
@@ -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) => 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
@@ -3,4 +3,4 @@ import isNumber from "./isNumber";
3
3
  const isValidNumber = value => isNumber(value) && Number.isFinite(value);
4
4
 
5
5
  export default isValidNumber;
6
- //# sourceMappingURL=isValidNumber.js.map
6
+ //# sourceMappingURL=isValidNumber.js.map
@@ -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
@@ -124,4 +124,4 @@ export class Bounds {
124
124
  export class AABBBounds extends Bounds {}
125
125
 
126
126
  export class OBBBounds extends Bounds {}
127
- //# sourceMappingURL=bounds.js.map
127
+ //# sourceMappingURL=bounds.js.map
@@ -101,4 +101,5 @@ export class HashTable {
101
101
  return returnArr;
102
102
  }
103
103
  toImmutableMap() {}
104
- }
104
+ }
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/geo/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export * from "./invariant";
2
2
 
3
3
  export * from "./interface";
4
- //# sourceMappingURL=index.js.map
4
+ //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
1
  export { };
2
- //# sourceMappingURL=interface.js.map
2
+ //# sourceMappingURL=interface.js.map
@@ -37,4 +37,4 @@ export function destination(point, distance, bearing, options = {}) {
37
37
  y: radianToDegree(latitude2)
38
38
  };
39
39
  }
40
- //# sourceMappingURL=invariant.js.map
40
+ //# sourceMappingURL=invariant.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vutils",
3
- "version": "0.9.2-alpha.4",
3
+ "version": "0.9.2-alpha.5",
4
4
  "main": "cjs/index.js",
5
5
  "module": "es/index.js",
6
6
  "types": "es/index.d.ts",
@@ -28,8 +28,8 @@
28
28
  "@types/node": "*",
29
29
  "@internal/bundler": "0.0.1",
30
30
  "@internal/eslint-config": "0.0.1",
31
- "@internal/jest-config": "0.0.1",
32
- "@internal/ts-config": "0.0.1"
31
+ "@internal/ts-config": "0.0.1",
32
+ "@internal/jest-config": "0.0.1"
33
33
  },
34
34
  "dependencies": {
35
35
  "eventemitter3": "^4.0.7",