@macrostrat/column-components
Version:
React rendering primitives for stratigraphic columns
1 lines • 1.14 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/gl/index.js"],"sourcesContent":["import Color from '../../Color.js';\nimport chroma from '../../chroma.js';\nimport input from '../input.js';\nimport { unpack } from '../../utils/index.js';\n\ninput.format.gl = (...args) => {\n const rgb = unpack(args, 'rgba');\n rgb[0] *= 255;\n rgb[1] *= 255;\n rgb[2] *= 255;\n return rgb;\n};\n\nconst gl = (...args) => new Color(...args, 'gl');\nchroma.gl = gl;\n\nColor.prototype.gl = function () {\n const rgb = this._rgb;\n return [rgb[0] / 255, rgb[1] / 255, rgb[2] / 255, rgb[3]];\n};\n\nexport { gl };\n"],"names":[],"mappings":";;;;;;;AAKA,MAAM,OAAO,KAAK,IAAI,SAAS;AAC3B,QAAM,MAAM,OAAO,MAAM,MAAM;AAC/B,MAAI,CAAC,KAAK;AACV,MAAI,CAAC,KAAK;AACV,MAAI,CAAC,KAAK;AACV,SAAO;AACX;AAEK,MAAC,KAAK,IAAI,SAAS,IAAI,MAAM,GAAG,MAAM,IAAI;AAC/C,OAAO,KAAK;AAEZ,MAAM,UAAU,KAAK,WAAY;AAC7B,QAAM,MAAM,KAAK;AACjB,SAAO,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AAC5D;;","x_google_ignoreList":[0]}