@macrostrat/column-components
Version:
React rendering primitives for stratigraphic columns
1 lines • 1.1 kB
Source Map (JSON)
{"version":3,"file":"darken.cjs","sources":["../../../../../../../../../.yarn/berry/cache/chroma-js-npm-3.2.0-d5c39f5077-10c0.zip/node_modules/chroma-js/src/ops/darken.js"],"sourcesContent":["import '../io/lab/index.js';\nimport Color from '../Color.js';\nimport LAB_CONSTANTS from '../io/lab/lab-constants.js';\n\nColor.prototype.darken = function (amount = 1) {\n const me = this;\n const lab = me.lab();\n lab[0] -= LAB_CONSTANTS.Kn * amount;\n return new Color(lab, 'lab').alpha(me.alpha(), true);\n};\n\nColor.prototype.brighten = function (amount = 1) {\n return this.darken(-amount);\n};\n\nColor.prototype.darker = Color.prototype.darken;\nColor.prototype.brighter = Color.prototype.brighten;\n"],"names":["LAB_CONSTANTS"],"mappings":";;;;AAIA,MAAM,UAAU,SAAS,SAAU,SAAS,GAAG;AAC3C,QAAM,KAAK;AACX,QAAM,MAAM,GAAG,IAAG;AAClB,MAAI,CAAC,KAAKA,aAAAA,QAAc,KAAK;AAC7B,SAAO,IAAI,MAAM,KAAK,KAAK,EAAE,MAAM,GAAG,MAAK,GAAI,IAAI;AACvD;AAEA,MAAM,UAAU,WAAW,SAAU,SAAS,GAAG;AAC7C,SAAO,KAAK,OAAO,CAAC,MAAM;AAC9B;AAEA,MAAM,UAAU,SAAS,MAAM,UAAU;AACzC,MAAM,UAAU,WAAW,MAAM,UAAU;","x_google_ignoreList":[0]}