svgedit-pl 7.3.5 → 7.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editor/Editor.js +2 -2
- package/dist/editor/Editor.js.map +1 -1
- package/dist/editor/extensions/ext-connector/ext-connector.js +1 -1
- package/dist/editor/extensions/ext-connector/ext-connector.js.map +1 -1
- package/dist/editor/extensions/ext-eyedropper/ext-eyedropper.js +1 -1
- package/dist/editor/extensions/ext-eyedropper/ext-eyedropper.js.map +1 -1
- package/dist/editor/extensions/ext-grid/ext-grid.js +1 -1
- package/dist/editor/extensions/ext-grid/ext-grid.js.map +1 -1
- package/dist/editor/extensions/ext-helloworld/ext-helloworld.js +1 -1
- package/dist/editor/extensions/ext-helloworld/ext-helloworld.js.map +1 -1
- package/dist/editor/extensions/ext-layer_view/ext-layer_view.js +1 -1
- package/dist/editor/extensions/ext-layer_view/ext-layer_view.js.map +1 -1
- package/dist/editor/extensions/ext-opensave/ext-opensave.js +1 -1
- package/dist/editor/extensions/ext-opensave/ext-opensave.js.map +1 -1
- package/dist/editor/extensions/ext-panning/ext-panning.js +1 -1
- package/dist/editor/extensions/ext-panning/ext-panning.js.map +1 -1
- package/dist/editor/extensions/ext-polystar/ext-polystar.js +1 -1
- package/dist/editor/extensions/ext-polystar/ext-polystar.js.map +1 -1
- package/dist/editor/extensions/ext-shapes/ext-shapes.js +1 -1
- package/dist/editor/extensions/ext-shapes/ext-shapes.js.map +1 -1
- package/dist/editor/extensions/ext-storage/ext-storage.js +1 -1
- package/dist/editor/extensions/ext-storage/ext-storage.js.map +1 -1
- package/dist/editor/iife-Editor.js +2 -2
- package/dist/editor/iife-Editor.js.map +1 -1
- package/dist/editor/xdomain-Editor.js +2 -2
- package/dist/editor/xdomain-Editor.js.map +1 -1
- package/docs/jsdoc/BottomPanel.html +1 -1
- package/docs/jsdoc/ConfigObj.js.html +1 -1
- package/docs/jsdoc/Dropdown.html +1 -1
- package/docs/jsdoc/Editor.js.html +54 -55
- package/docs/jsdoc/EditorStartup.html +5 -5
- package/docs/jsdoc/EditorStartup.js.html +12 -11
- package/docs/jsdoc/ElixMenuButton.html +1 -1
- package/docs/jsdoc/ElixNumberSpinBox.html +1 -1
- package/docs/jsdoc/ExplorerButton.html +1 -1
- package/docs/jsdoc/FlyingButton.html +1 -1
- package/docs/jsdoc/LayersPanel.html +1 -1
- package/docs/jsdoc/LeftPanel.html +1 -1
- package/docs/jsdoc/MainMenu.html +1 -1
- package/docs/jsdoc/MainMenu.js.html +1 -1
- package/docs/jsdoc/NumberSpinBox.html +1 -1
- package/docs/jsdoc/PaintBox.html +1 -1
- package/docs/jsdoc/PlainNumberSpinBox.html +1 -1
- package/docs/jsdoc/Rulers.html +1 -1
- package/docs/jsdoc/Rulers.js.html +1 -1
- package/docs/jsdoc/SEInput.html +1 -1
- package/docs/jsdoc/SEPalette.html +1 -1
- package/docs/jsdoc/SESpinInput.html +1 -1
- package/docs/jsdoc/SeCMenuDialog.html +1 -1
- package/docs/jsdoc/SeCMenuLayerDialog.html +1 -1
- package/docs/jsdoc/SeColorPicker.html +1 -1
- package/docs/jsdoc/SeEditPrefsDialog.html +1 -1
- package/docs/jsdoc/SeExportDialog.html +1 -1
- package/docs/jsdoc/SeImgPropDialog.html +1 -1
- package/docs/jsdoc/SeList.html +1 -1
- package/docs/jsdoc/SeMenu.html +1 -1
- package/docs/jsdoc/SeMenuItem.html +1 -1
- package/docs/jsdoc/SePlainAlertDialog.html +1 -1
- package/docs/jsdoc/SePlainBorderButton.html +1 -1
- package/docs/jsdoc/SePromptDialog.html +1 -1
- package/docs/jsdoc/SeStorageDialog.html +1 -1
- package/docs/jsdoc/SeSvgSourceEditorDialog.html +1 -1
- package/docs/jsdoc/SeText.html +1 -1
- package/docs/jsdoc/ToolButton.html +1 -1
- package/docs/jsdoc/TopPanel.html +1 -1
- package/docs/jsdoc/components_PaintBox.js.html +1 -1
- package/docs/jsdoc/components_jgraduate_ColorValuePicker.js.html +1 -1
- package/docs/jsdoc/components_jgraduate_Slider.js.html +1 -1
- package/docs/jsdoc/components_jgraduate_jQuery.jGraduate.js.html +1 -1
- package/docs/jsdoc/components_jgraduate_jQuery.jPicker.js.html +1 -1
- package/docs/jsdoc/components_seButton.js.html +1 -1
- package/docs/jsdoc/components_seColorPicker.js.html +1 -1
- package/docs/jsdoc/components_seDropdown.js.html +1 -1
- package/docs/jsdoc/components_seExplorerButton.js.html +1 -1
- package/docs/jsdoc/components_seFlyingButton.js.html +1 -1
- package/docs/jsdoc/components_seInput.js.html +1 -1
- package/docs/jsdoc/components_seList.js.html +1 -1
- package/docs/jsdoc/components_seListItem.js.html +1 -1
- package/docs/jsdoc/components_seMenu.js.html +1 -1
- package/docs/jsdoc/components_seMenuItem.js.html +1 -1
- package/docs/jsdoc/components_sePalette.js.html +1 -1
- package/docs/jsdoc/components_sePlainBorderButton.js.html +1 -1
- package/docs/jsdoc/components_sePlainMenuButton.js.html +1 -1
- package/docs/jsdoc/components_seSelect.js.html +1 -1
- package/docs/jsdoc/components_seSpinInput.js.html +1 -1
- package/docs/jsdoc/components_seText.js.html +1 -1
- package/docs/jsdoc/components_seZoom.js.html +1 -1
- package/docs/jsdoc/configObj.html +1 -1
- package/docs/jsdoc/contextmenu.js.html +1 -1
- package/docs/jsdoc/dialogs_SePlainAlertDialog.js.html +1 -1
- package/docs/jsdoc/dialogs_cmenuDialog.js.html +1 -1
- package/docs/jsdoc/dialogs_cmenuLayersDialog.js.html +1 -1
- package/docs/jsdoc/dialogs_editorPreferencesDialog.js.html +1 -1
- package/docs/jsdoc/dialogs_exportDialog.js.html +1 -1
- package/docs/jsdoc/dialogs_imagePropertiesDialog.js.html +1 -1
- package/docs/jsdoc/dialogs_se-elix_define_NumberSpinBox.js.html +1 -1
- package/docs/jsdoc/dialogs_se-elix_src_base_NumberSpinBox.js.html +1 -1
- package/docs/jsdoc/dialogs_se-elix_src_plain_PlainNumberSpinBox.js.html +1 -1
- package/docs/jsdoc/dialogs_sePromptDialog.js.html +1 -1
- package/docs/jsdoc/dialogs_svgSourceDialog.js.html +1 -1
- package/docs/jsdoc/extensions_ext-connector_ext-connector.js.html +1 -1
- package/docs/jsdoc/extensions_ext-eyedropper_ext-eyedropper.js.html +1 -1
- package/docs/jsdoc/extensions_ext-grid_ext-grid.js.html +1 -1
- package/docs/jsdoc/extensions_ext-helloworld_ext-helloworld.js.html +1 -1
- package/docs/jsdoc/extensions_ext-layer_view_ext-layer_view.js.html +1 -1
- package/docs/jsdoc/extensions_ext-markers_ext-markers.js.html +1 -1
- package/docs/jsdoc/extensions_ext-opensave_ext-opensave.js.html +5 -5
- package/docs/jsdoc/extensions_ext-overview_window_ext-overview_window.js.html +1 -1
- package/docs/jsdoc/extensions_ext-panning_ext-panning.js.html +6 -6
- package/docs/jsdoc/extensions_ext-polystar_ext-polystar.js.html +1 -1
- package/docs/jsdoc/extensions_ext-shapes_ext-shapes.js.html +1 -1
- package/docs/jsdoc/extensions_ext-storage_ext-storage.js.html +7 -4
- package/docs/jsdoc/extensions_ext-storage_storageDialog.js.html +1 -1
- package/docs/jsdoc/external-JamilihArray.html +1 -1
- package/docs/jsdoc/external-Math.html +1 -1
- package/docs/jsdoc/external-Window.html +1 -1
- package/docs/jsdoc/external-jQuery.fn.$.fn.jPicker.defaults.html +1 -1
- package/docs/jsdoc/external-jQuery.fn.exports.jPickerMethod.html +1 -1
- package/docs/jsdoc/external-jQuery.fn.html +1 -1
- package/docs/jsdoc/external-jQuery.fn.jGraduateDefaults.html +1 -1
- package/docs/jsdoc/external-jQuery.fn.jGraduateDefaults.images.html +1 -1
- package/docs/jsdoc/external-jQuery.fn.jGraduateDefaults.window.html +1 -1
- package/docs/jsdoc/external-jQuery.html +1 -1
- package/docs/jsdoc/external-jQuery.jGraduate.Paint.html +1 -1
- package/docs/jsdoc/external-jQuery.jGraduate.html +1 -1
- package/docs/jsdoc/external-jQuery.jPicker.Color.html +1 -1
- package/docs/jsdoc/external-jQuery.jPicker.ColorMethods.html +1 -1
- package/docs/jsdoc/external-jQuery.jPicker.html +1 -1
- package/docs/jsdoc/global.html +1 -1
- package/docs/jsdoc/index.html +1 -1
- package/docs/jsdoc/locale.js.html +1 -1
- package/docs/jsdoc/module-SVGEditor-Editor.html +30 -30
- package/docs/jsdoc/module-SVGEditor.Config.html +1 -1
- package/docs/jsdoc/module-SVGEditor.Prefs.html +1 -1
- package/docs/jsdoc/module-SVGEditor.html +3 -3
- package/docs/jsdoc/module-SVGthis.CustomHandler.html +1 -1
- package/docs/jsdoc/module-contextmenu.html +1 -1
- package/docs/jsdoc/module-jGraduate.html +1 -1
- package/docs/jsdoc/module-jPicker.html +1 -1
- package/docs/jsdoc/module-jPicker.module.exports.html +1 -1
- package/docs/jsdoc/module-locale.LocaleEditorInit.html +1 -1
- package/docs/jsdoc/module-locale.html +1 -1
- package/docs/jsdoc/module.exports.html +1 -1
- package/docs/jsdoc/module.exports_module.exports.html +1 -1
- package/docs/jsdoc/panels_BottomPanel.js.html +1 -1
- package/docs/jsdoc/panels_LayersPanel.js.html +1 -1
- package/docs/jsdoc/panels_LeftPanel.js.html +1 -1
- package/docs/jsdoc/panels_TopPanel.js.html +1 -1
- package/docs/jsdoc/tutorial-CanvasAPI.html +1 -1
- package/docs/jsdoc/tutorial-ConfigOptions.html +1 -1
- package/docs/jsdoc/tutorial-Editor.html +1 -1
- package/docs/jsdoc/tutorial-EditorAPI.html +1 -1
- package/docs/jsdoc/tutorial-Events.html +1 -1
- package/docs/jsdoc/tutorial-ExtensionDocs.html +1 -1
- package/docs/jsdoc/tutorial-FrequentlyAskedQuestions.html +1 -1
- package/docs/jsdoc/tutorial-LocaleDocs.html +1 -1
- package/docs/jsdoc/typedefs.js.html +1 -1
- package/package.json +1 -1
- package/src/editor/Editor.js +53 -54
- package/src/editor/EditorStartup.js +11 -10
- package/src/editor/extensions/ext-connector/locale/pl.js +12 -0
- package/src/editor/extensions/ext-eyedropper/locale/pl.js +9 -0
- package/src/editor/extensions/ext-grid/locale/pl.js +8 -0
- package/src/editor/extensions/ext-helloworld/locale/pl.js +9 -0
- package/src/editor/extensions/ext-layer_view/locale/pl.js +9 -0
- package/src/editor/extensions/ext-markers/locale/pl.js +46 -0
- package/src/editor/extensions/ext-opensave/ext-opensave.js +4 -4
- package/src/editor/extensions/ext-opensave/locale/pl.js +8 -0
- package/src/editor/extensions/ext-panning/ext-panning.js +5 -5
- package/src/editor/extensions/ext-panning/locale/pl.js +8 -0
- package/src/editor/extensions/ext-polystar/locale/pl.js +30 -0
- package/src/editor/extensions/ext-shapes/locale/pl.js +24 -0
- package/src/editor/extensions/ext-storage/ext-storage.js +6 -3
- package/src/editor/extensions/ext-storage/locale/pl.js +12 -0
- package/src/editor/panels/TopPanel.html +1 -1
|
@@ -26,7 +26,7 @@ const loadExtensionTranslation = async function (svgEditor) {
|
|
|
26
26
|
|
|
27
27
|
export default {
|
|
28
28
|
name,
|
|
29
|
-
async init
|
|
29
|
+
async init() {
|
|
30
30
|
const svgEditor = this
|
|
31
31
|
await loadExtensionTranslation(svgEditor)
|
|
32
32
|
const {
|
|
@@ -38,8 +38,8 @@ export default {
|
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
40
|
name: svgEditor.i18next.t(`${name}:name`),
|
|
41
|
-
callback
|
|
42
|
-
const btitle =
|
|
41
|
+
callback() {
|
|
42
|
+
const btitle = `Przesuwanie [Spacja / kółko myszki + przeciąganie]`
|
|
43
43
|
// Add the button and its handler(s)
|
|
44
44
|
const buttonTemplate = document.createElement('template')
|
|
45
45
|
buttonTemplate.innerHTML = `
|
|
@@ -52,7 +52,7 @@ export default {
|
|
|
52
52
|
}
|
|
53
53
|
})
|
|
54
54
|
},
|
|
55
|
-
mouseDown
|
|
55
|
+
mouseDown() {
|
|
56
56
|
if (svgCanvas.getMode() === 'ext-panning') {
|
|
57
57
|
svgEditor.setPanning(true)
|
|
58
58
|
return {
|
|
@@ -61,7 +61,7 @@ export default {
|
|
|
61
61
|
}
|
|
62
62
|
return undefined
|
|
63
63
|
},
|
|
64
|
-
mouseUp
|
|
64
|
+
mouseUp() {
|
|
65
65
|
if (svgCanvas.getMode() === 'ext-panning') {
|
|
66
66
|
svgEditor.setPanning(false)
|
|
67
67
|
return {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
name: 'gwiazda',
|
|
3
|
+
title: 'Narzędzie wielokąt/gwiazda',
|
|
4
|
+
buttons: [
|
|
5
|
+
{
|
|
6
|
+
title: 'Narzędzie gwiazda'
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
title: 'Narzędzie wielokąt'
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
contextTools: [
|
|
13
|
+
{
|
|
14
|
+
title: 'Liczba boków',
|
|
15
|
+
label: 'punkty'
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
title: 'Ostrość',
|
|
19
|
+
label: 'Ostrość'
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
title: 'Skręca gwiazdę',
|
|
23
|
+
label: 'Przesunięcie radialne'
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
title: 'Liczba boków',
|
|
27
|
+
label: 'boki'
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
loading: 'Ładowanie...',
|
|
3
|
+
categories: {
|
|
4
|
+
basic: 'Podstawowe',
|
|
5
|
+
object: 'Obiekty',
|
|
6
|
+
symbol: 'Symbole',
|
|
7
|
+
arrow: 'Strzałki',
|
|
8
|
+
flowchart: 'Schematy blokowe',
|
|
9
|
+
animal: 'Zwierzęta',
|
|
10
|
+
game: 'Karty i szachy',
|
|
11
|
+
dialog_balloon: 'Dymki dialogowe',
|
|
12
|
+
electronics: 'Elektronika',
|
|
13
|
+
math: 'Matematyczne',
|
|
14
|
+
music: 'Muzyka',
|
|
15
|
+
misc: 'Różne',
|
|
16
|
+
raphael_1: 'raphaeljs.com zestaw 1',
|
|
17
|
+
raphael_2: 'raphaeljs.com zestaw 2'
|
|
18
|
+
},
|
|
19
|
+
buttons: [
|
|
20
|
+
{
|
|
21
|
+
title: 'Biblioteka kształtów'
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|
|
@@ -61,7 +61,7 @@ const replaceStoragePrompt = val => {
|
|
|
61
61
|
|
|
62
62
|
export default {
|
|
63
63
|
name: 'storage',
|
|
64
|
-
init
|
|
64
|
+
init() {
|
|
65
65
|
const svgEditor = this
|
|
66
66
|
const { svgCanvas, storage } = svgEditor
|
|
67
67
|
|
|
@@ -96,7 +96,7 @@ export default {
|
|
|
96
96
|
const cached = storage.getItem(key)
|
|
97
97
|
if (cached) {
|
|
98
98
|
svgEditor.loadFromString(cached)
|
|
99
|
-
const name = storage.getItem(`title-${key}`) ?? '
|
|
99
|
+
const name = storage.getItem(`title-${key}`) ?? 'bez_tytulu.svg'
|
|
100
100
|
svgEditor.topPanel.updateTitle(name)
|
|
101
101
|
svgEditor.layersPanel.populateLayers()
|
|
102
102
|
}
|
|
@@ -180,6 +180,7 @@ export default {
|
|
|
180
180
|
* @returns {void}
|
|
181
181
|
*/
|
|
182
182
|
const setupBeforeUnloadListener = () => {
|
|
183
|
+
return;
|
|
183
184
|
window.addEventListener('beforeunload', function () {
|
|
184
185
|
// Don't save anything unless the user opted in to storage
|
|
185
186
|
if (
|
|
@@ -222,7 +223,9 @@ export default {
|
|
|
222
223
|
let loaded = false
|
|
223
224
|
return {
|
|
224
225
|
name: 'storage',
|
|
225
|
-
callback
|
|
226
|
+
callback() {
|
|
227
|
+
// Prevent from showing storage dialog
|
|
228
|
+
return;
|
|
226
229
|
const storagePrompt = new URL(top.location).searchParams.get(
|
|
227
230
|
'storagePrompt'
|
|
228
231
|
)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
message: 'Domyślnie i tam, gdzie jest to obsługiwane, SVG-Edit może przechowywać Twoje preferencje edytora ' +
|
|
3
|
+
'oraz treść SVG lokalnie na Twoim komputerze, dzięki czemu nie musisz ich za każdym razem dodawać przy ładowaniu SVG-Edit. Jeśli z powodów prywatności ' +
|
|
4
|
+
'nie chcesz przechowywać tych informacji na swoim komputerze, możesz zmienić opcję poniżej.',
|
|
5
|
+
storagePrefsAndContent: 'Przechowuj preferencje i treść SVG lokalnie',
|
|
6
|
+
storagePrefsOnly: 'Przechowuj tylko preferencje lokalnie',
|
|
7
|
+
storagePrefs: 'Przechowuj preferencje lokalnie',
|
|
8
|
+
storageNoPrefsOrContent: 'Nie przechowuj moich preferencji ani treści SVG lokalnie',
|
|
9
|
+
storageNoPrefs: 'Nie przechowuj moich preferencji lokalnie',
|
|
10
|
+
rememberLabel: 'Zapamiętać ten wybór?',
|
|
11
|
+
rememberTooltip: 'Jeśli wybierzesz opcję rezygnacji z przechowywania, pamiętając ten wybór, URL zmieni się tak, aby uniknąć ponownego pytania.'
|
|
12
|
+
}
|