Lines Matching refs:mxSettings
8 var mxSettings = class
22 return mxSettings.settings.language;
26 mxSettings.settings.language = lang;
30 return mxSettings.settings.ui;
39 value = mxSettings.getDefaults();
49 value.version = mxSettings.currentVersion;
54 return mxSettings.settings.showStartScreen;
58 mxSettings.settings.showStartScreen = showStartScreen;
62 return (darkMode) ? mxSettings.settings.darkGridColor : mxSettings.settings.gridColor;
68 mxSettings.settings.darkGridColor = gridColor;
72 mxSettings.settings.gridColor = gridColor;
77 return mxSettings.settings.autosave;
81 mxSettings.settings.autosave = autosave;
85 return mxSettings.settings.resizeImages;
89 mxSettings.settings.resizeImages = resizeImages;
93 return mxSettings.settings.openCounter;
97 mxSettings.settings.openCounter = openCounter;
101 mxSettings.settings.customFonts = fonts;
106 var custFonts = mxSettings.settings.customFonts || [];
120 return mxSettings.settings.libraries;
124 mxSettings.settings.libraries = libs;
129 mxSettings.load();
132 if (!Array.isArray(mxSettings.settings.customLibraries))
134 mxSettings.settings.customLibraries = [];
137 if (mxUtils.indexOf(mxSettings.settings.customLibraries, id) < 0)
142 mxSettings.settings.customLibraries.splice(0, 0, id);
146 mxSettings.settings.customLibraries.push(id);
150 mxSettings.save();
155 mxSettings.load();
156 mxUtils.remove(id, mxSettings.settings.customLibraries);
157 mxSettings.save();
161 return mxSettings.settings.customLibraries;
165 return mxSettings.settings.plugins;
169 mxSettings.settings.plugins = plugins;
173 return mxSettings.settings.recentColors;
177 mxSettings.settings.recentColors = recentColors;
181 return parseInt(mxSettings.settings.formatWidth);
185 mxSettings.settings.formatWidth = formatWidth;
189 return mxSettings.settings.createTarget;
193 mxSettings.settings.createTarget = value;
197 return mxSettings.settings.pageFormat;
201 mxSettings.settings.pageFormat = value;
205 return mxSettings.settings.unit || mxConstants.POINTS;
209 mxSettings.settings.unit = value;
213 return mxSettings.settings.isRulerOn;
217 mxSettings.settings.isRulerOn = value;
229 formatWidth: mxSettings.defaultFormatWidth,
239 version: mxSettings.currentVersion,
248 mxSettings.settings = mxSettings.getDefaults();
256 delete mxSettings.settings.isNew;
257 mxSettings.settings.version = mxSettings.currentVersion;
258 localStorage.setItem(mxSettings.key, JSON.stringify(mxSettings.settings));
270 mxSettings.parse(localStorage.getItem(mxSettings.key));
273 if (mxSettings.settings == null)
275 mxSettings.init();
285 mxSettings.settings = null;
286 mxSettings.init();
290 mxSettings.settings = config;
292 if (mxSettings.settings.plugins == null)
294 mxSettings.settings.plugins = [];
297 if (mxSettings.settings.recentColors == null)
299 mxSettings.settings.recentColors = [];
302 if (mxSettings.settings.customFonts == null)
304 mxSettings.settings.customFonts = [];
307 if (mxSettings.settings.libraries == null)
309 mxSettings.settings.libraries = Sidebar.prototype.defaultEntries;
312 if (mxSettings.settings.customLibraries == null)
314 mxSettings.settings.customLibraries = Editor.defaultCustomLibraries;
317 if (mxSettings.settings.ui == null)
319 mxSettings.settings.ui = '';
322 if (mxSettings.settings.formatWidth == null)
324 mxSettings.settings.formatWidth = mxSettings.defaultFormatWidth;
327 if (mxSettings.settings.lastAlert != null)
329 delete mxSettings.settings.lastAlert;
332 if (mxSettings.settings.createTarget == null)
334 mxSettings.settings.createTarget = false;
337 if (mxSettings.settings.pageFormat == null)
339 mxSettings.settings.pageFormat = mxGraph.prototype.pageFormat;
342 if (mxSettings.settings.search == null)
344 mxSettings.settings.search = true;
347 if (mxSettings.settings.showStartScreen == null)
349 mxSettings.settings.showStartScreen = true;
352 if (mxSettings.settings.gridColor == null)
354 mxSettings.settings.gridColor = mxGraphView.prototype.defaultGridColor;
357 if (mxSettings.settings.darkGridColor == null)
359 mxSettings.settings.darkGridColor = mxGraphView.prototype.defaultDarkGridColor;
362 if (mxSettings.settings.autosave == null)
364 mxSettings.settings.autosave = true;
367 if (mxSettings.settings.scratchpadSeen != null)
369 delete mxSettings.settings.scratchpadSeen;
377 localStorage.removeItem(mxSettings.key);
396 mxSettings.load();