- Linting (ESLint): As per latest ash-nazg

- npm: Update devDeps
This commit is contained in:
Brett Zamir
2020-02-01 20:44:13 +08:00
parent f9f359b98f
commit 33c84d89b8
37 changed files with 1254 additions and 953 deletions

View File

@@ -49,22 +49,25 @@ var svgEditorExtension_closepath = (function () {
// The button toggles whether the path is open or closed
var extClosepath = {
name: 'closepath',
init: function () {
var _init = _asyncToGenerator(
init: function init(_ref) {
var _this = this;
var importLocale = _ref.importLocale,
$ = _ref.$;
return _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee(_ref) {
var importLocale, $, strings, svgEditor, selElems, updateButton, showPanel, toggleClosed, buttons;
regeneratorRuntime.mark(function _callee() {
var strings, svgEditor, selElems, updateButton, showPanel, toggleClosed, buttons;
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
importLocale = _ref.importLocale, $ = _ref.$;
_context.next = 3;
_context.next = 2;
return importLocale();
case 3:
case 2:
strings = _context.sent;
svgEditor = this;
svgEditor = _this;
updateButton = function updateButton(path) {
var seglist = path.pathSegList,
@@ -154,20 +157,14 @@ var svgEditorExtension_closepath = (function () {
}
});
case 10:
case 9:
case "end":
return _context.stop();
}
}
}, _callee, this);
}));
function init(_x) {
return _init.apply(this, arguments);
}
return init;
}()
}, _callee);
}))();
}
};
return extClosepath;