- Linting (ESLint): Update as per latest ash-nazg (bad jsdoc)

- npm: Update devDeps
This commit is contained in:
Brett Zamir
2019-12-31 13:14:33 +08:00
parent c9e17b8aa7
commit 477d5fdb6c
21 changed files with 203 additions and 95 deletions

22
dist/canvg.js vendored
View File

@@ -911,17 +911,17 @@ var canvg = (function (exports) {
/**
* @typedef {PlainObject} module:canvg.CanvgOptions
* @property {boolean} opts.ignoreMouse true => ignore mouse events
* @property {boolean} opts.ignoreAnimation true => ignore animations
* @property {boolean} opts.ignoreDimensions true => does not try to resize canvas
* @property {boolean} opts.ignoreClear true => does not clear canvas
* @property {Integer} opts.offsetX int => draws at a x offset
* @property {Integer} opts.offsetY int => draws at a y offset
* @property {Integer} opts.scaleWidth int => scales horizontally to width
* @property {Integer} opts.scaleHeight int => scales vertically to height
* @property {module:canvg.ForceRedraw} opts.forceRedraw function => will call the function on every frame, if it returns true, will redraw
* @property {boolean} opts.log Adds log function
* @property {boolean} opts.useCORS Whether to set CORS `crossOrigin` for the image to `Anonymous`
* @property {boolean} ignoreMouse true => ignore mouse events
* @property {boolean} ignoreAnimation true => ignore animations
* @property {boolean} ignoreDimensions true => does not try to resize canvas
* @property {boolean} ignoreClear true => does not clear canvas
* @property {Integer} offsetX int => draws at a x offset
* @property {Integer} offsetY int => draws at a y offset
* @property {Integer} scaleWidth int => scales horizontally to width
* @property {Integer} scaleHeight int => scales vertically to height
* @property {module:canvg.ForceRedraw} forceRedraw function => will call the function on every frame, if it returns true, will redraw
* @property {boolean} log Adds log function
* @property {boolean} useCORS Whether to set CORS `crossOrigin` for the image to `Anonymous`
*/
/**

View File

@@ -911,17 +911,17 @@ var svgEditorExtension_server_moinsave = (function () {
/**
* @typedef {PlainObject} module:canvg.CanvgOptions
* @property {boolean} opts.ignoreMouse true => ignore mouse events
* @property {boolean} opts.ignoreAnimation true => ignore animations
* @property {boolean} opts.ignoreDimensions true => does not try to resize canvas
* @property {boolean} opts.ignoreClear true => does not clear canvas
* @property {Integer} opts.offsetX int => draws at a x offset
* @property {Integer} opts.offsetY int => draws at a y offset
* @property {Integer} opts.scaleWidth int => scales horizontally to width
* @property {Integer} opts.scaleHeight int => scales vertically to height
* @property {module:canvg.ForceRedraw} opts.forceRedraw function => will call the function on every frame, if it returns true, will redraw
* @property {boolean} opts.log Adds log function
* @property {boolean} opts.useCORS Whether to set CORS `crossOrigin` for the image to `Anonymous`
* @property {boolean} ignoreMouse true => ignore mouse events
* @property {boolean} ignoreAnimation true => ignore animations
* @property {boolean} ignoreDimensions true => does not try to resize canvas
* @property {boolean} ignoreClear true => does not clear canvas
* @property {Integer} offsetX int => draws at a x offset
* @property {Integer} offsetY int => draws at a y offset
* @property {Integer} scaleWidth int => scales horizontally to width
* @property {Integer} scaleHeight int => scales vertically to height
* @property {module:canvg.ForceRedraw} forceRedraw function => will call the function on every frame, if it returns true, will redraw
* @property {boolean} log Adds log function
* @property {boolean} useCORS Whether to set CORS `crossOrigin` for the image to `Anonymous`
*/
/**

View File

@@ -911,17 +911,17 @@ var svgEditorExtension_server_opensave = (function () {
/**
* @typedef {PlainObject} module:canvg.CanvgOptions
* @property {boolean} opts.ignoreMouse true => ignore mouse events
* @property {boolean} opts.ignoreAnimation true => ignore animations
* @property {boolean} opts.ignoreDimensions true => does not try to resize canvas
* @property {boolean} opts.ignoreClear true => does not clear canvas
* @property {Integer} opts.offsetX int => draws at a x offset
* @property {Integer} opts.offsetY int => draws at a y offset
* @property {Integer} opts.scaleWidth int => scales horizontally to width
* @property {Integer} opts.scaleHeight int => scales vertically to height
* @property {module:canvg.ForceRedraw} opts.forceRedraw function => will call the function on every frame, if it returns true, will redraw
* @property {boolean} opts.log Adds log function
* @property {boolean} opts.useCORS Whether to set CORS `crossOrigin` for the image to `Anonymous`
* @property {boolean} ignoreMouse true => ignore mouse events
* @property {boolean} ignoreAnimation true => ignore animations
* @property {boolean} ignoreDimensions true => does not try to resize canvas
* @property {boolean} ignoreClear true => does not clear canvas
* @property {Integer} offsetX int => draws at a x offset
* @property {Integer} offsetY int => draws at a y offset
* @property {Integer} scaleWidth int => scales horizontally to width
* @property {Integer} scaleHeight int => scales vertically to height
* @property {module:canvg.ForceRedraw} forceRedraw function => will call the function on every frame, if it returns true, will redraw
* @property {boolean} log Adds log function
* @property {boolean} useCORS Whether to set CORS `crossOrigin` for the image to `Anonymous`
*/
/**

36
dist/index-es.js vendored
View File

@@ -6802,6 +6802,8 @@ function pathDSegment(letter, points, morePoints, lastPoint) {
return segment;
}
/* eslint-disable jsdoc/require-property */
/**
* Group: Path edit functions
* Functions relating to editing path elements
@@ -6811,6 +6813,7 @@ function pathDSegment(letter, points, morePoints, lastPoint) {
var pathActions = function () {
/* eslint-enable jsdoc/require-property */
var subpath = false;
var newPoint, firstCtrl;
var currentPath = null;
@@ -14694,8 +14697,8 @@ function SvgCanvas(container, config) {
/**
* @typedef {PlainObject} module:svgcanvas.ExtensionInitArgs
* @param {external:jQuery} initArgs.$
* @param {module:SVGEditor~ImportLocale} initArgs.importLocale
* @property {external:jQuery} $
* @property {module:SVGEditor~ImportLocale} importLocale
*/
/**
@@ -16874,6 +16877,8 @@ function SvgCanvas(container, config) {
call('zoomDone');
});
})();
/* eslint-disable jsdoc/require-property */
/**
* Group: Text edit functions
* Functions relating to editing text elements
@@ -16883,6 +16888,7 @@ function SvgCanvas(container, config) {
var textActions = canvas.textActions = function () {
/* eslint-enable jsdoc/require-property */
var curtext;
var textinput;
var cursor;
@@ -22907,6 +22913,8 @@ function jQueryPluginSVGIcons($) {
* @example $.jGraduate.Paint({hex: '#rrggbb', linearGradient: o}); // throws an exception?
*/
/* eslint-disable jsdoc/require-property */
/**
* The jQuery namespace.
* @external jQuery
@@ -22918,6 +22926,8 @@ function jQueryPluginSVGIcons($) {
* @memberof external:jQuery
* @see {@link http://learn.jquery.com/plugins/|jQuery Plugins}
*/
/* eslint-enable jsdoc/require-property */
var ns = {
svg: 'http://www.w3.org/2000/svg',
xlink: 'http://www.w3.org/1999/xlink'
@@ -22955,11 +22965,11 @@ function jQueryPluginJGraduate($) {
}
/**
* @typedef {PlainObject} module:jGraduate.jGraduatePaintOptions
* @param {Float} [alpha]
* @param {module:jGraduate~Paint} [copy] Copy paint object
* @param {SVGLinearGradientElement} [linearGradient]
* @param {SVGRadialGradientElement} [radialGradient]
* @param {string} [solidColor]
* @property {Float} [alpha]
* @property {module:jGraduate~Paint} [copy] Copy paint object
* @property {SVGLinearGradientElement} [linearGradient]
* @property {SVGRadialGradientElement} [radialGradient]
* @property {string} [solidColor]
*/
/**
@@ -23047,6 +23057,8 @@ function jQueryPluginJGraduate($) {
this.radialGradient = null;
}
};
/* eslint-disable jsdoc/require-property */
/**
* @namespace {PlainObject} jGraduate
* @memberof external:jQuery
@@ -23056,6 +23068,8 @@ function jQueryPluginJGraduate($) {
$.jGraduate =
/** @lends external:jQuery.jGraduate */
{
/* eslint-enable jsdoc/require-property */
/**
* @class external:jQuery.jGraduate.Paint
* @see module:jGraduate~Paint
@@ -25721,6 +25735,8 @@ var jPicker = function jPicker($) {
* @property {string} [ahex]
*/
/* eslint-disable jsdoc/require-property */
/**
* @namespace {PlainObject} jPicker
* @memberof external:jQuery
@@ -25730,6 +25746,8 @@ var jPicker = function jPicker($) {
$.jPicker =
/** @lends external:jQuery.jPicker */
{
/* eslint-enable jsdoc/require-property */
/**
* Array holding references to each active instance of the jPicker control
* @type {external:jQuery.fn.$.fn.jPicker[]}
@@ -35238,12 +35256,16 @@ editor.init = function () {
$$b('input,select').attr('autocomplete', 'off');
var dialogSelectors = ['#tool_source_cancel', '#tool_docprops_cancel', '#tool_prefs_cancel', '.overlay'];
/* eslint-disable jsdoc/require-property */
/**
* Associate all button actions as well as non-button keyboard shortcuts
* @namespace {PlainObject} module:SVGEditor~Actions
*/
var Actions = function () {
/* eslint-enable jsdoc/require-property */
/**
* @typedef {PlainObject} module:SVGEditor.ToolButton
* @property {string} sel The CSS selector for the tool

File diff suppressed because one or more lines are too long

36
dist/index-umd.js vendored
View File

@@ -6808,6 +6808,8 @@
return segment;
}
/* eslint-disable jsdoc/require-property */
/**
* Group: Path edit functions
* Functions relating to editing path elements
@@ -6817,6 +6819,7 @@
var pathActions = function () {
/* eslint-enable jsdoc/require-property */
var subpath = false;
var newPoint, firstCtrl;
var currentPath = null;
@@ -14700,8 +14703,8 @@
/**
* @typedef {PlainObject} module:svgcanvas.ExtensionInitArgs
* @param {external:jQuery} initArgs.$
* @param {module:SVGEditor~ImportLocale} initArgs.importLocale
* @property {external:jQuery} $
* @property {module:SVGEditor~ImportLocale} importLocale
*/
/**
@@ -16880,6 +16883,8 @@
call('zoomDone');
});
})();
/* eslint-disable jsdoc/require-property */
/**
* Group: Text edit functions
* Functions relating to editing text elements
@@ -16889,6 +16894,7 @@
var textActions = canvas.textActions = function () {
/* eslint-enable jsdoc/require-property */
var curtext;
var textinput;
var cursor;
@@ -22913,6 +22919,8 @@
* @example $.jGraduate.Paint({hex: '#rrggbb', linearGradient: o}); // throws an exception?
*/
/* eslint-disable jsdoc/require-property */
/**
* The jQuery namespace.
* @external jQuery
@@ -22924,6 +22932,8 @@
* @memberof external:jQuery
* @see {@link http://learn.jquery.com/plugins/|jQuery Plugins}
*/
/* eslint-enable jsdoc/require-property */
var ns = {
svg: 'http://www.w3.org/2000/svg',
xlink: 'http://www.w3.org/1999/xlink'
@@ -22961,11 +22971,11 @@
}
/**
* @typedef {PlainObject} module:jGraduate.jGraduatePaintOptions
* @param {Float} [alpha]
* @param {module:jGraduate~Paint} [copy] Copy paint object
* @param {SVGLinearGradientElement} [linearGradient]
* @param {SVGRadialGradientElement} [radialGradient]
* @param {string} [solidColor]
* @property {Float} [alpha]
* @property {module:jGraduate~Paint} [copy] Copy paint object
* @property {SVGLinearGradientElement} [linearGradient]
* @property {SVGRadialGradientElement} [radialGradient]
* @property {string} [solidColor]
*/
/**
@@ -23053,6 +23063,8 @@
this.radialGradient = null;
}
};
/* eslint-disable jsdoc/require-property */
/**
* @namespace {PlainObject} jGraduate
* @memberof external:jQuery
@@ -23062,6 +23074,8 @@
$.jGraduate =
/** @lends external:jQuery.jGraduate */
{
/* eslint-enable jsdoc/require-property */
/**
* @class external:jQuery.jGraduate.Paint
* @see module:jGraduate~Paint
@@ -25727,6 +25741,8 @@
* @property {string} [ahex]
*/
/* eslint-disable jsdoc/require-property */
/**
* @namespace {PlainObject} jPicker
* @memberof external:jQuery
@@ -25736,6 +25752,8 @@
$.jPicker =
/** @lends external:jQuery.jPicker */
{
/* eslint-enable jsdoc/require-property */
/**
* Array holding references to each active instance of the jPicker control
* @type {external:jQuery.fn.$.fn.jPicker[]}
@@ -35244,12 +35262,16 @@
$$b('input,select').attr('autocomplete', 'off');
var dialogSelectors = ['#tool_source_cancel', '#tool_docprops_cancel', '#tool_prefs_cancel', '.overlay'];
/* eslint-disable jsdoc/require-property */
/**
* Associate all button actions as well as non-button keyboard shortcuts
* @namespace {PlainObject} module:SVGEditor~Actions
*/
var Actions = function () {
/* eslint-enable jsdoc/require-property */
/**
* @typedef {PlainObject} module:SVGEditor.ToolButton
* @property {string} sel The CSS selector for the tool

File diff suppressed because one or more lines are too long

View File

@@ -6874,6 +6874,8 @@ var SvgCanvas = (function () {
return segment;
}
/* eslint-disable jsdoc/require-property */
/**
* Group: Path edit functions
* Functions relating to editing path elements
@@ -6883,6 +6885,7 @@ var SvgCanvas = (function () {
var pathActions = function () {
/* eslint-enable jsdoc/require-property */
var subpath = false;
var newPoint, firstCtrl;
var currentPath = null;
@@ -14472,8 +14475,8 @@ var SvgCanvas = (function () {
/**
* @typedef {PlainObject} module:svgcanvas.ExtensionInitArgs
* @param {external:jQuery} initArgs.$
* @param {module:SVGEditor~ImportLocale} initArgs.importLocale
* @property {external:jQuery} $
* @property {module:SVGEditor~ImportLocale} importLocale
*/
/**
@@ -16652,6 +16655,8 @@ var SvgCanvas = (function () {
call('zoomDone');
});
})();
/* eslint-disable jsdoc/require-property */
/**
* Group: Text edit functions
* Functions relating to editing text elements
@@ -16661,6 +16666,7 @@ var SvgCanvas = (function () {
var textActions = canvas.textActions = function () {
/* eslint-enable jsdoc/require-property */
var curtext;
var textinput;
var cursor;

File diff suppressed because one or more lines are too long