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

@@ -1646,8 +1646,13 @@ function _wrapRegExp(re, groups) {
return _wrapRegExp.apply(this, arguments);
}
var polygonIcons = "polygon-icons.svg";
/**
* @file ext-polygon.js
*
*
* @copyright 2010 CloudCanvas, Inc. All rights reserved
*
*/
var extPolygon = {
name: 'polygon',
init: function init(S) {
@@ -1738,7 +1743,7 @@ var extPolygon = {
*/
buttons = [{
id: 'tool_polygon',
icon: svgEditor.curConfig.extIconsPath + 'polygon.png',
icon: 'polygon.png',
type: 'mode',
position: 11,
events: {
@@ -1762,7 +1767,7 @@ var extPolygon = {
}];
return _context.abrupt("return", {
name: strings.name,
svgicons: svgEditor.curConfig.extIconsPath + 'polygon-icons.svg',
svgicons: 'polygon-icons.svg',
buttons: strings.buttons.map(function (button, i) {
return Object.assign(buttons[i], button);
}),