parent
b620eb55bb
commit
54fd0975d7
|
@ -4826,7 +4826,6 @@ const getElem = supportsSelectors() ? function (id) {
|
||||||
}, 9, null).singleNodeValue;
|
}, 9, null).singleNodeValue;
|
||||||
} : function (id) {
|
} : function (id) {
|
||||||
// jQuery lookup: twice as slow as xpath in FF
|
// jQuery lookup: twice as slow as xpath in FF
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
return $$1(svgroot_).find('[id=' + id + ']')[0];
|
return $$1(svgroot_).find('[id=' + id + ']')[0];
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
|
@ -5395,10 +5394,10 @@ function deparam(params, coerce) {
|
||||||
* @param {PlainObject} [strings.cancel]
|
* @param {PlainObject} [strings.cancel]
|
||||||
* @returns {external:jQuery}
|
* @returns {external:jQuery}
|
||||||
*/
|
*/
|
||||||
function jQueryPluginDBox($, strings = {
|
function jQueryPluginDBox($, {
|
||||||
ok: 'Ok',
|
ok: okString = 'Ok',
|
||||||
cancel: 'Cancel'
|
cancel: cancelString = 'Cancel'
|
||||||
}) {
|
} = {}) {
|
||||||
// This sets up alternative dialog boxes. They mostly work the same way as
|
// This sets up alternative dialog boxes. They mostly work the same way as
|
||||||
// their UI counterparts, expect instead of returning the result, a callback
|
// their UI counterparts, expect instead of returning the result, a callback
|
||||||
// needs to be included that returns the result as its first parameter.
|
// needs to be included that returns the result as its first parameter.
|
||||||
|
@ -5463,11 +5462,11 @@ function jQueryPluginDBox($, strings = {
|
||||||
function dbox(type, msg, defaultVal, opts, changeListener, checkbox) {
|
function dbox(type, msg, defaultVal, opts, changeListener, checkbox) {
|
||||||
dialogContent.html('<p>' + msg.replace(/\n/g, '</p><p>') + '</p>').toggleClass('prompt', type === 'prompt');
|
dialogContent.html('<p>' + msg.replace(/\n/g, '</p><p>') + '</p>').toggleClass('prompt', type === 'prompt');
|
||||||
btnHolder.empty();
|
btnHolder.empty();
|
||||||
const ok = $('<input type="button" data-ok="" value="' + strings.ok + '">').appendTo(btnHolder);
|
const ok = $('<input type="button" data-ok="" value="' + okString + '">').appendTo(btnHolder);
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
// eslint-disable-line promise/avoid-new
|
// eslint-disable-line promise/avoid-new
|
||||||
if (type !== 'alert') {
|
if (type !== 'alert') {
|
||||||
$('<input type="button" value="' + strings.cancel + '">').appendTo(btnHolder).click(function () {
|
$('<input type="button" value="' + cancelString + '">').appendTo(btnHolder).click(function () {
|
||||||
box.hide();
|
box.hide();
|
||||||
resolve(false);
|
resolve(false);
|
||||||
});
|
});
|
||||||
|
@ -9928,7 +9927,6 @@ class Drawing {
|
||||||
// querySelector lookup
|
// querySelector lookup
|
||||||
return this.svgElem_.querySelector('#' + id);
|
return this.svgElem_.querySelector('#' + id);
|
||||||
} // jQuery lookup: twice as slow as xpath in FF
|
} // jQuery lookup: twice as slow as xpath in FF
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
|
|
||||||
|
|
||||||
return $$6(this.svgElem_).find('[id=' + id + ']')[0];
|
return $$6(this.svgElem_).find('[id=' + id + ']')[0];
|
||||||
|
@ -23749,7 +23747,6 @@ function jQueryContextMenu($) {
|
||||||
const d = o.split(',');
|
const d = o.split(',');
|
||||||
|
|
||||||
for (const href of d) {
|
for (const href of d) {
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
$(this).find('A[href="' + href + '"]').parent().addClass('disabled');
|
$(this).find('A[href="' + href + '"]').parent().addClass('disabled');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23775,7 +23772,6 @@ function jQueryContextMenu($) {
|
||||||
const d = o.split(',');
|
const d = o.split(',');
|
||||||
|
|
||||||
for (const href of d) {
|
for (const href of d) {
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
$(this).find('A[href="' + href + '"]').parent().removeClass('disabled');
|
$(this).find('A[href="' + href + '"]').parent().removeClass('disabled');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26163,7 +26159,6 @@ const jPicker = function ($) {
|
||||||
|
|
||||||
|
|
||||||
function radioClicked(e) {
|
function radioClicked(e) {
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
$(this).parents('tbody:first').find('input:radio[value!="' + e.target.value + '"]').removeAttr('checked');
|
$(this).parents('tbody:first').find('input:radio[value!="' + e.target.value + '"]').removeAttr('checked');
|
||||||
setColorMode.call(that, e.target.value);
|
setColorMode.call(that, e.target.value);
|
||||||
}
|
}
|
||||||
|
@ -34415,11 +34410,8 @@ editor.init = function () {
|
||||||
let tool;
|
let tool;
|
||||||
const itool = curConfig.initTool,
|
const itool = curConfig.initTool,
|
||||||
container = $$c('#tools_left, #svg_editor .tools_flyout'),
|
container = $$c('#tools_left, #svg_editor .tools_flyout'),
|
||||||
|
|
||||||
/* eslint-disable unicorn/no-fn-reference-in-iterator */
|
|
||||||
preTool = container.find('#tool_' + itool),
|
preTool = container.find('#tool_' + itool),
|
||||||
regTool = container.find('#' + itool);
|
regTool = container.find('#' + itool);
|
||||||
/* eslint-enable unicorn/no-fn-reference-in-iterator */
|
|
||||||
|
|
||||||
if (preTool.length) {
|
if (preTool.length) {
|
||||||
tool = preTool;
|
tool = preTool;
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -4832,7 +4832,6 @@
|
||||||
}, 9, null).singleNodeValue;
|
}, 9, null).singleNodeValue;
|
||||||
} : function (id) {
|
} : function (id) {
|
||||||
// jQuery lookup: twice as slow as xpath in FF
|
// jQuery lookup: twice as slow as xpath in FF
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
return $$1(svgroot_).find('[id=' + id + ']')[0];
|
return $$1(svgroot_).find('[id=' + id + ']')[0];
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
|
@ -5401,10 +5400,10 @@
|
||||||
* @param {PlainObject} [strings.cancel]
|
* @param {PlainObject} [strings.cancel]
|
||||||
* @returns {external:jQuery}
|
* @returns {external:jQuery}
|
||||||
*/
|
*/
|
||||||
function jQueryPluginDBox($, strings = {
|
function jQueryPluginDBox($, {
|
||||||
ok: 'Ok',
|
ok: okString = 'Ok',
|
||||||
cancel: 'Cancel'
|
cancel: cancelString = 'Cancel'
|
||||||
}) {
|
} = {}) {
|
||||||
// This sets up alternative dialog boxes. They mostly work the same way as
|
// This sets up alternative dialog boxes. They mostly work the same way as
|
||||||
// their UI counterparts, expect instead of returning the result, a callback
|
// their UI counterparts, expect instead of returning the result, a callback
|
||||||
// needs to be included that returns the result as its first parameter.
|
// needs to be included that returns the result as its first parameter.
|
||||||
|
@ -5469,11 +5468,11 @@
|
||||||
function dbox(type, msg, defaultVal, opts, changeListener, checkbox) {
|
function dbox(type, msg, defaultVal, opts, changeListener, checkbox) {
|
||||||
dialogContent.html('<p>' + msg.replace(/\n/g, '</p><p>') + '</p>').toggleClass('prompt', type === 'prompt');
|
dialogContent.html('<p>' + msg.replace(/\n/g, '</p><p>') + '</p>').toggleClass('prompt', type === 'prompt');
|
||||||
btnHolder.empty();
|
btnHolder.empty();
|
||||||
const ok = $('<input type="button" data-ok="" value="' + strings.ok + '">').appendTo(btnHolder);
|
const ok = $('<input type="button" data-ok="" value="' + okString + '">').appendTo(btnHolder);
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
// eslint-disable-line promise/avoid-new
|
// eslint-disable-line promise/avoid-new
|
||||||
if (type !== 'alert') {
|
if (type !== 'alert') {
|
||||||
$('<input type="button" value="' + strings.cancel + '">').appendTo(btnHolder).click(function () {
|
$('<input type="button" value="' + cancelString + '">').appendTo(btnHolder).click(function () {
|
||||||
box.hide();
|
box.hide();
|
||||||
resolve(false);
|
resolve(false);
|
||||||
});
|
});
|
||||||
|
@ -9934,7 +9933,6 @@
|
||||||
// querySelector lookup
|
// querySelector lookup
|
||||||
return this.svgElem_.querySelector('#' + id);
|
return this.svgElem_.querySelector('#' + id);
|
||||||
} // jQuery lookup: twice as slow as xpath in FF
|
} // jQuery lookup: twice as slow as xpath in FF
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
|
|
||||||
|
|
||||||
return $$6(this.svgElem_).find('[id=' + id + ']')[0];
|
return $$6(this.svgElem_).find('[id=' + id + ']')[0];
|
||||||
|
@ -23755,7 +23753,6 @@
|
||||||
const d = o.split(',');
|
const d = o.split(',');
|
||||||
|
|
||||||
for (const href of d) {
|
for (const href of d) {
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
$(this).find('A[href="' + href + '"]').parent().addClass('disabled');
|
$(this).find('A[href="' + href + '"]').parent().addClass('disabled');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23781,7 +23778,6 @@
|
||||||
const d = o.split(',');
|
const d = o.split(',');
|
||||||
|
|
||||||
for (const href of d) {
|
for (const href of d) {
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
$(this).find('A[href="' + href + '"]').parent().removeClass('disabled');
|
$(this).find('A[href="' + href + '"]').parent().removeClass('disabled');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26169,7 +26165,6 @@
|
||||||
|
|
||||||
|
|
||||||
function radioClicked(e) {
|
function radioClicked(e) {
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
$(this).parents('tbody:first').find('input:radio[value!="' + e.target.value + '"]').removeAttr('checked');
|
$(this).parents('tbody:first').find('input:radio[value!="' + e.target.value + '"]').removeAttr('checked');
|
||||||
setColorMode.call(that, e.target.value);
|
setColorMode.call(that, e.target.value);
|
||||||
}
|
}
|
||||||
|
@ -34421,11 +34416,8 @@
|
||||||
let tool;
|
let tool;
|
||||||
const itool = curConfig.initTool,
|
const itool = curConfig.initTool,
|
||||||
container = $$c('#tools_left, #svg_editor .tools_flyout'),
|
container = $$c('#tools_left, #svg_editor .tools_flyout'),
|
||||||
|
|
||||||
/* eslint-disable unicorn/no-fn-reference-in-iterator */
|
|
||||||
preTool = container.find('#tool_' + itool),
|
preTool = container.find('#tool_' + itool),
|
||||||
regTool = container.find('#' + itool);
|
regTool = container.find('#' + itool);
|
||||||
/* eslint-enable unicorn/no-fn-reference-in-iterator */
|
|
||||||
|
|
||||||
if (preTool.length) {
|
if (preTool.length) {
|
||||||
tool = preTool;
|
tool = preTool;
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -2218,10 +2218,10 @@ var SvgCanvas = (function () {
|
||||||
* @param {PlainObject} [strings.cancel]
|
* @param {PlainObject} [strings.cancel]
|
||||||
* @returns {external:jQuery}
|
* @returns {external:jQuery}
|
||||||
*/
|
*/
|
||||||
function jQueryPluginDBox($, strings = {
|
function jQueryPluginDBox($, {
|
||||||
ok: 'Ok',
|
ok: okString = 'Ok',
|
||||||
cancel: 'Cancel'
|
cancel: cancelString = 'Cancel'
|
||||||
}) {
|
} = {}) {
|
||||||
// This sets up alternative dialog boxes. They mostly work the same way as
|
// This sets up alternative dialog boxes. They mostly work the same way as
|
||||||
// their UI counterparts, expect instead of returning the result, a callback
|
// their UI counterparts, expect instead of returning the result, a callback
|
||||||
// needs to be included that returns the result as its first parameter.
|
// needs to be included that returns the result as its first parameter.
|
||||||
|
@ -2286,11 +2286,11 @@ var SvgCanvas = (function () {
|
||||||
function dbox(type, msg, defaultVal, opts, changeListener, checkbox) {
|
function dbox(type, msg, defaultVal, opts, changeListener, checkbox) {
|
||||||
dialogContent.html('<p>' + msg.replace(/\n/g, '</p><p>') + '</p>').toggleClass('prompt', type === 'prompt');
|
dialogContent.html('<p>' + msg.replace(/\n/g, '</p><p>') + '</p>').toggleClass('prompt', type === 'prompt');
|
||||||
btnHolder.empty();
|
btnHolder.empty();
|
||||||
const ok = $('<input type="button" data-ok="" value="' + strings.ok + '">').appendTo(btnHolder);
|
const ok = $('<input type="button" data-ok="" value="' + okString + '">').appendTo(btnHolder);
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
// eslint-disable-line promise/avoid-new
|
// eslint-disable-line promise/avoid-new
|
||||||
if (type !== 'alert') {
|
if (type !== 'alert') {
|
||||||
$('<input type="button" value="' + strings.cancel + '">').appendTo(btnHolder).click(function () {
|
$('<input type="button" value="' + cancelString + '">').appendTo(btnHolder).click(function () {
|
||||||
box.hide();
|
box.hide();
|
||||||
resolve(false);
|
resolve(false);
|
||||||
});
|
});
|
||||||
|
@ -4635,7 +4635,6 @@ var SvgCanvas = (function () {
|
||||||
}, 9, null).singleNodeValue;
|
}, 9, null).singleNodeValue;
|
||||||
} : function (id) {
|
} : function (id) {
|
||||||
// jQuery lookup: twice as slow as xpath in FF
|
// jQuery lookup: twice as slow as xpath in FF
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
return $$1(svgroot_).find('[id=' + id + ']')[0];
|
return $$1(svgroot_).find('[id=' + id + ']')[0];
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
|
@ -9336,7 +9335,6 @@ var SvgCanvas = (function () {
|
||||||
// querySelector lookup
|
// querySelector lookup
|
||||||
return this.svgElem_.querySelector('#' + id);
|
return this.svgElem_.querySelector('#' + id);
|
||||||
} // jQuery lookup: twice as slow as xpath in FF
|
} // jQuery lookup: twice as slow as xpath in FF
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
|
|
||||||
|
|
||||||
return $$5(this.svgElem_).find('[id=' + id + ']')[0];
|
return $$5(this.svgElem_).find('[id=' + id + ']')[0];
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -7628,9 +7628,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eslint": {
|
"eslint": {
|
||||||
"version": "7.4.0",
|
"version": "7.5.0",
|
||||||
"resolved": "https://registry.npmjs.org/eslint/-/eslint-7.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/eslint/-/eslint-7.5.0.tgz",
|
||||||
"integrity": "sha512-gU+lxhlPHu45H3JkEGgYhWhkR9wLHHEXC9FbWFnTlEkbKyZKWgWRLgf61E8zWmBuI6g5xKBph9ltg3NtZMVF8g==",
|
"integrity": "sha512-vlUP10xse9sWt9SGRtcr1LAC67BENcQMFeV+w5EvLEoFe3xJ8cF1Skd0msziRx/VMC+72B4DxreCE+OR12OA6Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/code-frame": "^7.0.0",
|
"@babel/code-frame": "^7.0.0",
|
||||||
|
@ -7641,9 +7641,9 @@
|
||||||
"doctrine": "^3.0.0",
|
"doctrine": "^3.0.0",
|
||||||
"enquirer": "^2.3.5",
|
"enquirer": "^2.3.5",
|
||||||
"eslint-scope": "^5.1.0",
|
"eslint-scope": "^5.1.0",
|
||||||
"eslint-utils": "^2.0.0",
|
"eslint-utils": "^2.1.0",
|
||||||
"eslint-visitor-keys": "^1.2.0",
|
"eslint-visitor-keys": "^1.3.0",
|
||||||
"espree": "^7.1.0",
|
"espree": "^7.2.0",
|
||||||
"esquery": "^1.2.0",
|
"esquery": "^1.2.0",
|
||||||
"esutils": "^2.0.2",
|
"esutils": "^2.0.2",
|
||||||
"file-entry-cache": "^5.0.1",
|
"file-entry-cache": "^5.0.1",
|
||||||
|
@ -7657,7 +7657,7 @@
|
||||||
"js-yaml": "^3.13.1",
|
"js-yaml": "^3.13.1",
|
||||||
"json-stable-stringify-without-jsonify": "^1.0.1",
|
"json-stable-stringify-without-jsonify": "^1.0.1",
|
||||||
"levn": "^0.4.1",
|
"levn": "^0.4.1",
|
||||||
"lodash": "^4.17.14",
|
"lodash": "^4.17.19",
|
||||||
"minimatch": "^3.0.4",
|
"minimatch": "^3.0.4",
|
||||||
"natural-compare": "^1.4.0",
|
"natural-compare": "^1.4.0",
|
||||||
"optionator": "^0.9.1",
|
"optionator": "^0.9.1",
|
||||||
|
@ -7734,14 +7734,14 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"espree": {
|
"espree": {
|
||||||
"version": "7.1.0",
|
"version": "7.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/espree/-/espree-7.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/espree/-/espree-7.2.0.tgz",
|
||||||
"integrity": "sha512-dcorZSyfmm4WTuTnE5Y7MEN1DyoPYy1ZR783QW1FJoenn7RailyWFsq/UL6ZAAA7uXurN9FIpYyUs3OfiIW+Qw==",
|
"integrity": "sha512-H+cQ3+3JYRMEIOl87e7QdHX70ocly5iW4+dttuR8iYSPr/hXKFb+7dBsZ7+u1adC4VrnPlTkv0+OwuPnDop19g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"acorn": "^7.2.0",
|
"acorn": "^7.3.1",
|
||||||
"acorn-jsx": "^5.2.0",
|
"acorn-jsx": "^5.2.0",
|
||||||
"eslint-visitor-keys": "^1.2.0"
|
"eslint-visitor-keys": "^1.3.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"glob-parent": {
|
"glob-parent": {
|
||||||
|
@ -7826,9 +7826,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"strip-json-comments": {
|
"strip-json-comments": {
|
||||||
"version": "3.1.0",
|
"version": "3.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
|
||||||
"integrity": "sha512-e6/d0eBu7gHtdCqFt0xJr642LdToM5/cN4Qb9DbHjVx1CP5RyeM+zH7pbecEmDv/lBqb0QH+6Uqq75rxFPkM0w==",
|
"integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"supports-color": {
|
"supports-color": {
|
||||||
|
@ -7862,9 +7862,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eslint-config-ash-nazg": {
|
"eslint-config-ash-nazg": {
|
||||||
"version": "22.5.1",
|
"version": "22.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-config-ash-nazg/-/eslint-config-ash-nazg-22.5.1.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-config-ash-nazg/-/eslint-config-ash-nazg-22.7.0.tgz",
|
||||||
"integrity": "sha512-V61TvBDhm5JP3Wfb6dmuqYkkiUB1pF2fN4W5GmNnupFlSE0llAzamNGDr2bRpJoYU5NUoR8qDyWh1if44bRGig==",
|
"integrity": "sha512-dT3gFhXigIfNi5EAHBcSxDCY4HGHHTjcjWcpIHoQGk7l11fVmUKQ5JwsEeIpv5SoFFHSBAqaJIqEkWKD3d0EFg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"eslint-config-standard": {
|
"eslint-config-standard": {
|
||||||
|
@ -7980,9 +7980,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eslint-plugin-array-func": {
|
"eslint-plugin-array-func": {
|
||||||
"version": "3.1.6",
|
"version": "3.1.7",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-plugin-array-func/-/eslint-plugin-array-func-3.1.6.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-plugin-array-func/-/eslint-plugin-array-func-3.1.7.tgz",
|
||||||
"integrity": "sha512-heMql4APbpZx4QFZTwVHGepR0JaxSlflaJa2kCVy+zUrVFhYmGVuDcAqEROcxMHYKleqwKkQ57515c7Uadc5nQ==",
|
"integrity": "sha512-fB5TBICjHSTGToNTbCCgR8zsngpUkoCM31EMh/M/NEAyNg90i5rUuG0dnNNBML2n0BzM0nBE3sPvo2SEWf6jlA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"eslint-plugin-chai-expect": {
|
"eslint-plugin-chai-expect": {
|
||||||
|
@ -8192,9 +8192,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eslint-plugin-jsdoc": {
|
"eslint-plugin-jsdoc": {
|
||||||
"version": "29.2.0",
|
"version": "30.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-29.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-30.0.0.tgz",
|
||||||
"integrity": "sha512-B1a8LWPkkxyxIp4y3pnRQR18j03Wp+V9gDE7IjQG/MvWAzp5gqXM0q71gXRAZMvWUjujAsNg8B9v1csl+/zkvw==",
|
"integrity": "sha512-7IRS4rRWeKUyWJopl5hCUPcFVQAD0cjmQgpm+NPz55igOM6giThiIAtXUL5DbkCQUp+hngsxf8/qv513laKmBQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"comment-parser": "^0.7.5",
|
"comment-parser": "^0.7.5",
|
||||||
|
@ -8354,16 +8354,16 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"eslint-plugin-unicorn": {
|
"eslint-plugin-unicorn": {
|
||||||
"version": "20.1.0",
|
"version": "21.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-20.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-21.0.0.tgz",
|
||||||
"integrity": "sha512-XQxLBJT/gnwyRR6cfYsIK1AdekQchAt5tmcsnldevGjgR2xoZsRUa5/i6e0seNHy2RoT57CkTnbVHwHF8No8LA==",
|
"integrity": "sha512-S8v7+v4gZTQPj4pKKvexhgSUaLQSyItvxW2SVZDaX9Iu5IjlAmF2eni+L6w8a2aqshxgU8Lle4FIAVDtuejSKQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"ci-info": "^2.0.0",
|
"ci-info": "^2.0.0",
|
||||||
"clean-regexp": "^1.0.0",
|
"clean-regexp": "^1.0.0",
|
||||||
"eslint-ast-utils": "^1.1.0",
|
"eslint-ast-utils": "^1.1.0",
|
||||||
"eslint-template-visitor": "^2.0.0",
|
"eslint-template-visitor": "^2.0.0",
|
||||||
"eslint-utils": "^2.0.0",
|
"eslint-utils": "^2.1.0",
|
||||||
"import-modules": "^2.0.0",
|
"import-modules": "^2.0.0",
|
||||||
"lodash": "^4.17.15",
|
"lodash": "^4.17.15",
|
||||||
"pluralize": "^8.0.0",
|
"pluralize": "^8.0.0",
|
||||||
|
@ -12167,9 +12167,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"unist-util-visit": {
|
"unist-util-visit": {
|
||||||
"version": "2.0.2",
|
"version": "2.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.3.tgz",
|
||||||
"integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
|
"integrity": "sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@types/unist": "^2.0.0",
|
"@types/unist": "^2.0.0",
|
||||||
|
@ -12178,9 +12178,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"unist-util-visit-parents": {
|
"unist-util-visit-parents": {
|
||||||
"version": "3.0.2",
|
"version": "3.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.1.0.tgz",
|
||||||
"integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
|
"integrity": "sha512-0g4wbluTF93npyPrp/ymd3tCDTMnP0yo2akFD2FIBAYXq/Sga3lwaU1D8OYKbtpioaI6CkDcQ6fsMnmtzt7htw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@types/unist": "^2.0.0",
|
"@types/unist": "^2.0.0",
|
||||||
|
@ -14716,9 +14716,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"remark": {
|
"remark": {
|
||||||
"version": "12.0.0",
|
"version": "12.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/remark/-/remark-12.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/remark/-/remark-12.0.1.tgz",
|
||||||
"integrity": "sha512-oX4lMIS0csgk8AEbzY0h2jdR0ngiCHOpwwpxjmRa5TqAkeknY+tkhjRJGZqnCmvyuWh55/0SW5WY3R3nn3PH9A==",
|
"integrity": "sha512-gS7HDonkdIaHmmP/+shCPejCEEW+liMp/t/QwmF0Xt47Rpuhl32lLtDV1uKWvGoq+kxr5jSgg5oAIpGuyULjUw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"remark-parse": "^8.0.0",
|
"remark-parse": "^8.0.0",
|
||||||
|
@ -14753,9 +14753,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"remark-parse": {
|
"remark-parse": {
|
||||||
"version": "8.0.0",
|
"version": "8.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-8.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-8.0.3.tgz",
|
||||||
"integrity": "sha512-Ck14G1Ns/GEPXhSw6m1Uv28kMtVk63e59NyL+QlhBBwBdIUXROM6MPfBehPhW6TW2d73batMdZsKwuxl5i3tEA==",
|
"integrity": "sha512-E1K9+QLGgggHxCQtLt++uXltxEprmWzNfg+MxpfHsZlrddKzZ/hZyWHDbK3/Ap8HJQqYJRXP+jHczdL6q6i85Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"ccount": "^1.0.0",
|
"ccount": "^1.0.0",
|
||||||
|
@ -14815,9 +14815,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"unist-util-visit": {
|
"unist-util-visit": {
|
||||||
"version": "2.0.2",
|
"version": "2.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.3.tgz",
|
||||||
"integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
|
"integrity": "sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@types/unist": "^2.0.0",
|
"@types/unist": "^2.0.0",
|
||||||
|
@ -14826,9 +14826,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"unist-util-visit-parents": {
|
"unist-util-visit-parents": {
|
||||||
"version": "3.0.2",
|
"version": "3.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.1.0.tgz",
|
||||||
"integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
|
"integrity": "sha512-0g4wbluTF93npyPrp/ymd3tCDTMnP0yo2akFD2FIBAYXq/Sga3lwaU1D8OYKbtpioaI6CkDcQ6fsMnmtzt7htw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@types/unist": "^2.0.0",
|
"@types/unist": "^2.0.0",
|
||||||
|
@ -14836,9 +14836,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"vfile": {
|
"vfile": {
|
||||||
"version": "4.1.0",
|
"version": "4.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/vfile/-/vfile-4.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/vfile/-/vfile-4.1.1.tgz",
|
||||||
"integrity": "sha512-BaTPalregj++64xbGK6uIlsurN3BCRNM/P2Pg8HezlGzKd1O9PrwIac6bd9Pdx2uTb0QHoioZ+rXKolbVXEgJg==",
|
"integrity": "sha512-lRjkpyDGjVlBA7cDQhQ+gNcvB1BGaTHYuSOcY3S7OhDmBtnzX95FhtZZDecSTDm6aajFymyve6S5DN4ZHGezdQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@types/unist": "^2.0.0",
|
"@types/unist": "^2.0.0",
|
||||||
|
@ -14867,9 +14867,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"remark-cli": {
|
"remark-cli": {
|
||||||
"version": "8.0.0",
|
"version": "8.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/remark-cli/-/remark-cli-8.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/remark-cli/-/remark-cli-8.0.1.tgz",
|
||||||
"integrity": "sha512-5iRrk8ad+dU4espDl60H7ANhXqoaEXYsIyL8Mau0lDN6pP7QMAZsZTCX2XdoCfKfKEpiOggA7CHv43HkyVEppA==",
|
"integrity": "sha512-UaYeFI5qUAzkthUd8/MLBQD5OKM6jLN8GRvF6v+KF7xO/i1jQ+X2VqUSQAxWFYxZ8R25gM56GVjeoKOZ0EIr8A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"markdown-extensions": "^1.1.0",
|
"markdown-extensions": "^1.1.0",
|
||||||
|
@ -14952,9 +14952,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"remark-stringify": {
|
"remark-stringify": {
|
||||||
"version": "8.1.0",
|
"version": "8.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/remark-stringify/-/remark-stringify-8.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/remark-stringify/-/remark-stringify-8.1.1.tgz",
|
||||||
"integrity": "sha512-FSPZv1ds76oAZjurhhuV5qXSUSoz6QRPuwYK38S41sLHwg4oB7ejnmZshj7qwjgYLf93kdz6BOX9j5aidNE7rA==",
|
"integrity": "sha512-q4EyPZT3PcA3Eq7vPpT6bIdokXzFGp9i85igjmhRyXWmPs0Y6/d2FYwUNotKAWyLch7g0ASZJn/KHHcHZQ163A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"ccount": "^1.0.0",
|
"ccount": "^1.0.0",
|
||||||
|
@ -15228,9 +15228,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rollup": {
|
"rollup": {
|
||||||
"version": "2.21.0",
|
"version": "2.22.1",
|
||||||
"resolved": "https://registry.npmjs.org/rollup/-/rollup-2.21.0.tgz",
|
"resolved": "https://registry.npmjs.org/rollup/-/rollup-2.22.1.tgz",
|
||||||
"integrity": "sha512-BEGgy+wSzux7Ycq58pRiWEOBZaXRXTuvzl1gsm7gqmsAHxkWf9nyA5V2LN9fGSHhhDQd0/C13iRzSh4bbIpWZQ==",
|
"integrity": "sha512-K9AUQUCJkVqC+A7uUDacfhmpEeAjc2uOmSpvGI5xaYsm8pXgy4ZWEM8wHPfKj11xvCwFZppkRDo8a0RESJXCnw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"fsevents": "~2.1.2"
|
"fsevents": "~2.1.2"
|
||||||
|
@ -16611,9 +16611,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"typescript": {
|
"typescript": {
|
||||||
"version": "3.9.6",
|
"version": "3.9.7",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.6.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.7.tgz",
|
||||||
"integrity": "sha512-Pspx3oKAPJtjNwE92YS05HQoY7z2SFyOpHo9MqJor3BXAGNaPUs83CuVp9VISFkSjyRfiTpmKuAYGJB7S7hOxw==",
|
"integrity": "sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"typical": {
|
"typical": {
|
||||||
|
@ -16742,9 +16742,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"binary-extensions": {
|
"binary-extensions": {
|
||||||
"version": "2.0.0",
|
"version": "2.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.1.0.tgz",
|
||||||
"integrity": "sha512-Phlt0plgpIIBOGTT/ehfFnbNlfsDEiqmzE2KRXoX1bLIlir4X/MR+zSyBEkL05ffWgnRSf/DXv+WrUAVr93/ow==",
|
"integrity": "sha512-1Yj8h9Q+QDF5FzhMs/c9+6UntbD5MkRfRwac8DoEm9ZfUBZ7tZ55YcGVAzEe4bXsdQHEk+s9S5wsOKVdZrw0tQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"braces": {
|
"braces": {
|
||||||
|
@ -16767,9 +16767,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"chokidar": {
|
"chokidar": {
|
||||||
"version": "3.4.0",
|
"version": "3.4.1",
|
||||||
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.4.1.tgz",
|
||||||
"integrity": "sha512-aXAaho2VJtisB/1fg1+3nlLJqGOuewTzQpd/Tz0yTg2R0e4IGtshYvtjowyEumcBv2z+y4+kc75Mz7j5xJskcQ==",
|
"integrity": "sha512-TQTJyr2stihpC4Sya9hs2Xh+O2wf+igjL36Y75xx2WdHuiICcn/XJza46Jwt0eT5hVpQOzo3FpY3cj3RVYLX0g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"anymatch": "~3.1.1",
|
"anymatch": "~3.1.1",
|
||||||
|
|
16
package.json
16
package.json
|
@ -147,10 +147,10 @@
|
||||||
"cypress-axe": "^0.8.1",
|
"cypress-axe": "^0.8.1",
|
||||||
"cypress-multi-reporters": "^1.4.0",
|
"cypress-multi-reporters": "^1.4.0",
|
||||||
"deparam": "git+https://github.com/brettz9/deparam.git#updates",
|
"deparam": "git+https://github.com/brettz9/deparam.git#updates",
|
||||||
"eslint": "^7.4.0",
|
"eslint": "^7.5.0",
|
||||||
"eslint-config-ash-nazg": "^22.5.1",
|
"eslint-config-ash-nazg": "^22.7.0",
|
||||||
"eslint-config-standard": "^14.1.1",
|
"eslint-config-standard": "^14.1.1",
|
||||||
"eslint-plugin-array-func": "^3.1.6",
|
"eslint-plugin-array-func": "^3.1.7",
|
||||||
"eslint-plugin-chai-expect": "^2.2.0",
|
"eslint-plugin-chai-expect": "^2.2.0",
|
||||||
"eslint-plugin-chai-expect-keywords": "^2.0.1",
|
"eslint-plugin-chai-expect-keywords": "^2.0.1",
|
||||||
"eslint-plugin-chai-friendly": "^0.6.0",
|
"eslint-plugin-chai-friendly": "^0.6.0",
|
||||||
|
@ -159,7 +159,7 @@
|
||||||
"eslint-plugin-eslint-comments": "^3.2.0",
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
||||||
"eslint-plugin-html": "^6.0.2",
|
"eslint-plugin-html": "^6.0.2",
|
||||||
"eslint-plugin-import": "^2.22.0",
|
"eslint-plugin-import": "^2.22.0",
|
||||||
"eslint-plugin-jsdoc": "^29.2.0",
|
"eslint-plugin-jsdoc": "^30.0.0",
|
||||||
"eslint-plugin-markdown": "^1.0.2",
|
"eslint-plugin-markdown": "^1.0.2",
|
||||||
"eslint-plugin-mocha": "^7.0.1",
|
"eslint-plugin-mocha": "^7.0.1",
|
||||||
"eslint-plugin-mocha-cleanup": "^1.8.0",
|
"eslint-plugin-mocha-cleanup": "^1.8.0",
|
||||||
|
@ -169,7 +169,7 @@
|
||||||
"eslint-plugin-promise": "^4.2.1",
|
"eslint-plugin-promise": "^4.2.1",
|
||||||
"eslint-plugin-sonarjs": "^0.5.0",
|
"eslint-plugin-sonarjs": "^0.5.0",
|
||||||
"eslint-plugin-standard": "^4.0.1",
|
"eslint-plugin-standard": "^4.0.1",
|
||||||
"eslint-plugin-unicorn": "^20.1.0",
|
"eslint-plugin-unicorn": "^21.0.0",
|
||||||
"frs-replace": "^2.0.1",
|
"frs-replace": "^2.0.1",
|
||||||
"imageoptim-cli": "^3.0.2",
|
"imageoptim-cli": "^3.0.2",
|
||||||
"jamilih": "^0.53.2",
|
"jamilih": "^0.53.2",
|
||||||
|
@ -191,14 +191,14 @@
|
||||||
"react": "^16.13.1",
|
"react": "^16.13.1",
|
||||||
"react-dom": "^16.13.1",
|
"react-dom": "^16.13.1",
|
||||||
"regenerator-runtime": "^0.13.5",
|
"regenerator-runtime": "^0.13.5",
|
||||||
"remark-cli": "^8.0.0",
|
"remark-cli": "^8.0.1",
|
||||||
"remark-lint-ordered-list-marker-value": "^2.0.1",
|
"remark-lint-ordered-list-marker-value": "^2.0.1",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"rollup": "2.21.0",
|
"rollup": "2.22.1",
|
||||||
"rollup-plugin-re": "^1.0.7",
|
"rollup-plugin-re": "^1.0.7",
|
||||||
"rollup-plugin-terser": "^6.1.0",
|
"rollup-plugin-terser": "^6.1.0",
|
||||||
"stackblur-canvas": "^2.3.0",
|
"stackblur-canvas": "^2.3.0",
|
||||||
"typescript": "^3.9.6",
|
"typescript": "^3.9.7",
|
||||||
"underscore": "^1.10.2"
|
"underscore": "^1.10.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1220,7 +1220,6 @@ export const getElem = (supportsSelectors())
|
||||||
}
|
}
|
||||||
: function (id) {
|
: function (id) {
|
||||||
// jQuery lookup: twice as slow as xpath in FF
|
// jQuery lookup: twice as slow as xpath in FF
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
return $(svgroot_).find('[id=' + id + ']')[0];
|
return $(svgroot_).find('[id=' + id + ']')[0];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -193,7 +193,6 @@ function jQueryContextMenu ($) {
|
||||||
if (o !== undefined) {
|
if (o !== undefined) {
|
||||||
const d = o.split(',');
|
const d = o.split(',');
|
||||||
for (const href of d) {
|
for (const href of d) {
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
$(this).find('A[href="' + href + '"]').parent().addClass('disabled');
|
$(this).find('A[href="' + href + '"]').parent().addClass('disabled');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -217,7 +216,6 @@ function jQueryContextMenu ($) {
|
||||||
if (o !== undefined) {
|
if (o !== undefined) {
|
||||||
const d = o.split(',');
|
const d = o.split(',');
|
||||||
for (const href of d) {
|
for (const href of d) {
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
$(this).find('A[href="' + href + '"]').parent().removeClass('disabled');
|
$(this).find('A[href="' + href + '"]').parent().removeClass('disabled');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1735,7 +1735,6 @@ const jPicker = function ($) {
|
||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
function radioClicked (e) {
|
function radioClicked (e) {
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
$(this).parents('tbody:first').find('input:radio[value!="' + e.target.value + '"]').removeAttr('checked');
|
$(this).parents('tbody:first').find('input:radio[value!="' + e.target.value + '"]').removeAttr('checked');
|
||||||
setColorMode.call(that, e.target.value);
|
setColorMode.call(that, e.target.value);
|
||||||
}
|
}
|
||||||
|
|
|
@ -5919,10 +5919,8 @@ editor.init = function () {
|
||||||
let tool;
|
let tool;
|
||||||
const itool = curConfig.initTool,
|
const itool = curConfig.initTool,
|
||||||
container = $('#tools_left, #svg_editor .tools_flyout'),
|
container = $('#tools_left, #svg_editor .tools_flyout'),
|
||||||
/* eslint-disable unicorn/no-fn-reference-in-iterator */
|
|
||||||
preTool = container.find('#tool_' + itool),
|
preTool = container.find('#tool_' + itool),
|
||||||
regTool = container.find('#' + itool);
|
regTool = container.find('#' + itool);
|
||||||
/* eslint-enable unicorn/no-fn-reference-in-iterator */
|
|
||||||
if (preTool.length) {
|
if (preTool.length) {
|
||||||
tool = preTool;
|
tool = preTool;
|
||||||
} else if (regTool.length) {
|
} else if (regTool.length) {
|
||||||
|
|
|
@ -4829,7 +4829,6 @@
|
||||||
}, 9, null).singleNodeValue;
|
}, 9, null).singleNodeValue;
|
||||||
} : function (id) {
|
} : function (id) {
|
||||||
// jQuery lookup: twice as slow as xpath in FF
|
// jQuery lookup: twice as slow as xpath in FF
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
return $$1(svgroot_).find('[id=' + id + ']')[0];
|
return $$1(svgroot_).find('[id=' + id + ']')[0];
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
|
@ -5398,10 +5397,10 @@
|
||||||
* @param {PlainObject} [strings.cancel]
|
* @param {PlainObject} [strings.cancel]
|
||||||
* @returns {external:jQuery}
|
* @returns {external:jQuery}
|
||||||
*/
|
*/
|
||||||
function jQueryPluginDBox($, strings = {
|
function jQueryPluginDBox($, {
|
||||||
ok: 'Ok',
|
ok: okString = 'Ok',
|
||||||
cancel: 'Cancel'
|
cancel: cancelString = 'Cancel'
|
||||||
}) {
|
} = {}) {
|
||||||
// This sets up alternative dialog boxes. They mostly work the same way as
|
// This sets up alternative dialog boxes. They mostly work the same way as
|
||||||
// their UI counterparts, expect instead of returning the result, a callback
|
// their UI counterparts, expect instead of returning the result, a callback
|
||||||
// needs to be included that returns the result as its first parameter.
|
// needs to be included that returns the result as its first parameter.
|
||||||
|
@ -5466,11 +5465,11 @@
|
||||||
function dbox(type, msg, defaultVal, opts, changeListener, checkbox) {
|
function dbox(type, msg, defaultVal, opts, changeListener, checkbox) {
|
||||||
dialogContent.html('<p>' + msg.replace(/\n/g, '</p><p>') + '</p>').toggleClass('prompt', type === 'prompt');
|
dialogContent.html('<p>' + msg.replace(/\n/g, '</p><p>') + '</p>').toggleClass('prompt', type === 'prompt');
|
||||||
btnHolder.empty();
|
btnHolder.empty();
|
||||||
const ok = $('<input type="button" data-ok="" value="' + strings.ok + '">').appendTo(btnHolder);
|
const ok = $('<input type="button" data-ok="" value="' + okString + '">').appendTo(btnHolder);
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
// eslint-disable-line promise/avoid-new
|
// eslint-disable-line promise/avoid-new
|
||||||
if (type !== 'alert') {
|
if (type !== 'alert') {
|
||||||
$('<input type="button" value="' + strings.cancel + '">').appendTo(btnHolder).click(function () {
|
$('<input type="button" value="' + cancelString + '">').appendTo(btnHolder).click(function () {
|
||||||
box.hide();
|
box.hide();
|
||||||
resolve(false);
|
resolve(false);
|
||||||
});
|
});
|
||||||
|
@ -9931,7 +9930,6 @@
|
||||||
// querySelector lookup
|
// querySelector lookup
|
||||||
return this.svgElem_.querySelector('#' + id);
|
return this.svgElem_.querySelector('#' + id);
|
||||||
} // jQuery lookup: twice as slow as xpath in FF
|
} // jQuery lookup: twice as slow as xpath in FF
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
|
|
||||||
|
|
||||||
return $$6(this.svgElem_).find('[id=' + id + ']')[0];
|
return $$6(this.svgElem_).find('[id=' + id + ']')[0];
|
||||||
|
@ -23752,7 +23750,6 @@
|
||||||
const d = o.split(',');
|
const d = o.split(',');
|
||||||
|
|
||||||
for (const href of d) {
|
for (const href of d) {
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
$(this).find('A[href="' + href + '"]').parent().addClass('disabled');
|
$(this).find('A[href="' + href + '"]').parent().addClass('disabled');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23778,7 +23775,6 @@
|
||||||
const d = o.split(',');
|
const d = o.split(',');
|
||||||
|
|
||||||
for (const href of d) {
|
for (const href of d) {
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
$(this).find('A[href="' + href + '"]').parent().removeClass('disabled');
|
$(this).find('A[href="' + href + '"]').parent().removeClass('disabled');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26166,7 +26162,6 @@
|
||||||
|
|
||||||
|
|
||||||
function radioClicked(e) {
|
function radioClicked(e) {
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
$(this).parents('tbody:first').find('input:radio[value!="' + e.target.value + '"]').removeAttr('checked');
|
$(this).parents('tbody:first').find('input:radio[value!="' + e.target.value + '"]').removeAttr('checked');
|
||||||
setColorMode.call(that, e.target.value);
|
setColorMode.call(that, e.target.value);
|
||||||
}
|
}
|
||||||
|
@ -34418,11 +34413,8 @@
|
||||||
let tool;
|
let tool;
|
||||||
const itool = curConfig.initTool,
|
const itool = curConfig.initTool,
|
||||||
container = $$c('#tools_left, #svg_editor .tools_flyout'),
|
container = $$c('#tools_left, #svg_editor .tools_flyout'),
|
||||||
|
|
||||||
/* eslint-disable unicorn/no-fn-reference-in-iterator */
|
|
||||||
preTool = container.find('#tool_' + itool),
|
preTool = container.find('#tool_' + itool),
|
||||||
regTool = container.find('#' + itool);
|
regTool = container.find('#' + itool);
|
||||||
/* eslint-enable unicorn/no-fn-reference-in-iterator */
|
|
||||||
|
|
||||||
if (preTool.length) {
|
if (preTool.length) {
|
||||||
tool = preTool;
|
tool = preTool;
|
||||||
|
|
|
@ -8,7 +8,10 @@
|
||||||
* @param {PlainObject} [strings.cancel]
|
* @param {PlainObject} [strings.cancel]
|
||||||
* @returns {external:jQuery}
|
* @returns {external:jQuery}
|
||||||
*/
|
*/
|
||||||
export default function jQueryPluginDBox ($, strings = {ok: 'Ok', cancel: 'Cancel'}) {
|
export default function jQueryPluginDBox ($, {
|
||||||
|
ok: okString = 'Ok',
|
||||||
|
cancel: cancelString = 'Cancel'
|
||||||
|
} = {}) {
|
||||||
// This sets up alternative dialog boxes. They mostly work the same way as
|
// This sets up alternative dialog boxes. They mostly work the same way as
|
||||||
// their UI counterparts, expect instead of returning the result, a callback
|
// their UI counterparts, expect instead of returning the result, a callback
|
||||||
// needs to be included that returns the result as its first parameter.
|
// needs to be included that returns the result as its first parameter.
|
||||||
|
@ -72,11 +75,11 @@ export default function jQueryPluginDBox ($, strings = {ok: 'Ok', cancel: 'Cance
|
||||||
.toggleClass('prompt', (type === 'prompt'));
|
.toggleClass('prompt', (type === 'prompt'));
|
||||||
btnHolder.empty();
|
btnHolder.empty();
|
||||||
|
|
||||||
const ok = $('<input type="button" data-ok="" value="' + strings.ok + '">').appendTo(btnHolder);
|
const ok = $('<input type="button" data-ok="" value="' + okString + '">').appendTo(btnHolder);
|
||||||
|
|
||||||
return new Promise((resolve, reject) => { // eslint-disable-line promise/avoid-new
|
return new Promise((resolve, reject) => { // eslint-disable-line promise/avoid-new
|
||||||
if (type !== 'alert') {
|
if (type !== 'alert') {
|
||||||
$('<input type="button" value="' + strings.cancel + '">')
|
$('<input type="button" value="' + cancelString + '">')
|
||||||
.appendTo(btnHolder)
|
.appendTo(btnHolder)
|
||||||
.click(function () {
|
.click(function () {
|
||||||
box.hide();
|
box.hide();
|
||||||
|
|
|
@ -158,7 +158,6 @@ export class Drawing {
|
||||||
return this.svgElem_.querySelector('#' + id);
|
return this.svgElem_.querySelector('#' + id);
|
||||||
}
|
}
|
||||||
// jQuery lookup: twice as slow as xpath in FF
|
// jQuery lookup: twice as slow as xpath in FF
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
return $(this.svgElem_).find('[id=' + id + ']')[0];
|
return $(this.svgElem_).find('[id=' + id + ']')[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4829,7 +4829,6 @@
|
||||||
}, 9, null).singleNodeValue;
|
}, 9, null).singleNodeValue;
|
||||||
} : function (id) {
|
} : function (id) {
|
||||||
// jQuery lookup: twice as slow as xpath in FF
|
// jQuery lookup: twice as slow as xpath in FF
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
return $$1(svgroot_).find('[id=' + id + ']')[0];
|
return $$1(svgroot_).find('[id=' + id + ']')[0];
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
|
@ -5398,10 +5397,10 @@
|
||||||
* @param {PlainObject} [strings.cancel]
|
* @param {PlainObject} [strings.cancel]
|
||||||
* @returns {external:jQuery}
|
* @returns {external:jQuery}
|
||||||
*/
|
*/
|
||||||
function jQueryPluginDBox($, strings = {
|
function jQueryPluginDBox($, {
|
||||||
ok: 'Ok',
|
ok: okString = 'Ok',
|
||||||
cancel: 'Cancel'
|
cancel: cancelString = 'Cancel'
|
||||||
}) {
|
} = {}) {
|
||||||
// This sets up alternative dialog boxes. They mostly work the same way as
|
// This sets up alternative dialog boxes. They mostly work the same way as
|
||||||
// their UI counterparts, expect instead of returning the result, a callback
|
// their UI counterparts, expect instead of returning the result, a callback
|
||||||
// needs to be included that returns the result as its first parameter.
|
// needs to be included that returns the result as its first parameter.
|
||||||
|
@ -5466,11 +5465,11 @@
|
||||||
function dbox(type, msg, defaultVal, opts, changeListener, checkbox) {
|
function dbox(type, msg, defaultVal, opts, changeListener, checkbox) {
|
||||||
dialogContent.html('<p>' + msg.replace(/\n/g, '</p><p>') + '</p>').toggleClass('prompt', type === 'prompt');
|
dialogContent.html('<p>' + msg.replace(/\n/g, '</p><p>') + '</p>').toggleClass('prompt', type === 'prompt');
|
||||||
btnHolder.empty();
|
btnHolder.empty();
|
||||||
const ok = $('<input type="button" data-ok="" value="' + strings.ok + '">').appendTo(btnHolder);
|
const ok = $('<input type="button" data-ok="" value="' + okString + '">').appendTo(btnHolder);
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
// eslint-disable-line promise/avoid-new
|
// eslint-disable-line promise/avoid-new
|
||||||
if (type !== 'alert') {
|
if (type !== 'alert') {
|
||||||
$('<input type="button" value="' + strings.cancel + '">').appendTo(btnHolder).click(function () {
|
$('<input type="button" value="' + cancelString + '">').appendTo(btnHolder).click(function () {
|
||||||
box.hide();
|
box.hide();
|
||||||
resolve(false);
|
resolve(false);
|
||||||
});
|
});
|
||||||
|
@ -9931,7 +9930,6 @@
|
||||||
// querySelector lookup
|
// querySelector lookup
|
||||||
return this.svgElem_.querySelector('#' + id);
|
return this.svgElem_.querySelector('#' + id);
|
||||||
} // jQuery lookup: twice as slow as xpath in FF
|
} // jQuery lookup: twice as slow as xpath in FF
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
|
|
||||||
|
|
||||||
return $$6(this.svgElem_).find('[id=' + id + ']')[0];
|
return $$6(this.svgElem_).find('[id=' + id + ']')[0];
|
||||||
|
@ -23752,7 +23750,6 @@
|
||||||
const d = o.split(',');
|
const d = o.split(',');
|
||||||
|
|
||||||
for (const href of d) {
|
for (const href of d) {
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
$(this).find('A[href="' + href + '"]').parent().addClass('disabled');
|
$(this).find('A[href="' + href + '"]').parent().addClass('disabled');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23778,7 +23775,6 @@
|
||||||
const d = o.split(',');
|
const d = o.split(',');
|
||||||
|
|
||||||
for (const href of d) {
|
for (const href of d) {
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
$(this).find('A[href="' + href + '"]').parent().removeClass('disabled');
|
$(this).find('A[href="' + href + '"]').parent().removeClass('disabled');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26166,7 +26162,6 @@
|
||||||
|
|
||||||
|
|
||||||
function radioClicked(e) {
|
function radioClicked(e) {
|
||||||
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
|
|
||||||
$(this).parents('tbody:first').find('input:radio[value!="' + e.target.value + '"]').removeAttr('checked');
|
$(this).parents('tbody:first').find('input:radio[value!="' + e.target.value + '"]').removeAttr('checked');
|
||||||
setColorMode.call(that, e.target.value);
|
setColorMode.call(that, e.target.value);
|
||||||
}
|
}
|
||||||
|
@ -34418,11 +34413,8 @@
|
||||||
let tool;
|
let tool;
|
||||||
const itool = curConfig.initTool,
|
const itool = curConfig.initTool,
|
||||||
container = $$c('#tools_left, #svg_editor .tools_flyout'),
|
container = $$c('#tools_left, #svg_editor .tools_flyout'),
|
||||||
|
|
||||||
/* eslint-disable unicorn/no-fn-reference-in-iterator */
|
|
||||||
preTool = container.find('#tool_' + itool),
|
preTool = container.find('#tool_' + itool),
|
||||||
regTool = container.find('#' + itool);
|
regTool = container.find('#' + itool);
|
||||||
/* eslint-enable unicorn/no-fn-reference-in-iterator */
|
|
||||||
|
|
||||||
if (preTool.length) {
|
if (preTool.length) {
|
||||||
tool = preTool;
|
tool = preTool;
|
||||||
|
|
Loading…
Reference in New Issue