feat(image-annotate): v1.18.0 色板可钉住 + 右列竖向收窄 + 撤销组搬进工具条最右

This commit is contained in:
qiqi committed 2026-11-10 06:59:04 +08:00
1 parent b6d10339f6
commit a94e5be954
10 files changed
+408 -86

No files matched your search

+4 -1
View File
@@ -56,6 +56,9 @@
// 色板(调色器 / 吸管 / 推荐色 / hex)按这个值决定写 S.color 还是 shapeFillColor,
// 否则「三个地方各调各的颜色」会一直存在。
colorTarget: 'stroke', // stroke | fill
// v1.18:色板弹层是否「钉住」。钉住后点画布/点别处都不收起,方便连着调几处颜色。
// 存宿主 KV(跨会话记住):钉过一次就一直钉着,下次打开仍生效。
colorPopPinned: false,
// v1.16:右侧栏宽度(px)。0 = 按默认值走,打开编辑器时从宿主 KV 恢复。
// 宽度统一落在 CSS 变量 --iwb-side-w 上,不再各条规则各写一个魔数。
sideWidth: 0,
@@ -70,7 +73,7 @@
textBgFill: TEXT_DEFAULTS.bgFill, // 底色块
textBgColor: TEXT_DEFAULTS.bgColor, // 中性近黑,不再是纯黑 #000000
textBgAlpha: TEXT_DEFAULTS.bgAlpha, // 底色透明度(色块按这个不透明度显示,所见即所得)
// 最近使用颜色(最多 8 个,存 ctx.settings,跨会话保留)
// 最近使用颜色(最多 6 个,存 ctx.settings,跨会话保留)
recentColors: [],
// 图层系统
layers: [], // 位图图层数组 [{ id, name, canvas, ctx, opacity, visible, z }]