auto-save 2026-05-13 20:01 (~6)

This commit is contained in:
2026-05-13 20:01:52 +08:00
parent 28de936c7c
commit 3f9075f2ce
6 changed files with 68 additions and 36 deletions

View File

@@ -37,8 +37,8 @@ export interface NodeData {
onDeleteFrame?: (idx: number) => void // 删整张关键帧
onDeleteGenerated?: (frameIdx: number, genId: string) => void // 删单张生成图
onOpenStoryboard?: (frameIdx: number) => void // 打开分镜头编排专属面板
onOpenWorkbench?: (frameIdx?: number) => void // 打开全屏分镜编排工作台
onCopyImage?: (ref: ImageRef) => void // 复制图片到全局剪贴板(粘贴到分镜头编排工作台插槽)
onOpenWorkbench?: (frameIdx?: number) => void // 展开顶部分镜编排内嵌面板
onCopyImage?: (ref: ImageRef) => void // 复制图片到全局剪贴板(粘贴到分镜头编排插槽)
}
/* ---- 状态映射工具 ---- */
@@ -522,8 +522,9 @@ export function KeyframePanelNode({ data }: any) {
const getStoryboardDockTop = () => {
if (typeof window === "undefined") return 64
const dock = document.querySelector<HTMLElement>('[data-storyboard-dock="true"]')
const bar = document.querySelector<HTMLElement>('[data-storyboard-bar="true"]')
const bottom = bar?.getBoundingClientRect().bottom ?? 52
const bottom = (dock ?? bar)?.getBoundingClientRect().bottom ?? 52
return Math.max(56, Math.min(window.innerHeight - 120, bottom + 10))
}
@@ -535,7 +536,8 @@ export function KeyframePanelNode({ data }: any) {
}
syncDock()
const bar = document.querySelector<HTMLElement>('[data-storyboard-bar="true"]')
const bar = document.querySelector<HTMLElement>('[data-storyboard-dock="true"]')
?? document.querySelector<HTMLElement>('[data-storyboard-bar="true"]')
let observer: ResizeObserver | null = null
if (bar && "ResizeObserver" in window) {
observer = new ResizeObserver(syncDock)