- Optimization: Re-rerun image optimization per update

- Linting (ESLint): Adjust per now applied rules
- Testing: Accessibility test API update
- Docs: Clarify need for Node.js/npm being installed
- npm: Update devDeps and core-js-bundle copy; add new axe testing peer dep. axe-core
This commit is contained in:
Brett Zamir
2019-06-27 12:21:55 +08:00
parent c39d86cb58
commit efcde397ac
22 changed files with 375 additions and 254 deletions

View File

@@ -365,6 +365,7 @@ var svgEditorExtension_imagelib = (function () {
return $.process_cancel(message);
case 39:
// eslint-disable-next-line require-atomic-updates
transferStopped = true; // Should a message be sent back to the frame?
$('#dialog_box').hide();

View File

@@ -346,6 +346,7 @@ var svgEditorExtension_storage = (function () {
// doesn't even want to remember their not wanting
// storage, so we don't set the cookie or continue on with
// setting storage on beforeunload
// eslint-disable-next-line require-atomic-updates
document.cookie = 'svgeditstore=' + encodeURIComponent(pref) + '; expires=Fri, 31 Dec 9999 23:59:59 GMT'; // 'prefsAndContent' | 'prefsOnly'
// If the URL was configured to always insist on a prompt, if
// the user does indicate a wish to store their info, we

17
dist/index-es.js vendored
View File

@@ -14763,7 +14763,8 @@ function SvgCanvas(container, config) {
if (extObj) {
extObj.name = name;
}
} // eslint-disable-next-line require-atomic-updates
extensions[name] = extObj;
return _context.abrupt("return", call('extension_added', extObj));
@@ -23221,8 +23222,8 @@ function jQueryPluginJGraduate($) {
$this.hide();
};
$.extend(true, $this, {
// public properties, methods, and callbacks
$.extend(true, $this, // public properties, methods, and callbacks
{
// make a copy of the incoming paint
paint: new $.jGraduate.Paint({
copy: $settings.paint
@@ -34328,17 +34329,22 @@ editor.init = function () {
case 11:
// set icon size
setIconSize($$b('#iconsize').val()); // set grid setting
setIconSize($$b('#iconsize').val());
/* eslint-disable require-atomic-updates */
// set grid setting
curConfig.gridSnapping = $$b('#grid_snapping_on')[0].checked;
curConfig.snappingStep = $$b('#grid_snapping_step').val();
curConfig.gridColor = $$b('#grid_color').val();
curConfig.showRulers = $$b('#show_rulers')[0].checked;
/* eslint-enable require-atomic-updates */
$$b('#rulers').toggle(curConfig.showRulers);
if (curConfig.showRulers) {
updateRulers();
}
} // eslint-disable-next-line require-atomic-updates
curConfig.baseUnit = $$b('#base_unit').val();
svgCanvas.setConfig(curConfig);
@@ -36360,6 +36366,7 @@ editor.init = function () {
}));
case 15:
// eslint-disable-next-line require-atomic-updates
extsPreLang.length = 0;
_context17.next = 19;
break;

File diff suppressed because one or more lines are too long

17
dist/index-umd.js vendored
View File

@@ -14769,7 +14769,8 @@
if (extObj) {
extObj.name = name;
}
} // eslint-disable-next-line require-atomic-updates
extensions[name] = extObj;
return _context.abrupt("return", call('extension_added', extObj));
@@ -23227,8 +23228,8 @@
$this.hide();
};
$.extend(true, $this, {
// public properties, methods, and callbacks
$.extend(true, $this, // public properties, methods, and callbacks
{
// make a copy of the incoming paint
paint: new $.jGraduate.Paint({
copy: $settings.paint
@@ -34334,17 +34335,22 @@
case 11:
// set icon size
setIconSize($$b('#iconsize').val()); // set grid setting
setIconSize($$b('#iconsize').val());
/* eslint-disable require-atomic-updates */
// set grid setting
curConfig.gridSnapping = $$b('#grid_snapping_on')[0].checked;
curConfig.snappingStep = $$b('#grid_snapping_step').val();
curConfig.gridColor = $$b('#grid_color').val();
curConfig.showRulers = $$b('#show_rulers')[0].checked;
/* eslint-enable require-atomic-updates */
$$b('#rulers').toggle(curConfig.showRulers);
if (curConfig.showRulers) {
updateRulers();
}
} // eslint-disable-next-line require-atomic-updates
curConfig.baseUnit = $$b('#base_unit').val();
svgCanvas.setConfig(curConfig);
@@ -36366,6 +36372,7 @@
}));
case 15:
// eslint-disable-next-line require-atomic-updates
extsPreLang.length = 0;
_context17.next = 19;
break;

File diff suppressed because one or more lines are too long

View File

@@ -14541,7 +14541,8 @@ var SvgCanvas = (function () {
if (extObj) {
extObj.name = name;
}
} // eslint-disable-next-line require-atomic-updates
extensions[name] = extObj;
return _context.abrupt("return", call('extension_added', extObj));

File diff suppressed because one or more lines are too long