npm update

This commit is contained in:
JFH
2021-02-23 23:39:14 +01:00
parent 9bac20edd2
commit 82ed16c983
15 changed files with 2463 additions and 987 deletions

View File

@@ -1,5 +1,6 @@
/* globals $ */
// eslint-disable-next-line node/no-unpublished-import
import deparam from 'deparam';
/**

View File

@@ -1,5 +1,4 @@
/* eslint-disable max-len */
/* eslint-disable unicorn/prefer-math-trunc */
/* eslint-disable no-bitwise */
/**
* @external Math

View File

@@ -1,6 +1,4 @@
/* eslint-disable unicorn/prefer-math-trunc */
/* eslint-disable no-bitwise */
/* eslint-disable unicorn/prefer-ternary */
import {findPos} from './Util.js';
/**
* Whether a value is `null` or `undefined`.

View File

@@ -1,5 +1,4 @@
/* eslint-disable no-loop-func */
/* eslint-disable unicorn/prefer-node-remove */
/* eslint-disable prefer-destructuring */
/* eslint-disable no-unsanitized/property */
/**

View File

@@ -1,3 +1,4 @@
/* eslint-disable no-unsanitized/property */
/**
* @file jPicker (Adapted from version 1.1.6)
*

View File

@@ -1,3 +1,4 @@
/* eslint-disable no-unsanitized/property */
const template = document.createElement('template');
template.innerHTML = `
<style>

View File

@@ -110,6 +110,7 @@ svgCanvas.setSvgString('string');
svgCanvas.setSvgString('string')(function (data, error) {
if (error) {
// There was an error
throw error
} else {
// Handle data
}

View File

@@ -1,3 +1,4 @@
/* eslint-disable node/no-unpublished-import */
import {jml, body, nbsp} from 'jamilih';
import $ from 'query-result';
import {manipulation} from 'qr-manipulation';

View File

@@ -1010,11 +1010,10 @@ class Editor extends EditorStartup {
*/
// eslint-disable-next-line class-methods-use-this
makeFlyoutHolder (id, child) {
const div = $('<div>', {
return $('<div>', {
class: 'tools_flyout',
id
}).appendTo('#svg_editor').append(child);
return div;
}
/**

View File

@@ -1,11 +1,12 @@
/* globals jQuery */
import {jGraduate} from '../editor/components/jgraduate/jQuery.jGraduate.js';
/**
* @module elem-get-set get and set methods.
* @license MIT
* @copyright 2011 Jeff Schiller
*/
/* globals jQuery */
import {jGraduate} from '../editor/components/jgraduate/jQuery.jGraduate.js';
import * as hstry from './history.js';
import jQueryPluginSVG from './jQuery.attr.js';
import {NS} from '../common/namespaces.js';

View File

@@ -2708,7 +2708,7 @@ class SvgCanvas {
* @returns {module:svgcanvas.PrivateMethods}
*/
this.getPrivateMethods = function () {
const obj = {
return {
addCommandToHistory,
BatchCommand,
ChangeElementCommand,
@@ -2737,7 +2737,6 @@ class SvgCanvas {
transformPoint,
walkTree
};
return obj;
};
} // End constructor
} // End class