feat: v2.8 3D 预览放大模式+类型修正

- 组合页 3D 预览卡片: 放大按钮切换近全屏浮层(inset 2.5vh/2.5vw)
- 默认高度 300→380, 切换后派发 resize 让 3D 自适应
- drawing.ts 滑扇附着 reduce 种子类型修正(移除未定义 BBox 引用)
- vue-tsc 零错误, 构建通过
This commit is contained in:
HHY
2026-09-23 02:48:21 -07:00
parent 96159d4f35
commit d6e70fc571
3 changed files with 20 additions and 3 deletions
+1 -1
View File
@@ -273,7 +273,7 @@ export function inferSashGlyphs(shape: FrameShape, replayed?: Segment[][]): {
// 推拉双扇: 附着较高的区域(推拉窗滑扇在上半部, 对齐 31729 实况)
const kind = sub.type === 'DoubleSash' ? 'sliding' : 'casement'
if (kind === 'sliding') {
rb = regionBBs.reduce((p, c) => (!p || (c.y0 + c.y1) / 2 > (p.y0 + p.y1) / 2 ? c : p), null as BBox | null)
rb = regionBBs.reduce((p, c) => (!p || (c.y0 + c.y1) / 2 > (p.y0 + p.y1) / 2 ? c : p), regionBBs[0] ?? null)
}
if (rb) {
if (entries.length === 2) {