add minification in the build
This commit is contained in:
2008
dist/editor/system/extensions/ext-arrows.js
vendored
2008
dist/editor/system/extensions/ext-arrows.js
vendored
File diff suppressed because it is too large
Load Diff
4094
dist/editor/system/extensions/ext-closepath.js
vendored
4094
dist/editor/system/extensions/ext-closepath.js
vendored
File diff suppressed because one or more lines are too long
2302
dist/editor/system/extensions/ext-connector.js
vendored
2302
dist/editor/system/extensions/ext-connector.js
vendored
File diff suppressed because one or more lines are too long
1812
dist/editor/system/extensions/ext-eyedropper.js
vendored
1812
dist/editor/system/extensions/ext-eyedropper.js
vendored
File diff suppressed because it is too large
Load Diff
1973
dist/editor/system/extensions/ext-foreignobject.js
vendored
1973
dist/editor/system/extensions/ext-foreignobject.js
vendored
File diff suppressed because it is too large
Load Diff
1832
dist/editor/system/extensions/ext-grid.js
vendored
1832
dist/editor/system/extensions/ext-grid.js
vendored
File diff suppressed because it is too large
Load Diff
1759
dist/editor/system/extensions/ext-helloworld.js
vendored
1759
dist/editor/system/extensions/ext-helloworld.js
vendored
File diff suppressed because it is too large
Load Diff
2177
dist/editor/system/extensions/ext-imagelib.js
vendored
2177
dist/editor/system/extensions/ext-imagelib.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,28 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var en = exports('default', {
|
||||
name: 'Arrows',
|
||||
langList: [
|
||||
{id: 'arrow_none', textContent: 'No arrow'}
|
||||
],
|
||||
contextTools: [
|
||||
{
|
||||
title: 'Select arrow type',
|
||||
options: {
|
||||
none: 'No arrow',
|
||||
end: '---->',
|
||||
start: '<----',
|
||||
both: '<--->',
|
||||
mid: '-->--',
|
||||
mid_bk: '--<--'
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(t){"use strict";return{execute:function(){t("default",{name:"Arrows",langList:[{id:"arrow_none",textContent:"No arrow"}],contextTools:[{title:"Select arrow type",options:{none:"No arrow",end:"---->",start:"<----",both:"<--->",mid:"-->--",mid_bk:"--<--"}}]})}}}));
|
||||
|
||||
@@ -1,28 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var fr = exports('default', {
|
||||
name: 'Arrows',
|
||||
langList: [
|
||||
{id: 'arrow_none', textContent: 'Sans flèche'}
|
||||
],
|
||||
contextTools: [
|
||||
{
|
||||
title: 'Select arrow type',
|
||||
options: {
|
||||
none: 'No arrow',
|
||||
end: '---->',
|
||||
start: '<----',
|
||||
both: '<--->',
|
||||
mid: '-->--',
|
||||
mid_bk: '--<--'
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(t){"use strict";return{execute:function(){t("default",{name:"Arrows",langList:[{id:"arrow_none",textContent:"Sans flèche"}],contextTools:[{title:"Select arrow type",options:{none:"No arrow",end:"---->",start:"<----",both:"<--->",mid:"-->--",mid_bk:"--<--"}}]})}}}));
|
||||
|
||||
@@ -1,28 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var zhCN = exports('default', {
|
||||
name: '箭头',
|
||||
langList: [
|
||||
{id: 'arrow_none', textContent: '无箭头'}
|
||||
],
|
||||
contextTools: [
|
||||
{
|
||||
title: '选择箭头类型',
|
||||
options: {
|
||||
none: '无箭头',
|
||||
end: '---->',
|
||||
start: '<----',
|
||||
both: '<--->',
|
||||
mid: '-->--',
|
||||
mid_bk: '--<--'
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(t){"use strict";return{execute:function(){t("default",{name:"箭头",langList:[{id:"arrow_none",textContent:"无箭头"}],contextTools:[{title:"选择箭头类型",options:{none:"无箭头",end:"---->",start:"<----",both:"<--->",mid:"-->--",mid_bk:"--<--"}}]})}}}));
|
||||
|
||||
@@ -1,20 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var en = exports('default', {
|
||||
name: 'ClosePath',
|
||||
buttons: [
|
||||
{
|
||||
title: 'Open path'
|
||||
},
|
||||
{
|
||||
title: 'Close path'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(t){"use strict";return{execute:function(){t("default",{name:"ClosePath",buttons:[{title:"Open path"},{title:"Close path"}]})}}}));
|
||||
|
||||
@@ -1,20 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var zhCN = exports('default', {
|
||||
name: '闭合路径',
|
||||
buttons: [
|
||||
{
|
||||
title: '打开路径'
|
||||
},
|
||||
{
|
||||
title: '关闭路径'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(t){"use strict";return{execute:function(){t("default",{name:"闭合路径",buttons:[{title:"打开路径"},{title:"关闭路径"}]})}}}));
|
||||
|
||||
@@ -1,20 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var en = exports('default', {
|
||||
name: 'Connector',
|
||||
langList: [
|
||||
{id: 'mode_connect', title: 'Connect two objects'}
|
||||
],
|
||||
buttons: [
|
||||
{
|
||||
title: 'Connect two objects'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(t){"use strict";return{execute:function(){t("default",{name:"Connector",langList:[{id:"mode_connect",title:"Connect two objects"}],buttons:[{title:"Connect two objects"}]})}}}));
|
||||
|
||||
@@ -1,20 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var fr = exports('default', {
|
||||
name: 'Connector',
|
||||
langList: [
|
||||
{id: 'mode_connect', title: 'Connecter deux objets'}
|
||||
],
|
||||
buttons: [
|
||||
{
|
||||
title: 'Connect two objects'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(t){"use strict";return{execute:function(){t("default",{name:"Connector",langList:[{id:"mode_connect",title:"Connecter deux objets"}],buttons:[{title:"Connect two objects"}]})}}}));
|
||||
|
||||
@@ -1,20 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var zhCN = exports('default', {
|
||||
name: '连接器',
|
||||
langList: [
|
||||
{id: 'mode_connect', title: '连接两个对象'}
|
||||
],
|
||||
buttons: [
|
||||
{
|
||||
title: '连接两个对象'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(t){"use strict";return{execute:function(){t("default",{name:"连接器",langList:[{id:"mode_connect",title:"连接两个对象"}],buttons:[{title:"连接两个对象"}]})}}}));
|
||||
|
||||
@@ -1,18 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var en = exports('default', {
|
||||
name: 'eyedropper',
|
||||
buttons: [
|
||||
{
|
||||
title: 'Eye Dropper Tool',
|
||||
key: 'I'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(e){"use strict";return{execute:function(){e("default",{name:"eyedropper",buttons:[{title:"Eye Dropper Tool",key:"I"}]})}}}));
|
||||
|
||||
@@ -1,18 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var zhCN = exports('default', {
|
||||
name: '滴管',
|
||||
buttons: [
|
||||
{
|
||||
title: '滴管工具',
|
||||
key: 'I'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(t){"use strict";return{execute:function(){t("default",{name:"滴管",buttons:[{title:"滴管工具",key:"I"}]})}}}));
|
||||
|
||||
@@ -1,34 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var en = exports('default', {
|
||||
name: 'foreignObject',
|
||||
buttons: [
|
||||
{
|
||||
title: 'Foreign Object Tool'
|
||||
},
|
||||
{
|
||||
title: 'Edit ForeignObject Content'
|
||||
}
|
||||
],
|
||||
contextTools: [
|
||||
{
|
||||
title: "Change foreignObject's width",
|
||||
label: 'w'
|
||||
},
|
||||
{
|
||||
title: "Change foreignObject's height",
|
||||
label: 'h'
|
||||
},
|
||||
{
|
||||
title: "Change foreignObject's font size",
|
||||
label: 'font-size'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(e){"use strict";return{execute:function(){e("default",{name:"foreignObject",buttons:[{title:"Foreign Object Tool"},{title:"Edit ForeignObject Content"}],contextTools:[{title:"Change foreignObject's width",label:"w"},{title:"Change foreignObject's height",label:"h"},{title:"Change foreignObject's font size",label:"font-size"}]})}}}));
|
||||
|
||||
@@ -1,34 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var zhCN = exports('default', {
|
||||
name: '外部对象',
|
||||
buttons: [
|
||||
{
|
||||
title: '外部对象工具'
|
||||
},
|
||||
{
|
||||
title: '编辑外部对象内容'
|
||||
}
|
||||
],
|
||||
contextTools: [
|
||||
{
|
||||
title: '改变外部对象宽度',
|
||||
label: 'w'
|
||||
},
|
||||
{
|
||||
title: '改变外部对象高度',
|
||||
label: 'h'
|
||||
},
|
||||
{
|
||||
title: '改变外部对象文字大小',
|
||||
label: '文字大小'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(t){"use strict";return{execute:function(){t("default",{name:"外部对象",buttons:[{title:"外部对象工具"},{title:"编辑外部对象内容"}],contextTools:[{title:"改变外部对象宽度",label:"w"},{title:"改变外部对象高度",label:"h"},{title:"改变外部对象文字大小",label:"文字大小"}]})}}}));
|
||||
|
||||
@@ -1,17 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var en = exports('default', {
|
||||
name: 'View Grid',
|
||||
buttons: [
|
||||
{
|
||||
title: 'Show/Hide Grid'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(e){"use strict";return{execute:function(){e("default",{name:"View Grid",buttons:[{title:"Show/Hide Grid"}]})}}}));
|
||||
|
||||
@@ -1,17 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var zhCN = exports('default', {
|
||||
name: '网格视图',
|
||||
buttons: [
|
||||
{
|
||||
title: '显示/隐藏网格'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(t){"use strict";return{execute:function(){t("default",{name:"网格视图",buttons:[{title:"显示/隐藏网格"}]})}}}));
|
||||
|
||||
@@ -1,18 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var en = exports('default', {
|
||||
name: 'Hello World',
|
||||
text: 'Hello World!\n\nYou clicked here: {x}, {y}',
|
||||
buttons: [
|
||||
{
|
||||
title: "Say 'Hello World'"
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(e){"use strict";return{execute:function(){e("default",{name:"Hello World",text:"Hello World!\n\nYou clicked here: {x}, {y}",buttons:[{title:"Say 'Hello World'"}]})}}}));
|
||||
|
||||
@@ -1,18 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var zhCN = exports('default', {
|
||||
name: 'Hello World',
|
||||
text: 'Hello World!\n\n 请点击: {x}, {y}',
|
||||
buttons: [
|
||||
{
|
||||
title: "输出 'Hello World'"
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(e){"use strict";return{execute:function(){e("default",{name:"Hello World",text:"Hello World!\n\n 请点击: {x}, {y}",buttons:[{title:"输出 'Hello World'"}]})}}}));
|
||||
|
||||
@@ -1,42 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var de = exports('default', {
|
||||
select_lib: 'Select an image library',
|
||||
show_list: 'Show library list',
|
||||
import_single: 'Import single',
|
||||
import_multi: 'Import multiple',
|
||||
open: 'Open as new document',
|
||||
buttons: [
|
||||
{
|
||||
title: 'Bilder-Bibliothek'
|
||||
}
|
||||
],
|
||||
imgLibs: [
|
||||
{
|
||||
name: 'Demo library (local)',
|
||||
url: '{path}imagelib/index{modularVersion}.html',
|
||||
description: 'Demonstration library for SVG-edit on this server'
|
||||
},
|
||||
{
|
||||
name: 'IAN Symbol Libraries',
|
||||
url: 'https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3',
|
||||
description: 'Free library of illustrations'
|
||||
}
|
||||
/*
|
||||
// See message in "en" locale for further details
|
||||
,
|
||||
{
|
||||
name: 'Openclipart',
|
||||
url: 'https://openclipart.org/svgedit',
|
||||
description: 'Share and Use Images. Over 100,000 Public Domain SVG Images and Growing.'
|
||||
}
|
||||
*/
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(e){"use strict";return{execute:function(){e("default",{select_lib:"Select an image library",show_list:"Show library list",import_single:"Import single",import_multi:"Import multiple",open:"Open as new document",buttons:[{title:"Bilder-Bibliothek"}],imgLibs:[{name:"Demo library (local)",url:"{path}imagelib/index{modularVersion}.html",description:"Demonstration library for SVG-edit on this server"},{name:"IAN Symbol Libraries",url:"https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3",description:"Free library of illustrations"}]})}}}));
|
||||
|
||||
@@ -1,47 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var en = exports('default', {
|
||||
select_lib: 'Select an image library',
|
||||
show_list: 'Show library list',
|
||||
import_single: 'Import single',
|
||||
import_multi: 'Import multiple',
|
||||
open: 'Open as new document',
|
||||
buttons: [
|
||||
{
|
||||
title: 'Image library'
|
||||
}
|
||||
],
|
||||
imgLibs: [
|
||||
{
|
||||
name: 'Demo library (local)',
|
||||
url: '{path}imagelib/index{modularVersion}.html',
|
||||
description: 'Demonstration library for SVG-edit on this server'
|
||||
},
|
||||
{
|
||||
name: 'IAN Symbol Libraries',
|
||||
url: 'https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3',
|
||||
description: 'Free library of illustrations'
|
||||
}
|
||||
// The site is no longer using our API, and they have added an
|
||||
// `X-Frame-Options` header which prevents our usage cross-origin:
|
||||
// Getting messages like this in console:
|
||||
// Refused to display 'https://openclipart.org/detail/307176/sign-bike' in a frame
|
||||
// because it set 'X-Frame-Options' to 'sameorigin'.
|
||||
// url: 'https://openclipart.org/svgedit',
|
||||
// However, they do have a custom API which we are using here:
|
||||
/*
|
||||
{
|
||||
name: 'Openclipart',
|
||||
url: '{path}imagelib/openclipart{modularVersion}.html',
|
||||
description: 'Share and Use Images. Over 100,000 Public Domain SVG Images and Growing.'
|
||||
}
|
||||
*/
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(e){"use strict";return{execute:function(){e("default",{select_lib:"Select an image library",show_list:"Show library list",import_single:"Import single",import_multi:"Import multiple",open:"Open as new document",buttons:[{title:"Image library"}],imgLibs:[{name:"Demo library (local)",url:"{path}imagelib/index{modularVersion}.html",description:"Demonstration library for SVG-edit on this server"},{name:"IAN Symbol Libraries",url:"https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3",description:"Free library of illustrations"}]})}}}));
|
||||
|
||||
@@ -1,42 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var fr = exports('default', {
|
||||
select_lib: "Choisir une bibliothèque d'images",
|
||||
show_list: 'show_list',
|
||||
import_single: 'import_single',
|
||||
import_multi: 'import_multi',
|
||||
open: 'open',
|
||||
buttons: [
|
||||
{
|
||||
title: "Bibliothèque d'images"
|
||||
}
|
||||
],
|
||||
imgLibs: [
|
||||
{
|
||||
name: 'Demo library (local)',
|
||||
url: '{path}imagelib/index{modularVersion}.html',
|
||||
description: 'Demonstration library for SVG-edit on this server'
|
||||
},
|
||||
{
|
||||
name: 'IAN Symbol Libraries',
|
||||
url: 'https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3',
|
||||
description: 'Free library of illustrations'
|
||||
}
|
||||
/*
|
||||
// See message in "en" locale for further details
|
||||
,
|
||||
{
|
||||
name: 'Openclipart',
|
||||
url: 'https://openclipart.org/svgedit',
|
||||
description: 'Share and Use Images. Over 100,000 Public Domain SVG Images and Growing.'
|
||||
}
|
||||
*/
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(i){"use strict";return{execute:function(){i("default",{select_lib:"Choisir une bibliothèque d'images",show_list:"show_list",import_single:"import_single",import_multi:"import_multi",open:"open",buttons:[{title:"Bibliothèque d'images"}],imgLibs:[{name:"Demo library (local)",url:"{path}imagelib/index{modularVersion}.html",description:"Demonstration library for SVG-edit on this server"},{name:"IAN Symbol Libraries",url:"https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3",description:"Free library of illustrations"}]})}}}));
|
||||
|
||||
@@ -1,42 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var pl = exports('default', {
|
||||
select_lib: 'Select an image library',
|
||||
show_list: 'Show library list',
|
||||
import_single: 'Import single',
|
||||
import_multi: 'Import multiple',
|
||||
open: 'Open as new document',
|
||||
buttons: [
|
||||
{
|
||||
title: 'Biblioteka obrazów'
|
||||
}
|
||||
],
|
||||
imgLibs: [
|
||||
{
|
||||
name: 'Demo library (local)',
|
||||
url: '{path}imagelib/index{modularVersion}.html',
|
||||
description: 'Demonstration library for SVG-edit on this server'
|
||||
},
|
||||
{
|
||||
name: 'IAN Symbol Libraries',
|
||||
url: 'https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3',
|
||||
description: 'Free library of illustrations'
|
||||
}
|
||||
/*
|
||||
// See message in "en" locale for further details
|
||||
,
|
||||
{
|
||||
name: 'Openclipart',
|
||||
url: 'https://openclipart.org/svgedit',
|
||||
description: 'Share and Use Images. Over 100,000 Public Domain SVG Images and Growing.'
|
||||
}
|
||||
*/
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(e){"use strict";return{execute:function(){e("default",{select_lib:"Select an image library",show_list:"Show library list",import_single:"Import single",import_multi:"Import multiple",open:"Open as new document",buttons:[{title:"Biblioteka obrazów"}],imgLibs:[{name:"Demo library (local)",url:"{path}imagelib/index{modularVersion}.html",description:"Demonstration library for SVG-edit on this server"},{name:"IAN Symbol Libraries",url:"https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3",description:"Free library of illustrations"}]})}}}));
|
||||
|
||||
@@ -1,42 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var ptBR = exports('default', {
|
||||
select_lib: 'Select an image library',
|
||||
show_list: 'Show library list',
|
||||
import_single: 'Import single',
|
||||
import_multi: 'Import multiple',
|
||||
open: 'Open as new document',
|
||||
buttons: [
|
||||
{
|
||||
title: 'Biblioteca de Imagens'
|
||||
}
|
||||
],
|
||||
imgLibs: [
|
||||
{
|
||||
name: 'Demo library (local)',
|
||||
url: '{path}imagelib/index{modularVersion}.html',
|
||||
description: 'Demonstration library for SVG-edit on this server'
|
||||
},
|
||||
{
|
||||
name: 'IAN Symbol Libraries',
|
||||
url: 'https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3',
|
||||
description: 'Free library of illustrations'
|
||||
}
|
||||
/*
|
||||
// See message in "en" locale for further details
|
||||
,
|
||||
{
|
||||
name: 'Openclipart',
|
||||
url: 'https://openclipart.org/svgedit',
|
||||
description: 'Share and Use Images. Over 100,000 Public Domain SVG Images and Growing.'
|
||||
}
|
||||
*/
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(e){"use strict";return{execute:function(){e("default",{select_lib:"Select an image library",show_list:"Show library list",import_single:"Import single",import_multi:"Import multiple",open:"Open as new document",buttons:[{title:"Biblioteca de Imagens"}],imgLibs:[{name:"Demo library (local)",url:"{path}imagelib/index{modularVersion}.html",description:"Demonstration library for SVG-edit on this server"},{name:"IAN Symbol Libraries",url:"https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3",description:"Free library of illustrations"}]})}}}));
|
||||
|
||||
@@ -1,42 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var ro = exports('default', {
|
||||
select_lib: 'Select an image library',
|
||||
show_list: 'Show library list',
|
||||
import_single: 'Import single',
|
||||
import_multi: 'Import multiple',
|
||||
open: 'Open as new document',
|
||||
buttons: [
|
||||
{
|
||||
title: 'Bibliotecă de Imagini'
|
||||
}
|
||||
],
|
||||
imgLibs: [
|
||||
{
|
||||
name: 'Demo library (local)',
|
||||
url: '{path}imagelib/index{modularVersion}.html',
|
||||
description: 'Demonstration library for SVG-edit on this server'
|
||||
},
|
||||
{
|
||||
name: 'IAN Symbol Libraries',
|
||||
url: 'https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3',
|
||||
description: 'Free library of illustrations'
|
||||
}
|
||||
/*
|
||||
// See message in "en" locale for further details
|
||||
,
|
||||
{
|
||||
name: 'Openclipart',
|
||||
url: 'https://openclipart.org/svgedit',
|
||||
description: 'Share and Use Images. Over 100,000 Public Domain SVG Images and Growing.'
|
||||
}
|
||||
*/
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(e){"use strict";return{execute:function(){e("default",{select_lib:"Select an image library",show_list:"Show library list",import_single:"Import single",import_multi:"Import multiple",open:"Open as new document",buttons:[{title:"Bibliotecă de Imagini"}],imgLibs:[{name:"Demo library (local)",url:"{path}imagelib/index{modularVersion}.html",description:"Demonstration library for SVG-edit on this server"},{name:"IAN Symbol Libraries",url:"https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3",description:"Free library of illustrations"}]})}}}));
|
||||
|
||||
@@ -1,42 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var sk = exports('default', {
|
||||
select_lib: 'Select an image library',
|
||||
show_list: 'Show library list',
|
||||
import_single: 'Import single',
|
||||
import_multi: 'Import multiple',
|
||||
open: 'Open as new document',
|
||||
buttons: [
|
||||
{
|
||||
title: 'Knižnica obrázkov'
|
||||
}
|
||||
],
|
||||
imgLibs: [
|
||||
{
|
||||
name: 'Demo library (local)',
|
||||
url: '{path}imagelib/index{modularVersion}.html',
|
||||
description: 'Demonstration library for SVG-edit on this server'
|
||||
},
|
||||
{
|
||||
name: 'IAN Symbol Libraries',
|
||||
url: 'https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3',
|
||||
description: 'Free library of illustrations'
|
||||
}
|
||||
/*
|
||||
// See message in "en" locale for further details
|
||||
,
|
||||
{
|
||||
name: 'Openclipart',
|
||||
url: 'https://openclipart.org/svgedit',
|
||||
description: 'Share and Use Images. Over 100,000 Public Domain SVG Images and Growing.'
|
||||
}
|
||||
*/
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(e){"use strict";return{execute:function(){e("default",{select_lib:"Select an image library",show_list:"Show library list",import_single:"Import single",import_multi:"Import multiple",open:"Open as new document",buttons:[{title:"Knižnica obrázkov"}],imgLibs:[{name:"Demo library (local)",url:"{path}imagelib/index{modularVersion}.html",description:"Demonstration library for SVG-edit on this server"},{name:"IAN Symbol Libraries",url:"https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3",description:"Free library of illustrations"}]})}}}));
|
||||
|
||||
@@ -1,42 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var sl = exports('default', {
|
||||
select_lib: 'Select an image library',
|
||||
show_list: 'Show library list',
|
||||
import_single: 'Import single',
|
||||
import_multi: 'Import multiple',
|
||||
open: 'Open as new document',
|
||||
buttons: [
|
||||
{
|
||||
title: 'Knjižnica slik'
|
||||
}
|
||||
],
|
||||
imgLibs: [
|
||||
{
|
||||
name: 'Demo library (local)',
|
||||
url: '{path}imagelib/index{modularVersion}.html',
|
||||
description: 'Demonstration library for SVG-edit on this server'
|
||||
},
|
||||
{
|
||||
name: 'IAN Symbol Libraries',
|
||||
url: 'https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3',
|
||||
description: 'Free library of illustrations'
|
||||
}
|
||||
/*
|
||||
// See message in "en" locale for further details
|
||||
,
|
||||
{
|
||||
name: 'Openclipart',
|
||||
url: 'https://openclipart.org/svgedit',
|
||||
description: 'Share and Use Images. Over 100,000 Public Domain SVG Images and Growing.'
|
||||
}
|
||||
*/
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(i){"use strict";return{execute:function(){i("default",{select_lib:"Select an image library",show_list:"Show library list",import_single:"Import single",import_multi:"Import multiple",open:"Open as new document",buttons:[{title:"Knjižnica slik"}],imgLibs:[{name:"Demo library (local)",url:"{path}imagelib/index{modularVersion}.html",description:"Demonstration library for SVG-edit on this server"},{name:"IAN Symbol Libraries",url:"https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3",description:"Free library of illustrations"}]})}}}));
|
||||
|
||||
@@ -1,42 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var zhCN = exports('default', {
|
||||
select_lib: 'Select an image library',
|
||||
show_list: 'Show library list',
|
||||
import_single: 'Import single',
|
||||
import_multi: 'Import multiple',
|
||||
open: 'Open as new document',
|
||||
buttons: [
|
||||
{
|
||||
title: '图像库'
|
||||
}
|
||||
],
|
||||
imgLibs: [
|
||||
{
|
||||
name: 'Demo library (local)',
|
||||
url: '{path}imagelib/index{modularVersion}.html',
|
||||
description: 'Demonstration library for SVG-edit on this server'
|
||||
},
|
||||
{
|
||||
name: 'IAN Symbol Libraries',
|
||||
url: 'https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3',
|
||||
description: 'Free library of illustrations'
|
||||
}
|
||||
/*
|
||||
// See message in "en" locale for further details
|
||||
,
|
||||
{
|
||||
name: 'Openclipart',
|
||||
url: 'https://openclipart.org/svgedit',
|
||||
description: 'Share and Use Images. Over 100,000 Public Domain SVG Images and Growing.'
|
||||
}
|
||||
*/
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(e){"use strict";return{execute:function(){e("default",{select_lib:"Select an image library",show_list:"Show library list",import_single:"Import single",import_multi:"Import multiple",open:"Open as new document",buttons:[{title:"图像库"}],imgLibs:[{name:"Demo library (local)",url:"{path}imagelib/index{modularVersion}.html",description:"Demonstration library for SVG-edit on this server"},{name:"IAN Symbol Libraries",url:"https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3",description:"Free library of illustrations"}]})}}}));
|
||||
|
||||
@@ -1,55 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var en = exports('default', {
|
||||
name: 'Markers',
|
||||
langList: [
|
||||
{id: 'nomarker', title: 'No Marker'},
|
||||
{id: 'leftarrow', title: 'Left Arrow'},
|
||||
{id: 'rightarrow', title: 'Right Arrow'},
|
||||
{id: 'textmarker', title: 'Text Marker'},
|
||||
{id: 'forwardslash', title: 'Forward Slash'},
|
||||
{id: 'reverseslash', title: 'Reverse Slash'},
|
||||
{id: 'verticalslash', title: 'Vertical Slash'},
|
||||
{id: 'box', title: 'Box'},
|
||||
{id: 'star', title: 'Star'},
|
||||
{id: 'xmark', title: 'X'},
|
||||
{id: 'triangle', title: 'Triangle'},
|
||||
{id: 'mcircle', title: 'Circle'},
|
||||
{id: 'leftarrow_o', title: 'Open Left Arrow'},
|
||||
{id: 'rightarrow_o', title: 'Open Right Arrow'},
|
||||
{id: 'box_o', title: 'Open Box'},
|
||||
{id: 'star_o', title: 'Open Star'},
|
||||
{id: 'triangle_o', title: 'Open Triangle'},
|
||||
{id: 'mcircle_o', title: 'Open Circle'}
|
||||
],
|
||||
contextTools: [
|
||||
{
|
||||
title: 'Start marker',
|
||||
label: 's'
|
||||
},
|
||||
{
|
||||
title: 'Select start marker type'
|
||||
},
|
||||
{
|
||||
title: 'Middle marker',
|
||||
label: 'm'
|
||||
},
|
||||
{
|
||||
title: 'Select mid marker type'
|
||||
},
|
||||
{
|
||||
title: 'End marker',
|
||||
label: 'e'
|
||||
},
|
||||
{
|
||||
title: 'Select end marker type'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(e){"use strict";return{execute:function(){e("default",{name:"Markers",langList:[{id:"nomarker",title:"No Marker"},{id:"leftarrow",title:"Left Arrow"},{id:"rightarrow",title:"Right Arrow"},{id:"textmarker",title:"Text Marker"},{id:"forwardslash",title:"Forward Slash"},{id:"reverseslash",title:"Reverse Slash"},{id:"verticalslash",title:"Vertical Slash"},{id:"box",title:"Box"},{id:"star",title:"Star"},{id:"xmark",title:"X"},{id:"triangle",title:"Triangle"},{id:"mcircle",title:"Circle"},{id:"leftarrow_o",title:"Open Left Arrow"},{id:"rightarrow_o",title:"Open Right Arrow"},{id:"box_o",title:"Open Box"},{id:"star_o",title:"Open Star"},{id:"triangle_o",title:"Open Triangle"},{id:"mcircle_o",title:"Open Circle"}],contextTools:[{title:"Start marker",label:"s"},{title:"Select start marker type"},{title:"Middle marker",label:"m"},{title:"Select mid marker type"},{title:"End marker",label:"e"},{title:"Select end marker type"}]})}}}));
|
||||
|
||||
@@ -1,55 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var zhCN = exports('default', {
|
||||
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: '选择末端标记类型'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(t){"use strict";return{execute:function(){t("default",{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:"选择末端标记类型"}]})}}}));
|
||||
|
||||
@@ -1,17 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var en = exports('default', {
|
||||
name: 'MathJax',
|
||||
buttons: [
|
||||
{
|
||||
title: 'Add Mathematics'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(t){"use strict";return{execute:function(){t("default",{name:"MathJax",buttons:[{title:"Add Mathematics"}]})}}}));
|
||||
|
||||
@@ -1,17 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var zhCN = exports('default', {
|
||||
name: '数学',
|
||||
buttons: [
|
||||
{
|
||||
title: '添加数学计算'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(t){"use strict";return{execute:function(){t("default",{name:"数学",buttons:[{title:"添加数学计算"}]})}}}));
|
||||
|
||||
@@ -1,17 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var en = exports('default', {
|
||||
name: 'Extension Panning',
|
||||
buttons: [
|
||||
{
|
||||
title: 'Panning'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(n){"use strict";return{execute:function(){n("default",{name:"Extension Panning",buttons:[{title:"Panning"}]})}}}));
|
||||
|
||||
@@ -1,17 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var zhCN = exports('default', {
|
||||
name: '移动',
|
||||
buttons: [
|
||||
{
|
||||
title: '移动'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(t){"use strict";return{execute:function(){t("default",{name:"移动",buttons:[{title:"移动"}]})}}}));
|
||||
|
||||
@@ -1,49 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var en = exports('default', {
|
||||
name: 'placemark',
|
||||
langList: [
|
||||
{id: 'nomarker', title: 'No Marker'},
|
||||
{id: 'leftarrow', title: 'Left Arrow'},
|
||||
{id: 'rightarrow', title: 'Right Arrow'},
|
||||
{id: 'forwardslash', title: 'Forward Slash'},
|
||||
{id: 'reverseslash', title: 'Reverse Slash'},
|
||||
{id: 'verticalslash', title: 'Vertical Slash'},
|
||||
{id: 'box', title: 'Box'},
|
||||
{id: 'star', title: 'Star'},
|
||||
{id: 'xmark', title: 'X'},
|
||||
{id: 'triangle', title: 'Triangle'},
|
||||
{id: 'mcircle', title: 'Circle'},
|
||||
{id: 'leftarrow_o', title: 'Open Left Arrow'},
|
||||
{id: 'rightarrow_o', title: 'Open Right Arrow'},
|
||||
{id: 'box_o', title: 'Open Box'},
|
||||
{id: 'star_o', title: 'Open Star'},
|
||||
{id: 'triangle_o', title: 'Open Triangle'},
|
||||
{id: 'mcircle_o', title: 'Open Circle'}
|
||||
],
|
||||
buttons: [
|
||||
{
|
||||
title: 'Placemark Tool'
|
||||
}
|
||||
],
|
||||
contextTools: [
|
||||
{
|
||||
title: 'Select Place marker type'
|
||||
},
|
||||
{
|
||||
title: 'Text on separated with ; ',
|
||||
label: 'Text'
|
||||
},
|
||||
{
|
||||
title: 'Font for text',
|
||||
label: ''
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(t){"use strict";return{execute:function(){t("default",{name:"placemark",langList:[{id:"nomarker",title:"No Marker"},{id:"leftarrow",title:"Left Arrow"},{id:"rightarrow",title:"Right Arrow"},{id:"forwardslash",title:"Forward Slash"},{id:"reverseslash",title:"Reverse Slash"},{id:"verticalslash",title:"Vertical Slash"},{id:"box",title:"Box"},{id:"star",title:"Star"},{id:"xmark",title:"X"},{id:"triangle",title:"Triangle"},{id:"mcircle",title:"Circle"},{id:"leftarrow_o",title:"Open Left Arrow"},{id:"rightarrow_o",title:"Open Right Arrow"},{id:"box_o",title:"Open Box"},{id:"star_o",title:"Open Star"},{id:"triangle_o",title:"Open Triangle"},{id:"mcircle_o",title:"Open Circle"}],buttons:[{title:"Placemark Tool"}],contextTools:[{title:"Select Place marker type"},{title:"Text on separated with ; ",label:"Text"},{title:"Font for text",label:""}]})}}}));
|
||||
|
||||
@@ -1,23 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var en = exports('default', {
|
||||
name: 'polygon',
|
||||
buttons: [
|
||||
{
|
||||
title: 'Polygon Tool'
|
||||
}
|
||||
],
|
||||
contextTools: [
|
||||
{
|
||||
title: 'Number of Sides',
|
||||
label: 'sides'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(e){"use strict";return{execute:function(){e("default",{name:"polygon",buttons:[{title:"Polygon Tool"}],contextTools:[{title:"Number of Sides",label:"sides"}]})}}}));
|
||||
|
||||
@@ -1,23 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var zhCN = exports('default', {
|
||||
name: '多边形',
|
||||
buttons: [
|
||||
{
|
||||
title: '多边形工具'
|
||||
}
|
||||
],
|
||||
contextTools: [
|
||||
{
|
||||
title: '边数',
|
||||
label: '边数'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(t){"use strict";return{execute:function(){t("default",{name:"多边形",buttons:[{title:"多边形工具"}],contextTools:[{title:"边数",label:"边数"}]})}}}));
|
||||
|
||||
@@ -1,13 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var en = exports('default', {
|
||||
saved: 'Saved! Return to Item View!',
|
||||
hiddenframe: 'Moinsave frame to store hidden values'
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(e){"use strict";return{execute:function(){e("default",{saved:"Saved! Return to Item View!",hiddenframe:"Moinsave frame to store hidden values"})}}}));
|
||||
|
||||
@@ -1,13 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var zhCN = exports('default', {
|
||||
saved: '已保存! 返回视图!',
|
||||
hiddenframe: 'Moinsave frame to store hidden values'
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(e){"use strict";return{execute:function(){e("default",{saved:"已保存! 返回视图!",hiddenframe:"Moinsave frame to store hidden values"})}}}));
|
||||
|
||||
@@ -1,13 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var en = exports('default', {
|
||||
uploading: 'Uploading...',
|
||||
hiddenframe: 'Opensave frame to store hidden values'
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(e){"use strict";return{execute:function(){e("default",{uploading:"Uploading...",hiddenframe:"Opensave frame to store hidden values"})}}}));
|
||||
|
||||
@@ -1,13 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var zhCN = exports('default', {
|
||||
uploading: '正在上传...',
|
||||
hiddenframe: 'Opensave frame to store hidden values'
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(e){"use strict";return{execute:function(){e("default",{uploading:"正在上传...",hiddenframe:"Opensave frame to store hidden values"})}}}));
|
||||
|
||||
@@ -1,33 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var en = exports('default', {
|
||||
loading: 'Loading...',
|
||||
categories: {
|
||||
basic: 'Basic',
|
||||
object: 'Objects',
|
||||
symbol: 'Symbols',
|
||||
arrow: 'Arrows',
|
||||
flowchart: 'Flowchart',
|
||||
animal: 'Animals',
|
||||
game: 'Cards & Chess',
|
||||
dialog_balloon: 'Dialog balloons',
|
||||
electronics: 'Electronics',
|
||||
math: 'Mathematical',
|
||||
music: 'Music',
|
||||
misc: 'Miscellaneous',
|
||||
raphael_1: 'raphaeljs.com set 1',
|
||||
raphael_2: 'raphaeljs.com set 2'
|
||||
},
|
||||
buttons: [
|
||||
{
|
||||
title: 'Shape library'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(a){"use strict";return{execute:function(){a("default",{loading:"Loading...",categories:{basic:"Basic",object:"Objects",symbol:"Symbols",arrow:"Arrows",flowchart:"Flowchart",animal:"Animals",game:"Cards & Chess",dialog_balloon:"Dialog balloons",electronics:"Electronics",math:"Mathematical",music:"Music",misc:"Miscellaneous",raphael_1:"raphaeljs.com set 1",raphael_2:"raphaeljs.com set 2"},buttons:[{title:"Shape library"}]})}}}));
|
||||
|
||||
@@ -1,33 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var fr = exports('default', {
|
||||
loading: 'Loading...',
|
||||
categories: {
|
||||
basic: 'Basic',
|
||||
object: 'Objects',
|
||||
symbol: 'Symbols',
|
||||
arrow: 'Arrows',
|
||||
flowchart: 'Flowchart',
|
||||
animal: 'Animals',
|
||||
game: 'Cards & Chess',
|
||||
dialog_balloon: 'Dialog balloons',
|
||||
electronics: 'Electronics',
|
||||
math: 'Mathematical',
|
||||
music: 'Music',
|
||||
misc: 'Miscellaneous',
|
||||
raphael_1: 'raphaeljs.com set 1',
|
||||
raphael_2: 'raphaeljs.com set 2'
|
||||
},
|
||||
buttons: [
|
||||
{
|
||||
title: "Bibliothèque d'images"
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(a){"use strict";return{execute:function(){a("default",{loading:"Loading...",categories:{basic:"Basic",object:"Objects",symbol:"Symbols",arrow:"Arrows",flowchart:"Flowchart",animal:"Animals",game:"Cards & Chess",dialog_balloon:"Dialog balloons",electronics:"Electronics",math:"Mathematical",music:"Music",misc:"Miscellaneous",raphael_1:"raphaeljs.com set 1",raphael_2:"raphaeljs.com set 2"},buttons:[{title:"Bibliothèque d'images"}]})}}}));
|
||||
|
||||
@@ -1,33 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var zhCN = exports('default', {
|
||||
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: '图元库'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(a){"use strict";return{execute:function(){a("default",{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:"图元库"}]})}}}));
|
||||
|
||||
@@ -1,31 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var en = exports('default', {
|
||||
name: 'star',
|
||||
buttons: [
|
||||
{
|
||||
title: 'Star Tool'
|
||||
}
|
||||
],
|
||||
contextTools: [
|
||||
{
|
||||
title: 'Number of Sides',
|
||||
label: 'points'
|
||||
},
|
||||
{
|
||||
title: 'Pointiness',
|
||||
label: 'Pointiness'
|
||||
},
|
||||
{
|
||||
title: 'Twists the star',
|
||||
label: 'Radial Shift'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(t){"use strict";return{execute:function(){t("default",{name:"star",buttons:[{title:"Star Tool"}],contextTools:[{title:"Number of Sides",label:"points"},{title:"Pointiness",label:"Pointiness"},{title:"Twists the star",label:"Radial Shift"}]})}}}));
|
||||
|
||||
@@ -1,31 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var zhCN = exports('default', {
|
||||
name: '星形',
|
||||
buttons: [
|
||||
{
|
||||
title: '星形工具'
|
||||
}
|
||||
],
|
||||
contextTools: [
|
||||
{
|
||||
title: '顶点',
|
||||
label: '顶点'
|
||||
},
|
||||
{
|
||||
title: '钝度',
|
||||
label: '钝度'
|
||||
},
|
||||
{
|
||||
title: '径向',
|
||||
label: '径向'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(t){"use strict";return{execute:function(){t("default",{name:"星形",buttons:[{title:"星形工具"}],contextTools:[{title:"顶点",label:"顶点"},{title:"钝度",label:"钝度"},{title:"径向",label:"径向"}]})}}}));
|
||||
|
||||
@@ -1,23 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var de = exports('default', {
|
||||
message: 'Standardmäßig kann SVG-Edit Ihre Editor-Einstellungen ' +
|
||||
'und die SVG-Inhalte lokal auf Ihrem Gerät abspeichern. So brauchen Sie ' +
|
||||
'nicht jedes Mal die SVG neu laden. Falls Sie aus Datenschutzgründen ' +
|
||||
'dies nicht wollen, ' +
|
||||
'können Sie die Standardeinstellung im Folgenden ändern.',
|
||||
storagePrefsAndContent: 'Store preferences and SVG content locally',
|
||||
storagePrefsOnly: 'Only store preferences locally',
|
||||
storagePrefs: 'Store preferences locally',
|
||||
storageNoPrefsOrContent: 'Do not store my preferences or SVG content locally',
|
||||
storageNoPrefs: 'Do not store my preferences locally',
|
||||
rememberLabel: 'Remember this choice?',
|
||||
rememberTooltip: 'If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again.'
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(e){"use strict";return{execute:function(){e("default",{message:"Standardmäßig kann SVG-Edit Ihre Editor-Einstellungen und die SVG-Inhalte lokal auf Ihrem Gerät abspeichern. So brauchen Sie nicht jedes Mal die SVG neu laden. Falls Sie aus Datenschutzgründen dies nicht wollen, können Sie die Standardeinstellung im Folgenden ändern.",storagePrefsAndContent:"Store preferences and SVG content locally",storagePrefsOnly:"Only store preferences locally",storagePrefs:"Store preferences locally",storageNoPrefsOrContent:"Do not store my preferences or SVG content locally",storageNoPrefs:"Do not store my preferences locally",rememberLabel:"Remember this choice?",rememberTooltip:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."})}}}));
|
||||
|
||||
@@ -1,23 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var en = exports('default', {
|
||||
message: 'By default and where supported, SVG-Edit can store your editor ' +
|
||||
'preferences and SVG content locally on your machine so you do not ' +
|
||||
'need to add these back each time you load SVG-Edit. If, for privacy ' +
|
||||
'reasons, you do not wish to store this information on your machine, ' +
|
||||
'you can change away from the default option below.',
|
||||
storagePrefsAndContent: 'Store preferences and SVG content locally',
|
||||
storagePrefsOnly: 'Only store preferences locally',
|
||||
storagePrefs: 'Store preferences locally',
|
||||
storageNoPrefsOrContent: 'Do not store my preferences or SVG content locally',
|
||||
storageNoPrefs: 'Do not store my preferences locally',
|
||||
rememberLabel: 'Remember this choice?',
|
||||
rememberTooltip: 'If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again.'
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(e){"use strict";return{execute:function(){e("default",{message:"By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.",storagePrefsAndContent:"Store preferences and SVG content locally",storagePrefsOnly:"Only store preferences locally",storagePrefs:"Store preferences locally",storageNoPrefsOrContent:"Do not store my preferences or SVG content locally",storageNoPrefs:"Do not store my preferences locally",rememberLabel:"Remember this choice?",rememberTooltip:"If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again."})}}}));
|
||||
|
||||
@@ -1,23 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var fr = exports('default', {
|
||||
message: "Par défaut et si supporté, SVG-Edit peut stocker les préférences de l'éditeur " +
|
||||
"et le contenu SVG localement sur votre machine de sorte que vous n'ayez pas besoin de les " +
|
||||
'rajouter chaque fois que vous chargez SVG-Edit. Si, pour des raisons de confidentialité, ' +
|
||||
'vous ne souhaitez pas stocker ces données sur votre machine, vous pouvez changer ce ' +
|
||||
'comportement ci-dessous.',
|
||||
storagePrefsAndContent: 'Store preferences and SVG content locally',
|
||||
storagePrefsOnly: 'Only store preferences locally',
|
||||
storagePrefs: 'Store preferences locally',
|
||||
storageNoPrefsOrContent: 'Do not store my preferences or SVG content locally',
|
||||
storageNoPrefs: 'Do not store my preferences locally',
|
||||
rememberLabel: 'Remember this choice?',
|
||||
rememberTooltip: "Si vous choisissez de désactiver le stockage en mémorisant le choix, l'URL va changer afin que la question ne vous soit plus reposée."
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(e){"use strict";return{execute:function(){e("default",{message:"Par défaut et si supporté, SVG-Edit peut stocker les préférences de l'éditeur et le contenu SVG localement sur votre machine de sorte que vous n'ayez pas besoin de les rajouter chaque fois que vous chargez SVG-Edit. Si, pour des raisons de confidentialité, vous ne souhaitez pas stocker ces données sur votre machine, vous pouvez changer ce comportement ci-dessous.",storagePrefsAndContent:"Store preferences and SVG content locally",storagePrefsOnly:"Only store preferences locally",storagePrefs:"Store preferences locally",storageNoPrefsOrContent:"Do not store my preferences or SVG content locally",storageNoPrefs:"Do not store my preferences locally",rememberLabel:"Remember this choice?",rememberTooltip:"Si vous choisissez de désactiver le stockage en mémorisant le choix, l'URL va changer afin que la question ne vous soit plus reposée."})}}}));
|
||||
|
||||
@@ -1,20 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var zhCN = exports('default', {
|
||||
message: '默认情况下, SVG-Edit 在本地保存配置参数和画布内容. 如果基于隐私考虑, ' +
|
||||
'您可以勾选以下选项修改配置.',
|
||||
storagePrefsAndContent: '本地存储配置参数和SVG图',
|
||||
storagePrefsOnly: '本地只存储配置参数',
|
||||
storagePrefs: '本地存储配置参数',
|
||||
storageNoPrefsOrContent: '本地不保存配置参数和SVG图',
|
||||
storageNoPrefs: '本地不保存配置参数',
|
||||
rememberLabel: '记住选择?',
|
||||
rememberTooltip: '如果您勾选记住选择,将不再弹出本窗口.'
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(e){"use strict";return{execute:function(){e("default",{message:"默认情况下, SVG-Edit 在本地保存配置参数和画布内容. 如果基于隐私考虑, 您可以勾选以下选项修改配置.",storagePrefsAndContent:"本地存储配置参数和SVG图",storagePrefsOnly:"本地只存储配置参数",storagePrefs:"本地存储配置参数",storageNoPrefsOrContent:"本地不保存配置参数和SVG图",storageNoPrefs:"本地不保存配置参数",rememberLabel:"记住选择?",rememberTooltip:"如果您勾选记住选择,将不再弹出本窗口."})}}}));
|
||||
|
||||
@@ -1,17 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var en = exports('default', {
|
||||
name: 'WebAppFind',
|
||||
buttons: [
|
||||
{
|
||||
title: 'Save Image back to Disk'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(e){"use strict";return{execute:function(){e("default",{name:"WebAppFind",buttons:[{title:"Save Image back to Disk"}]})}}}));
|
||||
|
||||
@@ -1,17 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
var zhCN = exports('default', {
|
||||
name: 'WebAppFind',
|
||||
buttons: [
|
||||
{
|
||||
title: '保存图片到磁盘'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(t){"use strict";return{execute:function(){t("default",{name:"WebAppFind",buttons:[{title:"保存图片到磁盘"}]})}}}));
|
||||
|
||||
2351
dist/editor/system/extensions/ext-markers.js
vendored
2351
dist/editor/system/extensions/ext-markers.js
vendored
File diff suppressed because one or more lines are too long
1916
dist/editor/system/extensions/ext-mathjax.js
vendored
1916
dist/editor/system/extensions/ext-mathjax.js
vendored
File diff suppressed because it is too large
Load Diff
151
dist/editor/system/extensions/ext-overview_window.js
vendored
151
dist/editor/system/extensions/ext-overview_window.js
vendored
@@ -1,9 +1,5 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
/**
|
||||
System.register([],(function(i){"use strict";return{execute:function(){
|
||||
/**
|
||||
* @file ext-overview_window.js
|
||||
*
|
||||
* @license MIT
|
||||
@@ -11,145 +7,4 @@ System.register([], function (exports) {
|
||||
* @copyright 2013 James Sacksteder
|
||||
*
|
||||
*/
|
||||
var extOverview_window = exports('default', {
|
||||
name: 'overview_window',
|
||||
init: function init(_ref) {
|
||||
var $ = _ref.$,
|
||||
isChrome = _ref.isChrome,
|
||||
isIE = _ref.isIE;
|
||||
var overviewWindowGlobals = {}; // Disabled in Chrome 48-, see https://github.com/SVG-Edit/svgedit/issues/26 and
|
||||
// https://code.google.com/p/chromium/issues/detail?id=565120.
|
||||
|
||||
if (isChrome()) {
|
||||
var verIndex = navigator.userAgent.indexOf('Chrome/') + 7;
|
||||
var chromeVersion = Number.parseInt(navigator.userAgent.substring(verIndex));
|
||||
|
||||
if (chromeVersion < 49) {
|
||||
return undefined;
|
||||
}
|
||||
} // Define and insert the base html element.
|
||||
|
||||
|
||||
var propsWindowHtml = '<div id="overview_window_content_pane" style="width:100%; ' + 'word-wrap:break-word; display:inline-block; margin-top:20px;">' + '<div id="overview_window_content" style="position:relative; ' + 'left:12px; top:0px;">' + '<div style="background-color:#A0A0A0; display:inline-block; ' + 'overflow:visible;">' + '<svg id="overviewMiniView" width="150" height="100" x="0" ' + 'y="0" viewBox="0 0 4800 3600" ' + 'xmlns="http://www.w3.org/2000/svg" ' + 'xmlns:xlink="http://www.w3.org/1999/xlink">' + '<use x="0" y="0" xlink:href="#svgroot"> </use>' + '</svg>' + '<div id="overview_window_view_box" style="min-width:50px; ' + 'min-height:50px; position:absolute; top:30px; left:30px; ' + 'z-index:5; background-color:rgba(255,0,102,0.3);">' + '</div>' + '</div>' + '</div>' + '</div>';
|
||||
$('#sidepanels').append(propsWindowHtml); // Define dynamic animation of the view box.
|
||||
|
||||
var updateViewBox = function updateViewBox() {
|
||||
var portHeight = Number.parseFloat($('#workarea').css('height'));
|
||||
var portWidth = Number.parseFloat($('#workarea').css('width'));
|
||||
var portX = $('#workarea').scrollLeft();
|
||||
var portY = $('#workarea').scrollTop();
|
||||
var windowWidth = Number.parseFloat($('#svgcanvas').css('width'));
|
||||
var windowHeight = Number.parseFloat($('#svgcanvas').css('height'));
|
||||
var overviewWidth = $('#overviewMiniView').attr('width');
|
||||
var overviewHeight = $('#overviewMiniView').attr('height');
|
||||
var viewBoxX = portX / windowWidth * overviewWidth;
|
||||
var viewBoxY = portY / windowHeight * overviewHeight;
|
||||
var viewBoxWidth = portWidth / windowWidth * overviewWidth;
|
||||
var viewBoxHeight = portHeight / windowHeight * overviewHeight;
|
||||
$('#overview_window_view_box').css('min-width', viewBoxWidth + 'px');
|
||||
$('#overview_window_view_box').css('min-height', viewBoxHeight + 'px');
|
||||
$('#overview_window_view_box').css('top', viewBoxY + 'px');
|
||||
$('#overview_window_view_box').css('left', viewBoxX + 'px');
|
||||
};
|
||||
|
||||
$('#workarea').scroll(function () {
|
||||
if (!overviewWindowGlobals.viewBoxDragging) {
|
||||
updateViewBox();
|
||||
}
|
||||
});
|
||||
$('#workarea').resize(updateViewBox);
|
||||
updateViewBox(); // Compensate for changes in zoom and canvas size.
|
||||
|
||||
var updateViewDimensions = function updateViewDimensions() {
|
||||
var viewWidth = $('#svgroot').attr('width');
|
||||
var viewHeight = $('#svgroot').attr('height');
|
||||
var viewX = 640;
|
||||
var viewY = 480;
|
||||
|
||||
if (isIE()) {
|
||||
// This has only been tested with Firefox 10 and IE 9 (without chrome frame).
|
||||
// I am not sure if if is Firefox or IE that is being non compliant here.
|
||||
// Either way the one that is noncompliant may become more compliant later.
|
||||
// TAG:HACK
|
||||
// TAG:VERSION_DEPENDENT
|
||||
// TAG:BROWSER_SNIFFING
|
||||
viewX = 0;
|
||||
viewY = 0;
|
||||
}
|
||||
|
||||
var svgWidthOld = $('#overviewMiniView').attr('width');
|
||||
var svgHeightNew = viewHeight / viewWidth * svgWidthOld;
|
||||
$('#overviewMiniView').attr('viewBox', viewX + ' ' + viewY + ' ' + viewWidth + ' ' + viewHeight);
|
||||
$('#overviewMiniView').attr('height', svgHeightNew);
|
||||
updateViewBox();
|
||||
};
|
||||
|
||||
updateViewDimensions(); // Set up the overview window as a controller for the view port.
|
||||
|
||||
overviewWindowGlobals.viewBoxDragging = false;
|
||||
|
||||
var updateViewPortFromViewBox = function updateViewPortFromViewBox() {
|
||||
var windowWidth = Number.parseFloat($('#svgcanvas').css('width'));
|
||||
var windowHeight = Number.parseFloat($('#svgcanvas').css('height'));
|
||||
var overviewWidth = $('#overviewMiniView').attr('width');
|
||||
var overviewHeight = $('#overviewMiniView').attr('height');
|
||||
var viewBoxX = Number.parseFloat($('#overview_window_view_box').css('left'));
|
||||
var viewBoxY = Number.parseFloat($('#overview_window_view_box').css('top'));
|
||||
var portX = viewBoxX / overviewWidth * windowWidth;
|
||||
var portY = viewBoxY / overviewHeight * windowHeight;
|
||||
$('#workarea').scrollLeft(portX);
|
||||
$('#workarea').scrollTop(portY);
|
||||
};
|
||||
|
||||
$('#overview_window_view_box').draggable({
|
||||
containment: 'parent',
|
||||
drag: updateViewPortFromViewBox,
|
||||
start: function start() {
|
||||
overviewWindowGlobals.viewBoxDragging = true;
|
||||
},
|
||||
stop: function stop() {
|
||||
overviewWindowGlobals.viewBoxDragging = false;
|
||||
}
|
||||
});
|
||||
$('#overviewMiniView').click(function (evt) {
|
||||
// Firefox doesn't support evt.offsetX and evt.offsetY.
|
||||
var mouseX = evt.offsetX || evt.originalEvent.layerX;
|
||||
var mouseY = evt.offsetY || evt.originalEvent.layerY;
|
||||
var overviewWidth = $('#overviewMiniView').attr('width');
|
||||
var overviewHeight = $('#overviewMiniView').attr('height');
|
||||
var viewBoxWidth = Number.parseFloat($('#overview_window_view_box').css('min-width'));
|
||||
var viewBoxHeight = Number.parseFloat($('#overview_window_view_box').css('min-height'));
|
||||
var viewBoxX = mouseX - 0.5 * viewBoxWidth;
|
||||
var viewBoxY = mouseY - 0.5 * viewBoxHeight; // deal with constraints
|
||||
|
||||
if (viewBoxX < 0) {
|
||||
viewBoxX = 0;
|
||||
}
|
||||
|
||||
if (viewBoxY < 0) {
|
||||
viewBoxY = 0;
|
||||
}
|
||||
|
||||
if (viewBoxX + viewBoxWidth > overviewWidth) {
|
||||
viewBoxX = overviewWidth - viewBoxWidth;
|
||||
}
|
||||
|
||||
if (viewBoxY + viewBoxHeight > overviewHeight) {
|
||||
viewBoxY = overviewHeight - viewBoxHeight;
|
||||
}
|
||||
|
||||
$('#overview_window_view_box').css('top', viewBoxY + 'px');
|
||||
$('#overview_window_view_box').css('left', viewBoxX + 'px');
|
||||
updateViewPortFromViewBox();
|
||||
});
|
||||
return {
|
||||
name: 'overview window',
|
||||
canvasUpdated: updateViewDimensions,
|
||||
workareaResized: updateViewBox
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
i("default",{name:"overview_window",init:function init(i){var e=i.$,o=i.isChrome,r=i.isIE,t={};if(o()){var w=navigator.userAgent.indexOf("Chrome/")+7;if(Number.parseInt(navigator.userAgent.substring(w))<49)return}e("#sidepanels").append('<div id="overview_window_content_pane" style="width:100%; word-wrap:break-word; display:inline-block; margin-top:20px;"><div id="overview_window_content" style="position:relative; left:12px; top:0px;"><div style="background-color:#A0A0A0; display:inline-block; overflow:visible;"><svg id="overviewMiniView" width="150" height="100" x="0" y="0" viewBox="0 0 4800 3600" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><use x="0" y="0" xlink:href="#svgroot"> </use></svg><div id="overview_window_view_box" style="min-width:50px; min-height:50px; position:absolute; top:30px; left:30px; z-index:5; background-color:rgba(255,0,102,0.3);"></div></div></div></div>');var v=function updateViewBox(){var i=Number.parseFloat(e("#workarea").css("height")),o=Number.parseFloat(e("#workarea").css("width")),r=e("#workarea").scrollLeft(),t=e("#workarea").scrollTop(),w=Number.parseFloat(e("#svgcanvas").css("width")),v=Number.parseFloat(e("#svgcanvas").css("height")),a=e("#overviewMiniView").attr("width"),n=e("#overviewMiniView").attr("height"),s=r/w*a,d=t/v*n,l=o/w*a,g=i/v*n;e("#overview_window_view_box").css("min-width",l+"px"),e("#overview_window_view_box").css("min-height",g+"px"),e("#overview_window_view_box").css("top",d+"px"),e("#overview_window_view_box").css("left",s+"px")};e("#workarea").scroll((function(){t.viewBoxDragging||v()})),e("#workarea").resize(v),v();var a=function updateViewDimensions(){var i=e("#svgroot").attr("width"),o=e("#svgroot").attr("height"),t=640,w=480;r()&&(t=0,w=0);var a=o/i*e("#overviewMiniView").attr("width");e("#overviewMiniView").attr("viewBox",t+" "+w+" "+i+" "+o),e("#overviewMiniView").attr("height",a),v()};a(),t.viewBoxDragging=!1;var n=function updateViewPortFromViewBox(){var i=Number.parseFloat(e("#svgcanvas").css("width")),o=Number.parseFloat(e("#svgcanvas").css("height")),r=e("#overviewMiniView").attr("width"),t=e("#overviewMiniView").attr("height"),w=Number.parseFloat(e("#overview_window_view_box").css("left"))/r*i,v=Number.parseFloat(e("#overview_window_view_box").css("top"))/t*o;e("#workarea").scrollLeft(w),e("#workarea").scrollTop(v)};return e("#overview_window_view_box").draggable({containment:"parent",drag:n,start:function start(){t.viewBoxDragging=!0},stop:function stop(){t.viewBoxDragging=!1}}),e("#overviewMiniView").click((function(i){var o=i.offsetX||i.originalEvent.layerX,r=i.offsetY||i.originalEvent.layerY,t=e("#overviewMiniView").attr("width"),w=e("#overviewMiniView").attr("height"),v=Number.parseFloat(e("#overview_window_view_box").css("min-width")),a=Number.parseFloat(e("#overview_window_view_box").css("min-height")),s=o-.5*v,d=r-.5*a;s<0&&(s=0),d<0&&(d=0),s+v>t&&(s=t-v),d+a>w&&(d=w-a),e("#overview_window_view_box").css("top",d+"px"),e("#overview_window_view_box").css("left",s+"px"),n()})),{name:"overview window",canvasUpdated:a,workareaResized:v}}})}}}));
|
||||
|
||||
1732
dist/editor/system/extensions/ext-panning.js
vendored
1732
dist/editor/system/extensions/ext-panning.js
vendored
File diff suppressed because it is too large
Load Diff
@@ -1,41 +1 @@
|
||||
System.register([], function (exports) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: function () {
|
||||
|
||||
// TODO: Might add support for "exportImage" custom
|
||||
// handler as in "ext-server_opensave.js" (and in savefile.php)
|
||||
var extPhp_savefile = exports('default', {
|
||||
name: 'php_savefile',
|
||||
init: function init(_ref) {
|
||||
var $ = _ref.$;
|
||||
var svgEditor = this;
|
||||
var extPath = svgEditor.curConfig.extPath,
|
||||
svgCanvas = svgEditor.canvas;
|
||||
/**
|
||||
* Get file name out of SVGEdit document title.
|
||||
* @returns {string}
|
||||
*/
|
||||
|
||||
function getFileNameFromTitle() {
|
||||
var title = svgCanvas.getDocumentTitle();
|
||||
return title.trim();
|
||||
}
|
||||
|
||||
var saveSvgAction = extPath + 'savefile.php';
|
||||
svgEditor.setCustomHandlers({
|
||||
save: function save(win, data) {
|
||||
var svg = '<?xml version="1.0" encoding="UTF-8"?>\n' + data,
|
||||
filename = getFileNameFromTitle();
|
||||
$.post(saveSvgAction, {
|
||||
output_svg: svg,
|
||||
filename: filename
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register([],(function(e){"use strict";return{execute:function(){e("default",{name:"php_savefile",init:function init(e){var t=e.$,n=this,i=n.curConfig.extPath,s=n.canvas;var a=i+"savefile.php";n.setCustomHandlers({save:function save(e,n){var i='<?xml version="1.0" encoding="UTF-8"?>\n'+n,r=function getFileNameFromTitle(){return s.getDocumentTitle().trim()}();t.post(a,{output_svg:i,filename:r})}})}})}}}));
|
||||
|
||||
2283
dist/editor/system/extensions/ext-placemark.js
vendored
2283
dist/editor/system/extensions/ext-placemark.js
vendored
File diff suppressed because one or more lines are too long
1940
dist/editor/system/extensions/ext-polygon.js
vendored
1940
dist/editor/system/extensions/ext-polygon.js
vendored
File diff suppressed because it is too large
Load Diff
6629
dist/editor/system/extensions/ext-server_moinsave.js
vendored
6629
dist/editor/system/extensions/ext-server_moinsave.js
vendored
File diff suppressed because one or more lines are too long
6877
dist/editor/system/extensions/ext-server_opensave.js
vendored
6877
dist/editor/system/extensions/ext-server_opensave.js
vendored
File diff suppressed because one or more lines are too long
1995
dist/editor/system/extensions/ext-shapes.js
vendored
1995
dist/editor/system/extensions/ext-shapes.js
vendored
File diff suppressed because one or more lines are too long
1909
dist/editor/system/extensions/ext-star.js
vendored
1909
dist/editor/system/extensions/ext-star.js
vendored
File diff suppressed because it is too large
Load Diff
1986
dist/editor/system/extensions/ext-storage.js
vendored
1986
dist/editor/system/extensions/ext-storage.js
vendored
File diff suppressed because it is too large
Load Diff
1789
dist/editor/system/extensions/ext-webappfind.js
vendored
1789
dist/editor/system/extensions/ext-webappfind.js
vendored
File diff suppressed because it is too large
Load Diff
1716
dist/editor/system/extensions/ext-xdomain-messaging.js
vendored
1716
dist/editor/system/extensions/ext-xdomain-messaging.js
vendored
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user