feat: P1批次1 设计域(AI推荐/分享体系/阳光房绘图/量尺标注/逐格指定编辑)

This commit is contained in:
HHY
2026-09-25 06:17:29 -07:00
parent 6726a9fa3a
commit 76fd0ced14
21 changed files with 1154 additions and 20 deletions
+9
View File
@@ -92,6 +92,14 @@ export const DEC_PRESETS: { kind: string; label: string; rows: number; cols: num
{ kind: 'pastoral', label: '田园密格', rows: 4, cols: 4, bw: 14, color: '#ffffff' },
]
/** 逐格指定(自研扩展:把某玻璃格指定为开扇/玻璃配置/副梃;ri = 重放区域索引) */
export interface SashAssign {
ri: number
sash: { kind: 'fixed' | 'casement' | 'awning' | 'sliding' | 'kfc'; openToward?: 'inward' | 'outward'; openDirection?: 'left' | 'right' }
subBar?: boolean // 副梃(扇中梃)
glass?: string // 玻璃配置描述(如 中空 5+12A+5)
}
export interface FrameShape {
type: 'Frame' | string
polygon?: {
@@ -110,6 +118,7 @@ export interface FrameShape {
uid?: string
titl?: string
decs?: DecBar[] // 装饰格条(自研扩展)
assigns?: SashAssign[] // 逐格扇/玻璃指定(自研扩展)
[k: string]: unknown
}