dependencies update and fix lint unused disabled line
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
/* eslint-disable max-len */
|
||||
/* eslint-disable no-bitwise */
|
||||
/**
|
||||
* @external Math
|
||||
*/
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable no-bitwise */
|
||||
import { findPos } from './Util.js';
|
||||
/**
|
||||
* Whether a value is `null` or `undefined`.
|
||||
@@ -282,14 +281,14 @@ export default class Slider {
|
||||
* @param {GenericCallback} callback
|
||||
* @returns {void}
|
||||
*/
|
||||
function bind (callback) { // eslint-disable-line promise/prefer-await-to-callbacks
|
||||
function bind (callback) {
|
||||
if (typeof callback === 'function') changeEvents.push(callback);
|
||||
}
|
||||
/**
|
||||
* @param {GenericCallback} callback
|
||||
* @returns {void}
|
||||
*/
|
||||
function unbind (callback) { // eslint-disable-line promise/prefer-await-to-callbacks
|
||||
function unbind (callback) {
|
||||
if (typeof callback !== 'function') return;
|
||||
let i;
|
||||
while ((i = changeEvents.includes(callback))) changeEvents.splice(i, 1);
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* eslint-disable no-loop-func */
|
||||
/* eslint-disable prefer-destructuring */
|
||||
/* eslint-disable no-unsanitized/property */
|
||||
/**
|
||||
* @file jGraduate 0.4
|
||||
@@ -60,7 +58,6 @@ if (!window.console) {
|
||||
* @returns {external:jQuery}
|
||||
*/
|
||||
// export default function jQueryPluginJGraduate ($) {
|
||||
/* eslint-disable jsdoc/require-property */
|
||||
/**
|
||||
* @namespace {PlainObject} jGraduate
|
||||
* @memberof external:jQuery
|
||||
@@ -195,7 +192,6 @@ export function jGraduateMethod (elem, options, okCallback, cancelCallback, i18n
|
||||
const idref = '#' + $this.getAttribute('id') + ' ';
|
||||
|
||||
if (!idref) {
|
||||
// eslint-disable-next-line no-alert
|
||||
alert('Container element must have an id attribute to maintain unique id strings for sub-elements.');
|
||||
return;
|
||||
}
|
||||
@@ -234,7 +230,6 @@ export function jGraduateMethod (elem, options, okCallback, cancelCallback, i18n
|
||||
$this.paint = new jGraduate.Paint({ solidColor: 'ffffff' });
|
||||
}
|
||||
$this.classList.add('jGraduate_Picker');
|
||||
// eslint-disable-next-line no-unsanitized/property
|
||||
$this.innerHTML = `<ul class="jGraduate_tabs">
|
||||
<li class="jGraduate_tab_color jGraduate_tab_current" id="jGraduate_tab_color" data-type="col">${i18next.t('config.jgraduate_solid_color')}</li>
|
||||
<li class="jGraduate_tab_lingrad" id="jGraduate_tab_lingrad" data-type="lg">${i18next.t('config.jgraduate_linear_gradient')}</li>
|
||||
@@ -244,10 +239,8 @@ export function jGraduateMethod (elem, options, okCallback, cancelCallback, i18n
|
||||
<div class="jGraduate_gradPick" id="jGraduate_gradPick"></div>
|
||||
<div class="jGraduate_LightBox" id="jGraduate_LightBox"></div>
|
||||
<div id="${id}_jGraduate_stopPicker" class="jGraduate_stopPicker"></div>`;
|
||||
/* JFH !!!! */
|
||||
const colPicker = $this.querySelector('#jGraduate_colPick');
|
||||
const gradPicker = $this.querySelector('#jGraduate_gradPick');
|
||||
// eslint-disable-next-line no-unsanitized/property
|
||||
const html = `<div id="${id}_jGraduate_Swatch" class="jGraduate_Swatch">
|
||||
<h2 class="jGraduate_Title">${$settings.window.pickerTitle}</h2>
|
||||
<div id="${id}_jGraduate_GradContainer" class="jGraduate_GradContainer"></div>
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
* John Dyers' website: {@link http://johndyer.name}
|
||||
* Color Picker page: {@link http://johndyer.name/photoshop-like-javascript-color-picker/}
|
||||
*/
|
||||
/* eslint-disable no-bitwise */
|
||||
/* eslint-disable max-len */
|
||||
/* gl#bals svgEditor */
|
||||
import ColorValuePicker from './ColorValuePicker.js';
|
||||
@@ -96,7 +95,7 @@ export const jPicker = /** @lends external:jQuery.jPicker */ {
|
||||
* @param {module:jPicker.JPickerInit} init
|
||||
* @returns {external:jQuery.jPicker.Color}
|
||||
*/
|
||||
Color: function (init) { // eslint-disable-line object-shorthand
|
||||
Color: function (init) {
|
||||
const that = this;
|
||||
/**
|
||||
*
|
||||
@@ -628,7 +627,6 @@ export function jPickerMethod (elem, options, commitCallback, liveCallback, canc
|
||||
if (settings.window.expandable) {
|
||||
const content = document.createElement('span');
|
||||
content.classList.add('jPicker');
|
||||
// eslint-disable-next-line no-unsanitized/property
|
||||
content.innerHTML = `<span class="Icon" id="jq-ae-Icon">
|
||||
<span class="Color" id="jq-ae-Color"> </span>
|
||||
<span class="Alpha" id="jq-ae-Alpha"> </span>
|
||||
@@ -1324,7 +1322,6 @@ export function jPickerMethod (elem, options, commitCallback, liveCallback, canc
|
||||
const all = color.active.val('all');
|
||||
if (win.alphaPrecision < 0) win.alphaPrecision = 0;
|
||||
else if (win.alphaPrecision > 2) win.alphaPrecision = 2;
|
||||
// eslint-disable-next-line no-unsanitized/property
|
||||
const controlHtml = `<table class="jPicker" id="jPicker-table" cellpadding="0" cellspacing="0">
|
||||
<tbody>
|
||||
${win.expandable ? '<tr><td class="Move" colspan="5"> </td></tr>' : ''}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/* globals svgEditor */
|
||||
import { t } from '../locale.js';
|
||||
const template = document.createElement('template');
|
||||
// eslint-disable-next-line no-unsanitized/property
|
||||
template.innerHTML = `
|
||||
<style>
|
||||
:host(:hover) :not(.disabled)
|
||||
@@ -113,7 +112,6 @@ export class ToolButton extends HTMLElement {
|
||||
}
|
||||
break;
|
||||
default:
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(`unknown attribute: ${name}`);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
/* globals svgEditor */
|
||||
/* eslint-disable max-len */
|
||||
import { jGraduate, jGraduateMethod } from './jgraduate/jQuery.jGraduate.js';
|
||||
import PaintBox from './PaintBox.js';
|
||||
import { t } from '../locale.js';
|
||||
|
||||
const template = document.createElement('template');
|
||||
// eslint-disable-next-line no-unsanitized/property
|
||||
template.innerHTML = `
|
||||
<style>
|
||||
.jPicker .Icon {
|
||||
@@ -708,7 +706,6 @@ export class SeColorPicker extends HTMLElement {
|
||||
this.$label.setAttribute('title', newValue);
|
||||
break;
|
||||
default:
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(`unknown attribute: ${name}`);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -169,7 +169,6 @@ export class ExplorerButton extends HTMLElement {
|
||||
)).join('');
|
||||
await this.updateLib(lib[0]);
|
||||
} catch (error) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(error);
|
||||
}
|
||||
break;
|
||||
@@ -177,7 +176,6 @@ export class ExplorerButton extends HTMLElement {
|
||||
this.$img.setAttribute('src', this.imgPath + '/' + newValue);
|
||||
break;
|
||||
default:
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(`unknown attribute: ${name}`);
|
||||
break;
|
||||
}
|
||||
@@ -273,7 +271,6 @@ export class ExplorerButton extends HTMLElement {
|
||||
}
|
||||
break;
|
||||
default:
|
||||
// eslint-disable-next-line no-console
|
||||
console.error('unknown nodeName for:', ev.target, ev.target.className);
|
||||
}
|
||||
};
|
||||
@@ -308,7 +305,6 @@ export class ExplorerButton extends HTMLElement {
|
||||
return `<se-button data-shape="${key}"src="data:image/svg+xml;base64,${encoded}"></se-button>`;
|
||||
}).join('');
|
||||
} catch (error) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(`could not read file:${libDir}${lib}.json`, error);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -148,7 +148,6 @@ export class FlyingButton extends HTMLElement {
|
||||
}
|
||||
break;
|
||||
default:
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(`unknown attribute: ${name}`);
|
||||
break;
|
||||
}
|
||||
@@ -270,7 +269,6 @@ export class FlyingButton extends HTMLElement {
|
||||
}
|
||||
break;
|
||||
default:
|
||||
// eslint-disable-next-line no-console
|
||||
console.error('unkonw nodeName for:', ev.target, ev.target.className);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -88,7 +88,6 @@ export class SEInput extends HTMLElement {
|
||||
this.$input.value = newValue;
|
||||
break;
|
||||
default:
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(`unknown attribute: ${name}`);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -100,7 +100,6 @@ export class SeList extends HTMLElement {
|
||||
});
|
||||
break;
|
||||
default:
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(`unknown attribute: ${name}`);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -70,7 +70,6 @@ export class SeListItem extends HTMLElement {
|
||||
this.$img.setAttribute('height', newValue);
|
||||
break;
|
||||
default:
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(`unknown attribute: ${name}`);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -75,7 +75,6 @@ export class SeMenu extends HTMLElement {
|
||||
this.$label.prepend(newValue);
|
||||
break;
|
||||
default:
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(`unknown attribute: ${name}`);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -59,7 +59,6 @@ export class SeMenuItem extends HTMLElement {
|
||||
this.$label.textContent = `${t(newValue)} ${shortcut ? `(${shortcut})` : ''}`;
|
||||
break;
|
||||
default:
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(`unknown attribute: ${name}`);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -14,7 +14,6 @@ const palette = [
|
||||
];
|
||||
|
||||
const template = document.createElement('template');
|
||||
// eslint-disable-next-line no-unsanitized/property
|
||||
template.innerHTML = `
|
||||
<style>
|
||||
.square {
|
||||
|
||||
@@ -101,7 +101,6 @@ export class SeSelect extends HTMLElement {
|
||||
}
|
||||
break;
|
||||
default:
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(`unknown attribute: ${name}`);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -122,7 +122,6 @@ export class SESpinInput extends HTMLElement {
|
||||
this.$input.value = newValue;
|
||||
break;
|
||||
default:
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(`unknown attribute: ${name}`);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { t } from '../locale.js';
|
||||
const template = document.createElement('template');
|
||||
// eslint-disable-next-line no-unsanitized/property
|
||||
template.innerHTML = `
|
||||
<style>
|
||||
#layersLabel {
|
||||
@@ -60,7 +59,6 @@ export class SeText extends HTMLElement {
|
||||
//this.$div.setAttribute("value", newValue);
|
||||
break;
|
||||
default:
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(`unknown attribute: ${name}`);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user