fix editor start with src and dist using es-dev-server

This commit is contained in:
jfh
2020-09-01 00:15:18 +02:00
parent 0bfee46b33
commit 4643bab371
345 changed files with 29074 additions and 26260 deletions

View File

@@ -3977,10 +3977,8 @@ System.register([], function (exports) {
var extClosepath = exports('default', {
name: 'closepath',
init: function init(_ref) {
var _this = this;
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
var importLocale, $, strings, svgEditor, selElems, updateButton, showPanel, toggleClosed, buttons;
var importLocale, $, strings, selElems, updateButton, showPanel, toggleClosed, buttons;
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
@@ -3991,7 +3989,6 @@ System.register([], function (exports) {
case 3:
strings = _context.sent;
svgEditor = _this;
updateButton = function updateButton(path) {
var seglist = path.pathSegList,
@@ -4033,7 +4030,7 @@ System.register([], function (exports) {
buttons = [{
id: 'tool_openpath',
icon: svgEditor.curConfig.extIconsPath + 'openpath.png',
icon: 'openpath.png',
type: 'context',
panel: 'closepath_panel',
events: {
@@ -4043,7 +4040,7 @@ System.register([], function (exports) {
}
}, {
id: 'tool_closepath',
icon: svgEditor.curConfig.extIconsPath + 'closepath.png',
icon: 'closepath.png',
type: 'context',
panel: 'closepath_panel',
events: {
@@ -4054,7 +4051,7 @@ System.register([], function (exports) {
}];
return _context.abrupt("return", {
name: strings.name,
svgicons: svgEditor.curConfig.extIconsPath + 'closepath_icons.svg',
svgicons: 'closepath_icons.svg',
buttons: strings.buttons.map(function (button, i) {
return Object.assign(buttons[i], button);
}),
@@ -4081,7 +4078,7 @@ System.register([], function (exports) {
}
});
case 10:
case 9:
case "end":
return _context.stop();
}