完善定义

This commit is contained in:
JoyD
2025-10-28 22:25:42 +08:00
parent ddd1d239aa
commit 91169a7b61
4 changed files with 41 additions and 1 deletions

View File

@@ -6,7 +6,7 @@
*/
/** 面板区枚举 */
export type PanelPosition = 'left' | 'right' | 'top' | 'bottom' | 'center';
export type PanelPosition = 'left' | 'right' | 'top' | 'bottom' | 'center' | 'floating';
/** 影响关系项 */
export interface InfluenceEntry {
@@ -75,6 +75,7 @@ export interface MinSizes {
export interface DockLayoutState {
rootAreaId: string; // 根面板区id
areas: Record<string, PanelArea>; // 面板区(一级容器)
floatingAreaIds: Set<string>; // 浮动面板区id集合全局去重
allPanels: Record<string, PanelMeta>; // 全局面板列表(非 DOM 实例)
pendingGlobalRecompute?: Set<string>; // 全局待重算队列可选防循环控制面板区id
}