Updated dependencies and linter

This commit is contained in:
n1474335 2019-07-05 12:22:52 +01:00
parent 4f70a79638
commit 5eb3979504
23 changed files with 383 additions and 263 deletions

View file

@ -96,7 +96,7 @@ class ParseColourCode extends Operation {
cmyk = "cmyk(" + c + ", " + m + ", " + y + ", " + k + ")";
// Generate output
return `<div id="colorpicker" style="display: inline-block"></div>
return `<div id="colorpicker" style="white-space: normal;"></div>
Hex: ${hex}
RGB: ${rgb}
RGBA: ${rgba}
@ -109,12 +109,12 @@ CMYK: ${cmyk}
color: '${rgba}',
container: true,
inline: true,
}).on('changeColor', function(e) {
var color = e.color.toRGB();
document.getElementById('input-text').value = 'rgba(' +
color.r + ', ' + color.g + ', ' + color.b + ', ' + color.a + ')';
useAlpha: true
}).on('colorpickerChange', function(e) {
var color = e.color.string('rgba');
document.getElementById('input-text').value = color;
window.app.autoBake();
}).children(".colorpicker").removeClass('dropdown-menu');
});
</script>`;
}