UNPKG

@atlaskit/adf-schema

Version:

Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs

16 lines (15 loc) 312 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.xyzToLab = void 0; var xyzToLab = exports.xyzToLab = function xyzToLab(_ref) { var x = _ref.x, y = _ref.y, z = _ref.z; return { l: Math.max(116 * y - 16, 0), a: 500 * (x - y), b: 200 * (y - z) }; };