From b83b8f37554badb0fd1f05ba6ca0232b29c98dfb Mon Sep 17 00:00:00 2001 From: qiqi Date: Wed, 4 Nov 2026 20:44:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(image-annotate):=201.2.3=20=E6=A9=A1?= =?UTF-8?q?=E7=9A=AE=E4=BF=AE=E5=A4=8D(=E6=BC=8F=20import=20getActiveLayer?= =?UTF-8?q?=20+=20=E9=94=81=E5=AE=9A=E5=B1=82=E5=85=9C=E5=BA=95)/=E9=92=A2?= =?UTF-8?q?=E7=AC=94=E6=8F=8F=E8=BE=B9=E5=AE=9E=E5=BF=83=E5=88=87=E6=8D=A2?= =?UTF-8?q?/=E4=BE=A7=E6=A0=8F=E7=AC=94=E5=88=B7=E7=B2=97=E7=BB=86?= =?UTF-8?q?=E7=A7=BB=E9=99=A4/=E9=A1=B6=E6=A0=8F=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E7=BB=84=E5=8F=B3=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- image-annotate/package.json | 2 +- image-annotate/plugin/editor.css | 8 +- image-annotate/plugin/editor/dom.js | 20 +-- image-annotate/plugin/editor/events.js | 151 ++++++++-------------- image-annotate/plugin/editor/index.js | 3 +- image-annotate/plugin/editor/state.js | 1 + image-annotate/src/index.js | 171 ++++++++----------------- image-annotate/tools/harness.mjs | 76 +++++++++-- 8 files changed, 190 insertions(+), 242 deletions(-) diff --git a/image-annotate/package.json b/image-annotate/package.json index da7e848..541498a 100644 --- a/image-annotate/package.json +++ b/image-annotate/package.json @@ -1,7 +1,7 @@ { "name": "@iwb-plugin/image-annotate", "private": true, - "version": "1.2.2", + "version": "1.2.3", "description": "IWB 插件:图片标注 / 修图(编辑器移植自 iwb-plaus 扩展,纯 Canvas 2D)", "ibwPlugin": { "id": "image-annotate", diff --git a/image-annotate/plugin/editor.css b/image-annotate/plugin/editor.css index c315c85..8a80359 100755 --- a/image-annotate/plugin/editor.css +++ b/image-annotate/plugin/editor.css @@ -1318,7 +1318,9 @@ /* 顶部左右两组工具交换:左=新建/覆盖/退出,右=撤销/重做/清空/复原 */ .iwb-editor-header > .iwb-editor-title { order: 0; } -.iwb-editor-header > .iwb-editor-export-actions { order: 1; margin-left: 0; margin-right: 4px; } +/* 输出设定 + 下载/新建/覆盖/退出 收在顶栏最右侧(用户裁定 2026-11-04): + order 排最后 + margin-left:auto 兜底,中间工具区 flex:1 会把它顶到右端 */ +.iwb-editor-header > .iwb-editor-export-actions { order: 9; margin-left: auto; margin-right: 0; flex: 0 0 auto; } .iwb-editor-header > .iwb-editor-tools { order: 2; flex: 1 1 auto; justify-content: center; } .iwb-editor-header > .iwb-editor-history { order: 3; margin-left: 0; } @@ -1540,3 +1542,7 @@ .iwb-editor-optionbar-body .iwb-editor-crop-confirm:hover { background: #15803d; } .iwb-editor-optionbar-body .iwb-editor-crop-cancel { background: #cf222e; color: #fff; } .iwb-editor-optionbar-body .iwb-editor-crop-cancel:hover { background: #b91c1c; } + +/* ---- v1.2.3:侧栏只留调色板 + 缩放 ---- */ +/* 笔刷粗细/快捷点从侧栏移除后,缩放条直接挂在 aside 下:贴底,与调色板拉开距离 */ +.iwb-editor-left > .iwb-editor-zoom { margin-top: auto; border-top: 1px solid #313244; padding-top: 10px; } diff --git a/image-annotate/plugin/editor/dom.js b/image-annotate/plugin/editor/dom.js index 20f6e13..0cf1501 100644 --- a/image-annotate/plugin/editor/dom.js +++ b/image-annotate/plugin/editor/dom.js @@ -164,24 +164,8 @@ import { bindEvents } from './events.js'