@sequent-org/moodboard 1.4.40 → 1.4.42

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.4.40",
3
+ "version": "1.4.42",
4
4
  "type": "module",
5
5
  "description": "Interactive moodboard",
6
6
  "main": "./src/index.js",
@@ -205,6 +205,11 @@ export class PixiEngine {
205
205
  renderer.resolution = dpr;
206
206
  }
207
207
  renderer.resize(w, h);
208
+ // Немедленный перерендер — иначе до следующего тика PIXI буфер
209
+ // отображается очищенным (чёрный кадр) на время resize.
210
+ if (this.app?.stage) {
211
+ renderer.render(this.app.stage);
212
+ }
208
213
  }
209
214
 
210
215
  // Добавление/обновление сетки в gridLayer
@@ -66,7 +66,7 @@ const MODEL_OPTIONS = [
66
66
  {
67
67
  id: 'auto',
68
68
  label: 'Автоматический режим',
69
- icon: ICONS.sparkles,
69
+ icon: ICONS.modelBot,
70
70
  description: 'Мы подберем модель для ваших задач.'
71
71
  },
72
72
  {
@@ -54,7 +54,12 @@ const MODEL_QWEN_ICON = `<svg xmlns="http://www.w3.org/2000/svg" width="36" heig
54
54
  /** Placeholder Yandex Alice — буква А в круге, 36×36 */
55
55
  const MODEL_ALICE_ICON = `<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36" fill="none" aria-hidden="true"><circle cx="18" cy="18" r="16" fill="#fc3f1d"/><text x="18" y="23" text-anchor="middle" font-size="16" font-family="Arial,sans-serif" fill="#fff" font-weight="bold">А</text></svg>`;
56
56
 
57
+ /** Иконка «Автоматический режим» — робот, 36×36, outline */
58
+ const MODEL_BOT_ICON = `<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 8V4H8"/><rect width="16" height="12" x="4" y="8" rx="2"/><path d="M2 14h2"/><path d="M20 14h2"/><path d="M15 13v2"/><path d="M9 13v2"/></svg>`;
59
+
57
60
  export const ICONS = {
61
+ bot: svg('<path d="M12 8V4H8"/><rect width="16" height="12" x="4" y="8" rx="2"/><path d="M2 14h2"/><path d="M20 14h2"/><path d="M15 13v2"/><path d="M9 13v2"/>'),
62
+ modelBot: MODEL_BOT_ICON,
58
63
  image: IMAGE_ICON,
59
64
  video: VIDEO_ICON,
60
65
  bolt: svg('<path d="M13 3L4 14h6l-1 7 9-11h-6l1-7z"/>'),
@@ -889,6 +889,9 @@
889
889
  inset: 0;
890
890
  overflow: hidden;
891
891
  touch-action: none;
892
+ /* Цвет совпадает с дефолтным фоном PIXI (0xF5F5F5),
893
+ чтобы при очистке WebGL-буфера во время resize не мелькал чёрный. */
894
+ background-color: #f5f5f5;
892
895
  }
893
896
 
894
897
  /* Toolbar Styles */