feat(image-annotate): v1.2.9 图层 PS 快捷键 + 顶栏会话组左移
- 图层快捷键(PS 同款,e.code 匹配防中文输入法吞键): Ctrl+]/[ 上/下移一层、Ctrl+Shift+]/[ 置顶/置底、Alt+]/[ 向上/向下选层 - Delete 删除选中的位图图层(原图锁定除外) - moveLayer 无选中时 toast 提示,不再无声失败 - 顶栏「新建/覆盖/退出」移到最左会话组;右侧只留 输出+导出,下载改文案「导出」 - [ / ] 笔刷大小同时匹配 e.code,中文输入法下不再失灵 - __debug().shapes 补 z 字段;harness 新增 6 项断言(113 项全绿)
This commit is contained in:
1 parent
e1465b9d68
commit
9d923aed26
9 files changed
+255
-88
No files matched your search
@@ -383,8 +383,8 @@ export function setActiveLayer(id) {
|
||||
renderLayerPanel()
|
||||
}
|
||||
|
||||
/** 删除图层 */
|
||||
function deleteLayer(id) {
|
||||
/** 删除图层(图层面板按钮与 Delete 快捷键共用) */
|
||||
export function deleteLayer(id) {
|
||||
const idx = S.layers.findIndex(l => l.id === id)
|
||||
if (idx < 0) return
|
||||
// 不允许删除最后一个图层
|
||||
|
||||
Reference in new issue
Block a user