@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sequent-org/moodboard",
3
- "version": "1.2.84",
3
+ "version": "1.2.85",
4
4
  "type": "module",
5
5
  "description": "Interactive moodboard",
6
6
  "main": "./src/index.js",
@@ -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();