feat(image-annotate): v1.13.0 顶栏瘦身 / 视图按钮归位 / R·O·L 快捷键 / 填充色实时 / 图层解封
1. 顶栏删掉置顶/上移/下移/置底四个层级按钮(图层拖动 + Ctrl+]/[ 已覆盖), `.iwb-editor-commands` 整块移除,`updateLayerUI()` / `bindLayerOrderButtons()` 一并清除。 2. 「适应窗口 / 收起侧栏」移到工具栏 DOM 末尾 —— 工具栏是 shrink-to-fit 的 absolute 居中容器,放最后天然就在最右,无需额外定位。 3. 快捷键:R 矩形、O 圆形、L 箭头;套索从 L 迁到 A(能力不丢),U 与 Shift+U 保留。 键盘处理改为优先匹配 e.code,修掉中文输入法下 [ ] 变【】导致的失灵。 4. 原生 <input type="color"> 补接 input 事件做实时预览(skipHistory + nativeColorSnapped),change 才落一次可撤销提交 —— 拖一整轮色谱只记 1 步。 5. 原图不再钉底:planPanelOrder / updateSortTarget / onSortEnd / moveLayer / mergeUnits 五处解封,其他图层可拖到原图下方,面板提示同步更新。 回归:tools/harness.mjs 140 → 192 条全通;npm run validate 9/9。
This commit is contained in:
1 parent
9c938887c1
commit
31866a2407
11 files changed
+847
-242
No files matched your search
@@ -1751,6 +1751,27 @@
|
||||
}
|
||||
.iwb-editor-color-pair[data-color-mode="single"] [data-color-slot="stroke"] i { width: 20px; height: 20px; border-radius: 6px; }
|
||||
|
||||
/* ---- v1.12:文字上下文的第三格「文本框底色」 ----
|
||||
文字对象天生三个颜色(文字 / 描边 / 底色),两格叠放塞不下第三个。
|
||||
文字上下文三格横排,各 18px,谁在调谁戴橙圈。
|
||||
选择器必须带上 .iwb-editor-canvas-wrap > .iwb-editor-tools 前缀:上面那条
|
||||
30px 宽的定位规则是三段选择器,少了前缀优先级压不过它,格子会被挤成 10px。 */
|
||||
.iwb-editor-color-pair [data-color-slot="bg"] { display: none; }
|
||||
.iwb-editor-canvas-wrap > .iwb-editor-tools .iwb-editor-color-pair[data-color-mode="triple"] {
|
||||
width: 62px; display: flex; align-items: center; justify-content: space-between;
|
||||
}
|
||||
.iwb-editor-canvas-wrap > .iwb-editor-tools .iwb-editor-color-pair[data-color-mode="triple"] [data-color-slot] {
|
||||
position: relative; left: auto; top: auto; right: auto; bottom: auto; z-index: 1;
|
||||
display: inline-flex; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 5px;
|
||||
}
|
||||
.iwb-editor-canvas-wrap > .iwb-editor-tools .iwb-editor-color-pair[data-color-mode="triple"] [data-color-slot="bg"] {
|
||||
display: inline-flex;
|
||||
}
|
||||
.iwb-editor-canvas-wrap > .iwb-editor-tools .iwb-editor-color-pair[data-color-mode="triple"] .iwb-editor-color-btn i {
|
||||
width: 11px; height: 11px; border-radius: 3px;
|
||||
}
|
||||
|
||||
|
||||
.iwb-editor-color-pop {
|
||||
position: absolute; z-index: 60; display: flex; flex-direction: column; align-items: stretch; gap: 9px;
|
||||
padding: 10px 12px; border-radius: 12px;
|
||||
|
||||
Reference in new issue
Block a user