@visactor/vutils 1.0.1 → 1.0.3

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.
@@ -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;
@@ -32,4 +32,5 @@ exports.field = field;
32
32
  const simpleField = option => option ? "string" == typeof option || "number" == typeof option ? () => option : (0,
33
33
  isFunction_1.default)(option) ? option : datum => datum[option.field] : null;
34
34
 
35
- exports.simpleField = simpleField;
35
+ exports.simpleField = simpleField;
36
+ //# sourceMappingURL=field.js.map
@@ -51,5 +51,4 @@ function interpolateString(a, b) {
51
51
  });
52
52
  }
53
53
 
54
- exports.interpolateString = interpolateString;
55
- //# sourceMappingURL=interpolate.js.map
54
+ exports.interpolateString = interpolateString;
@@ -15,4 +15,5 @@ const isType_1 = __importDefault(require("./isType")), isNumber = (value, fuzzy
15
15
  return fuzzy ? "number" === type : "number" === type || (0, isType_1.default)(value, "Number");
16
16
  };
17
17
 
18
- exports.default = isNumber;
18
+ exports.default = isNumber;
19
+ //# sourceMappingURL=isNumber.js.map
@@ -9,5 +9,4 @@ const objectProto = Object.prototype, isPrototype = function(value) {
9
9
  return value === ("function" == typeof Ctor && Ctor.prototype || objectProto);
10
10
  };
11
11
 
12
- exports.default = isPrototype;
13
- //# sourceMappingURL=isPrototype.js.map
12
+ exports.default = isPrototype;
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
+ }
@@ -20,4 +20,5 @@ export const field = (fieldStr, opt = {}) => {
20
20
  return fieldSingle(fieldStr, opt);
21
21
  };
22
22
 
23
- export const simpleField = option => option ? "string" == typeof option || "number" == typeof option ? () => option : isFunction(option) ? option : datum => datum[option.field] : null;
23
+ export const simpleField = option => option ? "string" == typeof option || "number" == typeof option ? () => option : isFunction(option) ? option : datum => datum[option.field] : null;
24
+ //# sourceMappingURL=field.js.map
@@ -41,5 +41,4 @@ export function interpolateString(a, b) {
41
41
  for (let o, i = 0; i < b; ++i) s[(o = q[i]).i] = o.x(t);
42
42
  return s.join("");
43
43
  });
44
- }
45
- //# sourceMappingURL=interpolate.js.map
44
+ }
@@ -5,4 +5,5 @@ const isNumber = (value, fuzzy = !1) => {
5
5
  return fuzzy ? "number" === type : "number" === type || isType(value, "Number");
6
6
  };
7
7
 
8
- export default isNumber;
8
+ export default isNumber;
9
+ //# sourceMappingURL=isNumber.js.map
@@ -3,5 +3,4 @@ const objectProto = Object.prototype, isPrototype = function(value) {
3
3
  return value === ("function" == typeof Ctor && Ctor.prototype || objectProto);
4
4
  };
5
5
 
6
- export default isPrototype;
7
- //# sourceMappingURL=isPrototype.js.map
6
+ export default isPrototype;
@@ -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
@@ -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
@@ -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
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vutils",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "main": "cjs/index.js",
5
5
  "module": "es/index.js",
6
6
  "types": "es/index.d.ts",
@@ -30,10 +30,10 @@
30
30
  "@types/jest": "~29.5.0",
31
31
  "typescript": "4.9.5",
32
32
  "@types/node": "*",
33
+ "@internal/bundler": "0.0.1",
33
34
  "@internal/eslint-config": "0.0.1",
34
- "@internal/ts-config": "0.0.1",
35
35
  "@internal/jest-config": "0.0.1",
36
- "@internal/bundler": "0.0.1"
36
+ "@internal/ts-config": "0.0.1"
37
37
  },
38
38
  "dependencies": {
39
39
  "eventemitter3": "^4.0.7",