- l10n: Add zh-CN dist files
- Linting (ESLint): Add back `no-console`; while useful for debugging, could flag incomplete code (and was breaking at reporting of unused directives) - Docs (CHANGES): Add changes and apply more formal style - Build: Rebuild with updated Babel/Rollup - npm: Update devDeps
This commit is contained in:
12
dist/extensions/ext-arrows.js
vendored
12
dist/extensions/ext-arrows.js
vendored
@@ -352,9 +352,11 @@ var svgEditorExtension_arrows = (function () {
|
||||
}, _callee, this);
|
||||
}));
|
||||
|
||||
return function addLangData(_x2) {
|
||||
function addLangData(_x2) {
|
||||
return _addLangData.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return addLangData;
|
||||
}(),
|
||||
selectedChanged: function selectedChanged(opts) {
|
||||
// Use this to update the current selected elements
|
||||
@@ -397,9 +399,11 @@ var svgEditorExtension_arrows = (function () {
|
||||
}, _callee2, this);
|
||||
}));
|
||||
|
||||
return function init(_x) {
|
||||
function init(_x) {
|
||||
return _init.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return init;
|
||||
}()
|
||||
};
|
||||
|
||||
|
||||
6
dist/extensions/ext-closepath.js
vendored
6
dist/extensions/ext-closepath.js
vendored
@@ -162,9 +162,11 @@ var svgEditorExtension_closepath = (function () {
|
||||
}, _callee, this);
|
||||
}));
|
||||
|
||||
return function init(_x) {
|
||||
function init(_x) {
|
||||
return _init.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return init;
|
||||
}()
|
||||
};
|
||||
|
||||
|
||||
6
dist/extensions/ext-connector.js
vendored
6
dist/extensions/ext-connector.js
vendored
@@ -686,9 +686,11 @@ var svgEditorExtension_connector = (function () {
|
||||
}, _callee, this);
|
||||
}));
|
||||
|
||||
return function init(_x) {
|
||||
function init(_x) {
|
||||
return _init.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return init;
|
||||
}()
|
||||
};
|
||||
|
||||
|
||||
6
dist/extensions/ext-eyedropper.js
vendored
6
dist/extensions/ext-eyedropper.js
vendored
@@ -195,9 +195,11 @@ var svgEditorExtension_eyedropper = (function () {
|
||||
}, _callee, this);
|
||||
}));
|
||||
|
||||
return function init(_x) {
|
||||
function init(_x) {
|
||||
return _init.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return init;
|
||||
}()
|
||||
};
|
||||
|
||||
|
||||
6
dist/extensions/ext-foreignobject.js
vendored
6
dist/extensions/ext-foreignobject.js
vendored
@@ -359,9 +359,11 @@ var svgEditorExtension_foreignobject = (function () {
|
||||
}, _callee2, this);
|
||||
}));
|
||||
|
||||
return function init(_x) {
|
||||
function init(_x) {
|
||||
return _init.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return init;
|
||||
}()
|
||||
};
|
||||
|
||||
|
||||
13
dist/extensions/ext-grid.js
vendored
13
dist/extensions/ext-grid.js
vendored
@@ -140,8 +140,9 @@ var svgEditorExtension_grid = (function () {
|
||||
overflow: 'visible',
|
||||
display: 'none'
|
||||
});
|
||||
canvBG.append(canvasGrid); // grid-pattern
|
||||
gridDefs = svgdoc.createElementNS(NS.SVG, 'defs');
|
||||
canvBG.append(canvasGrid);
|
||||
gridDefs = svgdoc.createElementNS(NS.SVG, 'defs'); // grid-pattern
|
||||
|
||||
gridPattern = svgdoc.createElementNS(NS.SVG, 'pattern');
|
||||
assignAttributes(gridPattern, {
|
||||
id: 'gridpattern',
|
||||
@@ -212,7 +213,7 @@ var svgEditorExtension_grid = (function () {
|
||||
})
|
||||
});
|
||||
|
||||
case 25:
|
||||
case 27:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
@@ -220,9 +221,11 @@ var svgEditorExtension_grid = (function () {
|
||||
}, _callee, this);
|
||||
}));
|
||||
|
||||
return function init(_x) {
|
||||
function init(_x) {
|
||||
return _init.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return init;
|
||||
}()
|
||||
};
|
||||
|
||||
|
||||
6
dist/extensions/ext-helloworld.js
vendored
6
dist/extensions/ext-helloworld.js
vendored
@@ -180,9 +180,11 @@ var svgEditorExtension_helloworld = (function () {
|
||||
}, _callee, this);
|
||||
}));
|
||||
|
||||
return function init(_x) {
|
||||
function init(_x) {
|
||||
return _init.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return init;
|
||||
}()
|
||||
};
|
||||
|
||||
|
||||
6
dist/extensions/ext-imagelib.js
vendored
6
dist/extensions/ext-imagelib.js
vendored
@@ -573,9 +573,11 @@ var svgEditorExtension_imagelib = (function () {
|
||||
}, _callee2, this);
|
||||
}));
|
||||
|
||||
return function init(_x) {
|
||||
function init(_x) {
|
||||
return _init.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return init;
|
||||
}()
|
||||
};
|
||||
|
||||
|
||||
25
dist/extensions/ext-locale/arrows/zh-CN.js
vendored
Normal file
25
dist/extensions/ext-locale/arrows/zh-CN.js
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
var svgEditorExtensionLocale_arrows_zh_CN = (function () {
|
||||
'use strict';
|
||||
|
||||
var zhCN = {
|
||||
name: '箭头',
|
||||
langList: [{
|
||||
id: 'arrow_none',
|
||||
textContent: '无箭头'
|
||||
}],
|
||||
contextTools: [{
|
||||
title: '选择箭头类型',
|
||||
options: {
|
||||
none: '无箭头',
|
||||
end: '---->',
|
||||
start: '<----',
|
||||
both: '<--->',
|
||||
mid: '-->--',
|
||||
mid_bk: '--<--'
|
||||
}
|
||||
}]
|
||||
};
|
||||
|
||||
return zhCN;
|
||||
|
||||
}());
|
||||
15
dist/extensions/ext-locale/closepath/zh-CN.js
vendored
Normal file
15
dist/extensions/ext-locale/closepath/zh-CN.js
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
var svgEditorExtensionLocale_closepath_zh_CN = (function () {
|
||||
'use strict';
|
||||
|
||||
var zhCN = {
|
||||
name: '闭合路径',
|
||||
buttons: [{
|
||||
title: '打开路径'
|
||||
}, {
|
||||
title: '关闭路径'
|
||||
}]
|
||||
};
|
||||
|
||||
return zhCN;
|
||||
|
||||
}());
|
||||
17
dist/extensions/ext-locale/connector/zh-CN.js
vendored
Normal file
17
dist/extensions/ext-locale/connector/zh-CN.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
var svgEditorExtensionLocale_connector_zh_CN = (function () {
|
||||
'use strict';
|
||||
|
||||
var zhCN = {
|
||||
name: '连接器',
|
||||
langList: [{
|
||||
id: 'mode_connect',
|
||||
title: '连接两个对象'
|
||||
}],
|
||||
buttons: [{
|
||||
title: '连接两个对象'
|
||||
}]
|
||||
};
|
||||
|
||||
return zhCN;
|
||||
|
||||
}());
|
||||
14
dist/extensions/ext-locale/eyedropper/zh-CN.js
vendored
Normal file
14
dist/extensions/ext-locale/eyedropper/zh-CN.js
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
var svgEditorExtensionLocale_eyedropper_zh_CN = (function () {
|
||||
'use strict';
|
||||
|
||||
var zhCN = {
|
||||
name: '滴管',
|
||||
buttons: [{
|
||||
title: '滴管工具',
|
||||
key: 'I'
|
||||
}]
|
||||
};
|
||||
|
||||
return zhCN;
|
||||
|
||||
}());
|
||||
25
dist/extensions/ext-locale/foreignobject/zh-CN.js
vendored
Normal file
25
dist/extensions/ext-locale/foreignobject/zh-CN.js
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
var svgEditorExtensionLocale_foreignobject_zh_CN = (function () {
|
||||
'use strict';
|
||||
|
||||
var zhCN = {
|
||||
name: '外部对象',
|
||||
buttons: [{
|
||||
title: '外部对象工具'
|
||||
}, {
|
||||
title: '编辑外部对象内容'
|
||||
}],
|
||||
contextTools: [{
|
||||
title: '改变外部对象宽度',
|
||||
label: 'w'
|
||||
}, {
|
||||
title: '改变外部对象高度',
|
||||
label: 'h'
|
||||
}, {
|
||||
title: '改变外部对象文字大小',
|
||||
label: '文字大小'
|
||||
}]
|
||||
};
|
||||
|
||||
return zhCN;
|
||||
|
||||
}());
|
||||
13
dist/extensions/ext-locale/grid/zh-CN.js
vendored
Normal file
13
dist/extensions/ext-locale/grid/zh-CN.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
var svgEditorExtensionLocale_grid_zh_CN = (function () {
|
||||
'use strict';
|
||||
|
||||
var zhCN = {
|
||||
name: '网格视图',
|
||||
buttons: [{
|
||||
title: '显示/隐藏网格'
|
||||
}]
|
||||
};
|
||||
|
||||
return zhCN;
|
||||
|
||||
}());
|
||||
14
dist/extensions/ext-locale/helloworld/zh-CN.js
vendored
Normal file
14
dist/extensions/ext-locale/helloworld/zh-CN.js
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
var svgEditorExtensionLocale_helloworld_zh_CN = (function () {
|
||||
'use strict';
|
||||
|
||||
var zhCN = {
|
||||
name: 'Hello World',
|
||||
text: 'Hello World!\n\n 请点击: {x}, {y}',
|
||||
buttons: [{
|
||||
title: "输出 'Hello World'"
|
||||
}]
|
||||
};
|
||||
|
||||
return zhCN;
|
||||
|
||||
}());
|
||||
81
dist/extensions/ext-locale/markers/zh-CN.js
vendored
Normal file
81
dist/extensions/ext-locale/markers/zh-CN.js
vendored
Normal file
@@ -0,0 +1,81 @@
|
||||
var svgEditorExtensionLocale_markers_zh_CN = (function () {
|
||||
'use strict';
|
||||
|
||||
var zhCN = {
|
||||
name: '标记',
|
||||
langList: [{
|
||||
id: 'nomarker',
|
||||
title: '无标记'
|
||||
}, {
|
||||
id: 'leftarrow',
|
||||
title: '左箭头'
|
||||
}, {
|
||||
id: 'rightarrow',
|
||||
title: '右箭头'
|
||||
}, {
|
||||
id: 'textmarker',
|
||||
title: '文本'
|
||||
}, {
|
||||
id: 'forwardslash',
|
||||
title: '斜杠'
|
||||
}, {
|
||||
id: 'reverseslash',
|
||||
title: '反斜杠'
|
||||
}, {
|
||||
id: 'verticalslash',
|
||||
title: '垂直线'
|
||||
}, {
|
||||
id: 'box',
|
||||
title: '方块'
|
||||
}, {
|
||||
id: 'star',
|
||||
title: '星形'
|
||||
}, {
|
||||
id: 'xmark',
|
||||
title: 'X'
|
||||
}, {
|
||||
id: 'triangle',
|
||||
title: '三角形'
|
||||
}, {
|
||||
id: 'mcircle',
|
||||
title: '圆形'
|
||||
}, {
|
||||
id: 'leftarrow_o',
|
||||
title: '左箭头(空心)'
|
||||
}, {
|
||||
id: 'rightarrow_o',
|
||||
title: '右箭头(空心)'
|
||||
}, {
|
||||
id: 'box_o',
|
||||
title: '方块(空心)'
|
||||
}, {
|
||||
id: 'star_o',
|
||||
title: '星形(空心)'
|
||||
}, {
|
||||
id: 'triangle_o',
|
||||
title: '三角形(空心)'
|
||||
}, {
|
||||
id: 'mcircle_o',
|
||||
title: '圆形(空心)'
|
||||
}],
|
||||
contextTools: [{
|
||||
title: '起始标记',
|
||||
label: 's'
|
||||
}, {
|
||||
title: '选择起始标记类型'
|
||||
}, {
|
||||
title: '中段标记',
|
||||
label: 'm'
|
||||
}, {
|
||||
title: '选择中段标记类型'
|
||||
}, {
|
||||
title: '末端标记',
|
||||
label: 'e'
|
||||
}, {
|
||||
title: '选择末端标记类型'
|
||||
}]
|
||||
};
|
||||
|
||||
return zhCN;
|
||||
|
||||
}());
|
||||
13
dist/extensions/ext-locale/mathjax/zh-CN.js
vendored
Normal file
13
dist/extensions/ext-locale/mathjax/zh-CN.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
var svgEditorExtensionLocale_mathjax_zh_CN = (function () {
|
||||
'use strict';
|
||||
|
||||
var zhCN = {
|
||||
name: '数学',
|
||||
buttons: [{
|
||||
title: '添加数学计算'
|
||||
}]
|
||||
};
|
||||
|
||||
return zhCN;
|
||||
|
||||
}());
|
||||
13
dist/extensions/ext-locale/panning/zh-CN.js
vendored
Normal file
13
dist/extensions/ext-locale/panning/zh-CN.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
var svgEditorExtensionLocale_panning_zh_CN = (function () {
|
||||
'use strict';
|
||||
|
||||
var zhCN = {
|
||||
name: '移动',
|
||||
buttons: [{
|
||||
title: '移动'
|
||||
}]
|
||||
};
|
||||
|
||||
return zhCN;
|
||||
|
||||
}());
|
||||
17
dist/extensions/ext-locale/polygon/zh-CN.js
vendored
Normal file
17
dist/extensions/ext-locale/polygon/zh-CN.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
var svgEditorExtensionLocale_polygon_zh_CN = (function () {
|
||||
'use strict';
|
||||
|
||||
var zhCN = {
|
||||
name: '多边形',
|
||||
buttons: [{
|
||||
title: '多边形工具'
|
||||
}],
|
||||
contextTools: [{
|
||||
title: '边数',
|
||||
label: '边数'
|
||||
}]
|
||||
};
|
||||
|
||||
return zhCN;
|
||||
|
||||
}());
|
||||
10
dist/extensions/ext-locale/server_moinsave/zh-CN.js
vendored
Normal file
10
dist/extensions/ext-locale/server_moinsave/zh-CN.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
var svgEditorExtensionLocale_server_moinsave_zh_CN = (function () {
|
||||
'use strict';
|
||||
|
||||
var zhCN = {
|
||||
saved: '已保存! 返回视图!'
|
||||
};
|
||||
|
||||
return zhCN;
|
||||
|
||||
}());
|
||||
10
dist/extensions/ext-locale/server_opensave/zh-CN.js
vendored
Normal file
10
dist/extensions/ext-locale/server_opensave/zh-CN.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
var svgEditorExtensionLocale_server_opensave_zh_CN = (function () {
|
||||
'use strict';
|
||||
|
||||
var zhCN = {
|
||||
uploading: '正在上传...'
|
||||
};
|
||||
|
||||
return zhCN;
|
||||
|
||||
}());
|
||||
29
dist/extensions/ext-locale/shapes/zh-CN.js
vendored
Normal file
29
dist/extensions/ext-locale/shapes/zh-CN.js
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
var svgEditorExtensionLocale_shapes_zh_CN = (function () {
|
||||
'use strict';
|
||||
|
||||
var zhCN = {
|
||||
loading: '正在加载...',
|
||||
categories: {
|
||||
basic: '基本',
|
||||
object: '对象',
|
||||
symbol: '符号',
|
||||
arrow: '箭头',
|
||||
flowchart: '工作流',
|
||||
animal: '动物',
|
||||
game: '棋牌',
|
||||
dialog_balloon: '会话框',
|
||||
electronics: '电子',
|
||||
math: '数学',
|
||||
music: '音乐',
|
||||
misc: '其他',
|
||||
raphael_1: 'raphaeljs.com 集合 1',
|
||||
raphael_2: 'raphaeljs.com 集合 2'
|
||||
},
|
||||
buttons: [{
|
||||
title: '图元库'
|
||||
}]
|
||||
};
|
||||
|
||||
return zhCN;
|
||||
|
||||
}());
|
||||
23
dist/extensions/ext-locale/star/zh-CN.js
vendored
Normal file
23
dist/extensions/ext-locale/star/zh-CN.js
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
var svgEditorExtensionLocale_star_zh_CN = (function () {
|
||||
'use strict';
|
||||
|
||||
var zhCN = {
|
||||
name: '星形',
|
||||
buttons: [{
|
||||
title: '星形工具'
|
||||
}],
|
||||
contextTools: [{
|
||||
title: '顶点',
|
||||
label: '顶点'
|
||||
}, {
|
||||
title: '钝度',
|
||||
label: '钝度'
|
||||
}, {
|
||||
title: '径向',
|
||||
label: '径向'
|
||||
}]
|
||||
};
|
||||
|
||||
return zhCN;
|
||||
|
||||
}());
|
||||
17
dist/extensions/ext-locale/storage/zh-CN.js
vendored
Normal file
17
dist/extensions/ext-locale/storage/zh-CN.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
var svgEditorExtensionLocale_storage_zh_CN = (function () {
|
||||
'use strict';
|
||||
|
||||
var zhCN = {
|
||||
message: '默认情况下, SVG-Edit 在本地保存配置参数和画布内容. 如果基于隐私考虑, ' + '您可以勾选以下选项修改配置.',
|
||||
storagePrefsAndContent: '本地存储配置参数和SVG图',
|
||||
storagePrefsOnly: '本地只存储配置参数',
|
||||
storagePrefs: '本地存储配置参数',
|
||||
storageNoPrefsOrContent: '本地不保存配置参数和SVG图',
|
||||
storageNoPrefs: '本地不保存配置参数',
|
||||
rememberLabel: '记住选择?',
|
||||
rememberTooltip: '如果您勾选记住选择,将不再弹出本窗口.'
|
||||
};
|
||||
|
||||
return zhCN;
|
||||
|
||||
}());
|
||||
13
dist/extensions/ext-locale/webappfind/zh-CN.js
vendored
Normal file
13
dist/extensions/ext-locale/webappfind/zh-CN.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
var svgEditorExtensionLocale_webappfind_zh_CN = (function () {
|
||||
'use strict';
|
||||
|
||||
var zhCN = {
|
||||
name: 'WebAppFind',
|
||||
buttons: [{
|
||||
title: '保存图片到磁盘'
|
||||
}]
|
||||
};
|
||||
|
||||
return zhCN;
|
||||
|
||||
}());
|
||||
6
dist/extensions/ext-markers.js
vendored
6
dist/extensions/ext-markers.js
vendored
@@ -759,9 +759,11 @@ var svgEditorExtension_markers = (function () {
|
||||
}, _callee3, this);
|
||||
}));
|
||||
|
||||
return function init(_x) {
|
||||
function init(_x) {
|
||||
return _init.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return init;
|
||||
}()
|
||||
};
|
||||
|
||||
|
||||
12
dist/extensions/ext-mathjax.js
vendored
12
dist/extensions/ext-mathjax.js
vendored
@@ -309,9 +309,11 @@ var svgEditorExtension_mathjax = (function () {
|
||||
}, _callee, this, [[7, 13]]);
|
||||
}));
|
||||
|
||||
return function click() {
|
||||
function click() {
|
||||
return _click.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return click;
|
||||
}()
|
||||
}
|
||||
}];
|
||||
@@ -359,9 +361,11 @@ var svgEditorExtension_mathjax = (function () {
|
||||
}, _callee2, this);
|
||||
}));
|
||||
|
||||
return function init(_x) {
|
||||
function init(_x) {
|
||||
return _init.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return init;
|
||||
}()
|
||||
};
|
||||
|
||||
|
||||
6
dist/extensions/ext-panning.js
vendored
6
dist/extensions/ext-panning.js
vendored
@@ -115,9 +115,11 @@ var svgEditorExtension_panning = (function () {
|
||||
}, _callee, this);
|
||||
}));
|
||||
|
||||
return function init(_x) {
|
||||
function init(_x) {
|
||||
return _init.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return init;
|
||||
}()
|
||||
};
|
||||
|
||||
|
||||
6
dist/extensions/ext-polygon.js
vendored
6
dist/extensions/ext-polygon.js
vendored
@@ -301,9 +301,11 @@ var svgEditorExtension_polygon = (function () {
|
||||
}, _callee, this);
|
||||
}));
|
||||
|
||||
return function init(_x) {
|
||||
function init(_x) {
|
||||
return _init.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return init;
|
||||
}()
|
||||
};
|
||||
|
||||
|
||||
16
dist/extensions/ext-server_moinsave.js
vendored
16
dist/extensions/ext-server_moinsave.js
vendored
@@ -4861,10 +4861,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svgEditor = this;
|
||||
svgCanvas = svgEditor.canvas;
|
||||
saveSvgAction = '/+modify'; // Create upload target (hidden iframe)
|
||||
// Hiding by size instead of display to avoid FF console errors
|
||||
// with `getBBox` in browser.js `supportsPathBBox_`)
|
||||
|
||||
/* const target = */
|
||||
|
||||
$('<iframe name="output_frame" src="#"/>').hide().appendTo('body');
|
||||
$('<iframe name="output_frame" style="width: 0; height: 0;" src="#"/>').appendTo('body');
|
||||
svgEditor.setCustomHandlers({
|
||||
save: function () {
|
||||
var _save = _asyncToGenerator(
|
||||
@@ -4915,9 +4917,11 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}, _callee, this);
|
||||
}));
|
||||
|
||||
return function save(_x2, _x3) {
|
||||
function save(_x2, _x3) {
|
||||
return _save.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return save;
|
||||
}()
|
||||
});
|
||||
|
||||
@@ -4929,9 +4933,11 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}, _callee2, this);
|
||||
}));
|
||||
|
||||
return function init(_x) {
|
||||
function init(_x) {
|
||||
return _init.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return init;
|
||||
}()
|
||||
};
|
||||
|
||||
|
||||
18
dist/extensions/ext-server_opensave.js
vendored
18
dist/extensions/ext-server_opensave.js
vendored
@@ -4993,8 +4993,10 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
|
||||
saveSvgAction = svgEditor.curConfig.extPath + 'filesave.php', saveImgAction = svgEditor.curConfig.extPath + 'filesave.php'; // Create upload target (hidden iframe)
|
||||
|
||||
cancelled = false;
|
||||
$('<iframe name="output_frame" src="#"/>').hide().appendTo('body');
|
||||
cancelled = false; // Hiding by size instead of display to avoid FF console errors
|
||||
// with `getBBox` in browser.js `supportsPathBBox_`)
|
||||
|
||||
$('<iframe name="output_frame" style="width: 0; height: 0;" src="#"/>').appendTo('body');
|
||||
svgEditor.setCustomHandlers({
|
||||
save: function save(win, data) {
|
||||
var svg = '<?xml version="1.0" encoding="UTF-8"?>\n' + data,
|
||||
@@ -5094,9 +5096,11 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}, _callee, this);
|
||||
}));
|
||||
|
||||
return function exportImage(_x2, _x3) {
|
||||
function exportImage(_x2, _x3) {
|
||||
return _exportImage.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return exportImage;
|
||||
}()
|
||||
}); // Do nothing if client support is found
|
||||
|
||||
@@ -5182,9 +5186,11 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}, _callee5, this);
|
||||
}));
|
||||
|
||||
return function init(_x) {
|
||||
function init(_x) {
|
||||
return _init.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return init;
|
||||
}()
|
||||
};
|
||||
|
||||
|
||||
6
dist/extensions/ext-shapes.js
vendored
6
dist/extensions/ext-shapes.js
vendored
@@ -412,9 +412,11 @@ var svgEditorExtension_shapes = (function () {
|
||||
}, _callee, this);
|
||||
}));
|
||||
|
||||
return function init(_x) {
|
||||
function init(_x) {
|
||||
return _init.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return init;
|
||||
}()
|
||||
};
|
||||
|
||||
|
||||
6
dist/extensions/ext-star.js
vendored
6
dist/extensions/ext-star.js
vendored
@@ -286,9 +286,11 @@ var svgEditorExtension_star = (function () {
|
||||
}, _callee, this);
|
||||
}));
|
||||
|
||||
return function init(_x) {
|
||||
function init(_x) {
|
||||
return _init.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return init;
|
||||
}()
|
||||
};
|
||||
|
||||
|
||||
6
dist/extensions/ext-storage.js
vendored
6
dist/extensions/ext-storage.js
vendored
@@ -415,9 +415,11 @@ var svgEditorExtension_storage = (function () {
|
||||
}, _callee, this);
|
||||
}));
|
||||
|
||||
return function langReady(_x) {
|
||||
function langReady(_x) {
|
||||
return _langReady.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return langReady;
|
||||
}()
|
||||
};
|
||||
}
|
||||
|
||||
6
dist/extensions/ext-webappfind.js
vendored
6
dist/extensions/ext-webappfind.js
vendored
@@ -166,9 +166,11 @@ var svgEditorExtension_webappfind = (function () {
|
||||
}, _callee, this);
|
||||
}));
|
||||
|
||||
return function init(_x) {
|
||||
function init(_x) {
|
||||
return _init.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return init;
|
||||
}()
|
||||
};
|
||||
|
||||
|
||||
12
dist/extensions/imagelib/openclipart.js
vendored
12
dist/extensions/imagelib/openclipart.js
vendored
@@ -3146,9 +3146,11 @@
|
||||
}, _callee2, this);
|
||||
}));
|
||||
|
||||
return function click(_x2) {
|
||||
function click(_x2) {
|
||||
return _click.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return click;
|
||||
}()
|
||||
}
|
||||
}, [// If we wanted interactive versions despite security risk:
|
||||
@@ -3254,9 +3256,11 @@
|
||||
}, _callee, this);
|
||||
}));
|
||||
|
||||
return function $submit() {
|
||||
function $submit() {
|
||||
return _$submit.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return $submit;
|
||||
}()
|
||||
},
|
||||
$on: {
|
||||
|
||||
12
dist/index-es.js
vendored
12
dist/index-es.js
vendored
@@ -28922,9 +28922,11 @@ function getImportLocale(_ref) {
|
||||
}, _callee, this, [[2, 8]]);
|
||||
}));
|
||||
|
||||
return function importLocaleDefaulting() {
|
||||
function importLocaleDefaulting() {
|
||||
return _importLocaleDefaulting.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return importLocaleDefaulting;
|
||||
}()
|
||||
);
|
||||
}
|
||||
@@ -30119,9 +30121,11 @@ editor.init = function () {
|
||||
}, _callee4, this);
|
||||
}));
|
||||
|
||||
return function callback(_x3) {
|
||||
function callback(_x3) {
|
||||
return _callback.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return callback;
|
||||
}()
|
||||
});
|
||||
/**
|
||||
|
||||
2
dist/index-es.min.js
vendored
2
dist/index-es.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/index-es.min.js.map
vendored
2
dist/index-es.min.js.map
vendored
File diff suppressed because one or more lines are too long
12
dist/index-umd.js
vendored
12
dist/index-umd.js
vendored
@@ -28928,9 +28928,11 @@
|
||||
}, _callee, this, [[2, 8]]);
|
||||
}));
|
||||
|
||||
return function importLocaleDefaulting() {
|
||||
function importLocaleDefaulting() {
|
||||
return _importLocaleDefaulting.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return importLocaleDefaulting;
|
||||
}()
|
||||
);
|
||||
}
|
||||
@@ -30125,9 +30127,11 @@
|
||||
}, _callee4, this);
|
||||
}));
|
||||
|
||||
return function callback(_x3) {
|
||||
function callback(_x3) {
|
||||
return _callback.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
return callback;
|
||||
}()
|
||||
});
|
||||
/**
|
||||
|
||||
2
dist/index-umd.min.js
vendored
2
dist/index-umd.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/index-umd.min.js.map
vendored
2
dist/index-umd.min.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/svgcanvas-iife.min.js.map
vendored
2
dist/svgcanvas-iife.min.js.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user