emf-converter 4.4.10 → 4.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +3 -1
- package/dist/browser.mjs +3 -1
- package/dist/index.js +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -15796,7 +15796,9 @@ function applyHueSaturationLightness(src, hue, saturation, lightness2) {
|
|
|
15796
15796
|
var LUMA_709 = [0.2126, 0.7152, 0.0722];
|
|
15797
15797
|
var TINT_CHROMA_SCALE = 0.985;
|
|
15798
15798
|
function applyTint(src, hue, amount) {
|
|
15799
|
-
const
|
|
15799
|
+
const index = (Math.round(hue * 255 / 360) + 256) % 256;
|
|
15800
|
+
const q = (index + Math.floor((index + 41) / 85)) % 258;
|
|
15801
|
+
const tint = hslToRgb(q * 60 / 43, 1, 0.5);
|
|
15800
15802
|
const ty = tint[0] * LUMA_709[0] + tint[1] * LUMA_709[1] + tint[2] * LUMA_709[2];
|
|
15801
15803
|
const chroma = tint.map((c) => (c - ty) * TINT_CHROMA_SCALE);
|
|
15802
15804
|
const a = amount / 100;
|
package/dist/browser.mjs
CHANGED
|
@@ -15794,7 +15794,9 @@ function applyHueSaturationLightness(src, hue, saturation, lightness2) {
|
|
|
15794
15794
|
var LUMA_709 = [0.2126, 0.7152, 0.0722];
|
|
15795
15795
|
var TINT_CHROMA_SCALE = 0.985;
|
|
15796
15796
|
function applyTint(src, hue, amount) {
|
|
15797
|
-
const
|
|
15797
|
+
const index = (Math.round(hue * 255 / 360) + 256) % 256;
|
|
15798
|
+
const q = (index + Math.floor((index + 41) / 85)) % 258;
|
|
15799
|
+
const tint = hslToRgb(q * 60 / 43, 1, 0.5);
|
|
15798
15800
|
const ty = tint[0] * LUMA_709[0] + tint[1] * LUMA_709[1] + tint[2] * LUMA_709[2];
|
|
15799
15801
|
const chroma = tint.map((c) => (c - ty) * TINT_CHROMA_SCALE);
|
|
15800
15802
|
const a = amount / 100;
|
package/dist/index.js
CHANGED
|
@@ -15797,7 +15797,9 @@ function applyHueSaturationLightness(src, hue, saturation, lightness2) {
|
|
|
15797
15797
|
var LUMA_709 = [0.2126, 0.7152, 0.0722];
|
|
15798
15798
|
var TINT_CHROMA_SCALE = 0.985;
|
|
15799
15799
|
function applyTint(src, hue, amount) {
|
|
15800
|
-
const
|
|
15800
|
+
const index = (Math.round(hue * 255 / 360) + 256) % 256;
|
|
15801
|
+
const q = (index + Math.floor((index + 41) / 85)) % 258;
|
|
15802
|
+
const tint = hslToRgb(q * 60 / 43, 1, 0.5);
|
|
15801
15803
|
const ty = tint[0] * LUMA_709[0] + tint[1] * LUMA_709[1] + tint[2] * LUMA_709[2];
|
|
15802
15804
|
const chroma = tint.map((c) => (c - ty) * TINT_CHROMA_SCALE);
|
|
15803
15805
|
const a = amount / 100;
|
package/dist/index.mjs
CHANGED
|
@@ -15795,7 +15795,9 @@ function applyHueSaturationLightness(src, hue, saturation, lightness2) {
|
|
|
15795
15795
|
var LUMA_709 = [0.2126, 0.7152, 0.0722];
|
|
15796
15796
|
var TINT_CHROMA_SCALE = 0.985;
|
|
15797
15797
|
function applyTint(src, hue, amount) {
|
|
15798
|
-
const
|
|
15798
|
+
const index = (Math.round(hue * 255 / 360) + 256) % 256;
|
|
15799
|
+
const q = (index + Math.floor((index + 41) / 85)) % 258;
|
|
15800
|
+
const tint = hslToRgb(q * 60 / 43, 1, 0.5);
|
|
15799
15801
|
const ty = tint[0] * LUMA_709[0] + tint[1] * LUMA_709[1] + tint[2] * LUMA_709[2];
|
|
15800
15802
|
const chroma = tint.map((c) => (c - ty) * TINT_CHROMA_SCALE);
|
|
15801
15803
|
const a = amount / 100;
|