@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.
- package/cjs/common/ascending.js +1 -2
- package/cjs/common/field.js +2 -1
- package/cjs/common/interpolate.js +1 -2
- package/cjs/common/isNumber.js +2 -1
- package/cjs/common/isPrototype.js +1 -2
- package/cjs/common/isString.js +1 -1
- package/cjs/common/isType.js +1 -1
- package/cjs/common/isUndefined.js +1 -1
- package/cjs/common/isValid.js +1 -1
- package/cjs/common/isValidNumber.js +1 -1
- package/cjs/data-structure/bounds.js +1 -1
- package/cjs/data-structure/hashTable.js +2 -1
- package/cjs/data-structure/index.js +1 -1
- package/cjs/data-structure/matrix.js +1 -1
- package/cjs/data-structure/point.js +1 -1
- package/es/common/ascending.js +1 -2
- package/es/common/field.js +2 -1
- package/es/common/interpolate.js +1 -2
- package/es/common/isNumber.js +2 -1
- package/es/common/isPrototype.js +1 -2
- package/es/common/isString.js +1 -1
- package/es/common/isType.js +1 -1
- package/es/common/isUndefined.js +1 -1
- package/es/common/isValid.js +1 -1
- package/es/common/isValidNumber.js +1 -1
- package/es/data-structure/bounds.js +1 -1
- package/es/data-structure/hashTable.js +2 -1
- package/es/data-structure/index.js +1 -1
- package/es/data-structure/matrix.js +1 -1
- package/es/data-structure/point.js +1 -1
- package/package.json +3 -3
package/cjs/common/ascending.js
CHANGED
package/cjs/common/field.js
CHANGED
|
@@ -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
|
package/cjs/common/isNumber.js
CHANGED
|
@@ -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;
|
package/cjs/common/isString.js
CHANGED
package/cjs/common/isType.js
CHANGED
package/cjs/common/isValid.js
CHANGED
|
@@ -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
|
package/es/common/ascending.js
CHANGED
package/es/common/field.js
CHANGED
|
@@ -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
|
package/es/common/interpolate.js
CHANGED
package/es/common/isNumber.js
CHANGED
package/es/common/isPrototype.js
CHANGED
package/es/common/isString.js
CHANGED
package/es/common/isType.js
CHANGED
package/es/common/isUndefined.js
CHANGED
package/es/common/isValid.js
CHANGED
|
@@ -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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visactor/vutils",
|
|
3
|
-
"version": "1.0.
|
|
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/
|
|
36
|
+
"@internal/ts-config": "0.0.1"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"eventemitter3": "^4.0.7",
|