feat(image-annotate): v1.16.0 右栏常驻调色面板 + 可拖宽度 + 字号提升一档

This commit is contained in:
qiqi committed 2026-11-09 17:36:44 +08:00
1 parent 6a14f900df
commit a477705c7f
12 files changed
+2983 -238

No files matched your search

+4 -1
View File
@@ -33,7 +33,7 @@ import { createEl, loadImage } from './dom.js'
import { renderObjects, hideTextInput, textBounds } from './objects.js'
import { setupCanvas } from './viewport.js'
import { resetOverlayTransform } from './scale.js'
import { updateAllUI, bindLiteUI, renderOptionBar, updateStatusbar } from './events.js'
import { updateAllUI, bindLiteUI, renderOptionBar, updateStatusbar, loadSideWidth } from './events.js'
import { disposeSelection, renderSelection, selectionInfo, syncAnts, registerSelectionCommands } from './selection.js'
import { bindFloating, positionFloating, hideSelectionContext } from './floating.js'
import { renderFxPanel } from './effects.js'
@@ -73,6 +73,9 @@ import { toast } from './commands.js'
bindFloating()
bindExportUI()
initPanels()
// 右栏宽度跟着用户上次拖的位置(v1.16);必须在 initPanels 之后——
// 侧栏收起时元素虽 display:none,写 CSS 变量仍然有效,下次展开直接生效
loadSideWidth()
renderAll()
} catch (e) {
console.error('[IWB编辑器] 打开失败:', e)