add extensions and locales
This commit is contained in:
12
dist/editor/extensions/allowedMimeTypes.php
vendored
12
dist/editor/extensions/allowedMimeTypes.php
vendored
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
|
||||
$allowedMimeTypesBySuffix = array(
|
||||
'svg' => 'image/svg+xml;charset=UTF-8',
|
||||
'png' => 'image/png',
|
||||
'jpeg' => 'image/jpeg',
|
||||
'bmp' => 'image/bmp',
|
||||
'webp' => 'image/webp',
|
||||
'pdf' => 'application/pdf'
|
||||
);
|
||||
|
||||
?>
|
||||
41
dist/editor/extensions/closepath_icons.svg
vendored
41
dist/editor/extensions/closepath_icons.svg
vendored
@@ -1,41 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<g id="tool_closepath">
|
||||
<svg viewBox="0 0 300 300" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g>
|
||||
<title>Layer 1</title>
|
||||
<path stroke="#000" stroke-width="15" fill="#ffc8c8" d="m121.5,40l-84,106l27,115l166,2l29,-111"/>
|
||||
<line x1="240" y1="136" x2="169.5" y2="74" stroke="#A00" stroke-width="25" fill="none"/>
|
||||
<path stroke="none" fill ="#A00" d="m158,65l31,74l-3,-50l51,-3z"/>
|
||||
<g stroke-width="15" stroke="#00f" fill="#0ff">
|
||||
<circle r="30" cy="41" cx="123"/>
|
||||
<circle r="30" cy="146" cx="40"/>
|
||||
<circle r="30" cy="260" cx="69"/>
|
||||
<circle r="30" cy="260" cx="228"/>
|
||||
<circle r="30" cy="148" cx="260"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</g>
|
||||
<g id="tool_openpath">
|
||||
<svg viewBox="0 0 300 300" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g>
|
||||
<title>Layer 1</title>
|
||||
<path stroke="#000" stroke-width="15" fill="#ffc8c8" d="m123.5,38l-84,106l27,115l166,2l29,-111"/>
|
||||
<line x1="276.5" y1="153" x2="108.5" y2="24" stroke="#000" stroke-width="10" fill="none"/>
|
||||
<g stroke-width="15" stroke="#00f" fill="#0ff">
|
||||
<circle r="30" cy="41" cx="123"/>
|
||||
<circle r="30" cy="146" cx="40"/>
|
||||
<circle r="30" cy="260" cx="69"/>
|
||||
<circle r="30" cy="260" cx="228"/>
|
||||
<circle r="30" cy="148" cx="260"/>
|
||||
</g>
|
||||
<g stroke="#A00" stroke-width="15" fill="none">
|
||||
<line x1="168" y1="24" x2="210" y2="150"/>
|
||||
<line x1="210" y1="24" x2="168" y2="150"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</g>
|
||||
|
||||
<g id="svg_eof"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.5 KiB |
2290
dist/editor/extensions/ext-arrows.js
vendored
2290
dist/editor/extensions/ext-arrows.js
vendored
File diff suppressed because it is too large
Load Diff
1
dist/editor/extensions/ext-arrows.js.map
vendored
Normal file
1
dist/editor/extensions/ext-arrows.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
4181
dist/editor/extensions/ext-closepath.js
vendored
4181
dist/editor/extensions/ext-closepath.js
vendored
File diff suppressed because it is too large
Load Diff
1
dist/editor/extensions/ext-closepath.js.map
vendored
Normal file
1
dist/editor/extensions/ext-closepath.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
2913
dist/editor/extensions/ext-connector.js
vendored
2913
dist/editor/extensions/ext-connector.js
vendored
File diff suppressed because it is too large
Load Diff
1
dist/editor/extensions/ext-connector.js.map
vendored
Normal file
1
dist/editor/extensions/ext-connector.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
1893
dist/editor/extensions/ext-eyedropper.js
vendored
1893
dist/editor/extensions/ext-eyedropper.js
vendored
File diff suppressed because it is too large
Load Diff
1
dist/editor/extensions/ext-eyedropper.js.map
vendored
Normal file
1
dist/editor/extensions/ext-eyedropper.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
2203
dist/editor/extensions/ext-foreignobject.js
vendored
2203
dist/editor/extensions/ext-foreignobject.js
vendored
File diff suppressed because it is too large
Load Diff
1
dist/editor/extensions/ext-foreignobject.js.map
vendored
Normal file
1
dist/editor/extensions/ext-foreignobject.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
1954
dist/editor/extensions/ext-grid.js
vendored
1954
dist/editor/extensions/ext-grid.js
vendored
File diff suppressed because it is too large
Load Diff
1
dist/editor/extensions/ext-grid.js.map
vendored
Normal file
1
dist/editor/extensions/ext-grid.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
1800
dist/editor/extensions/ext-helloworld.js
vendored
1800
dist/editor/extensions/ext-helloworld.js
vendored
File diff suppressed because it is too large
Load Diff
1
dist/editor/extensions/ext-helloworld.js.map
vendored
Normal file
1
dist/editor/extensions/ext-helloworld.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
2689
dist/editor/extensions/ext-imagelib.js
vendored
2689
dist/editor/extensions/ext-imagelib.js
vendored
File diff suppressed because it is too large
Load Diff
1
dist/editor/extensions/ext-imagelib.js.map
vendored
Normal file
1
dist/editor/extensions/ext-imagelib.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
14
dist/editor/extensions/ext-imagelib.xml
vendored
14
dist/editor/extensions/ext-imagelib.xml
vendored
@@ -1,14 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<g id="tool_imagelib">
|
||||
<svg width="201" height="211" xmlns="http://www.w3.org/2000/svg">
|
||||
<g>
|
||||
<path fill="#efe8b8" stroke="#d6c47c" stroke-linecap="round" d="m2.75,49.51761l56.56,-46.26761c12.73,8.25 25.71001,7 46.44,0.75l-56.03999,47.23944l-22.72002,25.01056l-24.23999,-26.73239z" id="svg_2" stroke-width="7"/>
|
||||
<path fill="#a03333" stroke="#3f3f3f" d="m3.75,203.25002c14.33301,7 30.66699,7 46,0l0,-152.00002c-14.66699,8 -32.33301,8 -47,0l1,152.00002zm45.75,-152.25002l56.25,-46.75l0,151l-56,48.00002m-47.25,-154.25002l57.25,-46.5" id="svg_1" stroke-width="7" stroke-linecap="round"/>
|
||||
<path fill="#efe8b8" stroke="#d6c47c" stroke-linecap="round" d="m49.75,49.51801l56.56,-46.26801c12.72998,8.25 25.71002,7 46.44,0.75l-56.03998,47.239l-22.72003,25.011l-24.23999,-26.73199z" stroke-width="7" id="svg_5"/>
|
||||
<path fill="#2f8e2f" stroke="#3f3f3f" d="m50.75,202.25c14.33301,7 30.66699,7.04253 46,0.04253l0,-151.04253c-14.66699,8 -32.33301,8 -47,0l1,151zm45.75,-151.25l56.25,-46.75l0,144.01219l-56,51.98782m-47.25,-151.25002l57.25,-46.5" stroke-width="7" stroke-linecap="round" id="svg_6"/>
|
||||
<path fill="#efe8b8" stroke="#d6c47c" stroke-linecap="round" d="m95.75,49.51801l56.56,-46.26801c12.72998,8.25 25.71002,7 46.44,0.75l-56.03998,47.239l-22.72003,25.011l-24.23999,-26.73199z" stroke-width="7" id="svg_10"/>
|
||||
<path fill="#336393" stroke="#3f3f3f" d="m96.75,200.29445c14.33301,7 30.66699,7 46,0l0,-149.04445c-14.66699,8 -32.33301,8 -47,0l1,149.04445zm45.75,-149.29445l56.25,-46.75l0,148.04445l-56,48m-47.25,-151.29445l57.25,-46.5" stroke-width="7" stroke-linecap="round" id="svg_11"/>
|
||||
</g>
|
||||
</svg>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.6 KiB |
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var en = {
|
||||
name: 'Arrows',
|
||||
langList: [
|
||||
{id: 'arrow_none', textContent: 'No arrow'}
|
||||
@@ -17,3 +17,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default en;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var fr = {
|
||||
name: 'Arrows',
|
||||
langList: [
|
||||
{id: 'arrow_none', textContent: 'Sans flèche'}
|
||||
@@ -17,3 +17,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default fr;
|
||||
|
||||
4
dist/editor/extensions/ext-locale/arrows/zh-CN.js → dist/editor/extensions/ext-locale/arrows/zh_CN.js
vendored
Executable file → Normal file
4
dist/editor/extensions/ext-locale/arrows/zh-CN.js → dist/editor/extensions/ext-locale/arrows/zh_CN.js
vendored
Executable file → Normal file
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var zhCN = {
|
||||
name: '箭头',
|
||||
langList: [
|
||||
{id: 'arrow_none', textContent: '无箭头'}
|
||||
@@ -17,3 +17,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default zhCN;
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var en = {
|
||||
name: 'ClosePath',
|
||||
buttons: [
|
||||
{
|
||||
@@ -9,3 +9,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default en;
|
||||
|
||||
4
dist/editor/extensions/ext-locale/closepath/zh-CN.js → dist/editor/extensions/ext-locale/closepath/zh_CN.js
vendored
Executable file → Normal file
4
dist/editor/extensions/ext-locale/closepath/zh-CN.js → dist/editor/extensions/ext-locale/closepath/zh_CN.js
vendored
Executable file → Normal file
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var zhCN = {
|
||||
name: '闭合路径',
|
||||
buttons: [
|
||||
{
|
||||
@@ -9,3 +9,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default zhCN;
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var en = {
|
||||
name: 'Connector',
|
||||
langList: [
|
||||
{id: 'mode_connect', title: 'Connect two objects'}
|
||||
@@ -9,3 +9,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default en;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var fr = {
|
||||
name: 'Connector',
|
||||
langList: [
|
||||
{id: 'mode_connect', title: 'Connecter deux objets'}
|
||||
@@ -9,3 +9,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default fr;
|
||||
|
||||
4
dist/editor/extensions/ext-locale/connector/zh-CN.js → dist/editor/extensions/ext-locale/connector/zh_CN.js
vendored
Executable file → Normal file
4
dist/editor/extensions/ext-locale/connector/zh-CN.js → dist/editor/extensions/ext-locale/connector/zh_CN.js
vendored
Executable file → Normal file
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var zhCN = {
|
||||
name: '连接器',
|
||||
langList: [
|
||||
{id: 'mode_connect', title: '连接两个对象'}
|
||||
@@ -9,3 +9,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default zhCN;
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var en = {
|
||||
name: 'eyedropper',
|
||||
buttons: [
|
||||
{
|
||||
@@ -7,3 +7,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default en;
|
||||
|
||||
4
dist/editor/extensions/ext-locale/eyedropper/zh-CN.js → dist/editor/extensions/ext-locale/eyedropper/zh_CN.js
vendored
Executable file → Normal file
4
dist/editor/extensions/ext-locale/eyedropper/zh-CN.js → dist/editor/extensions/ext-locale/eyedropper/zh_CN.js
vendored
Executable file → Normal file
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var zhCN = {
|
||||
name: '滴管',
|
||||
buttons: [
|
||||
{
|
||||
@@ -7,3 +7,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default zhCN;
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var en = {
|
||||
name: 'foreignObject',
|
||||
buttons: [
|
||||
{
|
||||
@@ -23,3 +23,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default en;
|
||||
|
||||
4
dist/editor/extensions/ext-locale/foreignobject/zh-CN.js → dist/editor/extensions/ext-locale/foreignobject/zh_CN.js
vendored
Executable file → Normal file
4
dist/editor/extensions/ext-locale/foreignobject/zh-CN.js → dist/editor/extensions/ext-locale/foreignobject/zh_CN.js
vendored
Executable file → Normal file
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var zhCN = {
|
||||
name: '外部对象',
|
||||
buttons: [
|
||||
{
|
||||
@@ -23,3 +23,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default zhCN;
|
||||
4
dist/editor/extensions/ext-locale/grid/en.js
vendored
4
dist/editor/extensions/ext-locale/grid/en.js
vendored
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var en = {
|
||||
name: 'View Grid',
|
||||
buttons: [
|
||||
{
|
||||
@@ -6,3 +6,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default en;
|
||||
|
||||
4
dist/editor/extensions/ext-locale/grid/zh-CN.js → dist/editor/extensions/ext-locale/grid/zh_CN.js
vendored
Executable file → Normal file
4
dist/editor/extensions/ext-locale/grid/zh-CN.js → dist/editor/extensions/ext-locale/grid/zh_CN.js
vendored
Executable file → Normal file
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var zhCN = {
|
||||
name: '网格视图',
|
||||
buttons: [
|
||||
{
|
||||
@@ -6,3 +6,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default zhCN;
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var en = {
|
||||
name: 'Hello World',
|
||||
text: 'Hello World!\n\nYou clicked here: {x}, {y}',
|
||||
buttons: [
|
||||
@@ -7,3 +7,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default en;
|
||||
|
||||
4
dist/editor/extensions/ext-locale/helloworld/zh-CN.js → dist/editor/extensions/ext-locale/helloworld/zh_CN.js
vendored
Executable file → Normal file
4
dist/editor/extensions/ext-locale/helloworld/zh-CN.js → dist/editor/extensions/ext-locale/helloworld/zh_CN.js
vendored
Executable file → Normal file
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var zhCN = {
|
||||
name: 'Hello World',
|
||||
text: 'Hello World!\n\n 请点击: {x}, {y}',
|
||||
buttons: [
|
||||
@@ -7,3 +7,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default zhCN;
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var de = {
|
||||
select_lib: 'Select an image library',
|
||||
show_list: 'Show library list',
|
||||
import_single: 'Import single',
|
||||
@@ -31,3 +31,5 @@ export default {
|
||||
*/
|
||||
]
|
||||
};
|
||||
|
||||
export default de;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var en = {
|
||||
select_lib: 'Select an image library',
|
||||
show_list: 'Show library list',
|
||||
import_single: 'Import single',
|
||||
@@ -36,3 +36,5 @@ export default {
|
||||
*/
|
||||
]
|
||||
};
|
||||
|
||||
export default en;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var fr = {
|
||||
select_lib: "Choisir une bibliothèque d'images",
|
||||
show_list: 'show_list',
|
||||
import_single: 'import_single',
|
||||
@@ -31,3 +31,5 @@ export default {
|
||||
*/
|
||||
]
|
||||
};
|
||||
|
||||
export default fr;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var pl = {
|
||||
select_lib: 'Select an image library',
|
||||
show_list: 'Show library list',
|
||||
import_single: 'Import single',
|
||||
@@ -31,3 +31,5 @@ export default {
|
||||
*/
|
||||
]
|
||||
};
|
||||
|
||||
export default pl;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var ptBR = {
|
||||
select_lib: 'Select an image library',
|
||||
show_list: 'Show library list',
|
||||
import_single: 'Import single',
|
||||
@@ -31,3 +31,5 @@ export default {
|
||||
*/
|
||||
]
|
||||
};
|
||||
|
||||
export default ptBR;
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var ro = {
|
||||
select_lib: 'Select an image library',
|
||||
show_list: 'Show library list',
|
||||
import_single: 'Import single',
|
||||
@@ -31,3 +31,5 @@ export default {
|
||||
*/
|
||||
]
|
||||
};
|
||||
|
||||
export default ro;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var sk = {
|
||||
select_lib: 'Select an image library',
|
||||
show_list: 'Show library list',
|
||||
import_single: 'Import single',
|
||||
@@ -31,3 +31,5 @@ export default {
|
||||
*/
|
||||
]
|
||||
};
|
||||
|
||||
export default sk;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var sl = {
|
||||
select_lib: 'Select an image library',
|
||||
show_list: 'Show library list',
|
||||
import_single: 'Import single',
|
||||
@@ -31,3 +31,5 @@ export default {
|
||||
*/
|
||||
]
|
||||
};
|
||||
|
||||
export default sl;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var zhCN = {
|
||||
select_lib: 'Select an image library',
|
||||
show_list: 'Show library list',
|
||||
import_single: 'Import single',
|
||||
@@ -31,3 +31,5 @@ export default {
|
||||
*/
|
||||
]
|
||||
};
|
||||
|
||||
export default zhCN;
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var en = {
|
||||
name: 'Markers',
|
||||
langList: [
|
||||
{id: 'nomarker', title: 'No Marker'},
|
||||
@@ -44,3 +44,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default en;
|
||||
|
||||
4
dist/editor/extensions/ext-locale/markers/zh-CN.js → dist/editor/extensions/ext-locale/markers/zh_CN.js
vendored
Executable file → Normal file
4
dist/editor/extensions/ext-locale/markers/zh-CN.js → dist/editor/extensions/ext-locale/markers/zh_CN.js
vendored
Executable file → Normal file
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var zhCN = {
|
||||
name: '标记',
|
||||
langList: [
|
||||
{id: 'nomarker', title: '无标记'},
|
||||
@@ -44,3 +44,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default zhCN;
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var en = {
|
||||
name: 'MathJax',
|
||||
buttons: [
|
||||
{
|
||||
@@ -6,3 +6,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default en;
|
||||
|
||||
4
dist/editor/extensions/ext-locale/mathjax/zh-CN.js → dist/editor/extensions/ext-locale/mathjax/zh_CN.js
vendored
Executable file → Normal file
4
dist/editor/extensions/ext-locale/mathjax/zh-CN.js → dist/editor/extensions/ext-locale/mathjax/zh_CN.js
vendored
Executable file → Normal file
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var zhCN = {
|
||||
name: '数学',
|
||||
buttons: [
|
||||
{
|
||||
@@ -6,3 +6,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default zhCN;
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var en = {
|
||||
name: 'Extension Panning',
|
||||
buttons: [
|
||||
{
|
||||
@@ -6,3 +6,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default en;
|
||||
|
||||
4
dist/editor/extensions/ext-locale/panning/zh-CN.js → dist/editor/extensions/ext-locale/panning/zh_CN.js
vendored
Executable file → Normal file
4
dist/editor/extensions/ext-locale/panning/zh-CN.js → dist/editor/extensions/ext-locale/panning/zh_CN.js
vendored
Executable file → Normal file
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var zhCN = {
|
||||
name: '移动',
|
||||
buttons: [
|
||||
{
|
||||
@@ -6,3 +6,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default zhCN;
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var en = {
|
||||
name: 'placemark',
|
||||
langList: [
|
||||
{id: 'nomarker', title: 'No Marker'},
|
||||
@@ -38,3 +38,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default en;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var en = {
|
||||
name: 'polygon',
|
||||
buttons: [
|
||||
{
|
||||
@@ -12,3 +12,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default en;
|
||||
|
||||
4
dist/editor/extensions/ext-locale/polygon/zh-CN.js → dist/editor/extensions/ext-locale/polygon/zh_CN.js
vendored
Executable file → Normal file
4
dist/editor/extensions/ext-locale/polygon/zh-CN.js → dist/editor/extensions/ext-locale/polygon/zh_CN.js
vendored
Executable file → Normal file
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var zhCN = {
|
||||
name: '多边形',
|
||||
buttons: [
|
||||
{
|
||||
@@ -12,3 +12,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default zhCN;
|
||||
@@ -1,4 +1,6 @@
|
||||
export default {
|
||||
var en = {
|
||||
saved: 'Saved! Return to Item View!',
|
||||
hiddenframe: 'Moinsave frame to store hidden values'
|
||||
};
|
||||
|
||||
export default en;
|
||||
|
||||
4
dist/editor/extensions/ext-locale/server_moinsave/zh-CN.js → dist/editor/extensions/ext-locale/server_moinsave/zh_CN.js
vendored
Executable file → Normal file
4
dist/editor/extensions/ext-locale/server_moinsave/zh-CN.js → dist/editor/extensions/ext-locale/server_moinsave/zh_CN.js
vendored
Executable file → Normal file
@@ -1,4 +1,6 @@
|
||||
export default {
|
||||
var zhCN = {
|
||||
saved: '已保存! 返回视图!',
|
||||
hiddenframe: 'Moinsave frame to store hidden values'
|
||||
};
|
||||
|
||||
export default zhCN;
|
||||
@@ -1,4 +1,6 @@
|
||||
export default {
|
||||
var en = {
|
||||
uploading: 'Uploading...',
|
||||
hiddenframe: 'Opensave frame to store hidden values'
|
||||
};
|
||||
|
||||
export default en;
|
||||
|
||||
4
dist/editor/extensions/ext-locale/server_opensave/zh-CN.js → dist/editor/extensions/ext-locale/server_opensave/zh_CN.js
vendored
Executable file → Normal file
4
dist/editor/extensions/ext-locale/server_opensave/zh-CN.js → dist/editor/extensions/ext-locale/server_opensave/zh_CN.js
vendored
Executable file → Normal file
@@ -1,4 +1,6 @@
|
||||
export default {
|
||||
var zhCN = {
|
||||
uploading: '正在上传...',
|
||||
hiddenframe: 'Opensave frame to store hidden values'
|
||||
};
|
||||
|
||||
export default zhCN;
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var en = {
|
||||
loading: 'Loading...',
|
||||
categories: {
|
||||
basic: 'Basic',
|
||||
@@ -22,3 +22,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default en;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var fr = {
|
||||
loading: 'Loading...',
|
||||
categories: {
|
||||
basic: 'Basic',
|
||||
@@ -22,3 +22,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default fr;
|
||||
|
||||
4
dist/editor/extensions/ext-locale/shapes/zh-CN.js → dist/editor/extensions/ext-locale/shapes/zh_CN.js
vendored
Executable file → Normal file
4
dist/editor/extensions/ext-locale/shapes/zh-CN.js → dist/editor/extensions/ext-locale/shapes/zh_CN.js
vendored
Executable file → Normal file
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var zhCN = {
|
||||
loading: '正在加载...',
|
||||
categories: {
|
||||
basic: '基本',
|
||||
@@ -22,3 +22,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default zhCN;
|
||||
4
dist/editor/extensions/ext-locale/star/en.js
vendored
4
dist/editor/extensions/ext-locale/star/en.js
vendored
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var en = {
|
||||
name: 'star',
|
||||
buttons: [
|
||||
{
|
||||
@@ -20,3 +20,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default en;
|
||||
|
||||
4
dist/editor/extensions/ext-locale/star/zh-CN.js → dist/editor/extensions/ext-locale/star/zh_CN.js
vendored
Executable file → Normal file
4
dist/editor/extensions/ext-locale/star/zh-CN.js → dist/editor/extensions/ext-locale/star/zh_CN.js
vendored
Executable file → Normal file
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var zhCN = {
|
||||
name: '星形',
|
||||
buttons: [
|
||||
{
|
||||
@@ -20,3 +20,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default zhCN;
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var de = {
|
||||
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 ' +
|
||||
@@ -12,3 +12,5 @@ export default {
|
||||
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.'
|
||||
};
|
||||
|
||||
export default de;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var en = {
|
||||
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 ' +
|
||||
@@ -12,3 +12,5 @@ export default {
|
||||
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.'
|
||||
};
|
||||
|
||||
export default en;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var fr = {
|
||||
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é, ' +
|
||||
@@ -12,3 +12,5 @@ export default {
|
||||
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."
|
||||
};
|
||||
|
||||
export default fr;
|
||||
|
||||
4
dist/editor/extensions/ext-locale/storage/zh-CN.js → dist/editor/extensions/ext-locale/storage/zh_CN.js
vendored
Executable file → Normal file
4
dist/editor/extensions/ext-locale/storage/zh-CN.js → dist/editor/extensions/ext-locale/storage/zh_CN.js
vendored
Executable file → Normal file
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var zhCN = {
|
||||
message: '默认情况下, SVG-Edit 在本地保存配置参数和画布内容. 如果基于隐私考虑, ' +
|
||||
'您可以勾选以下选项修改配置.',
|
||||
storagePrefsAndContent: '本地存储配置参数和SVG图',
|
||||
@@ -9,3 +9,5 @@ export default {
|
||||
rememberLabel: '记住选择?',
|
||||
rememberTooltip: '如果您勾选记住选择,将不再弹出本窗口.'
|
||||
};
|
||||
|
||||
export default zhCN;
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var en = {
|
||||
name: 'WebAppFind',
|
||||
buttons: [
|
||||
{
|
||||
@@ -6,3 +6,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default en;
|
||||
|
||||
4
dist/editor/extensions/ext-locale/webappfind/zh-CN.js → dist/editor/extensions/ext-locale/webappfind/zh_CN.js
vendored
Executable file → Normal file
4
dist/editor/extensions/ext-locale/webappfind/zh-CN.js → dist/editor/extensions/ext-locale/webappfind/zh_CN.js
vendored
Executable file → Normal file
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
var zhCN = {
|
||||
name: 'WebAppFind',
|
||||
buttons: [
|
||||
{
|
||||
@@ -6,3 +6,5 @@ export default {
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default zhCN;
|
||||
2850
dist/editor/extensions/ext-markers.js
vendored
2850
dist/editor/extensions/ext-markers.js
vendored
File diff suppressed because it is too large
Load Diff
1
dist/editor/extensions/ext-markers.js.map
vendored
Normal file
1
dist/editor/extensions/ext-markers.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
2170
dist/editor/extensions/ext-mathjax.js
vendored
2170
dist/editor/extensions/ext-mathjax.js
vendored
File diff suppressed because it is too large
Load Diff
1
dist/editor/extensions/ext-mathjax.js.map
vendored
Normal file
1
dist/editor/extensions/ext-mathjax.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
146
dist/editor/extensions/ext-overview_window.js
vendored
146
dist/editor/extensions/ext-overview_window.js
vendored
@@ -6,79 +6,61 @@
|
||||
* @copyright 2013 James Sacksteder
|
||||
*
|
||||
*/
|
||||
export default {
|
||||
var extOverview_window = {
|
||||
name: 'overview_window',
|
||||
init ({$, isChrome, isIE}) {
|
||||
const overviewWindowGlobals = {};
|
||||
// Disabled in Chrome 48-, see https://github.com/SVG-Edit/svgedit/issues/26 and
|
||||
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()) {
|
||||
const verIndex = navigator.userAgent.indexOf('Chrome/') + 7;
|
||||
const chromeVersion = Number.parseInt(navigator.userAgent.substring(verIndex));
|
||||
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.
|
||||
|
||||
// Define and insert the base html element.
|
||||
const 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.
|
||||
const updateViewBox = function () {
|
||||
const portHeight = Number.parseFloat($('#workarea').css('height'));
|
||||
const portWidth = Number.parseFloat($('#workarea').css('width'));
|
||||
const portX = $('#workarea').scrollLeft();
|
||||
const portY = $('#workarea').scrollTop();
|
||||
const windowWidth = Number.parseFloat($('#svgcanvas').css('width'));
|
||||
const windowHeight = Number.parseFloat($('#svgcanvas').css('height'));
|
||||
const overviewWidth = $('#overviewMiniView').attr('width');
|
||||
const overviewHeight = $('#overviewMiniView').attr('height');
|
||||
|
||||
const viewBoxX = portX / windowWidth * overviewWidth;
|
||||
const viewBoxY = portY / windowHeight * overviewHeight;
|
||||
const viewBoxWidth = portWidth / windowWidth * overviewWidth;
|
||||
const viewBoxHeight = portHeight / windowHeight * overviewHeight;
|
||||
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)) {
|
||||
if (!overviewWindowGlobals.viewBoxDragging) {
|
||||
updateViewBox();
|
||||
}
|
||||
});
|
||||
$('#workarea').resize(updateViewBox);
|
||||
updateViewBox();
|
||||
updateViewBox(); // Compensate for changes in zoom and canvas size.
|
||||
|
||||
// Compensate for changes in zoom and canvas size.
|
||||
const updateViewDimensions = function () {
|
||||
const viewWidth = $('#svgroot').attr('width');
|
||||
const viewHeight = $('#svgroot').attr('height');
|
||||
var updateViewDimensions = function updateViewDimensions() {
|
||||
var viewWidth = $('#svgroot').attr('width');
|
||||
var viewHeight = $('#svgroot').attr('height');
|
||||
var viewX = 640;
|
||||
var viewY = 480;
|
||||
|
||||
let viewX = 640;
|
||||
let 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.
|
||||
@@ -90,57 +72,63 @@ export default {
|
||||
viewY = 0;
|
||||
}
|
||||
|
||||
const svgWidthOld = $('#overviewMiniView').attr('width');
|
||||
const svgHeightNew = viewHeight / viewWidth * svgWidthOld;
|
||||
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.
|
||||
updateViewDimensions(); // Set up the overview window as a controller for the view port.
|
||||
|
||||
overviewWindowGlobals.viewBoxDragging = false;
|
||||
const updateViewPortFromViewBox = function () {
|
||||
const windowWidth = Number.parseFloat($('#svgcanvas').css('width'));
|
||||
const windowHeight = Number.parseFloat($('#svgcanvas').css('height'));
|
||||
const overviewWidth = $('#overviewMiniView').attr('width');
|
||||
const overviewHeight = $('#overviewMiniView').attr('height');
|
||||
const viewBoxX = Number.parseFloat($('#overview_window_view_box').css('left'));
|
||||
const viewBoxY = Number.parseFloat($('#overview_window_view_box').css('top'));
|
||||
|
||||
const portX = viewBoxX / overviewWidth * windowWidth;
|
||||
const portY = viewBoxY / overviewHeight * windowHeight;
|
||||
|
||||
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 () { overviewWindowGlobals.viewBoxDragging = true; },
|
||||
stop () { overviewWindowGlobals.viewBoxDragging = false; }
|
||||
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.
|
||||
const mouseX = (evt.offsetX || evt.originalEvent.layerX);
|
||||
const mouseY = (evt.offsetY || evt.originalEvent.layerY);
|
||||
const overviewWidth = $('#overviewMiniView').attr('width');
|
||||
const overviewHeight = $('#overviewMiniView').attr('height');
|
||||
const viewBoxWidth = Number.parseFloat($('#overview_window_view_box').css('min-width'));
|
||||
const viewBoxHeight = Number.parseFloat($('#overview_window_view_box').css('min-height'));
|
||||
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
|
||||
|
||||
let viewBoxX = mouseX - 0.5 * viewBoxWidth;
|
||||
let 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;
|
||||
}
|
||||
@@ -149,7 +137,6 @@ export default {
|
||||
$('#overview_window_view_box').css('left', viewBoxX + 'px');
|
||||
updateViewPortFromViewBox();
|
||||
});
|
||||
|
||||
return {
|
||||
name: 'overview window',
|
||||
canvasUpdated: updateViewDimensions,
|
||||
@@ -157,3 +144,6 @@ export default {
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
export default extOverview_window;
|
||||
//# sourceMappingURL=ext-overview_window.js.map
|
||||
|
||||
1
dist/editor/extensions/ext-overview_window.js.map
vendored
Normal file
1
dist/editor/extensions/ext-overview_window.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
1753
dist/editor/extensions/ext-panning.js
vendored
1753
dist/editor/extensions/ext-panning.js
vendored
File diff suppressed because it is too large
Load Diff
1
dist/editor/extensions/ext-panning.js.map
vendored
Normal file
1
dist/editor/extensions/ext-panning.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ext-panning.js","sources":["../../../src/editor/extensions/ext-panning.js"],"sourcesContent":["/**\n * @file ext-panning.js\n *\n * @license MIT\n *\n * @copyright 2013 Luis Aguirre\n *\n */\n/*\n This is a very basic SVG-Edit extension to let tablet/mobile devices pan without problem\n*/\nexport default {\n name: 'panning',\n async init ({importLocale}) {\n const strings = await importLocale();\n const svgEditor = this;\n const svgCanvas = svgEditor.canvas;\n const buttons = [{\n id: 'ext-panning',\n icon: svgEditor.curConfig.extIconsPath + 'panning.png',\n type: 'mode',\n events: {\n click () {\n svgCanvas.setMode('ext-panning');\n }\n }\n }];\n return {\n name: strings.name,\n svgicons: svgEditor.curConfig.extIconsPath + 'ext-panning.xml',\n buttons: strings.buttons.map((button, i) => {\n return Object.assign(buttons[i], button);\n }),\n mouseDown () {\n if (svgCanvas.getMode() === 'ext-panning') {\n svgEditor.setPanning(true);\n return {started: true};\n }\n return undefined;\n },\n mouseUp () {\n if (svgCanvas.getMode() === 'ext-panning') {\n svgEditor.setPanning(false);\n return {\n keep: false,\n element: null\n };\n }\n return undefined;\n }\n };\n }\n};\n"],"names":["name","init","importLocale","strings","svgEditor","svgCanvas","canvas","buttons","id","icon","curConfig","extIconsPath","type","events","click","setMode","svgicons","map","button","i","Object","assign","mouseDown","getMode","setPanning","started","undefined","mouseUp","keep","element"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;AAQA;;;AAGA,iBAAe;AACbA,EAAAA,IAAI,EAAE,SADO;AAEPC,EAAAA,IAFO,sBAEe;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAfC,cAAAA,YAAe,QAAfA,YAAe;AAAA;AAAA,qBACJA,YAAY,EADR;;AAAA;AACpBC,cAAAA,OADoB;AAEpBC,cAAAA,SAFoB,GAER,KAFQ;AAGpBC,cAAAA,SAHoB,GAGRD,SAAS,CAACE,MAHF;AAIpBC,cAAAA,OAJoB,GAIV,CAAC;AACfC,gBAAAA,EAAE,EAAE,aADW;AAEfC,gBAAAA,IAAI,EAAEL,SAAS,CAACM,SAAV,CAAoBC,YAApB,GAAmC,aAF1B;AAGfC,gBAAAA,IAAI,EAAE,MAHS;AAIfC,gBAAAA,MAAM,EAAE;AACNC,kBAAAA,KADM,mBACG;AACPT,oBAAAA,SAAS,CAACU,OAAV,CAAkB,aAAlB;AACD;AAHK;AAJO,eAAD,CAJU;AAAA,+CAcnB;AACLf,gBAAAA,IAAI,EAAEG,OAAO,CAACH,IADT;AAELgB,gBAAAA,QAAQ,EAAEZ,SAAS,CAACM,SAAV,CAAoBC,YAApB,GAAmC,iBAFxC;AAGLJ,gBAAAA,OAAO,EAAEJ,OAAO,CAACI,OAAR,CAAgBU,GAAhB,CAAoB,UAACC,MAAD,EAASC,CAAT,EAAe;AAC1C,yBAAOC,MAAM,CAACC,MAAP,CAAcd,OAAO,CAACY,CAAD,CAArB,EAA0BD,MAA1B,CAAP;AACD,iBAFQ,CAHJ;AAMLI,gBAAAA,SANK,uBAMQ;AACX,sBAAIjB,SAAS,CAACkB,OAAV,OAAwB,aAA5B,EAA2C;AACzCnB,oBAAAA,SAAS,CAACoB,UAAV,CAAqB,IAArB;AACA,2BAAO;AAACC,sBAAAA,OAAO,EAAE;AAAV,qBAAP;AACD;;AACD,yBAAOC,SAAP;AACD,iBAZI;AAaLC,gBAAAA,OAbK,qBAaM;AACT,sBAAItB,SAAS,CAACkB,OAAV,OAAwB,aAA5B,EAA2C;AACzCnB,oBAAAA,SAAS,CAACoB,UAAV,CAAqB,KAArB;AACA,2BAAO;AACLI,sBAAAA,IAAI,EAAE,KADD;AAELC,sBAAAA,OAAO,EAAE;AAFJ,qBAAP;AAID;;AACD,yBAAOH,SAAP;AACD;AAtBI,eAdmB;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsC3B;AAxCY,CAAf;;;;"}
|
||||
6
dist/editor/extensions/ext-panning.xml
vendored
6
dist/editor/extensions/ext-panning.xml
vendored
@@ -1,6 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<g id="ext-panning">
|
||||
<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300">
|
||||
<path d="m8.00038,150.84583l51.60005,-51.78485l0,25.89205l26.28711,0l35.45559,-0.20444l-0.72941,-24.34613l0.93304,-37.61812l-25.79949,0l51.5997,-51.78508l51.60047,51.78508l-25.80024,0l0,33.87256l1.13677,26.21891l21.45996,2.07722l39.3497,0l0,-25.89205l51.60043,51.78485l-51.60043,51.78563l0,-25.89281l-38.41666,-0.93639l-20.52692,0.20445l-3.00285,42.13754l0,20.76308l25.80024,0l-51.60047,51.78561l-51.5997,-51.78561l25.79949,0l0,-20.76308l0.72941,-41.20115l-41.98688,-0.20445l-20.68886,0l0,25.89281l-51.60005,-51.78563z" fill="#b2b2b2" id="svg_1" stroke="#000000" stroke-width="10"/> </svg>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 789 B |
37
dist/editor/extensions/ext-php_savefile.js
vendored
37
dist/editor/extensions/ext-php_savefile.js
vendored
@@ -1,30 +1,35 @@
|
||||
// TODO: Might add support for "exportImage" custom
|
||||
// handler as in "ext-server_opensave.js" (and in savefile.php)
|
||||
|
||||
export default {
|
||||
var extPhp_savefile = {
|
||||
name: 'php_savefile',
|
||||
init ({$}) {
|
||||
const svgEditor = this;
|
||||
const {
|
||||
curConfig: {extPath},
|
||||
canvas: svgCanvas
|
||||
} = svgEditor;
|
||||
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 () {
|
||||
const title = svgCanvas.getDocumentTitle();
|
||||
|
||||
function getFileNameFromTitle() {
|
||||
var title = svgCanvas.getDocumentTitle();
|
||||
return title.trim();
|
||||
}
|
||||
const saveSvgAction = extPath + 'savefile.php';
|
||||
svgEditor.setCustomHandlers({
|
||||
save (win, data) {
|
||||
const svg = '<?xml version="1.0" encoding="UTF-8"?>\n' + data,
|
||||
filename = getFileNameFromTitle();
|
||||
|
||||
$.post(saveSvgAction, {output_svg: svg, filename});
|
||||
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
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
export default extPhp_savefile;
|
||||
//# sourceMappingURL=ext-php_savefile.js.map
|
||||
|
||||
1
dist/editor/extensions/ext-php_savefile.js.map
vendored
Normal file
1
dist/editor/extensions/ext-php_savefile.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ext-php_savefile.js","sources":["../../../src/editor/extensions/ext-php_savefile.js"],"sourcesContent":["// TODO: Might add support for \"exportImage\" custom\n// handler as in \"ext-server_opensave.js\" (and in savefile.php)\n\nexport default {\n name: 'php_savefile',\n init ({$}) {\n const svgEditor = this;\n const {\n curConfig: {extPath},\n canvas: svgCanvas\n } = svgEditor;\n /**\n * Get file name out of SVGEdit document title.\n * @returns {string}\n */\n function getFileNameFromTitle () {\n const title = svgCanvas.getDocumentTitle();\n return title.trim();\n }\n const saveSvgAction = extPath + 'savefile.php';\n svgEditor.setCustomHandlers({\n save (win, data) {\n const svg = '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\\n' + data,\n filename = getFileNameFromTitle();\n\n $.post(saveSvgAction, {output_svg: svg, filename});\n }\n });\n }\n};\n"],"names":["name","init","$","svgEditor","extPath","curConfig","svgCanvas","canvas","getFileNameFromTitle","title","getDocumentTitle","trim","saveSvgAction","setCustomHandlers","save","win","data","svg","filename","post","output_svg"],"mappings":"AAAA;AACA;AAEA,sBAAe;AACbA,EAAAA,IAAI,EAAE,cADO;AAEbC,EAAAA,IAFa,sBAEF;AAAA,QAAJC,CAAI,QAAJA,CAAI;AACT,QAAMC,SAAS,GAAG,IAAlB;AADS,QAGKC,OAHL,GAKLD,SALK,CAGPE,SAHO,CAGKD,OAHL;AAAA,QAICE,SAJD,GAKLH,SALK,CAIPI,MAJO;AAMT;;;;;AAIA,aAASC,oBAAT,GAAiC;AAC/B,UAAMC,KAAK,GAAGH,SAAS,CAACI,gBAAV,EAAd;AACA,aAAOD,KAAK,CAACE,IAAN,EAAP;AACD;;AACD,QAAMC,aAAa,GAAGR,OAAO,GAAG,cAAhC;AACAD,IAAAA,SAAS,CAACU,iBAAV,CAA4B;AAC1BC,MAAAA,IAD0B,gBACpBC,GADoB,EACfC,IADe,EACT;AACf,YAAMC,GAAG,GAAG,6CAA6CD,IAAzD;AAAA,YACEE,QAAQ,GAAGV,oBAAoB,EADjC;AAGAN,QAAAA,CAAC,CAACiB,IAAF,CAAOP,aAAP,EAAsB;AAACQ,UAAAA,UAAU,EAAEH,GAAb;AAAkBC,UAAAA,QAAQ,EAARA;AAAlB,SAAtB;AACD;AANyB,KAA5B;AAQD;AAzBY,CAAf;;;;"}
|
||||
2758
dist/editor/extensions/ext-placemark.js
vendored
2758
dist/editor/extensions/ext-placemark.js
vendored
File diff suppressed because it is too large
Load Diff
1
dist/editor/extensions/ext-placemark.js.map
vendored
Normal file
1
dist/editor/extensions/ext-placemark.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
2176
dist/editor/extensions/ext-polygon.js
vendored
2176
dist/editor/extensions/ext-polygon.js
vendored
File diff suppressed because it is too large
Load Diff
1
dist/editor/extensions/ext-polygon.js.map
vendored
Normal file
1
dist/editor/extensions/ext-polygon.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
6672
dist/editor/extensions/ext-server_moinsave.js
vendored
6672
dist/editor/extensions/ext-server_moinsave.js
vendored
File diff suppressed because it is too large
Load Diff
1
dist/editor/extensions/ext-server_moinsave.js.map
vendored
Normal file
1
dist/editor/extensions/ext-server_moinsave.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
7073
dist/editor/extensions/ext-server_opensave.js
vendored
7073
dist/editor/extensions/ext-server_opensave.js
vendored
File diff suppressed because it is too large
Load Diff
1
dist/editor/extensions/ext-server_opensave.js.map
vendored
Normal file
1
dist/editor/extensions/ext-server_opensave.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
2321
dist/editor/extensions/ext-shapes.js
vendored
2321
dist/editor/extensions/ext-shapes.js
vendored
File diff suppressed because it is too large
Load Diff
1
dist/editor/extensions/ext-shapes.js.map
vendored
Normal file
1
dist/editor/extensions/ext-shapes.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
10
dist/editor/extensions/ext-shapes.xml
vendored
10
dist/editor/extensions/ext-shapes.xml
vendored
@@ -1,10 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<g id="tool_shapelib">
|
||||
<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300">
|
||||
<path fill="#c0c0c0" stroke-linejoin="round" stroke-width="14" stroke="#202020" fill-rule="nonzero" d="m70,194.72501l0,0c0,-10.30901 35.8172,-18.666 80,-18.666c44.18298,0 80,8.35699 80,18.666l0,74.66699c0,10.30899 -35.81702,18.66699 -80,18.66699c-44.1828,0 -80,-8.358 -80,-18.66699l0,-74.66699z"/>
|
||||
<path fill="#c0c0c0" stroke-linejoin="round" stroke-width="14" stroke="#202020" fill-rule="nonzero" d="m70,114.608l0,0c0,-10.309 35.8172,-18.6668 80,-18.6668c44.18298,0 80,8.3578 80,18.6668l0,74.66699c0,10.30901 -35.81702,18.666 -80,18.666c-44.1828,0 -80,-8.35699 -80,-18.666l0,-74.66699z"/>
|
||||
<path fill="#c0c0c0" stroke-linejoin="round" stroke-width="14" stroke="#202020" fill-rule="nonzero" d="m70,33.6667l0,0c0,-10.3094 35.8172,-18.6667 80,-18.6667c44.18298,0 80,8.3573 80,18.6667l0,74.6663c0,10.31 -35.81702,18.667 -80,18.667c-44.1828,0 -80,-8.357 -80,-18.667l0,-74.6663z"/>
|
||||
<path id="svg_1" fill="#c0c0c0" stroke-linejoin="round" stroke-width="14" stroke="#202020" fill-rule="nonzero" d="m230,32.33334c0,10.30931 -35.81726,18.66666 -80,18.66666c-44.1828,0 -80,-8.35735 -80,-18.66666"/>
|
||||
</svg>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.3 KiB |
2100
dist/editor/extensions/ext-star.js
vendored
2100
dist/editor/extensions/ext-star.js
vendored
File diff suppressed because it is too large
Load Diff
1
dist/editor/extensions/ext-star.js.map
vendored
Normal file
1
dist/editor/extensions/ext-star.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
2028
dist/editor/extensions/ext-storage.js
vendored
2028
dist/editor/extensions/ext-storage.js
vendored
File diff suppressed because it is too large
Load Diff
1
dist/editor/extensions/ext-storage.js.map
vendored
Normal file
1
dist/editor/extensions/ext-storage.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
1869
dist/editor/extensions/ext-webappfind.js
vendored
1869
dist/editor/extensions/ext-webappfind.js
vendored
File diff suppressed because it is too large
Load Diff
1
dist/editor/extensions/ext-webappfind.js.map
vendored
Normal file
1
dist/editor/extensions/ext-webappfind.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
1691
dist/editor/extensions/ext-xdomain-messaging.js
vendored
1691
dist/editor/extensions/ext-xdomain-messaging.js
vendored
File diff suppressed because it is too large
Load Diff
1
dist/editor/extensions/ext-xdomain-messaging.js.map
vendored
Normal file
1
dist/editor/extensions/ext-xdomain-messaging.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
34
dist/editor/extensions/eyedropper-icon.xml
vendored
34
dist/editor/extensions/eyedropper-icon.xml
vendored
@@ -1,34 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
|
||||
<g id="tool_eyedropper">
|
||||
<svg viewBox="0 0 320 320" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<!-- Created with SVG-edit - https://github.com/SVG-Edit/svgedit -->
|
||||
<defs>
|
||||
<radialGradient id="eyedropper_svg_6" cx="0.5" cy="0.5" r="0.5">
|
||||
<stop offset="0" stop-color="#ffffff" stop-opacity="1"/>
|
||||
<stop offset="1" stop-color="#e5e5e5" stop-opacity="0.38"/>
|
||||
</radialGradient>
|
||||
<linearGradient id="eyedropper_svg_15" x1="0" y1="0" x2="0.58594" y2="0.55078">
|
||||
<stop offset="0" stop-color="#ffffff" stop-opacity="0.57"/>
|
||||
<stop offset="1" stop-color="#000056" stop-opacity="1"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="eyedropper_svg_19" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#ffffff" stop-opacity="1"/>
|
||||
<stop offset="1" stop-color="#ffffff" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g display="inline">
|
||||
<title>Layer 1</title>
|
||||
<path d="m193.899994,73l-119.899979,118l-15,39.5l10.25,4.5l43.750015,-20l108.999969,-112l-28.100006,-30z" id="svg_3" fill="none" stroke="#000000" stroke-width="5"/>
|
||||
<path d="m58.649994,232c-2.75,28.200012 -26.399994,28.950012 -21.899994,59c4.5,30.049988 55,28 55.5,-1.25c0.5,-29.25 -20.25,-28.75 -22.25,-54.75l-11.350006,-3z" id="svg_4" fill="#aa56ff" stroke="#000000" stroke-width="7"/>
|
||||
<path d="m45.474976,269.275024l13.775024,0.474976l-0.75,16.75l-14.25,-1.25l1.224976,-15.974976z" id="svg_5" fill="url(#eyedropper_svg_6)" stroke-width="5" fill-opacity="0.73"/>
|
||||
<path d="m217.899994,46c21.5,-101.549999 141.600006,20.449997 28.100006,33l-5,44l-63,-66l39.899994,-11z" id="svg_2" fill="#000000" stroke-width="5"/>
|
||||
<path d="m206.825012,61.075008c3.712494,-2.46249 7.637482,-3.53751 14.424988,-5.575008c10.125,-16.5 32.875,-41.5 40.5,-35c7.625,6.5 -21.25,35.625 -37.5,39.25c-5.5,10.125 -8,13.875 -17.25,16.5c-2.837494,-8.162514 -4.262482,-12.337486 -0.174988,-15.174992z" id="svg_7" fill="url(#eyedropper_svg_15)" stroke-width="5"/>
|
||||
<path d="m133.049988,134.75l46.950012,9.25l-66,70l-42.5,20.5l-11.5,-5l14,-37.5l59.049988,-57.25z" id="svg_11" fill="#aa56ff" stroke="#000000" stroke-width="7"/>
|
||||
<path d="m71.425034,212.350006l9.050888,-20.022537l51.516724,-49.327469l8.507355,0.97197l-69.074966,68.378036z" id="svg_16" fill="url(#eyedropper_svg_19)" stroke-width="5"/>
|
||||
</g>
|
||||
</svg>
|
||||
</g>
|
||||
|
||||
<g id="svg_eof"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 2.3 KiB |
BIN
dist/editor/extensions/eyedropper.png
vendored
BIN
dist/editor/extensions/eyedropper.png
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 568 B |
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user