Comparing version 0.1.4 to 0.1.5
import { IXYCoordinate, TIlluminant } from "./types"; | ||
export declare const xyCoodinateToXYZTuple: ({ x, y }: IXYCoordinate) => TIlluminant; | ||
export declare const sign: (n: number) => number; | ||
export declare const helpers: { | ||
xyCoodinateToXYZTuple: ({ x, y }: IXYCoordinate) => [number, number, number]; | ||
sign: (n: number) => number; | ||
}; |
@@ -15,2 +15,3 @@ "use strict"; | ||
exports.sign = function (n) { return isNaN(n) ? NaN : n > 0 ? 1 : n < 0 ? -1 : 0; }; | ||
exports.helpers = { xyCoodinateToXYZTuple: exports.xyCoodinateToXYZTuple, sign: exports.sign }; | ||
//# sourceMappingURL=helpers.js.map |
export * from "./types"; | ||
export * from "./illuminant"; | ||
export * from "./workspace"; | ||
export * from "./xyz"; | ||
export { illuminants as illuminant } from "./illuminant"; | ||
export { workspaces as workspace } from "./workspace"; | ||
export { Converter as xyz } from "./xyz"; | ||
export { degree } from "./degree"; | ||
export { matrix } from "./matrix"; | ||
export { rgb } from "./rgb"; | ||
export * from "./helpers"; | ||
export { helpers } from "./helpers"; |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
exports.__esModule = true; | ||
__export(require("./illuminant")); | ||
__export(require("./workspace")); | ||
__export(require("./xyz")); | ||
var illuminant_1 = require("./illuminant"); | ||
exports.illuminant = illuminant_1.illuminants; | ||
var workspace_1 = require("./workspace"); | ||
exports.workspace = workspace_1.workspaces; | ||
var xyz_1 = require("./xyz"); | ||
exports.xyz = xyz_1.Converter; | ||
var degree_1 = require("./degree"); | ||
@@ -15,3 +15,4 @@ exports.degree = degree_1.degree; | ||
exports.rgb = rgb_1.rgb; | ||
__export(require("./helpers")); | ||
var helpers_1 = require("./helpers"); | ||
exports.helpers = helpers_1.helpers; | ||
//# sourceMappingURL=index.js.map |
@@ -17,3 +17,3 @@ "use strict"; | ||
var vString = round(255 * v).toString(16); | ||
return vString.length < 2 ? "0" + v : v; | ||
return vString.length < 2 ? "0" + vString : vString; | ||
}).join(""); | ||
@@ -20,0 +20,0 @@ return "#" + hex; |
{ | ||
"name": "ciebase-ts", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "TypeScript port of ciebase - Basic building blocks for CIE color spaces", | ||
@@ -5,0 +5,0 @@ "author": "Frédérique Mittelstaedt <npm@gfm.io> (https://www.gfm.io)", |
{ | ||
"compilerOptions": { | ||
"moduleResolution": "node", | ||
"declaration": true, | ||
@@ -4,0 +5,0 @@ "sourceMap": true, |
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
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
48707
511