feat(editor): настройки экрана презентации при запуске сессии

Выбор монитора и полноэкранного режима в настройках; при «Запустить» окно презентации открывается на выбранном дисплее автоматически.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ivan Fontosh
2026-09-02 13:05:50 +08:00
parent 8b28a9b11a
commit 746b862cb9
13 changed files with 437 additions and 13 deletions
+1
View File
@@ -16,6 +16,7 @@ export * from './tokenPath';
export * from './tokenPathSession';
export * from './tokenPathPlayback';
export * from './scenePreviewRotation';
export * from './presentationSettings';
export * from './sceneTraps';
export * from './sceneView';
export * from './videoPlayback';
+19
View File
@@ -0,0 +1,19 @@
/** Настройки окна презентации (хранятся в userData/preferences.json). */
export type PresentationSettings = {
/** `null` — основной монитор системы. */
displayId: number | null;
fullScreen: boolean;
};
export type DisplayInfo = {
id: number;
label: string;
width: number;
height: number;
isPrimary: boolean;
};
export const DEFAULT_PRESENTATION_SETTINGS: PresentationSettings = {
displayId: null,
fullScreen: true,
};