UNPKG

@fluentui/react

Version:

Reusable React components for building web experiences.

13 lines 617 B
define(["require", "exports", "./consts", "./hsv2hex"], function (require, exports, consts_1, hsv2hex_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getFullColorString = getFullColorString; /** * Converts a color hue to an HTML color string (with # prefix). * This implementation ignores all components of `color` except hue. */ function getFullColorString(color) { return "#".concat((0, hsv2hex_1.hsv2hex)(color.h, consts_1.MAX_COLOR_SATURATION, consts_1.MAX_COLOR_VALUE)); } }); //# sourceMappingURL=getFullColorString.js.map