- Linting (ESLint): Apply per jsdoc improvements

- npm: Update devDeps (linting, Babel, axe testing)
This commit is contained in:
Brett Zamir
2019-07-09 08:33:18 +08:00
parent 2d53e0c42e
commit aa96a35f45
12 changed files with 148 additions and 162 deletions

View File

@@ -127,6 +127,7 @@ module.exports = {
"node/no-missing-import": ["off"], "node/no-missing-import": ["off"],
"no-multi-spaces": "off", "no-multi-spaces": "off",
"sonarjs/no-all-duplicated-branches": "off", "sonarjs/no-all-duplicated-branches": "off",
"no-alert": "off",
// Disable until may fix https://github.com/gajus/eslint-plugin-jsdoc/issues/211 // Disable until may fix https://github.com/gajus/eslint-plugin-jsdoc/issues/211
"indent": "off" "indent": "off"
} }
@@ -139,7 +140,7 @@ module.exports = {
root: "off" root: "off"
}, },
rules: { rules: {
"node/no-unsupported-features/es-syntax": "off", "node/no-unsupported-features/es-syntax": "off",
"node/no-unsupported-features/node-builtins": "off" "node/no-unsupported-features/node-builtins": "off"
} }
}, },

51
dist/index-es.js vendored
View File

@@ -22480,33 +22480,32 @@ This will return the icon (as jQuery object) with a given ID.
* @license MIT * @license MIT
* @copyright (c) 2009 Alexis Deveria * @copyright (c) 2009 Alexis Deveria
* {@link http://a.deveria.com} * {@link http://a.deveria.com}
* @example usage #1: * @example
$(function () {
$(function() {
$.svgIcons('my_icon_set.svg'); // The SVG file that contains all icons $.svgIcons('my_icon_set.svg'); // The SVG file that contains all icons
// No options have been set, so all icons will automatically be inserted // No options have been set, so all icons will automatically be inserted
// into HTML elements that match the same IDs. // into HTML elements that match the same IDs.
}); });
* @example usage #2: * @example
$(function () {
$(function() { // The SVG file that contains all icons
$.svgIcons('my_icon_set.svg', { // The SVG file that contains all icons $.svgIcons('my_icon_set.svg', {
callback (icons) { // Custom callback function that sets click callback (icons) { // Custom callback function that sets click
// events for each icon // events for each icon
$.each(icons, function(id, icon) { $.each(icons, function (id, icon) {
icon.click(function() { icon.click(function () {
alert('You clicked on the icon with id ' + id); alert('You clicked on the icon with id ' + id);
}); });
}); });
} }
}); //The SVG file that contains all icons });
}); });
* @example usage #3: * @example
$(function () {
$(function() { // The SVGZ file that contains all icons
$.svgIcons('my_icon_set.svgz', { // The SVGZ file that contains all icons $.svgIcons('my_icon_set.svgz', {
w: 32, // All icons will be 32px wide w: 32, // All icons will be 32px wide
h: 32, // All icons will be 32px high h: 32, // All icons will be 32px high
fallback_path: 'icons/', // All fallback files can be found here fallback_path: 'icons/', // All fallback files can be found here
@@ -22516,19 +22515,18 @@ $(function() {
'#close_icon': 'close.png', '#close_icon': 'close.png',
'#save_icon': 'save.png' '#save_icon': 'save.png'
}, },
placement: {'.open_icon','open'}, // The "open" icon will be added placement: {'.open_icon': 'open'}, // The "open" icon will be added
// to all elements with class "open_icon" // to all elements with class "open_icon"
resize () { resize: {
'#save_icon .svg_icon': 64 // The "save" icon will be resized to 64 x 64px '#save_icon .svg_icon': 64 // The "save" icon will be resized to 64 x 64px
}, },
callback (icons) { // Sets background color for "close" icon callback (icons) { // Sets background color for "close" icon
icons['close'].css('background','red'); icons.close.css('background', 'red');
}, },
svgz: true // Indicates that an SVGZ file is being used svgz: true // Indicates that an SVGZ file is being used
});
})
}); });
*/ */
@@ -23038,12 +23036,12 @@ function jQueryPluginSVGIcons($) {
* @license Apache-2.0 * @license Apache-2.0
* @example * @example
* // The Paint object is described below. * // The Paint object is described below.
* $.jGraduate.Paint() // constructs a 'none' color * $.jGraduate.Paint(); // constructs a 'none' color
* @example $.jGraduate.Paint({copy: o}) // creates a copy of the paint o * @example $.jGraduate.Paint({copy: o}); // creates a copy of the paint o
* @example $.jGraduate.Paint({hex: '#rrggbb'}) // creates a solid color paint with hex = "#rrggbb" * @example $.jGraduate.Paint({hex: '#rrggbb'}); // creates a solid color paint with hex = "#rrggbb"
* @example $.jGraduate.Paint({linearGradient: o, a: 50}) // creates a linear gradient paint with opacity=0.5 * @example $.jGraduate.Paint({linearGradient: o, a: 50}); // creates a linear gradient paint with opacity=0.5
* @example $.jGraduate.Paint({radialGradient: o, a: 7}) // creates a radial gradient paint with opacity=0.07 * @example $.jGraduate.Paint({radialGradient: o, a: 7}); // creates a radial gradient paint with opacity=0.07
* @example $.jGraduate.Paint({hex: '#rrggbb', linearGradient: o}) // throws an exception? * @example $.jGraduate.Paint({hex: '#rrggbb', linearGradient: o}); // throws an exception?
* *
*/ */
@@ -24363,7 +24361,6 @@ function jQueryPluginJGraduate($) {
* | v1.9 | 20 May 2018 | Brett Zamir | Avoid SVGEdit dependency via `stateObj` config;<br />convert to ES6 module | * | v1.9 | 20 May 2018 | Brett Zamir | Avoid SVGEdit dependency via `stateObj` config;<br />convert to ES6 module |
* @module jQuerySpinButton * @module jQuerySpinButton
* @example * @example
// Create group of settings to initialise spinbutton(s). (Optional) // Create group of settings to initialise spinbutton(s). (Optional)
const myOptions = { const myOptions = {
min: 0, // Set lower limit. min: 0, // Set lower limit.
@@ -24378,7 +24375,7 @@ function jQueryPluginJGraduate($) {
$(function () { $(function () {
// Initialise INPUT element(s) as SpinButtons: (passing options if desired) // Initialise INPUT element(s) as SpinButtons: (passing options if desired)
$("#myInputElement").SpinButton(myOptions); $('#myInputElement').SpinButton(myOptions);
}); });
*/ */

File diff suppressed because one or more lines are too long

51
dist/index-umd.js vendored
View File

@@ -22486,33 +22486,32 @@
* @license MIT * @license MIT
* @copyright (c) 2009 Alexis Deveria * @copyright (c) 2009 Alexis Deveria
* {@link http://a.deveria.com} * {@link http://a.deveria.com}
* @example usage #1: * @example
$(function () {
$(function() {
$.svgIcons('my_icon_set.svg'); // The SVG file that contains all icons $.svgIcons('my_icon_set.svg'); // The SVG file that contains all icons
// No options have been set, so all icons will automatically be inserted // No options have been set, so all icons will automatically be inserted
// into HTML elements that match the same IDs. // into HTML elements that match the same IDs.
}); });
* @example usage #2: * @example
$(function () {
$(function() { // The SVG file that contains all icons
$.svgIcons('my_icon_set.svg', { // The SVG file that contains all icons $.svgIcons('my_icon_set.svg', {
callback (icons) { // Custom callback function that sets click callback (icons) { // Custom callback function that sets click
// events for each icon // events for each icon
$.each(icons, function(id, icon) { $.each(icons, function (id, icon) {
icon.click(function() { icon.click(function () {
alert('You clicked on the icon with id ' + id); alert('You clicked on the icon with id ' + id);
}); });
}); });
} }
}); //The SVG file that contains all icons });
}); });
* @example usage #3: * @example
$(function () {
$(function() { // The SVGZ file that contains all icons
$.svgIcons('my_icon_set.svgz', { // The SVGZ file that contains all icons $.svgIcons('my_icon_set.svgz', {
w: 32, // All icons will be 32px wide w: 32, // All icons will be 32px wide
h: 32, // All icons will be 32px high h: 32, // All icons will be 32px high
fallback_path: 'icons/', // All fallback files can be found here fallback_path: 'icons/', // All fallback files can be found here
@@ -22522,19 +22521,18 @@
'#close_icon': 'close.png', '#close_icon': 'close.png',
'#save_icon': 'save.png' '#save_icon': 'save.png'
}, },
placement: {'.open_icon','open'}, // The "open" icon will be added placement: {'.open_icon': 'open'}, // The "open" icon will be added
// to all elements with class "open_icon" // to all elements with class "open_icon"
resize () { resize: {
'#save_icon .svg_icon': 64 // The "save" icon will be resized to 64 x 64px '#save_icon .svg_icon': 64 // The "save" icon will be resized to 64 x 64px
}, },
callback (icons) { // Sets background color for "close" icon callback (icons) { // Sets background color for "close" icon
icons['close'].css('background','red'); icons.close.css('background', 'red');
}, },
svgz: true // Indicates that an SVGZ file is being used svgz: true // Indicates that an SVGZ file is being used
});
})
}); });
*/ */
@@ -23044,12 +23042,12 @@
* @license Apache-2.0 * @license Apache-2.0
* @example * @example
* // The Paint object is described below. * // The Paint object is described below.
* $.jGraduate.Paint() // constructs a 'none' color * $.jGraduate.Paint(); // constructs a 'none' color
* @example $.jGraduate.Paint({copy: o}) // creates a copy of the paint o * @example $.jGraduate.Paint({copy: o}); // creates a copy of the paint o
* @example $.jGraduate.Paint({hex: '#rrggbb'}) // creates a solid color paint with hex = "#rrggbb" * @example $.jGraduate.Paint({hex: '#rrggbb'}); // creates a solid color paint with hex = "#rrggbb"
* @example $.jGraduate.Paint({linearGradient: o, a: 50}) // creates a linear gradient paint with opacity=0.5 * @example $.jGraduate.Paint({linearGradient: o, a: 50}); // creates a linear gradient paint with opacity=0.5
* @example $.jGraduate.Paint({radialGradient: o, a: 7}) // creates a radial gradient paint with opacity=0.07 * @example $.jGraduate.Paint({radialGradient: o, a: 7}); // creates a radial gradient paint with opacity=0.07
* @example $.jGraduate.Paint({hex: '#rrggbb', linearGradient: o}) // throws an exception? * @example $.jGraduate.Paint({hex: '#rrggbb', linearGradient: o}); // throws an exception?
* *
*/ */
@@ -24369,7 +24367,6 @@
* | v1.9 | 20 May 2018 | Brett Zamir | Avoid SVGEdit dependency via `stateObj` config;<br />convert to ES6 module | * | v1.9 | 20 May 2018 | Brett Zamir | Avoid SVGEdit dependency via `stateObj` config;<br />convert to ES6 module |
* @module jQuerySpinButton * @module jQuerySpinButton
* @example * @example
// Create group of settings to initialise spinbutton(s). (Optional) // Create group of settings to initialise spinbutton(s). (Optional)
const myOptions = { const myOptions = {
min: 0, // Set lower limit. min: 0, // Set lower limit.
@@ -24384,7 +24381,7 @@
$(function () { $(function () {
// Initialise INPUT element(s) as SpinButtons: (passing options if desired) // Initialise INPUT element(s) as SpinButtons: (passing options if desired)
$("#myInputElement").SpinButton(myOptions); $('#myInputElement').SpinButton(myOptions);
}); });
*/ */

File diff suppressed because one or more lines are too long

View File

@@ -9,12 +9,12 @@
* @license Apache-2.0 * @license Apache-2.0
* @example * @example
* // The Paint object is described below. * // The Paint object is described below.
* $.jGraduate.Paint() // constructs a 'none' color * $.jGraduate.Paint(); // constructs a 'none' color
* @example $.jGraduate.Paint({copy: o}) // creates a copy of the paint o * @example $.jGraduate.Paint({copy: o}); // creates a copy of the paint o
* @example $.jGraduate.Paint({hex: '#rrggbb'}) // creates a solid color paint with hex = "#rrggbb" * @example $.jGraduate.Paint({hex: '#rrggbb'}); // creates a solid color paint with hex = "#rrggbb"
* @example $.jGraduate.Paint({linearGradient: o, a: 50}) // creates a linear gradient paint with opacity=0.5 * @example $.jGraduate.Paint({linearGradient: o, a: 50}); // creates a linear gradient paint with opacity=0.5
* @example $.jGraduate.Paint({radialGradient: o, a: 7}) // creates a radial gradient paint with opacity=0.07 * @example $.jGraduate.Paint({radialGradient: o, a: 7}); // creates a radial gradient paint with opacity=0.07
* @example $.jGraduate.Paint({hex: '#rrggbb', linearGradient: o}) // throws an exception? * @example $.jGraduate.Paint({hex: '#rrggbb', linearGradient: o}); // throws an exception?
* *
*/ */

View File

@@ -50,7 +50,6 @@
* | v1.9 | 20 May 2018 | Brett Zamir | Avoid SVGEdit dependency via `stateObj` config;<br />convert to ES6 module | * | v1.9 | 20 May 2018 | Brett Zamir | Avoid SVGEdit dependency via `stateObj` config;<br />convert to ES6 module |
* @module jQuerySpinButton * @module jQuerySpinButton
* @example * @example
// Create group of settings to initialise spinbutton(s). (Optional) // Create group of settings to initialise spinbutton(s). (Optional)
const myOptions = { const myOptions = {
min: 0, // Set lower limit. min: 0, // Set lower limit.
@@ -65,7 +64,7 @@
$(function () { $(function () {
// Initialise INPUT element(s) as SpinButtons: (passing options if desired) // Initialise INPUT element(s) as SpinButtons: (passing options if desired)
$("#myInputElement").SpinButton(myOptions); $('#myInputElement').SpinButton(myOptions);
}); });
*/ */
/** /**

View File

@@ -36,33 +36,32 @@ This will return the icon (as jQuery object) with a given ID.
* @license MIT * @license MIT
* @copyright (c) 2009 Alexis Deveria * @copyright (c) 2009 Alexis Deveria
* {@link http://a.deveria.com} * {@link http://a.deveria.com}
* @example usage #1: * @example
$(function () {
$(function() {
$.svgIcons('my_icon_set.svg'); // The SVG file that contains all icons $.svgIcons('my_icon_set.svg'); // The SVG file that contains all icons
// No options have been set, so all icons will automatically be inserted // No options have been set, so all icons will automatically be inserted
// into HTML elements that match the same IDs. // into HTML elements that match the same IDs.
}); });
* @example usage #2: * @example
$(function () {
$(function() { // The SVG file that contains all icons
$.svgIcons('my_icon_set.svg', { // The SVG file that contains all icons $.svgIcons('my_icon_set.svg', {
callback (icons) { // Custom callback function that sets click callback (icons) { // Custom callback function that sets click
// events for each icon // events for each icon
$.each(icons, function(id, icon) { $.each(icons, function (id, icon) {
icon.click(function() { icon.click(function () {
alert('You clicked on the icon with id ' + id); alert('You clicked on the icon with id ' + id);
}); });
}); });
} }
}); //The SVG file that contains all icons });
}); });
* @example usage #3: * @example
$(function () {
$(function() { // The SVGZ file that contains all icons
$.svgIcons('my_icon_set.svgz', { // The SVGZ file that contains all icons $.svgIcons('my_icon_set.svgz', {
w: 32, // All icons will be 32px wide w: 32, // All icons will be 32px wide
h: 32, // All icons will be 32px high h: 32, // All icons will be 32px high
fallback_path: 'icons/', // All fallback files can be found here fallback_path: 'icons/', // All fallback files can be found here
@@ -72,19 +71,18 @@ $(function() {
'#close_icon': 'close.png', '#close_icon': 'close.png',
'#save_icon': 'save.png' '#save_icon': 'save.png'
}, },
placement: {'.open_icon','open'}, // The "open" icon will be added placement: {'.open_icon': 'open'}, // The "open" icon will be added
// to all elements with class "open_icon" // to all elements with class "open_icon"
resize () { resize: {
'#save_icon .svg_icon': 64 // The "save" icon will be resized to 64 x 64px '#save_icon .svg_icon': 64 // The "save" icon will be resized to 64 x 64px
}, },
callback (icons) { // Sets background color for "close" icon callback (icons) { // Sets background color for "close" icon
icons['close'].css('background','red'); icons.close.css('background', 'red');
}, },
svgz: true // Indicates that an SVGZ file is being used svgz: true // Indicates that an SVGZ file is being used
});
})
}); });
*/ */

View File

@@ -22483,33 +22483,32 @@
* @license MIT * @license MIT
* @copyright (c) 2009 Alexis Deveria * @copyright (c) 2009 Alexis Deveria
* {@link http://a.deveria.com} * {@link http://a.deveria.com}
* @example usage #1: * @example
$(function () {
$(function() {
$.svgIcons('my_icon_set.svg'); // The SVG file that contains all icons $.svgIcons('my_icon_set.svg'); // The SVG file that contains all icons
// No options have been set, so all icons will automatically be inserted // No options have been set, so all icons will automatically be inserted
// into HTML elements that match the same IDs. // into HTML elements that match the same IDs.
}); });
* @example usage #2: * @example
$(function () {
$(function() { // The SVG file that contains all icons
$.svgIcons('my_icon_set.svg', { // The SVG file that contains all icons $.svgIcons('my_icon_set.svg', {
callback (icons) { // Custom callback function that sets click callback (icons) { // Custom callback function that sets click
// events for each icon // events for each icon
$.each(icons, function(id, icon) { $.each(icons, function (id, icon) {
icon.click(function() { icon.click(function () {
alert('You clicked on the icon with id ' + id); alert('You clicked on the icon with id ' + id);
}); });
}); });
} }
}); //The SVG file that contains all icons });
}); });
* @example usage #3: * @example
$(function () {
$(function() { // The SVGZ file that contains all icons
$.svgIcons('my_icon_set.svgz', { // The SVGZ file that contains all icons $.svgIcons('my_icon_set.svgz', {
w: 32, // All icons will be 32px wide w: 32, // All icons will be 32px wide
h: 32, // All icons will be 32px high h: 32, // All icons will be 32px high
fallback_path: 'icons/', // All fallback files can be found here fallback_path: 'icons/', // All fallback files can be found here
@@ -22519,19 +22518,18 @@
'#close_icon': 'close.png', '#close_icon': 'close.png',
'#save_icon': 'save.png' '#save_icon': 'save.png'
}, },
placement: {'.open_icon','open'}, // The "open" icon will be added placement: {'.open_icon': 'open'}, // The "open" icon will be added
// to all elements with class "open_icon" // to all elements with class "open_icon"
resize () { resize: {
'#save_icon .svg_icon': 64 // The "save" icon will be resized to 64 x 64px '#save_icon .svg_icon': 64 // The "save" icon will be resized to 64 x 64px
}, },
callback (icons) { // Sets background color for "close" icon callback (icons) { // Sets background color for "close" icon
icons['close'].css('background','red'); icons.close.css('background', 'red');
}, },
svgz: true // Indicates that an SVGZ file is being used svgz: true // Indicates that an SVGZ file is being used
});
})
}); });
*/ */
@@ -23041,12 +23039,12 @@
* @license Apache-2.0 * @license Apache-2.0
* @example * @example
* // The Paint object is described below. * // The Paint object is described below.
* $.jGraduate.Paint() // constructs a 'none' color * $.jGraduate.Paint(); // constructs a 'none' color
* @example $.jGraduate.Paint({copy: o}) // creates a copy of the paint o * @example $.jGraduate.Paint({copy: o}); // creates a copy of the paint o
* @example $.jGraduate.Paint({hex: '#rrggbb'}) // creates a solid color paint with hex = "#rrggbb" * @example $.jGraduate.Paint({hex: '#rrggbb'}); // creates a solid color paint with hex = "#rrggbb"
* @example $.jGraduate.Paint({linearGradient: o, a: 50}) // creates a linear gradient paint with opacity=0.5 * @example $.jGraduate.Paint({linearGradient: o, a: 50}); // creates a linear gradient paint with opacity=0.5
* @example $.jGraduate.Paint({radialGradient: o, a: 7}) // creates a radial gradient paint with opacity=0.07 * @example $.jGraduate.Paint({radialGradient: o, a: 7}); // creates a radial gradient paint with opacity=0.07
* @example $.jGraduate.Paint({hex: '#rrggbb', linearGradient: o}) // throws an exception? * @example $.jGraduate.Paint({hex: '#rrggbb', linearGradient: o}); // throws an exception?
* *
*/ */
@@ -24366,7 +24364,6 @@
* | v1.9 | 20 May 2018 | Brett Zamir | Avoid SVGEdit dependency via `stateObj` config;<br />convert to ES6 module | * | v1.9 | 20 May 2018 | Brett Zamir | Avoid SVGEdit dependency via `stateObj` config;<br />convert to ES6 module |
* @module jQuerySpinButton * @module jQuerySpinButton
* @example * @example
// Create group of settings to initialise spinbutton(s). (Optional) // Create group of settings to initialise spinbutton(s). (Optional)
const myOptions = { const myOptions = {
min: 0, // Set lower limit. min: 0, // Set lower limit.
@@ -24381,7 +24378,7 @@
$(function () { $(function () {
// Initialise INPUT element(s) as SpinButtons: (passing options if desired) // Initialise INPUT element(s) as SpinButtons: (passing options if desired)
$("#myInputElement").SpinButton(myOptions); $('#myInputElement').SpinButton(myOptions);
}); });
*/ */

40
package-lock.json generated
View File

@@ -359,9 +359,9 @@
} }
}, },
"@babel/plugin-proposal-object-rest-spread": { "@babel/plugin-proposal-object-rest-spread": {
"version": "7.5.0", "version": "7.5.2",
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.5.0.tgz", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.5.2.tgz",
"integrity": "sha512-G1qy5EdcO3vYhbxlXjRSR2SXB8GsxYv9hoRKT1Jdn3qy/NUnFqUUnqymKZ00Pbj+3FXNh06B+BUZzecrp3sxNw==", "integrity": "sha512-C/JU3YOx5J4d9s0GGlJlYXVwsbd5JmqQ0AvB7cIDAx7nN57aDTnlJEsZJPuSskeBtMGFWSWU5Q+piTiDe0s7FQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"@babel/helper-plugin-utils": "^7.0.0", "@babel/helper-plugin-utils": "^7.0.0",
@@ -753,9 +753,9 @@
} }
}, },
"@babel/preset-env": { "@babel/preset-env": {
"version": "7.5.0", "version": "7.5.2",
"resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.5.0.tgz", "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.5.2.tgz",
"integrity": "sha512-/5oQ7cYg+6sH9Dt9yx5IiylnLPiUdyMHl5y+K0mKVNiW2wJ7FpU5bg8jKcT8PcCbxdYzfv6OuC63jLEtMuRSmQ==", "integrity": "sha512-7rRJLaUqJhQ+8xGrWtMROAgOi/+udIzyK2ES9NHhDIUvR2zfx/ON5lRR8ACUGehIYst8KVbl4vpkgOqn08gBxA==",
"dev": true, "dev": true,
"requires": { "requires": {
"@babel/helper-module-imports": "^7.0.0", "@babel/helper-module-imports": "^7.0.0",
@@ -763,7 +763,7 @@
"@babel/plugin-proposal-async-generator-functions": "^7.2.0", "@babel/plugin-proposal-async-generator-functions": "^7.2.0",
"@babel/plugin-proposal-dynamic-import": "^7.5.0", "@babel/plugin-proposal-dynamic-import": "^7.5.0",
"@babel/plugin-proposal-json-strings": "^7.2.0", "@babel/plugin-proposal-json-strings": "^7.2.0",
"@babel/plugin-proposal-object-rest-spread": "^7.5.0", "@babel/plugin-proposal-object-rest-spread": "^7.5.2",
"@babel/plugin-proposal-optional-catch-binding": "^7.2.0", "@babel/plugin-proposal-optional-catch-binding": "^7.2.0",
"@babel/plugin-proposal-unicode-property-regex": "^7.4.4", "@babel/plugin-proposal-unicode-property-regex": "^7.4.4",
"@babel/plugin-syntax-async-generators": "^7.2.0", "@babel/plugin-syntax-async-generators": "^7.2.0",
@@ -1399,9 +1399,9 @@
"dev": true "dev": true
}, },
"axe-core": { "axe-core": {
"version": "3.2.2", "version": "3.3.0",
"resolved": "https://registry.npmjs.org/axe-core/-/axe-core-3.2.2.tgz", "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-3.3.0.tgz",
"integrity": "sha512-gAy4kMSPpuRJV3mwictJqlg5LhE84Vw2CydKdC4tvrLhR6+G3KW51zbL/vYujcLA2jvWOq3HMHrVeNuw+mrLVA==", "integrity": "sha512-54XaTd2VB7A6iBnXMUG2LnBOI7aRbnrVxC5Tz+rVUwYl9MX/cIJc/Ll32YUoFIE/e9UKWMZoQenQu9dFrQyZCg==",
"dev": true "dev": true
}, },
"axe-testcafe": { "axe-testcafe": {
@@ -3605,9 +3605,9 @@
} }
}, },
"eslint-config-ash-nazg": { "eslint-config-ash-nazg": {
"version": "8.1.0", "version": "8.2.0",
"resolved": "https://registry.npmjs.org/eslint-config-ash-nazg/-/eslint-config-ash-nazg-8.1.0.tgz", "resolved": "https://registry.npmjs.org/eslint-config-ash-nazg/-/eslint-config-ash-nazg-8.2.0.tgz",
"integrity": "sha512-YwH0FXFZymuieI5u8CHBF3oblUydls91ZuvjujT6oU0rdogU3QDz0c/YHZXwX9oerynsF1AQ5SUjFH2LcpiykA==", "integrity": "sha512-SSoN+4Q2cCOVx806pNE7c28JE1A+6Z6Mb5d1RpCkkI1v5f3kXa/yaKD+Eexp/WVEuaIL4B79uIVuuN8TnOdQnw==",
"dev": true "dev": true
}, },
"eslint-config-standard": { "eslint-config-standard": {
@@ -3832,16 +3832,16 @@
} }
}, },
"eslint-plugin-jsdoc": { "eslint-plugin-jsdoc": {
"version": "14.0.0", "version": "15.3.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-14.0.0.tgz", "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-15.3.0.tgz",
"integrity": "sha512-G+Lb7XnnfeZyYOFnZbLH/BsucDjEwggsD4DQJVfj1M9XOvSXv7v5fhvwXCBdWQXzyZ0uy28ilBRQ33dZSa9LjQ==", "integrity": "sha512-xBOQo0Ao9VnwvLtczFSfSdh5l5CJypu2gT355x/WDkqWhIkXwIkxnQ8VSlSwl9mhNIA82BaN+mHzD2IWGS9Vaw==",
"dev": true, "dev": true,
"requires": { "requires": {
"comment-parser": "^0.5.5", "comment-parser": "^0.5.5",
"debug": "^4.1.1", "debug": "^4.1.1",
"escape-regex-string": "^1.0.6", "escape-regex-string": "^1.0.6",
"flat-map-polyfill": "^0.3.8", "flat-map-polyfill": "^0.3.8",
"jsdoctypeparser": "4.0.0", "jsdoctypeparser": "5.0.1",
"lodash": "^4.17.11" "lodash": "^4.17.11"
} }
}, },
@@ -5935,9 +5935,9 @@
} }
}, },
"jsdoctypeparser": { "jsdoctypeparser": {
"version": "4.0.0", "version": "5.0.1",
"resolved": "https://registry.npmjs.org/jsdoctypeparser/-/jsdoctypeparser-4.0.0.tgz", "resolved": "https://registry.npmjs.org/jsdoctypeparser/-/jsdoctypeparser-5.0.1.tgz",
"integrity": "sha512-Bh6AW8eJ1bVdofhYUuqgFOVo0FE9qII+a+Go+juEnAfaDS5lZAiIqBAFm9gDu80OqBcQ1UI3v/8cP+3D5IGVww==", "integrity": "sha512-dYwcK6TKzvq+ZKtbp4sbQSW9JMo6s+4YFfUs5D/K7bZsn3s1NhEhZ+jmIPzby0HbkbECBe+hNPEa6a+E21o94w==",
"dev": true "dev": true
}, },
"jsdom": { "jsdom": {

View File

@@ -79,21 +79,21 @@
"@babel/core": "^7.5.0", "@babel/core": "^7.5.0",
"@babel/node": "^7.5.0", "@babel/node": "^7.5.0",
"@babel/plugin-transform-modules-commonjs": "^7.5.0", "@babel/plugin-transform-modules-commonjs": "^7.5.0",
"@babel/preset-env": "^7.5.0", "@babel/preset-env": "^7.5.2",
"@mysticatea/eslint-plugin": "^11.0.0", "@mysticatea/eslint-plugin": "^11.0.0",
"axe-core": "^3.2.2", "axe-core": "^3.3.0",
"axe-testcafe": "^3.0.0", "axe-testcafe": "^3.0.0",
"babel-plugin-transform-object-rest-spread": "^7.0.0-beta.3", "babel-plugin-transform-object-rest-spread": "^7.0.0-beta.3",
"core-js-bundle": "^3.1.4", "core-js-bundle": "^3.1.4",
"eslint": "6.0.1", "eslint": "6.0.1",
"eslint-config-ash-nazg": "8.1.0", "eslint-config-ash-nazg": "8.2.0",
"eslint-config-standard": "12.0.0", "eslint-config-standard": "12.0.0",
"eslint-plugin-array-func": "^3.1.3", "eslint-plugin-array-func": "^3.1.3",
"eslint-plugin-compat": "^3.2.0", "eslint-plugin-compat": "^3.2.0",
"eslint-plugin-eslint-comments": "^3.1.2", "eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-html": "^6.0.0", "eslint-plugin-html": "^6.0.0",
"eslint-plugin-import": "2.18.0", "eslint-plugin-import": "2.18.0",
"eslint-plugin-jsdoc": "^14.0.0", "eslint-plugin-jsdoc": "^15.3.0",
"eslint-plugin-markdown": "^1.0.0", "eslint-plugin-markdown": "^1.0.0",
"eslint-plugin-no-use-extend-native": "^0.4.1", "eslint-plugin-no-use-extend-native": "^0.4.1",
"eslint-plugin-node": "9.1.0", "eslint-plugin-node": "9.1.0",

View File

@@ -22483,33 +22483,32 @@
* @license MIT * @license MIT
* @copyright (c) 2009 Alexis Deveria * @copyright (c) 2009 Alexis Deveria
* {@link http://a.deveria.com} * {@link http://a.deveria.com}
* @example usage #1: * @example
$(function () {
$(function() {
$.svgIcons('my_icon_set.svg'); // The SVG file that contains all icons $.svgIcons('my_icon_set.svg'); // The SVG file that contains all icons
// No options have been set, so all icons will automatically be inserted // No options have been set, so all icons will automatically be inserted
// into HTML elements that match the same IDs. // into HTML elements that match the same IDs.
}); });
* @example usage #2: * @example
$(function () {
$(function() { // The SVG file that contains all icons
$.svgIcons('my_icon_set.svg', { // The SVG file that contains all icons $.svgIcons('my_icon_set.svg', {
callback (icons) { // Custom callback function that sets click callback (icons) { // Custom callback function that sets click
// events for each icon // events for each icon
$.each(icons, function(id, icon) { $.each(icons, function (id, icon) {
icon.click(function() { icon.click(function () {
alert('You clicked on the icon with id ' + id); alert('You clicked on the icon with id ' + id);
}); });
}); });
} }
}); //The SVG file that contains all icons });
}); });
* @example usage #3: * @example
$(function () {
$(function() { // The SVGZ file that contains all icons
$.svgIcons('my_icon_set.svgz', { // The SVGZ file that contains all icons $.svgIcons('my_icon_set.svgz', {
w: 32, // All icons will be 32px wide w: 32, // All icons will be 32px wide
h: 32, // All icons will be 32px high h: 32, // All icons will be 32px high
fallback_path: 'icons/', // All fallback files can be found here fallback_path: 'icons/', // All fallback files can be found here
@@ -22519,19 +22518,18 @@
'#close_icon': 'close.png', '#close_icon': 'close.png',
'#save_icon': 'save.png' '#save_icon': 'save.png'
}, },
placement: {'.open_icon','open'}, // The "open" icon will be added placement: {'.open_icon': 'open'}, // The "open" icon will be added
// to all elements with class "open_icon" // to all elements with class "open_icon"
resize () { resize: {
'#save_icon .svg_icon': 64 // The "save" icon will be resized to 64 x 64px '#save_icon .svg_icon': 64 // The "save" icon will be resized to 64 x 64px
}, },
callback (icons) { // Sets background color for "close" icon callback (icons) { // Sets background color for "close" icon
icons['close'].css('background','red'); icons.close.css('background', 'red');
}, },
svgz: true // Indicates that an SVGZ file is being used svgz: true // Indicates that an SVGZ file is being used
});
})
}); });
*/ */
@@ -23041,12 +23039,12 @@
* @license Apache-2.0 * @license Apache-2.0
* @example * @example
* // The Paint object is described below. * // The Paint object is described below.
* $.jGraduate.Paint() // constructs a 'none' color * $.jGraduate.Paint(); // constructs a 'none' color
* @example $.jGraduate.Paint({copy: o}) // creates a copy of the paint o * @example $.jGraduate.Paint({copy: o}); // creates a copy of the paint o
* @example $.jGraduate.Paint({hex: '#rrggbb'}) // creates a solid color paint with hex = "#rrggbb" * @example $.jGraduate.Paint({hex: '#rrggbb'}); // creates a solid color paint with hex = "#rrggbb"
* @example $.jGraduate.Paint({linearGradient: o, a: 50}) // creates a linear gradient paint with opacity=0.5 * @example $.jGraduate.Paint({linearGradient: o, a: 50}); // creates a linear gradient paint with opacity=0.5
* @example $.jGraduate.Paint({radialGradient: o, a: 7}) // creates a radial gradient paint with opacity=0.07 * @example $.jGraduate.Paint({radialGradient: o, a: 7}); // creates a radial gradient paint with opacity=0.07
* @example $.jGraduate.Paint({hex: '#rrggbb', linearGradient: o}) // throws an exception? * @example $.jGraduate.Paint({hex: '#rrggbb', linearGradient: o}); // throws an exception?
* *
*/ */
@@ -24366,7 +24364,6 @@
* | v1.9 | 20 May 2018 | Brett Zamir | Avoid SVGEdit dependency via `stateObj` config;<br />convert to ES6 module | * | v1.9 | 20 May 2018 | Brett Zamir | Avoid SVGEdit dependency via `stateObj` config;<br />convert to ES6 module |
* @module jQuerySpinButton * @module jQuerySpinButton
* @example * @example
// Create group of settings to initialise spinbutton(s). (Optional) // Create group of settings to initialise spinbutton(s). (Optional)
const myOptions = { const myOptions = {
min: 0, // Set lower limit. min: 0, // Set lower limit.
@@ -24381,7 +24378,7 @@
$(function () { $(function () {
// Initialise INPUT element(s) as SpinButtons: (passing options if desired) // Initialise INPUT element(s) as SpinButtons: (passing options if desired)
$("#myInputElement").SpinButton(myOptions); $('#myInputElement').SpinButton(myOptions);
}); });
*/ */