1 | "use strict";
|
2 |
|
3 | exports.__esModule = true;
|
4 | exports["default"] = void 0;
|
5 | var _parseToHsl = _interopRequireDefault(require("./parseToHsl"));
|
6 | var _toColorString = _interopRequireDefault(require("./toColorString"));
|
7 | var _curry = _interopRequireDefault(require("../internalHelpers/_curry"));
|
8 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
9 | function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 | function adjustHue(degree, color) {
|
35 | if (color === 'transparent') return color;
|
36 | var hslColor = (0, _parseToHsl["default"])(color);
|
37 | return (0, _toColorString["default"])(_extends({}, hslColor, {
|
38 | hue: hslColor.hue + parseFloat(degree)
|
39 | }));
|
40 | }
|
41 |
|
42 |
|
43 | var curriedAdjustHue = (0, _curry["default"] )(adjustHue);
|
44 | var _default = exports["default"] = curriedAdjustHue;
|
45 | module.exports = exports.default; |
\ | No newline at end of file |