@sequent-org/moodboard 1.2.82 → 1.2.83

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.82",
3
+ "version": "1.2.83",
4
4
  "type": "module",
5
5
  "description": "Interactive moodboard",
6
6
  "main": "./src/index.js",
@@ -101,6 +101,13 @@ export class MoodBoard {
101
101
  // Инициализируем UI
102
102
  this.initToolbar();
103
103
  this.initTopbar();
104
+ // Включаем дефолтную сетку (вариант 1 — line), если у доски нет сохранённой
105
+ try {
106
+ const savedGridType = this.coreMoodboard?.state?.state?.board?.grid?.type;
107
+ if (!savedGridType && this.settingsApplier) {
108
+ this.settingsApplier.apply({ grid: { type: 'line' } });
109
+ }
110
+ } catch (_) {}
104
111
  this.initZoombar();
105
112
  this.initMapbar();
106
113
  this.initContextMenu();