@macrostrat/column-components
Version:
React rendering primitives for stratigraphic columns
1 lines • 1.23 kB
Source Map (JSON)
{"version":3,"file":"index.cjs","sources":["../../../../../../../../../../.yarn/berry/cache/chroma-js-npm-3.2.0-d5c39f5077-10c0.zip/node_modules/chroma-js/src/io/hsi/index.js"],"sourcesContent":["import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport hsi2rgb from './hsi2rgb.js';\nimport rgb2hsi from './rgb2hsi.js';\n\nColor.prototype.hsi = function () {\n return rgb2hsi(this._rgb);\n};\n\nconst hsi = (...args) => new Color(...args, 'hsi');\nchroma.hsi = hsi;\n\ninput.format.hsi = hsi2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'hsi');\n if (type(args) === 'array' && args.length === 3) {\n return 'hsi';\n }\n }\n});\n\nexport { hsi };\n"],"names":[],"mappings":";;;;;;;;;AAOA,MAAM,UAAU,MAAM,WAAY;AAC9B,SAAO,QAAQ,KAAK,IAAI;AAC5B;AAEK,MAAC,MAAM,IAAI,SAAS,IAAI,MAAM,GAAG,MAAM,KAAK;AACjD,OAAO,MAAM;AAEb,MAAM,OAAO,MAAM;AAEnB,MAAM,WAAW,KAAK;AAAA,EAClB,GAAG;AAAA,EACH,MAAM,IAAI,SAAS;AACf,WAAO,OAAO,MAAM,KAAK;AACzB,QAAI,KAAK,IAAI,MAAM,WAAW,KAAK,WAAW,GAAG;AAC7C,aAAO;AAAA,IACX;AAAA,EACJ;AACJ,CAAC;;","x_google_ignoreList":[0]}