eslint/browser list/accessibility test
This commit is contained in:
@@ -25,12 +25,12 @@ import {
|
||||
* The following will record history: insert, batch, insert.
|
||||
* @example
|
||||
* hrService = new HistoryRecordingService(this.undoMgr);
|
||||
* hrService.insertElement(elem, text); // add simple command to history.
|
||||
* hrService.insertElement(elem, text); // add simple command to history.
|
||||
* hrService.startBatchCommand('create two elements');
|
||||
* hrService.changeElement(elem, attrs, text); // add to batchCommand
|
||||
* hrService.changeElement(elem, attrs, text); // add to batchCommand
|
||||
* hrService.changeElement(elem, attrs2, text); // add to batchCommand
|
||||
* hrService.endBatchCommand(); // add batch command with two change commands to history.
|
||||
* hrService.insertElement(elem, text); // add simple command to history.
|
||||
* hrService.endBatchCommand(); // add batch command with two change commands to history.
|
||||
* hrService.insertElement(elem, text); // add simple command to history.
|
||||
*
|
||||
* @example
|
||||
* // Note that all functions return this, so commands can be chained, like so:
|
||||
|
||||
@@ -897,7 +897,7 @@ export class Path {
|
||||
this.elem = elem;
|
||||
this.segs = [];
|
||||
this.selected_pts = [];
|
||||
path = this; // eslint-disable-line consistent-this
|
||||
path = this;
|
||||
|
||||
this.init();
|
||||
}
|
||||
@@ -2152,7 +2152,7 @@ export const pathActions = (function () {
|
||||
} else {
|
||||
path.selected_pts = [];
|
||||
path.eachSeg(function (i) {
|
||||
const seg = this; // eslint-disable-line consistent-this
|
||||
const seg = this;
|
||||
if (!seg.next && !seg.prev) { return; }
|
||||
|
||||
// const {item} = seg;
|
||||
|
||||
@@ -18,6 +18,7 @@ const REVERSE_NS = getReverseNS();
|
||||
* don't remove).
|
||||
* @type {PlainObject}
|
||||
*/
|
||||
/* eslint-disable max-len */
|
||||
const svgWhiteList_ = {
|
||||
// SVG Elements
|
||||
a: ['class', 'clip-path', 'clip-rule', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'id', 'mask', 'opacity', 'stroke', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'style', 'systemLanguage', 'transform', 'xlink:href', 'xlink:title'],
|
||||
@@ -87,6 +88,7 @@ const svgWhiteList_ = {
|
||||
none: [],
|
||||
semantics: []
|
||||
};
|
||||
/* eslint-enable max-len */
|
||||
|
||||
// Produce a Namespace-aware version of svgWhitelist
|
||||
const svgWhiteListNS_ = {};
|
||||
|
||||
@@ -142,7 +142,7 @@ if (config) {
|
||||
// Array with width/height of canvas
|
||||
const {dimensions} = curConfig;
|
||||
|
||||
const canvas = this; // eslint-disable-line consistent-this
|
||||
const canvas = this;
|
||||
|
||||
// "document" element associated with the container (same as window.document using default svg-editor.js)
|
||||
// NOTE: This is not actually a SVG document, but an HTML document.
|
||||
@@ -4287,7 +4287,7 @@ const convertGradients = this.convertGradients = function (elem) {
|
||||
}
|
||||
|
||||
elems.each(function () {
|
||||
const grad = this; // eslint-disable-line consistent-this
|
||||
const grad = this;
|
||||
if ($(grad).attr('gradientUnits') === 'userSpaceOnUse') {
|
||||
// TODO: Support more than one element with this ref by duplicating parent grad
|
||||
const fillStrokeElems = $(svgcontent).find('[fill="url(#' + grad.id + ')"],[stroke="url(#' + grad.id + ')"]');
|
||||
@@ -4538,7 +4538,7 @@ this.setSvgString = function (xmlString, preventUndo) {
|
||||
|
||||
// change image href vals if possible
|
||||
content.find('image').each(function () {
|
||||
const image = this; // eslint-disable-line consistent-this
|
||||
const image = this;
|
||||
preventClickDefault(image);
|
||||
const val = getHref(this);
|
||||
if (val) {
|
||||
@@ -6917,7 +6917,7 @@ this.moveUpDownSelected = function (dir) {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
closest = this; // eslint-disable-line consistent-this
|
||||
closest = this;
|
||||
return false;
|
||||
});
|
||||
if (!closest) { return; }
|
||||
|
||||
Reference in New Issue
Block a user