@sequent-org/moodboard 1.2.84 → 1.2.85
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/package.json
CHANGED
|
@@ -102,15 +102,6 @@ export class MoodBoard {
|
|
|
102
102
|
// Инициализируем UI
|
|
103
103
|
this.initToolbar();
|
|
104
104
|
this.initTopbar();
|
|
105
|
-
// Включаем дефолтную сетку — первый тип из фабрики — если у доски нет сохранённой
|
|
106
|
-
try {
|
|
107
|
-
const savedGridType = this.coreMoodboard?.state?.state?.board?.grid?.type;
|
|
108
|
-
if (!savedGridType && this.settingsApplier) {
|
|
109
|
-
const types = (GridFactory.getAvailableTypes && GridFactory.getAvailableTypes()) || ['line', 'dot', 'cross'];
|
|
110
|
-
const firstType = Array.isArray(types) && types.length > 0 ? types[0] : 'line';
|
|
111
|
-
this.settingsApplier.apply({ grid: { type: firstType } });
|
|
112
|
-
}
|
|
113
|
-
} catch (_) {}
|
|
114
105
|
this.initZoombar();
|
|
115
106
|
this.initMapbar();
|
|
116
107
|
this.initContextMenu();
|