@visactor/vgrammar-util
Advanced tools
Comparing version 0.14.0-alpha.1 to 0.14.0-alpha.2
@@ -1,2 +0,7 @@ | ||
export declare const identity: (_: any) => any; | ||
export declare const zero: (_: any) => number; | ||
export declare const id: any; | ||
export declare const identity: any; | ||
export declare const zero: any; | ||
export declare const one: any; | ||
export declare const truthy: any; | ||
export declare const falsy: any; | ||
export declare const emptyObject: any; |
@@ -5,11 +5,19 @@ "use strict"; | ||
value: !0 | ||
}), exports.zero = exports.identity = void 0; | ||
}), exports.emptyObject = exports.falsy = exports.truthy = exports.one = exports.zero = exports.identity = exports.id = void 0; | ||
const identity = _ => _; | ||
const accessor_1 = require("./accessor"), field_1 = require("./field"); | ||
exports.identity = identity; | ||
const zero = _ => 0; | ||
exports.zero = zero; | ||
exports.id = (0, field_1.field)("id"), exports.identity = (0, accessor_1.accessor)((function(_) { | ||
return _; | ||
}), [], "identity"), exports.zero = (0, accessor_1.accessor)((function() { | ||
return 0; | ||
}), [], "zero"), exports.one = (0, accessor_1.accessor)((function() { | ||
return 1; | ||
}), [], "one"), exports.truthy = (0, accessor_1.accessor)((function() { | ||
return !0; | ||
}), [], "true"), exports.falsy = (0, accessor_1.accessor)((function() { | ||
return !1; | ||
}), [], "false"), exports.emptyObject = (0, accessor_1.accessor)((function() { | ||
return {}; | ||
}), [], "emptyObject"); | ||
//# sourceMappingURL=accessors.js.map |
export { accessor, accessorName, accessorFields } from './accessor'; | ||
export { getter } from './getter'; | ||
export { identity, zero } from './accessors'; | ||
export { id, identity, zero, one, truthy, falsy, emptyObject } from './accessors'; | ||
export { compare, ascending } from './compare'; | ||
@@ -8,2 +8,3 @@ export { error } from './error'; | ||
export { field } from './field'; | ||
export { isEqual } from './isEqual'; | ||
export { splitAccessPath } from './splitAccessPath'; | ||
@@ -15,1 +16,3 @@ export { toPercent } from './toPercent'; | ||
export * from './direction'; | ||
export * from './image'; | ||
export * from './shapes'; |
@@ -20,3 +20,3 @@ "use strict"; | ||
value: !0 | ||
}), exports.parseViewBox = exports.regressionLinear = exports.toPercent = exports.splitAccessPath = exports.field = exports.extent = exports.error = exports.ascending = exports.compare = exports.zero = exports.identity = exports.getter = exports.accessorFields = exports.accessorName = exports.accessor = void 0; | ||
}), exports.parseViewBox = exports.regressionLinear = exports.toPercent = exports.splitAccessPath = exports.isEqual = exports.field = exports.extent = exports.error = exports.ascending = exports.compare = exports.emptyObject = exports.falsy = exports.truthy = exports.one = exports.zero = exports.identity = exports.id = exports.getter = exports.accessorFields = exports.accessorName = exports.accessor = void 0; | ||
@@ -53,5 +53,10 @@ var accessor_1 = require("./accessor"); | ||
Object.defineProperty(exports, "identity", { | ||
Object.defineProperty(exports, "id", { | ||
enumerable: !0, | ||
get: function() { | ||
return accessors_1.id; | ||
} | ||
}), Object.defineProperty(exports, "identity", { | ||
enumerable: !0, | ||
get: function() { | ||
return accessors_1.identity; | ||
@@ -64,2 +69,22 @@ } | ||
} | ||
}), Object.defineProperty(exports, "one", { | ||
enumerable: !0, | ||
get: function() { | ||
return accessors_1.one; | ||
} | ||
}), Object.defineProperty(exports, "truthy", { | ||
enumerable: !0, | ||
get: function() { | ||
return accessors_1.truthy; | ||
} | ||
}), Object.defineProperty(exports, "falsy", { | ||
enumerable: !0, | ||
get: function() { | ||
return accessors_1.falsy; | ||
} | ||
}), Object.defineProperty(exports, "emptyObject", { | ||
enumerable: !0, | ||
get: function() { | ||
return accessors_1.emptyObject; | ||
} | ||
}); | ||
@@ -108,2 +133,11 @@ | ||
var isEqual_1 = require("./isEqual"); | ||
Object.defineProperty(exports, "isEqual", { | ||
enumerable: !0, | ||
get: function() { | ||
return isEqual_1.isEqual; | ||
} | ||
}); | ||
var splitAccessPath_1 = require("./splitAccessPath"); | ||
@@ -143,3 +177,4 @@ | ||
} | ||
}), __exportStar(require("./direction"), exports); | ||
}), __exportStar(require("./direction"), exports), __exportStar(require("./image"), exports), | ||
__exportStar(require("./shapes"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -5,3 +5,2 @@ "use strict"; | ||
value: !0 | ||
}); | ||
//# sourceMappingURL=function.js.map | ||
}); |
export * from './function'; | ||
export * from './wordcloud'; | ||
export type LayoutViewBox = { | ||
@@ -3,0 +4,0 @@ width: number; |
@@ -20,3 +20,3 @@ "use strict"; | ||
value: !0 | ||
}), __exportStar(require("./function"), exports); | ||
}), __exportStar(require("./function"), exports), __exportStar(require("./wordcloud"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,7 @@ | ||
export declare const identity: (_: any) => any; | ||
export declare const zero: (_: any) => number; | ||
export declare const id: any; | ||
export declare const identity: any; | ||
export declare const zero: any; | ||
export declare const one: any; | ||
export declare const truthy: any; | ||
export declare const falsy: any; | ||
export declare const emptyObject: any; |
@@ -1,5 +0,30 @@ | ||
export const identity = _ => _; | ||
import { accessor } from "./accessor"; | ||
export const zero = _ => 0 | ||
//# sourceMappingURL=accessors.js.map | ||
; | ||
import { field } from "./field"; | ||
export const id = field("id"); | ||
export const identity = accessor((function(_) { | ||
return _; | ||
}), [], "identity"); | ||
export const zero = accessor((function() { | ||
return 0; | ||
}), [], "zero"); | ||
export const one = accessor((function() { | ||
return 1; | ||
}), [], "one"); | ||
export const truthy = accessor((function() { | ||
return !0; | ||
}), [], "true"); | ||
export const falsy = accessor((function() { | ||
return !1; | ||
}), [], "false"); | ||
export const emptyObject = accessor((function() { | ||
return {}; | ||
}), [], "emptyObject"); | ||
//# sourceMappingURL=accessors.js.map |
export { accessor, accessorName, accessorFields } from './accessor'; | ||
export { getter } from './getter'; | ||
export { identity, zero } from './accessors'; | ||
export { id, identity, zero, one, truthy, falsy, emptyObject } from './accessors'; | ||
export { compare, ascending } from './compare'; | ||
@@ -8,2 +8,3 @@ export { error } from './error'; | ||
export { field } from './field'; | ||
export { isEqual } from './isEqual'; | ||
export { splitAccessPath } from './splitAccessPath'; | ||
@@ -15,1 +16,3 @@ export { toPercent } from './toPercent'; | ||
export * from './direction'; | ||
export * from './image'; | ||
export * from './shapes'; |
@@ -5,3 +5,3 @@ export { accessor, accessorName, accessorFields } from "./accessor"; | ||
export { identity, zero } from "./accessors"; | ||
export { id, identity, zero, one, truthy, falsy, emptyObject } from "./accessors"; | ||
@@ -16,2 +16,4 @@ export { compare, ascending } from "./compare"; | ||
export { isEqual } from "./isEqual"; | ||
export { splitAccessPath } from "./splitAccessPath"; | ||
@@ -28,2 +30,6 @@ | ||
export * from "./direction"; | ||
export * from "./image"; | ||
export * from "./shapes"; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,1 @@ | ||
export { }; | ||
//# sourceMappingURL=function.js.map | ||
export { }; |
export * from './function'; | ||
export * from './wordcloud'; | ||
export type LayoutViewBox = { | ||
@@ -3,0 +4,0 @@ width: number; |
export * from "./function"; | ||
export * from "./wordcloud"; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@visactor/vgrammar-util", | ||
"version": "0.14.0-alpha.1", | ||
"version": "0.14.0-alpha.2", | ||
"description": "The common utils functions of VGrammar", | ||
@@ -27,3 +27,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@visactor/vutils": "~0.18.9" | ||
"@visactor/vutils": "~0.18.10", | ||
"@visactor/vrender-core": "0.19.18" | ||
}, | ||
@@ -42,5 +43,5 @@ "devDependencies": { | ||
"@internal/bundler": "0.0.1", | ||
"@internal/jest-config": "0.0.1", | ||
"@internal/ts-config": "0.0.1", | ||
"@internal/eslint-config": "0.0.1", | ||
"@internal/ts-config": "0.0.1" | ||
"@internal/jest-config": "0.0.1" | ||
}, | ||
@@ -47,0 +48,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
173787
117
1292
2
+ Added@visactor/vrender-core@0.19.18(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
Updated@visactor/vutils@~0.18.10