@macrostrat/column-components
Version:
React rendering primitives for stratigraphic columns
1 lines • 845 B
Source Map (JSON)
{"version":3,"file":"num2rgb.cjs","sources":["../../../../../../../../../../.yarn/berry/cache/chroma-js-npm-3.2.0-d5c39f5077-10c0.zip/node_modules/chroma-js/src/io/num/num2rgb.js"],"sourcesContent":["import { type } from '../../utils/index.js';\n\nconst num2rgb = (num) => {\n if (type(num) == 'number' && num >= 0 && num <= 0xffffff) {\n const r = num >> 16;\n const g = (num >> 8) & 0xff;\n const b = num & 0xff;\n return [r, g, b, 1];\n }\n throw new Error('unknown num color: ' + num);\n};\n\nexport default num2rgb;\n"],"names":[],"mappings":";;AAEK,MAAC,UAAU,CAAC,QAAQ;AACrB,MAAI,KAAK,GAAG,KAAK,YAAY,OAAO,KAAK,OAAO,UAAU;AACtD,UAAM,IAAI,OAAO;AACjB,UAAM,IAAK,OAAO,IAAK;AACvB,UAAM,IAAI,MAAM;AAChB,WAAO,CAAC,GAAG,GAAG,GAAG,CAAC;AAAA,EACtB;AACA,QAAM,IAAI,MAAM,wBAAwB,GAAG;AAC/C;;","x_google_ignoreList":[0]}