fix(image-annotate): 1.2.7 首笔自动建层缺视图样式导致第一笔错位(补 updateLayerCanvasStyles) + PS 画笔大小快捷键 [/]

This commit is contained in:
qiqi committed 2026-11-04 21:59:03 +08:00
1 parent 9e50697dd6
commit a1c3a40f17
6 files changed
+48 -7

No files matched your search

+4
View File
@@ -347,6 +347,10 @@ export function setActiveLayer(id) {
}
S.layers.push(layer)
reorderLayerCanvas()
// 新 canvas 必须立刻套上当前视图的显示尺寸/偏移,否则它会以原始像素尺寸
// 贴在 stack 原点 —— 表现就是「第一笔画在错误的位置,滚轮缩放后才正常」
// (addBlankLayer 一直有这步,这里漏了。2026-11-04 用户反馈)
updateLayerCanvasStyles()
setActiveLayer(id)
renderLayerPanel()
return layer