@macrostrat/column-components
Version:
React rendering primitives for stratigraphic columns
1 lines • 927 B
Source Map (JSON)
{"version":3,"file":"alpha.cjs","sources":["../../../../../../../../../.yarn/berry/cache/chroma-js-npm-3.2.0-d5c39f5077-10c0.zip/node_modules/chroma-js/src/ops/alpha.js"],"sourcesContent":["import Color from '../Color.js';\nimport { type } from '../utils/index.js';\n\nColor.prototype.alpha = function (a, mutate = false) {\n if (a !== undefined && type(a) === 'number') {\n if (mutate) {\n this._rgb[3] = a;\n return this;\n }\n return new Color([this._rgb[0], this._rgb[1], this._rgb[2], a], 'rgb');\n }\n return this._rgb[3];\n};\n"],"names":[],"mappings":";;;AAGA,MAAM,UAAU,QAAQ,SAAU,GAAG,SAAS,OAAO;AACjD,MAAI,MAAM,UAAa,KAAK,CAAC,MAAM,UAAU;AACzC,QAAI,QAAQ;AACR,WAAK,KAAK,CAAC,IAAI;AACf,aAAO;AAAA,IACX;AACA,WAAO,IAAI,MAAM,CAAC,KAAK,KAAK,CAAC,GAAG,KAAK,KAAK,CAAC,GAAG,KAAK,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK;AAAA,EACzE;AACA,SAAO,KAAK,KAAK,CAAC;AACtB;","x_google_ignoreList":[0]}