svgedit-pl 7.3.6 → 7.3.11
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-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-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 +11 -11
- 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 +12 -12
- 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 +26 -7
- package/docs/jsdoc/extensions_ext-storage_storageDialog.js.html +8 -8
- 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/ConfigObj.js +10 -10
- package/src/editor/Editor.js +53 -54
- package/src/editor/EditorStartup.js +11 -10
- package/src/editor/MainMenu.js +11 -11
- package/src/editor/extensions/ext-opensave/ext-opensave.js +4 -4
- package/src/editor/extensions/ext-panning/ext-panning.js +5 -5
- package/src/editor/extensions/ext-storage/ext-storage.js +25 -6
- package/src/editor/extensions/ext-storage/storageDialog.js +7 -7
- package/src/editor/panels/TopPanel.html +1 -1
|
@@ -281,7 +281,7 @@ value as a string.</a></li><li><a href="global.html#get">get</a></li><li><a href
|
|
|
281
281
|
<br class="clear">
|
|
282
282
|
|
|
283
283
|
<footer>
|
|
284
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on
|
|
284
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on Wed Jan 15 2025 12:33:56 GMT+0100 (czas środkowoeuropejski standardowy)
|
|
285
285
|
</footer>
|
|
286
286
|
|
|
287
287
|
<script> prettyPrint(); </script>
|
|
@@ -783,7 +783,7 @@ value as a string.</a></li><li><a href="global.html#get">get</a></li><li><a href
|
|
|
783
783
|
<br class="clear">
|
|
784
784
|
|
|
785
785
|
<footer>
|
|
786
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on
|
|
786
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on Wed Jan 15 2025 12:33:56 GMT+0100 (czas środkowoeuropejski standardowy)
|
|
787
787
|
</footer>
|
|
788
788
|
|
|
789
789
|
<script> prettyPrint(); </script>
|
|
@@ -350,7 +350,7 @@ value as a string.</a></li><li><a href="global.html#get">get</a></li><li><a href
|
|
|
350
350
|
<br class="clear">
|
|
351
351
|
|
|
352
352
|
<footer>
|
|
353
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on
|
|
353
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on Wed Jan 15 2025 12:33:56 GMT+0100 (czas środkowoeuropejski standardowy)
|
|
354
354
|
</footer>
|
|
355
355
|
|
|
356
356
|
<script> prettyPrint(); </script>
|
|
@@ -210,7 +210,7 @@ value as a string.</a></li><li><a href="global.html#get">get</a></li><li><a href
|
|
|
210
210
|
<br class="clear">
|
|
211
211
|
|
|
212
212
|
<footer>
|
|
213
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on
|
|
213
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on Wed Jan 15 2025 12:33:56 GMT+0100 (czas środkowoeuropejski standardowy)
|
|
214
214
|
</footer>
|
|
215
215
|
|
|
216
216
|
<script> prettyPrint(); </script>
|
|
@@ -306,7 +306,7 @@ value as a string.</a></li><li><a href="global.html#get">get</a></li><li><a href
|
|
|
306
306
|
<br class="clear">
|
|
307
307
|
|
|
308
308
|
<footer>
|
|
309
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on
|
|
309
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on Wed Jan 15 2025 12:33:55 GMT+0100 (czas środkowoeuropejski standardowy)
|
|
310
310
|
</footer>
|
|
311
311
|
|
|
312
312
|
<script> prettyPrint(); </script>
|
|
@@ -377,7 +377,7 @@ value as a string.</a></li><li><a href="global.html#get">get</a></li><li><a href
|
|
|
377
377
|
<br class="clear">
|
|
378
378
|
|
|
379
379
|
<footer>
|
|
380
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on
|
|
380
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on Wed Jan 15 2025 12:33:55 GMT+0100 (czas środkowoeuropejski standardowy)
|
|
381
381
|
</footer>
|
|
382
382
|
|
|
383
383
|
<script> prettyPrint(); </script>
|
|
@@ -270,7 +270,7 @@ value as a string.</a></li><li><a href="global.html#get">get</a></li><li><a href
|
|
|
270
270
|
<br class="clear">
|
|
271
271
|
|
|
272
272
|
<footer>
|
|
273
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on
|
|
273
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on Wed Jan 15 2025 12:33:55 GMT+0100 (czas środkowoeuropejski standardowy)
|
|
274
274
|
</footer>
|
|
275
275
|
|
|
276
276
|
<script> prettyPrint(); </script>
|
|
@@ -1100,7 +1100,7 @@ value as a string.</a></li><li><a href="global.html#get">get</a></li><li><a href
|
|
|
1100
1100
|
<br class="clear">
|
|
1101
1101
|
|
|
1102
1102
|
<footer>
|
|
1103
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on
|
|
1103
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on Wed Jan 15 2025 12:33:55 GMT+0100 (czas środkowoeuropejski standardowy)
|
|
1104
1104
|
</footer>
|
|
1105
1105
|
|
|
1106
1106
|
<script> prettyPrint(); </script>
|
|
@@ -57,7 +57,7 @@ value as a string.</a></li><li><a href="global.html#get">get</a></li><li><a href
|
|
|
57
57
|
<br class="clear">
|
|
58
58
|
|
|
59
59
|
<footer>
|
|
60
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on
|
|
60
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on Wed Jan 15 2025 12:33:56 GMT+0100 (czas środkowoeuropejski standardowy)
|
|
61
61
|
</footer>
|
|
62
62
|
|
|
63
63
|
<script> prettyPrint(); </script>
|
|
@@ -167,7 +167,7 @@ value as a string.</a></li><li><a href="global.html#get">get</a></li><li><a href
|
|
|
167
167
|
<br class="clear">
|
|
168
168
|
|
|
169
169
|
<footer>
|
|
170
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on
|
|
170
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on Wed Jan 15 2025 12:33:56 GMT+0100 (czas środkowoeuropejski standardowy)
|
|
171
171
|
</footer>
|
|
172
172
|
|
|
173
173
|
<script> prettyPrint(); </script>
|
|
@@ -69,7 +69,7 @@ value as a string.</a></li><li><a href="global.html#get">get</a></li><li><a href
|
|
|
69
69
|
<br class="clear">
|
|
70
70
|
|
|
71
71
|
<footer>
|
|
72
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on
|
|
72
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on Wed Jan 15 2025 12:33:56 GMT+0100 (czas środkowoeuropejski standardowy)
|
|
73
73
|
</footer>
|
|
74
74
|
|
|
75
75
|
<script> prettyPrint(); </script>
|
|
@@ -51,7 +51,7 @@ value as a string.</a></li><li><a href="global.html#get">get</a></li><li><a href
|
|
|
51
51
|
<br class="clear">
|
|
52
52
|
|
|
53
53
|
<footer>
|
|
54
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on
|
|
54
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on Wed Jan 15 2025 12:33:56 GMT+0100 (czas środkowoeuropejski standardowy)
|
|
55
55
|
</footer>
|
|
56
56
|
|
|
57
57
|
<script> prettyPrint(); </script>
|
|
@@ -217,7 +217,7 @@ value as a string.</a></li><li><a href="global.html#get">get</a></li><li><a href
|
|
|
217
217
|
<br class="clear">
|
|
218
218
|
|
|
219
219
|
<footer>
|
|
220
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on
|
|
220
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on Wed Jan 15 2025 12:33:56 GMT+0100 (czas środkowoeuropejski standardowy)
|
|
221
221
|
</footer>
|
|
222
222
|
|
|
223
223
|
<script> prettyPrint(); </script>
|
|
@@ -223,7 +223,7 @@ value as a string.</a></li><li><a href="global.html#get">get</a></li><li><a href
|
|
|
223
223
|
<br class="clear">
|
|
224
224
|
|
|
225
225
|
<footer>
|
|
226
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on
|
|
226
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on Wed Jan 15 2025 12:33:56 GMT+0100 (czas środkowoeuropejski standardowy)
|
|
227
227
|
</footer>
|
|
228
228
|
|
|
229
229
|
<script> prettyPrint(); </script>
|
|
@@ -99,7 +99,7 @@ value as a string.</a></li><li><a href="global.html#get">get</a></li><li><a href
|
|
|
99
99
|
<br class="clear">
|
|
100
100
|
|
|
101
101
|
<footer>
|
|
102
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on
|
|
102
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on Wed Jan 15 2025 12:33:56 GMT+0100 (czas środkowoeuropejski standardowy)
|
|
103
103
|
</footer>
|
|
104
104
|
|
|
105
105
|
<script> prettyPrint(); </script>
|
|
@@ -82,7 +82,7 @@ value as a string.</a></li><li><a href="global.html#get">get</a></li><li><a href
|
|
|
82
82
|
<br class="clear">
|
|
83
83
|
|
|
84
84
|
<footer>
|
|
85
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on
|
|
85
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on Wed Jan 15 2025 12:33:56 GMT+0100 (czas środkowoeuropejski standardowy)
|
|
86
86
|
</footer>
|
|
87
87
|
|
|
88
88
|
<script> prettyPrint(); </script>
|
|
@@ -115,7 +115,7 @@ value as a string.</a></li><li><a href="global.html#get">get</a></li><li><a href
|
|
|
115
115
|
<br class="clear">
|
|
116
116
|
|
|
117
117
|
<footer>
|
|
118
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on
|
|
118
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on Wed Jan 15 2025 12:33:55 GMT+0100 (czas środkowoeuropejski standardowy)
|
|
119
119
|
</footer>
|
|
120
120
|
|
|
121
121
|
<script> prettyPrint(); </script>
|
package/package.json
CHANGED
package/src/editor/ConfigObj.js
CHANGED
|
@@ -17,7 +17,7 @@ export default class ConfigObj {
|
|
|
17
17
|
/**
|
|
18
18
|
* @param {PlainObject} editor
|
|
19
19
|
*/
|
|
20
|
-
constructor
|
|
20
|
+
constructor(editor) {
|
|
21
21
|
/**
|
|
22
22
|
* Preferences.
|
|
23
23
|
* @interface module:SVGEditor.Prefs
|
|
@@ -217,7 +217,7 @@ export default class ConfigObj {
|
|
|
217
217
|
* @function setupCurPrefs
|
|
218
218
|
* @returns {void}
|
|
219
219
|
*/
|
|
220
|
-
setupCurPrefs
|
|
220
|
+
setupCurPrefs() {
|
|
221
221
|
const curPrefs = { ...this.defaultPrefs, ...this.curPrefs } // Now safe to merge with priority for curPrefs in the event any are already set
|
|
222
222
|
// Export updated prefs
|
|
223
223
|
this.curPrefs = curPrefs
|
|
@@ -227,7 +227,7 @@ export default class ConfigObj {
|
|
|
227
227
|
* Sets up current config based on defaults.
|
|
228
228
|
* @returns {void}
|
|
229
229
|
*/
|
|
230
|
-
setupCurConfig
|
|
230
|
+
setupCurConfig() {
|
|
231
231
|
const curConfig = { ...this.defaultConfig, ...this.curConfig } // Now safe to merge with priority for curConfig in the event any are already set
|
|
232
232
|
|
|
233
233
|
// Now deal with extensions and other array config
|
|
@@ -242,7 +242,7 @@ export default class ConfigObj {
|
|
|
242
242
|
* @function loadFromURL Load config/data from URL if given
|
|
243
243
|
* @returns {void}
|
|
244
244
|
*/
|
|
245
|
-
loadFromURL
|
|
245
|
+
loadFromURL() {
|
|
246
246
|
const self = this
|
|
247
247
|
const { search, searchParams } = new URL(location)
|
|
248
248
|
if (search) {
|
|
@@ -337,10 +337,10 @@ export default class ConfigObj {
|
|
|
337
337
|
* that, it will then be subject to tampering
|
|
338
338
|
* @returns {void}
|
|
339
339
|
*/
|
|
340
|
-
loadContentAndPrefs
|
|
340
|
+
loadContentAndPrefs() {
|
|
341
341
|
if (!this.curConfig.forceStorage &&
|
|
342
342
|
(this.curConfig.noStorageOnLoad ||
|
|
343
|
-
|
|
343
|
+
!(/(?:^|;\s*)svgeditstore=(?:prefsAndContent|prefsOnly)/).test(document.cookie)
|
|
344
344
|
)
|
|
345
345
|
) {
|
|
346
346
|
return
|
|
@@ -388,7 +388,7 @@ export default class ConfigObj {
|
|
|
388
388
|
* not be needed in `svgedit-config-iife.js`.
|
|
389
389
|
* @returns {void}
|
|
390
390
|
*/
|
|
391
|
-
setConfig
|
|
391
|
+
setConfig(opts, cfgCfg = {}) {
|
|
392
392
|
/**
|
|
393
393
|
*
|
|
394
394
|
* @param {module:SVGEditor.Config|module:SVGEditor.Prefs} cfgObj
|
|
@@ -428,7 +428,7 @@ export default class ConfigObj {
|
|
|
428
428
|
return
|
|
429
429
|
}
|
|
430
430
|
this.curConfig[key] = this.curConfig[key].concat(val) // We will handle any dupes later
|
|
431
|
-
|
|
431
|
+
// Only allow other configObj.curConfig if defined in configObj.defaultConfig
|
|
432
432
|
} else if ({}.hasOwnProperty.call(this.defaultConfig, key)) {
|
|
433
433
|
if (cfgCfg.overwrite === false && (
|
|
434
434
|
this.curConfig.preventAllURLConfig ||
|
|
@@ -470,7 +470,7 @@ export default class ConfigObj {
|
|
|
470
470
|
* button to auto-calculate background, but otherwise uses `svgEditor.configObj.pref()` to
|
|
471
471
|
* be able to get default prefs or overridable settings
|
|
472
472
|
*/
|
|
473
|
-
pref
|
|
473
|
+
pref(key, val, mayBeEmpty) {
|
|
474
474
|
if (mayBeEmpty || val) {
|
|
475
475
|
this.curPrefs[key] = val
|
|
476
476
|
return undefined
|
|
@@ -482,7 +482,7 @@ export default class ConfigObj {
|
|
|
482
482
|
* @function load load Config
|
|
483
483
|
* @returns {void}
|
|
484
484
|
*/
|
|
485
|
-
load
|
|
485
|
+
load() {
|
|
486
486
|
this.loadFromURL(this.editor)
|
|
487
487
|
this.setupCurPrefs(this.editor)
|
|
488
488
|
}
|