- Build: Update

master
Brett Zamir 2019-12-25 16:04:07 +08:00
parent f03cdc98a4
commit 8bd9466827
69 changed files with 271 additions and 89 deletions

54
dist/index-es.js vendored
View File

@ -28395,6 +28395,8 @@ function () {
tool_import: tools.import_doc,
tool_open: tools.open_doc,
tool_save: tools.save_doc,
tool_editor_prefs: config.editor_prefs,
tool_editor_homepage: tools.editor_homepage,
svginfo_units_rulers: config.units_and_rulers,
svginfo_rulers_onoff: config.show_rulers,
svginfo_unit: config.base_unit,
@ -28817,6 +28819,7 @@ if (!$.loadingStylesheets) {
}
*/
var homePage = 'https://github.com/SVG-Edit/svgedit';
var stylesheet = 'svg-editor.css';
if (!$$b.loadingStylesheets.includes(stylesheet)) {
@ -30247,17 +30250,20 @@ editor.init = function () {
warning: 'warning.png',
node_delete: 'node_delete.png',
node_clone: 'node_clone.png',
globe_link: 'globe_link.png'
globe_link: 'globe_link.png',
config: 'config.png'
},
placement: {
'#logo': 'logo',
'#tool_clear div,#layer_new': 'new_image',
'#tool_save div': 'save',
'#tool_export div': 'export',
'#tool_open div div': 'open',
'#tool_import div div': 'import',
'#tool_open div': 'open',
'#tool_import div': 'import',
'#tool_source': 'source',
'#tool_docprops > div': 'docprops',
'#tool_editor_prefs > div': 'config',
'#tool_editor_homepage > div': 'globe_link',
'#tool_wireframe': 'wireframe',
'#tool_undo': 'undo',
'#tool_redo': 'redo',
@ -34156,6 +34162,15 @@ editor.init = function () {
*/
var openHomePage = function openHomePage() {
window.open(homePage, '_blank');
};
/**
*
* @returns {void}
*/
var hideSourceEditor = function hideSourceEditor() {
$$b('#svg_source_editor').hide();
editingsource = false;
@ -35386,18 +35401,31 @@ editor.init = function () {
}, {
sel: '#tool_docprops',
fn: showDocProperties,
evt: 'mouseup'
evt: 'click'
}, {
sel: '#tool_prefs_save',
fn: savePreferences,
evt: 'click'
}, {
sel: '#tool_prefs_option',
sel: '#tool_editor_prefs',
fn: showPreferences,
evt: 'click'
}, {
sel: '#tool_editor_homepage',
fn: openHomePage,
evt: 'click'
}, {
sel: '#tool_open',
fn: function fn() {
showPreferences();
return false;
window.dispatchEvent(new CustomEvent('openImage'));
},
evt: 'mouseup'
evt: 'click'
}, {
sel: '#tool_import',
fn: function fn() {
window.dispatchEvent(new CustomEvent('importImage'));
},
evt: 'click'
}, {
sel: '#tool_delete,#tool_delete_multi',
fn: deleteSelected,
@ -36303,9 +36331,15 @@ editor.init = function () {
return _ref28.apply(this, arguments);
};
}());
$$b('#tool_open').show().prepend(open);
$$b('#tool_open').show();
$$b(window).on('openImage', function () {
return open.click();
});
var imgImport = $$b('<input type="file">').change(importImage);
$$b('#tool_import').show().prepend(imgImport);
$$b('#tool_import').show();
$$b(window).on('importImage', function () {
return imgImport.click();
});
}
updateCanvas(true); // const revnums = 'svg-editor.js ($Rev$) ';

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

54
dist/index-umd.js vendored
View File

@ -28401,6 +28401,8 @@
tool_import: tools.import_doc,
tool_open: tools.open_doc,
tool_save: tools.save_doc,
tool_editor_prefs: config.editor_prefs,
tool_editor_homepage: tools.editor_homepage,
svginfo_units_rulers: config.units_and_rulers,
svginfo_rulers_onoff: config.show_rulers,
svginfo_unit: config.base_unit,
@ -28823,6 +28825,7 @@
}
*/
var homePage = 'https://github.com/SVG-Edit/svgedit';
var stylesheet = 'svg-editor.css';
if (!$$b.loadingStylesheets.includes(stylesheet)) {
@ -30253,17 +30256,20 @@
warning: 'warning.png',
node_delete: 'node_delete.png',
node_clone: 'node_clone.png',
globe_link: 'globe_link.png'
globe_link: 'globe_link.png',
config: 'config.png'
},
placement: {
'#logo': 'logo',
'#tool_clear div,#layer_new': 'new_image',
'#tool_save div': 'save',
'#tool_export div': 'export',
'#tool_open div div': 'open',
'#tool_import div div': 'import',
'#tool_open div': 'open',
'#tool_import div': 'import',
'#tool_source': 'source',
'#tool_docprops > div': 'docprops',
'#tool_editor_prefs > div': 'config',
'#tool_editor_homepage > div': 'globe_link',
'#tool_wireframe': 'wireframe',
'#tool_undo': 'undo',
'#tool_redo': 'redo',
@ -34162,6 +34168,15 @@
*/
var openHomePage = function openHomePage() {
window.open(homePage, '_blank');
};
/**
*
* @returns {void}
*/
var hideSourceEditor = function hideSourceEditor() {
$$b('#svg_source_editor').hide();
editingsource = false;
@ -35392,18 +35407,31 @@
}, {
sel: '#tool_docprops',
fn: showDocProperties,
evt: 'mouseup'
evt: 'click'
}, {
sel: '#tool_prefs_save',
fn: savePreferences,
evt: 'click'
}, {
sel: '#tool_prefs_option',
sel: '#tool_editor_prefs',
fn: showPreferences,
evt: 'click'
}, {
sel: '#tool_editor_homepage',
fn: openHomePage,
evt: 'click'
}, {
sel: '#tool_open',
fn: function fn() {
showPreferences();
return false;
window.dispatchEvent(new CustomEvent('openImage'));
},
evt: 'mouseup'
evt: 'click'
}, {
sel: '#tool_import',
fn: function fn() {
window.dispatchEvent(new CustomEvent('importImage'));
},
evt: 'click'
}, {
sel: '#tool_delete,#tool_delete_multi',
fn: deleteSelected,
@ -36309,9 +36337,15 @@
return _ref28.apply(this, arguments);
};
}());
$$b('#tool_open').show().prepend(open);
$$b('#tool_open').show();
$$b(window).on('openImage', function () {
return open.click();
});
var imgImport = $$b('<input type="file">').change(importImage);
$$b('#tool_import').show().prepend(imgImport);
$$b('#tool_import').show();
$$b(window).on('importImage', function () {
return imgImport.click();
});
}
updateCanvas(true); // const revnums = 'svg-editor.js ($Rev$) ';

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -129,6 +129,7 @@ var svgEditorLang_af = (function () {
reorient_path: 'Reorient path',
ungroup: 'Ungroup Elemente',
docprops: 'Document Properties',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Skuif na Bottom',
move_top: 'Skuif na bo',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_ar = (function () {
reorient_path: 'Reorient path',
ungroup: 'فك تجميع عناصر',
docprops: 'خصائص المستند',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'الانتقال إلى أسفل',
move_top: 'الانتقال إلى أعلى',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_az = (function () {
reorient_path: 'Reorient path',
ungroup: 'Ungroup Elements',
docprops: 'Document Properties',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Move to Bottom',
move_top: 'Move to Top',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_be = (function () {
reorient_path: 'Reorient path',
ungroup: 'Элементы Разгруппировать',
docprops: 'Уласцівасці дакумента',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Перамясціць уніз',
move_top: 'Перамясціць угару',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_bg = (function () {
reorient_path: 'Reorient path',
ungroup: 'Разгрупирай Елементи',
docprops: 'Document Properties',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Премести надолу',
move_top: 'Премести в началото',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_ca = (function () {
reorient_path: 'Reorient path',
ungroup: 'Desagrupar elements',
docprops: 'Propietats del document',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Mou al final',
move_top: 'Mou al principi',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_cs = (function () {
reorient_path: 'Změna orientace křivky',
ungroup: 'Zrušit seskupení',
docprops: 'Vlastnosti dokumentu',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Vrstvu úplně dospodu',
move_top: 'Vrstvu úplně nahoru',
node_clone: 'Vložit nový uzel',

View File

@ -129,6 +129,7 @@ var svgEditorLang_cy = (function () {
reorient_path: 'Reorient path',
ungroup: 'Elfennau Ungroup',
docprops: 'Document Eiddo',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Symud i&#39;r Gwaelod',
move_top: 'Symud i&#39;r Top',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_da = (function () {
reorient_path: 'Reorient path',
ungroup: 'Opdel Elements',
docprops: 'Document Properties',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Flyt til bund',
move_top: 'Flyt til toppen',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_de = (function () {
reorient_path: 'Neuausrichtung des Pfades',
ungroup: 'Gruppierung aufheben',
docprops: 'Dokument-Eigenschaften',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Die gewählten Objekte nach ganz unten verschieben',
move_top: 'Die gewählten Objekte nach ganz oben verschieben',
node_clone: 'Klone den Knoten',

View File

@ -129,6 +129,7 @@ var svgEditorLang_el = (function () {
reorient_path: 'Reorient path',
ungroup: 'Κατάργηση ομαδοποίησης Στοιχεία',
docprops: 'Ιδιότητες εγγράφου',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Μετακίνηση προς τα κάτω',
move_top: 'Μετακίνηση στην αρχή',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_en = (function () {
reorient_path: 'Reorient path',
ungroup: 'Ungroup Elements',
docprops: 'Document Properties [D]',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Send to Back',
move_top: 'Bring to Front',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_es = (function () {
reorient_path: 'Reorientar el trazado',
ungroup: 'Desagrupar objetos',
docprops: 'Propiedades del documento',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Mover abajo',
move_top: 'Mover arriba',
node_clone: 'Clonar nodo',

View File

@ -129,6 +129,7 @@ var svgEditorLang_et = (function () {
reorient_path: 'Reorient path',
ungroup: 'Lõhu Elements',
docprops: 'Dokumendi omadused',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Liiguta alla',
move_top: 'Liiguta üles',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_fa = (function () {
reorient_path: '‫جهت دهی مجدد مسیر‬',
ungroup: '‫خارج کردن عناصر از گروه ',
docprops: '‫مشخصات سند ',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: '‫انتقال به پایین ترین ',
move_top: '‫انتقال به بالاترین ',
node_clone: '‫ایجاد کپی از نقطه‬',

View File

@ -129,6 +129,7 @@ var svgEditorLang_fi = (function () {
reorient_path: 'Reorient path',
ungroup: 'Ungroup Elements',
docprops: 'Asiakirjan ominaisuudet',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Move to Bottom',
move_top: 'Move to Top',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_fr = (function () {
reorient_path: 'Réorienter le chemin',
ungroup: 'Dégrouper les éléments',
docprops: 'Propriétés du document',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Déplacer vers le bas',
move_top: 'Déplacer vers le haut',
node_clone: 'Cloner le nœud',

View File

@ -129,6 +129,7 @@ var svgEditorLang_fy = (function () {
reorient_path: 'Paad opnij orientearje',
ungroup: 'Groepering opheffe',
docprops: 'Dokuminteigenskippen',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Nei eftergrûn',
move_top: 'Nei foargrûn',
node_clone: 'Knooppunt duplisearje',

View File

@ -129,6 +129,7 @@ var svgEditorLang_ga = (function () {
reorient_path: 'Reorient path',
ungroup: 'Eilimintí Díghrúpáil',
docprops: 'Doiciméad Airíonna',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Téigh go Bun',
move_top: 'Téigh go Barr',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_gl = (function () {
reorient_path: 'Reorient path',
ungroup: 'Elementos Desagrupadas',
docprops: 'Propriedades do Documento',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Move a Bottom',
move_top: 'Move to Top',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_he = (function () {
reorient_path: 'Reorient path',
ungroup: 'אלמנטים פרק קבוצה',
docprops: 'מאפייני מסמך',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'הזז למטה',
move_top: 'עבור לראש הדף',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_hi = (function () {
reorient_path: 'पथ को नई दिशा दें',
ungroup: 'अंश को समूह से अलग करें',
docprops: 'दस्तावेज़ गुण',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'नीचे ले जाएँ',
move_top: 'ऊपर ले जाएँ',
node_clone: 'नोड क्लोन',

View File

@ -129,6 +129,7 @@ var svgEditorLang_hr = (function () {
reorient_path: 'Reorient path',
ungroup: 'Razgrupiranje Elementi',
docprops: 'Svojstva dokumenta',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Move to Bottom',
move_top: 'Pomakni na vrh',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_hu = (function () {
reorient_path: 'Reorient path',
ungroup: 'Szétbont elemei',
docprops: 'Dokumentum tulajdonságai',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Mozgatás lefelé',
move_top: 'Move to Top',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_hy = (function () {
reorient_path: 'Reorient path',
ungroup: 'Ungroup Elements',
docprops: 'Document Properties',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Move to Bottom',
move_top: 'Move to Top',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_id = (function () {
reorient_path: 'Reorient path',
ungroup: 'Ungroup Elemen',
docprops: 'Document Properties',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Pindah ke Bawah',
move_top: 'Pindahkan ke Atas',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_is = (function () {
reorient_path: 'Reorient path',
ungroup: 'Ungroup Elements',
docprops: 'Document Properties',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Færa Bottom',
move_top: 'Fara efst á síðu',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_it = (function () {
reorient_path: 'Riallinea',
ungroup: 'Separa gli elementi',
docprops: 'Proprietà del documento',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Sposta in fondo',
move_top: 'Sposta in cima',
node_clone: 'Clona nodo',

View File

@ -129,6 +129,7 @@ var svgEditorLang_ja = (function () {
reorient_path: '現在の角度を0度とする',
ungroup: 'グループ化を解除',
docprops: '文書のプロパティ',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: '奥に移動',
move_top: '手前に移動',
node_clone: 'ノードを複製',

View File

@ -129,6 +129,7 @@ var svgEditorLang_ko = (function () {
reorient_path: 'Reorient path',
ungroup: '그룹 해제 요소',
docprops: '문서 속성',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: '아래로 이동',
move_top: '상단으로 이동',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_lt = (function () {
reorient_path: 'Reorient path',
ungroup: 'Išgrupuoti elementai',
docprops: 'Document Properties',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Perkelti į apačią',
move_top: 'Perkelti į viršų',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_lv = (function () {
reorient_path: 'Reorient path',
ungroup: 'Atgrupēt Elements',
docprops: 'Document Properties',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Pārvietot uz leju',
move_top: 'Pārvietot uz augšu',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_mk = (function () {
reorient_path: 'Reorient path',
ungroup: 'Ungroup Елементи',
docprops: 'Својства на документот',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Move to bottom',
move_top: 'Поместување на почетокот',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_ms = (function () {
reorient_path: 'Reorient path',
ungroup: 'Ungroup Elemen',
docprops: 'Document Properties',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Pindah ke Bawah',
move_top: 'Pindah ke Atas',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_mt = (function () {
reorient_path: 'Reorient path',
ungroup: 'Ungroup Elements',
docprops: 'Dokument Properties',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Move to Bottom',
move_top: 'Move to Top',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_nl = (function () {
reorient_path: 'Herorienteer pad',
ungroup: 'Groepering opheffen',
docprops: 'Documenteigenschappen',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Naar achtergrond',
move_top: 'Naar voorgrond',
node_clone: 'Kloon knooppunt',

View File

@ -129,6 +129,7 @@ var svgEditorLang_no = (function () {
reorient_path: 'Reorient path',
ungroup: 'Dele opp Elements',
docprops: 'Document Properties',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Move to Bottom',
move_top: 'Flytt til toppen',
node_clone: 'Clone Node',

View File

@ -130,6 +130,7 @@ var svgEditorLang_pl = (function () {
reorient_path: 'Zresetuj obwiednię',
ungroup: 'Rozgrupuj elementy',
docprops: 'Właściwości dokumentu',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Przenieś pod spód',
move_top: 'Przenieś na wierzch',
node_clone: 'Klonuj węzeł',

View File

@ -129,6 +129,7 @@ var svgEditorLang_pt_BR = (function () {
reorient_path: 'Reorientar contorno',
ungroup: 'Desagrupar Elementos',
docprops: 'Propriedades',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Mover para o fundo',
move_top: 'Mover para o topo',
node_clone: 'Clonar Aresta',

View File

@ -129,6 +129,7 @@ var svgEditorLang_pt_PT = (function () {
reorient_path: 'Reorient path',
ungroup: 'Elementos Desagrupar',
docprops: 'Propriedades do Documento',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Move to Bottom',
move_top: 'Move to Top',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_ro = (function () {
reorient_path: 'Reorientează Traiectoria',
ungroup: 'Anulare Grupare Elemente',
docprops: 'Proprietăţile Documentului',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Mutare în jos',
move_top: 'Mutare în sus',
node_clone: 'Clonează Punct',

View File

@ -129,6 +129,7 @@ var svgEditorLang_ru = (function () {
reorient_path: 'Изменить ориентацию контура',
ungroup: 'Разгруппировать элементы',
docprops: 'Свойства документа',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Опустить',
move_top: 'Поднять',
node_clone: 'Создать копию узла',

View File

@ -129,6 +129,7 @@ var svgEditorLang_sk = (function () {
reorient_path: 'Zmeniť orientáciu krivky',
ungroup: 'Zrušiť skupinu',
docprops: 'Vlastnosti dokumentu',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Presunúť spodok',
move_top: 'Presunúť na vrch',
node_clone: 'Klonovať uzol',

View File

@ -129,6 +129,7 @@ var svgEditorLang_sl = (function () {
reorient_path: 'Reorient pot',
ungroup: 'Razdruži elemente',
docprops: 'Lastnosti dokumenta',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Premakni na dno',
move_top: 'Premakni na vrh',
node_clone: 'Kloniraj oglišče',

View File

@ -129,6 +129,7 @@ var svgEditorLang_sq = (function () {
reorient_path: 'Reorient path',
ungroup: 'Elemente Ungroup',
docprops: 'Dokumenti Prona',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Move to Bottom',
move_top: 'Move to Top',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_sr = (function () {
reorient_path: 'Reorient path',
ungroup: 'Разгрупирање Елементи',
docprops: 'Особине документа',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Премести на доле',
move_top: 'Премести на врх',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_sv = (function () {
reorient_path: 'Reorient path',
ungroup: 'Dela Elements',
docprops: 'Dokumentegenskaper',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Move to Bottom',
move_top: 'Flytta till början',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_sw = (function () {
reorient_path: 'Reorient path',
ungroup: 'Ungroup Elements',
docprops: 'Document Properties',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Kuhama Bottom',
move_top: 'Move to Top',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_test = (function () {
reorient_path: 'Reorient path',
ungroup: 'Ungroup Elements',
docprops: 'Document Properties',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Move to Bottom',
move_top: 'Move to Top',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_th = (function () {
reorient_path: 'Reorient path',
ungroup: 'องค์ประกอบ Ungroup',
docprops: 'คุณสมบัติของเอกสาร',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'ย้ายไปด้านล่าง',
move_top: 'ย้ายไปด้านบน',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_tl = (function () {
reorient_path: 'Reorient path',
ungroup: 'Ungroup Sangkap',
docprops: 'Document Katangian',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Ilipat sa Ibaba',
move_top: 'Ilipat sa Tuktok',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_tr = (function () {
reorient_path: 'Reorient path',
ungroup: 'Çöz Elemanları',
docprops: 'Belge Özellikleri',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Altına gider',
move_top: 'Üste taşı',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_uk = (function () {
reorient_path: 'Reorient path',
ungroup: 'Елементи розгрупувати',
docprops: 'Властивості документа',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Перемістити вниз',
move_top: 'Перемістити догори',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_vi = (function () {
reorient_path: 'Reorient path',
ungroup: 'Ungroup Elements',
docprops: 'Document Properties',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'Chuyển đến đáy',
move_top: 'Move to Top',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_yi = (function () {
reorient_path: 'Reorient path',
ungroup: 'ונגראָופּ עלעמענץ',
docprops: 'דאָקומענט פּראָפּערטיעס',
editor_homepage: 'SVG-Edit Home Page',
move_bottom: 'מאַך צו באָטטאָם',
move_top: 'באַוועגן צו Top',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_zh_CN = (function () {
reorient_path: '调整路径',
ungroup: '取消组合元素',
docprops: '文档属性',
editor_homepage: 'SVG-Edit 主页',
move_bottom: '移至底部',
move_top: '移至顶部',
node_clone: '复制节点',
@ -168,7 +169,7 @@ var svgEditorLang_zh_CN = (function () {
doc_dims: '画布大小',
included_images: '包含图像',
image_opt_embed: '嵌入数据 (本地文件)',
image_opt_ref: 'Use file reference',
image_opt_ref: '使用文件引用',
editor_prefs: '编辑器首选项',
icon_size: '图标大小',
language: '语言',

View File

@ -129,6 +129,7 @@ var svgEditorLang_zh_HK = (function () {
reorient_path: 'Reorient path',
ungroup: 'Ungroup Elements',
docprops: '文档属性',
editor_homepage: 'SVG-Edit 主页',
move_bottom: '移至底部',
move_top: '移动到顶部',
node_clone: 'Clone Node',

View File

@ -129,6 +129,7 @@ var svgEditorLang_zh_TW = (function () {
reorient_path: '調整路徑',
ungroup: '取消群組',
docprops: '文件屬性',
editor_homepage: 'SVG-Edit 主頁',
move_bottom: '移至底部',
move_top: '移動到頂部',
node_clone: '增加節點',

View File

@ -109,15 +109,11 @@
New Image (N)
</li>
<li id="tool_open" style="display:none;">
<div id="fileinputs">
<div></div>
</div>
<div></div>
Open SVG
</li>
<li id="tool_import" style="display:none;">
<div id="fileinputs_import">
<div></div>
</div>
<div></div>
Import Image
</li>
<li id="tool_save">
@ -132,15 +128,15 @@
<div></div>
Document Properties (D)
</li>
<li id="tool_editor_prefs">
<div></div>
Editor Preferences
</li>
<li id="tool_editor_homepage">
<div></div>
SVG-Edit Home Page
</li>
</ul>
<p>
<a href="https://github.com/SVG-Edit/svgedit" target="_blank">
SVG-edit Home Page
</a>
</p>
<button id="tool_prefs_option">
Editor Options
</button>
</div>
</div>
<div id="tools_top" class="tools_panel">

View File

@ -109,15 +109,11 @@
New Image (N)
</li>
<li id="tool_open" style="display:none;">
<div id="fileinputs">
<div></div>
</div>
<div></div>
Open SVG
</li>
<li id="tool_import" style="display:none;">
<div id="fileinputs_import">
<div></div>
</div>
<div></div>
Import Image
</li>
<li id="tool_save">
@ -132,15 +128,15 @@
<div></div>
Document Properties (D)
</li>
<li id="tool_editor_prefs">
<div></div>
Editor Preferences
</li>
<li id="tool_editor_homepage">
<div></div>
SVG-Edit Home Page
</li>
</ul>
<p>
<a href="https://github.com/SVG-Edit/svgedit" target="_blank">
SVG-edit Home Page
</a>
</p>
<button id="tool_prefs_option">
Editor Options
</button>
</div>
</div>
<div id="tools_top" class="tools_panel">

View File

@ -109,15 +109,11 @@
New Image (N)
</li>
<li id="tool_open" style="display:none;">
<div id="fileinputs">
<div></div>
</div>
<div></div>
Open SVG
</li>
<li id="tool_import" style="display:none;">
<div id="fileinputs_import">
<div></div>
</div>
<div></div>
Import Image
</li>
<li id="tool_save">
@ -132,15 +128,15 @@
<div></div>
Document Properties (D)
</li>
<li id="tool_editor_prefs">
<div></div>
Editor Preferences
</li>
<li id="tool_editor_homepage">
<div></div>
SVG-Edit Home Page
</li>
</ul>
<p>
<a href="https://github.com/SVG-Edit/svgedit" target="_blank">
SVG-edit Home Page
</a>
</p>
<button id="tool_prefs_option">
Editor Options
</button>
</div>
</div>
<div id="tools_top" class="tools_panel">

View File

@ -28398,6 +28398,8 @@
tool_import: tools.import_doc,
tool_open: tools.open_doc,
tool_save: tools.save_doc,
tool_editor_prefs: config.editor_prefs,
tool_editor_homepage: tools.editor_homepage,
svginfo_units_rulers: config.units_and_rulers,
svginfo_rulers_onoff: config.show_rulers,
svginfo_unit: config.base_unit,
@ -28820,6 +28822,7 @@
}
*/
var homePage = 'https://github.com/SVG-Edit/svgedit';
var stylesheet = 'svg-editor.css';
if (!$$b.loadingStylesheets.includes(stylesheet)) {
@ -30250,17 +30253,20 @@
warning: 'warning.png',
node_delete: 'node_delete.png',
node_clone: 'node_clone.png',
globe_link: 'globe_link.png'
globe_link: 'globe_link.png',
config: 'config.png'
},
placement: {
'#logo': 'logo',
'#tool_clear div,#layer_new': 'new_image',
'#tool_save div': 'save',
'#tool_export div': 'export',
'#tool_open div div': 'open',
'#tool_import div div': 'import',
'#tool_open div': 'open',
'#tool_import div': 'import',
'#tool_source': 'source',
'#tool_docprops > div': 'docprops',
'#tool_editor_prefs > div': 'config',
'#tool_editor_homepage > div': 'globe_link',
'#tool_wireframe': 'wireframe',
'#tool_undo': 'undo',
'#tool_redo': 'redo',
@ -34159,6 +34165,15 @@
*/
var openHomePage = function openHomePage() {
window.open(homePage, '_blank');
};
/**
*
* @returns {void}
*/
var hideSourceEditor = function hideSourceEditor() {
$$b('#svg_source_editor').hide();
editingsource = false;
@ -35389,18 +35404,31 @@
}, {
sel: '#tool_docprops',
fn: showDocProperties,
evt: 'mouseup'
evt: 'click'
}, {
sel: '#tool_prefs_save',
fn: savePreferences,
evt: 'click'
}, {
sel: '#tool_prefs_option',
sel: '#tool_editor_prefs',
fn: showPreferences,
evt: 'click'
}, {
sel: '#tool_editor_homepage',
fn: openHomePage,
evt: 'click'
}, {
sel: '#tool_open',
fn: function fn() {
showPreferences();
return false;
window.dispatchEvent(new CustomEvent('openImage'));
},
evt: 'mouseup'
evt: 'click'
}, {
sel: '#tool_import',
fn: function fn() {
window.dispatchEvent(new CustomEvent('importImage'));
},
evt: 'click'
}, {
sel: '#tool_delete,#tool_delete_multi',
fn: deleteSelected,
@ -36306,9 +36334,15 @@
return _ref28.apply(this, arguments);
};
}());
$$b('#tool_open').show().prepend(open);
$$b('#tool_open').show();
$$b(window).on('openImage', function () {
return open.click();
});
var imgImport = $$b('<input type="file">').change(importImage);
$$b('#tool_import').show().prepend(imgImport);
$$b('#tool_import').show();
$$b(window).on('importImage', function () {
return imgImport.click();
});
}
updateCanvas(true); // const revnums = 'svg-editor.js ($Rev$) ';

View File

@ -28398,6 +28398,8 @@
tool_import: tools.import_doc,
tool_open: tools.open_doc,
tool_save: tools.save_doc,
tool_editor_prefs: config.editor_prefs,
tool_editor_homepage: tools.editor_homepage,
svginfo_units_rulers: config.units_and_rulers,
svginfo_rulers_onoff: config.show_rulers,
svginfo_unit: config.base_unit,
@ -28820,6 +28822,7 @@
}
*/
var homePage = 'https://github.com/SVG-Edit/svgedit';
var stylesheet = 'svg-editor.css';
if (!$$b.loadingStylesheets.includes(stylesheet)) {
@ -30250,17 +30253,20 @@
warning: 'warning.png',
node_delete: 'node_delete.png',
node_clone: 'node_clone.png',
globe_link: 'globe_link.png'
globe_link: 'globe_link.png',
config: 'config.png'
},
placement: {
'#logo': 'logo',
'#tool_clear div,#layer_new': 'new_image',
'#tool_save div': 'save',
'#tool_export div': 'export',
'#tool_open div div': 'open',
'#tool_import div div': 'import',
'#tool_open div': 'open',
'#tool_import div': 'import',
'#tool_source': 'source',
'#tool_docprops > div': 'docprops',
'#tool_editor_prefs > div': 'config',
'#tool_editor_homepage > div': 'globe_link',
'#tool_wireframe': 'wireframe',
'#tool_undo': 'undo',
'#tool_redo': 'redo',
@ -34159,6 +34165,15 @@
*/
var openHomePage = function openHomePage() {
window.open(homePage, '_blank');
};
/**
*
* @returns {void}
*/
var hideSourceEditor = function hideSourceEditor() {
$$b('#svg_source_editor').hide();
editingsource = false;
@ -35389,18 +35404,31 @@
}, {
sel: '#tool_docprops',
fn: showDocProperties,
evt: 'mouseup'
evt: 'click'
}, {
sel: '#tool_prefs_save',
fn: savePreferences,
evt: 'click'
}, {
sel: '#tool_prefs_option',
sel: '#tool_editor_prefs',
fn: showPreferences,
evt: 'click'
}, {
sel: '#tool_editor_homepage',
fn: openHomePage,
evt: 'click'
}, {
sel: '#tool_open',
fn: function fn() {
showPreferences();
return false;
window.dispatchEvent(new CustomEvent('openImage'));
},
evt: 'mouseup'
evt: 'click'
}, {
sel: '#tool_import',
fn: function fn() {
window.dispatchEvent(new CustomEvent('importImage'));
},
evt: 'click'
}, {
sel: '#tool_delete,#tool_delete_multi',
fn: deleteSelected,
@ -36306,9 +36334,15 @@
return _ref28.apply(this, arguments);
};
}());
$$b('#tool_open').show().prepend(open);
$$b('#tool_open').show();
$$b(window).on('openImage', function () {
return open.click();
});
var imgImport = $$b('<input type="file">').change(importImage);
$$b('#tool_import').show().prepend(imgImport);
$$b('#tool_import').show();
$$b(window).on('importImage', function () {
return imgImport.click();
});
}
updateCanvas(true); // const revnums = 'svg-editor.js ($Rev$) ';