@macrostrat/column-components
Version:
React rendering primitives for stratigraphic columns
1 lines • 1.34 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/num/index.js"],"sourcesContent":["import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport { type } from '../../utils/index.js';\nimport num2rgb from './num2rgb.js';\nimport rgb2num from './rgb2num.js';\n\nColor.prototype.num = function () {\n return rgb2num(this._rgb);\n};\n\nconst num = (...args) => new Color(...args, 'num');\n\nObject.assign(chroma, { num });\n\ninput.format.num = num2rgb;\n\ninput.autodetect.push({\n p: 5,\n test: (...args) => {\n if (\n args.length === 1 &&\n type(args[0]) === 'number' &&\n args[0] >= 0 &&\n args[0] <= 0xffffff\n ) {\n return 'num';\n }\n }\n});\n\nexport { num };\n"],"names":[],"mappings":";;;;;;;;AAOA,MAAM,UAAU,MAAM,WAAY;AAC9B,SAAO,QAAQ,KAAK,IAAI;AAC5B;AAEK,MAAC,MAAM,IAAI,SAAS,IAAI,MAAM,GAAG,MAAM,KAAK;AAEjD,OAAO,OAAO,QAAQ,EAAE,KAAK;AAE7B,MAAM,OAAO,MAAM;AAEnB,MAAM,WAAW,KAAK;AAAA,EAClB,GAAG;AAAA,EACH,MAAM,IAAI,SAAS;AACf,QACI,KAAK,WAAW,KAChB,KAAK,KAAK,CAAC,CAAC,MAAM,YAClB,KAAK,CAAC,KAAK,KACX,KAAK,CAAC,KAAK,UACb;AACE,aAAO;AAAA,IACX;AAAA,EACJ;AACJ,CAAC;;","x_google_ignoreList":[0]}