Resolve eslint warnings.

This commit is contained in:
Jeff Wofford 2020-05-05 15:17:00 -05:00
parent a3b6a6c564
commit 95ced4a30c
2 changed files with 11345 additions and 6 deletions

11340
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -15,7 +15,7 @@
this.tooltipDescriptors = [
{key : 'ctrl', description : 'Use 25% dither'},
{key : 'shift', description : 'Use 75% dither'},
];
];
};
pskl.utils.inherit(ns.DitheringTool, ns.SimplePen);
@ -41,11 +41,10 @@
ns.DitheringTool.prototype.applyToolOnPixel = function(col, row, frame, overlay, event) {
var usePrimaryColor = (col + row) % 2;
if( pskl.utils.UserAgent.isMac ? event.metaKey : event.ctrlKey ) {
usePrimaryColor = col%2 || row%2
}
else if( event.shiftKey ) {
usePrimaryColor = col%2 && row%2
if (pskl.utils.UserAgent.isMac ? event.metaKey : event.ctrlKey) {
usePrimaryColor = col % 2 || row % 2;
} else if (event.shiftKey) {
usePrimaryColor = col % 2 && row % 2;
}
if (pskl.app.mouseStateService.isRightButtonPressed()) {