Debian Codegraph @

node/colorjs.io/src/spaces/index.js

raw
1 /**
2 * @packageDocumentation
3 * This module contains {@link spaces a namespace} with all the spaces built into Color.js.
4 */
5 import ColorSpace from "../ColorSpace.js";
6 import * as spaces from "./index-fn.js";
7
8 for (let key of Object.keys(spaces)) {
9 ColorSpace.register(spaces[key]);
10 }
11
12 export * as spaces from "./index-fn.js";
13 export default ColorSpace;