Compare commits

...
10 Commits
Author SHA1 Message Date
qiqi 53f41c2f9f docs(site): v3.26.57
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 59s
2026-11-24 11:50:16 +08:00
qiqi f7ace22121 feat(plugins): 同步便利贴 sticky v1.0.5(圆角对齐宿主节点)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 36s
2026-11-24 11:49:20 +08:00
qiqi 57b885be31 docs: 锚点对齐 v3.26.57+93871f7(publish 自动) 2026-11-24 11:48:31 +08:00
qiqi 93871f7e91 release: v3.26.57 节点浮层收口(无闪现 / 统一尺寸 / popover token) 2026-11-24 11:46:44 +08:00
qiqi 75a70654ee fix(popover): 首帧不再在左上角闪一下(定位改 useLayoutEffect + 未定位隐藏);选择项统一尺寸并加 popover token
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 34s
2026-11-24 11:46:16 +08:00
qiqi 5b5dbbd417 feat(plugins): 同步便利贴 sticky v1.0.4(rows=1 去掉预留行高)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 35s
2026-11-24 11:45:29 +08:00
qiqi f64898db96 feat(plugins): 同步便利贴 sticky v1.0.3(外框贴字+调色点右上)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 40s
2026-11-24 11:38:04 +08:00
qiqi 9c8e7745f9 feat(plugins): 同步便利贴 sticky v1.0.2(贴字自适应+色板跟随按钮)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 54s
2026-11-24 11:20:31 +08:00
qiqi 48b85cae04 chore(plugins): promptlib 1.9.1 市场同步
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 36s
2026-11-24 11:16:22 +08:00
qiqi c4305c184a feat(plugins): 同步便利贴 sticky v1.0.1(修拖动漏底/字号无上限/双击编辑)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 55s
2026-11-24 11:00:32 +08:00
20 changed files with 266 additions and 105 deletions

No files matched your search

+9
View File
@@ -16,6 +16,15 @@
> 3. 核验正式地址版本 → 之后才移动 `stable` / `stable-verified-<日期>` 标签、更新本 CHANGELOG、写 GitHub Release(`gh release create`)。
> 测试发现问题 → 改 → 再 `deploy:test`,正式环境不受影响。回滚点 `git reset --hard stable`。
## v3.26.57(2026-11-24)节点浮层收口:去掉左上闪现、选择项统一尺寸、popover token
> 状态:正式发布(macOS arm64 / x86_64)
- 修「点开模型设置/图像设置时画布左上先闪一下」:定位从 `useEffect` 改 `useLayoutEffect`,未定位前 `visibility:hidden`(首帧默认坐标 (40,40) 是闪现根因)
- 选择项统一:`.iwb-chip-line` 与 `.iwb-gc-item` 共用 32px 高、8px 圆角、13px 字号、12px 左右内边距;下拉框同高
- 新增 popover token(§3.13):`--iwb-pop-w/pad/gap/radius/title-size/chip-h/chip-pad-x/chip-radius/chip-gap/chip-size`
- 面板内边距 16/18 → 16/20、分组间距统一 8px,两套浮层观感一致
## v3.26.56(2026-11-24)插件流程收口:分享/导入、收藏归位、图库目录与删除、插件设置页 token 化
> 状态:正式发布(macOS arm64 / x86_64)
+3 -3
View File
@@ -5028,8 +5028,8 @@ const tbCenterSeed = (type, refs) => {
// 与 PickerBubble 共用(默认向上、横向钳位、上方不足向下翻),避免两份实现漂移。
// 定位用 viewport 坐标(fixed),与画布缩放/平移无关。
const panelRef = React.useRef(null)
const [pos, setPos] = React.useState({ x: 40, y: 40 })
React.useEffect(() => {
const [pos, setPos] = React.useState(null) // null = 未定位:先隐藏,避免首帧在左上角闪一下
React.useLayoutEffect(() => { // layout effect:浏览器绘制前定位,用户看不到中间态
if (!anchor) return
const place = () => {
// 优先以「节点本身」为锚点:比触发按钮更稳定(按钮可能因换行/溢出而位置出人意料)。
@@ -5107,7 +5107,7 @@ const tbCenterSeed = (type, refs) => {
}
const chip = (key, label, active, onClick, title, disabled) => el('button', { key, type: 'button', disabled: !!disabled, title, className: 'iwb-chip iwb-chip-line' + (active ? ' iwb-chip-line-on' : ''), onClick, onPointerDown: stop }, label)
return ReactDOM.createPortal(
el('div', { className: 'iwb-pop-anchor', style: { left: pos.x + 'px', top: pos.y + 'px' }, onWheel: (e) => e.stopPropagation() },
el('div', { className: 'iwb-pop-anchor', style: { left: (pos ? pos.x : 0) + 'px', top: (pos ? pos.y : 0) + 'px', visibility: pos ? 'visible' : 'hidden' }, onWheel: (e) => e.stopPropagation() },
el('div', { ref: panelRef, className: 'iwb-pop iwb-image-settings', onPointerDown: stop },
el('div', { className: 'iwb-pop-head' },
el('span', { className: 'iwb-pop-title' }, '图像设置'),
+1 -1
View File
@@ -1,7 +1,7 @@
# 现状架构与性能事实基线(桌面版)
> **本文档是什么**:现状**事实快照**,不是规范。用途:任何性能 / 内存 / 存储相关改动,先对齐这里的现实,避免把已经调好的东西改坏。
> 日期 **2026-10-20**(**2026-11-16 复算 · v3.24.85**)| 基线(**最近一次 bump 版本的提交**,不是主干 HEAD)`main = 931dbe7`(线上 `v3.26.56+931dbe7` —— 2026-11-23 **节点正文文本区修复**:提示词/文本节点正文透明继承卡片底色(白卡片消失)、编辑态三层框(控件 border / 聚焦光晕 / D8 焦点环)全去掉,规范补表面角色三分法与 `node-scope-test` 第 5 条守卫,8 张基线重录;上一条 `v3.26.51+21554b0` —— **M6 延展验证**:插件面板两段六次叠加样式合并重写、133 行新增零裸值;补 `--iwb-font-base`(14px) 第 8 档与亮色状态色调深(对浅页面 2.13 → ≥4.6),对比度守卫 114→138 对;新增 ⑦⑧ 组件夹具基线共 16 张;`batch-export` 1.2.2 状态色走宿主 token、去掉纯蓝主按钮;棘轮基线首次下调。M1–M6 全部完成;上一条 `v3.26.50+cab473c` —— **M5 闸门**:新增 `scripts/token-lint.js`(只查 diff 新增行,CSS 与 JS 内联样式两套判据、四类白名单)+ `tests/design-token-ratchet-test.js`(13 项计数只降不升)+ `tests/theme-contrast-test.js`(亮/暗 × 文字 × 表面 114 对),三条各做一次打红验证后接进 `verify:ci`;顺手把首启动「选择资料目录」弹窗 token 化(全仓最后一个完全未 token 化的界面);上一条 `v3.26.49+1743453` —— **M4-B6 收尾**:`style.css` 剩余 16 处半像素字号全清零(守卫收紧为全文件断言)、`--iwb-control-h` 裁定不扩到全局控件(并排表单 vs 成组紧凑控件);插件主题契约重写,`ALLOW_FILES` 文件级豁免 **6 → 0** —— 改为「私有皮肤 manifest 自声明 `skin` + chroma 强调色判据 + 内容色行内标记」,声明私有皮肤的插件不得引用宿主颜色 token;同步 4 个插件版本,插件侧中性色写死归零;视觉基线 8 张因字号栅格化变化更新,A/B 回退确认非环境噪声;上一条 `v3.26.48+cb9cb9c` —— **M4-B5 节点**:节点卡内部表面统一 `--iwb-field` —— 端口底色从 `#161616`(暗色对卡片差 39 级,一颗黑洞)改 `#494949`(差 12 级),同病灶另 6 处(ref-img/ref-single/upload-link/refmini-empty/task-result-img/node-head:hover)一并改;浮条与任务卡 hover 改 `color-mix(text 10%)`(原来 panel 与 layer2 深色同色,hover 无反馈);字号 12/15/11/13 全归档位、圆角 8/6/5/14 归并、间距 52 处等值 + 13 处 1px 级微调;删 6 个死类名;新增 `tests/node-scope-test.js` 钉「节点内禁用面板表面色」;上一条 `v3.26.47+f5c8174` —— **M4-B4 设置/外观**:新增 `--iwb-control-h`(30px) 修「同行输入框 33px / 按钮 24px」的 9px 落差;设置页正文 14→13、标题 16→15,范围内半像素字号清零;删 21 条死规则(setcell/setgrid/set-row/appear-val 等);新增 `tests/settings-scope-test.js` 钉「控件等高 / 死类名不复现 / 引用的 token 必须存在」;上一条 `v3.26.46+9f29996` —— 2026-11-23 **M4-B3 首页/库**:删 30 条零生产者规则(25 个类名在产物里 0 次)+ 4 条被 specificity 覆盖的死声明,`style.css` 2391→2339 行;首页/库 106 条规则换 token,间距写死 91→5(只剩版心与导航让位的布局值)、字号写死清零,新增 `--iwb-font-display:24px` 第 7 档;验收改为「计算样式逐元素 diff + 12 张基线只首页 2 张变化」;上一条 `v3.26.45+968ff46` —— **M4-B2 浮层层级表 + 阴影四档**:14 档 `--iwb-z-*`(裸 z-index 取值种类 42→31)、`--iwb-elevation-1..4`(浮层 8 种阴影写法→4 档)、`.iwb-pop` 圆角 18→`radius-popover(14)`;修「弹窗里点保存看不到提示」—— 根因不是层级数字而是 `.iwb-overlay` 本身就是堆叠上下文,toast 改为 portal 到 `body`;新增 `tests/overlay-layer-test.js` 钉 9 条顺序约束;上一条 `v3.26.44+846a59b` —— **设计 token 体系重建**:D1–D9 色彩模型改为真正的深色(#121212 底 / 正文 #e3e3e3、13 个表面逐层相对派生 + 对比度生成期夹紧)、D10 新增 `--iwb-field` 卡片内控件面(暗色不再在灰卡上挖黑洞)、M3 单一源(`derive()` → `design-tokens.css` + `tokens.json`,`tokens:check` 进 CI);**安装包已本地构建,NAS 尚未上传**);上一条 `v3.26.41+2b8e337`:继承态提示词把上游文案与参考图交给组合/连接节点(来源判定加 `(edges, nodes)`,组合拼接逻辑零改动);再上一条 `v3.26.40+d9e3d84`:左右停靠栏配色对齐主色调(新增 `--iwb-dock-bg` 进灰阶 ramp + 头部深一档 + `.iwb-pcard` 补白底)+ 修 `Cargo.toml`/`Cargo.lock` 版本漂移,四处统一到 3.25.58)。上一条 3.25.30:线上实际运行提交是 docs 提交 `7df9dc4`,bump 提交为 `4be78c0`;2026-11-16 已发**测试站 + 正式站**,三地址一致 + `IWB_VERIFY_STRICT=1` 通过Line truncated
> 日期 **2026-10-20**(**2026-11-16 复算 · v3.24.85**)| 基线(**最近一次 bump 版本的提交**,不是主干 HEAD)`main = 93871f7`(线上 `v3.26.57+93871f7` —— 2026-11-23 **节点正文文本区修复**:提示词/文本节点正文透明继承卡片底色(白卡片消失)、编辑态三层框(控件 border / 聚焦光晕 / D8 焦点环)全去掉,规范补表面角色三分法与 `node-scope-test` 第 5 条守卫,8 张基线重录;上一条 `v3.26.51+21554b0` —— **M6 延展验证**:插件面板两段六次叠加样式合并重写、133 行新增零裸值;补 `--iwb-font-base`(14px) 第 8 档与亮色状态色调深(对浅页面 2.13 → ≥4.6),对比度守卫 114→138 对;新增 ⑦⑧ 组件夹具基线共 16 张;`batch-export` 1.2.2 状态色走宿主 token、去掉纯蓝主按钮;棘轮基线首次下调。M1–M6 全部完成;上一条 `v3.26.50+cab473c` —— **M5 闸门**:新增 `scripts/token-lint.js`(只查 diff 新增行,CSS 与 JS 内联样式两套判据、四类白名单)+ `tests/design-token-ratchet-test.js`(13 项计数只降不升)+ `tests/theme-contrast-test.js`(亮/暗 × 文字 × 表面 114 对),三条各做一次打红验证后接进 `verify:ci`;顺手把首启动「选择资料目录」弹窗 token 化(全仓最后一个完全未 token 化的界面);上一条 `v3.26.49+1743453` —— **M4-B6 收尾**:`style.css` 剩余 16 处半像素字号全清零(守卫收紧为全文件断言)、`--iwb-control-h` 裁定不扩到全局控件(并排表单 vs 成组紧凑控件);插件主题契约重写,`ALLOW_FILES` 文件级豁免 **6 → 0** —— 改为「私有皮肤 manifest 自声明 `skin` + chroma 强调色判据 + 内容色行内标记」,声明私有皮肤的插件不得引用宿主颜色 token;同步 4 个插件版本,插件侧中性色写死归零;视觉基线 8 张因字号栅格化变化更新,A/B 回退确认非环境噪声;上一条 `v3.26.48+cb9cb9c` —— **M4-B5 节点**:节点卡内部表面统一 `--iwb-field` —— 端口底色从 `#161616`(暗色对卡片差 39 级,一颗黑洞)改 `#494949`(差 12 级),同病灶另 6 处(ref-img/ref-single/upload-link/refmini-empty/task-result-img/node-head:hover)一并改;浮条与任务卡 hover 改 `color-mix(text 10%)`(原来 panel 与 layer2 深色同色,hover 无反馈);字号 12/15/11/13 全归档位、圆角 8/6/5/14 归并、间距 52 处等值 + 13 处 1px 级微调;删 6 个死类名;新增 `tests/node-scope-test.js` 钉「节点内禁用面板表面色」;上一条 `v3.26.47+f5c8174` —— **M4-B4 设置/外观**:新增 `--iwb-control-h`(30px) 修「同行输入框 33px / 按钮 24px」的 9px 落差;设置页正文 14→13、标题 16→15,范围内半像素字号清零;删 21 条死规则(setcell/setgrid/set-row/appear-val 等);新增 `tests/settings-scope-test.js` 钉「控件等高 / 死类名不复现 / 引用的 token 必须存在」;上一条 `v3.26.46+9f29996` —— 2026-11-23 **M4-B3 首页/库**:删 30 条零生产者规则(25 个类名在产物里 0 次)+ 4 条被 specificity 覆盖的死声明,`style.css` 2391→2339 行;首页/库 106 条规则换 token,间距写死 91→5(只剩版心与导航让位的布局值)、字号写死清零,新增 `--iwb-font-display:24px` 第 7 档;验收改为「计算样式逐元素 diff + 12 张基线只首页 2 张变化」;上一条 `v3.26.45+968ff46` —— **M4-B2 浮层层级表 + 阴影四档**:14 档 `--iwb-z-*`(裸 z-index 取值种类 42→31)、`--iwb-elevation-1..4`(浮层 8 种阴影写法→4 档)、`.iwb-pop` 圆角 18→`radius-popover(14)`;修「弹窗里点保存看不到提示」—— 根因不是层级数字而是 `.iwb-overlay` 本身就是堆叠上下文,toast 改为 portal 到 `body`;新增 `tests/overlay-layer-test.js` 钉 9 条顺序约束;上一条 `v3.26.44+846a59b` —— **设计 token 体系重建**:D1–D9 色彩模型改为真正的深色(#121212 底 / 正文 #e3e3e3、13 个表面逐层相对派生 + 对比度生成期夹紧)、D10 新增 `--iwb-field` 卡片内控件面(暗色不再在灰卡上挖黑洞)、M3 单一源(`derive()` → `design-tokens.css` + `tokens.json`,`tokens:check` 进 CI);**安装包已本地构建,NAS 尚未上传**);上一条 `v3.26.41+2b8e337`:继承态提示词把上游文案与参考图交给组合/连接节点(来源判定加 `(edges, nodes)`,组合拼接逻辑零改动);再上一条 `v3.26.40+d9e3d84`:左右停靠栏配色对齐主色调(新增 `--iwb-dock-bg` 进灰阶 ramp + 头部深一档 + `.iwb-pcard` 补白底)+ 修 `Cargo.toml`/`Cargo.lock` 版本漂移,四处统一到 3.25.58)。上一条 3.25.30:线上实际运行提交是 docs 提交 `7df9dc4`,bump 提交为 `4be78c0`;2026-11-16 已发**测试站 + 正式站**,三地址一致 + `IWB_VERIFY_STRICT=1` 通过Line truncated
<!-- 2026-10-28 P1 拆分批 1:新增 src/generation-task-graph.js(5 个任务图纯函数自 app.js 迁出)
⇒ 模块数 60→61、耦合面 51→52、sourceModules 60→61。耦合面只**新增** IWBWTaskGraph,无删除。
2026-10-28 P1 拆分批 2:新增 src/storage-config-shape.js(9 个配置形状纯函数自 app.js 迁出)
+26
View File
@@ -791,6 +791,32 @@ L3 Contract ── 组件整体换肤时才加,能不建就不建
- 复选框统一 `input[type=checkbox]` 尺寸与 `accent-color: var(--iwb-brand)`,不再各页写 15px/18px
- 按钮高度统一 `--iwb-control-h`、圆角 `--iwb-radius-control`;操作组间距用 `--iwb-set-btn-gap`
- 备份/外观等页的操作按钮不再单独写高度或间距
### 3.13 浮层弹窗(popover,L3,v3.26.57)
画布节点上的「模型设置」「图像设置」等贴节点浮层,统一用 `.iwb-pop` 这一套 shell;
token 定义在 `.iwb-pop` 作用域内,**同类浮层只允许引用它们 + L2 尺度 token**。
| token | 值 | 用途 |
|---|---|---|
| `--iwb-pop-w` | `380px` | 面板宽度(窄屏由 `max-width: calc(100vw - 16px)` 兜底) |
| `--iwb-pop-pad-y` | `var(--iwb-space-16)` | 面板上下内边距 |
| `--iwb-pop-pad-x` | `var(--iwb-space-20)` | 面板左右内边距 |
| `--iwb-pop-gap` | `var(--iwb-space-12)` | 面板内分组之间 |
| `--iwb-pop-radius` | `var(--iwb-radius-popover)` | 面板圆角(阴影用 `--iwb-elevation-3`) |
| `--iwb-pop-title-size` | `var(--iwb-font-base)` | 面板标题字号 |
| `--iwb-pop-chip-h` | `32px` | 选择项/下拉框统一高度 |
| `--iwb-pop-chip-pad-x` | `var(--iwb-space-12)` | 选择项左右内边距 |
| `--iwb-pop-chip-radius` | `var(--iwb-radius-control)` | 选择项圆角(矩形,非胶囊) |
| `--iwb-pop-chip-gap` | `var(--iwb-space-8)` | 选择项之间 / 换行后的行距 |
| `--iwb-pop-chip-size` | `var(--iwb-font-md)` | 选择项与下拉框字号 |
规则:
- 同一浮层里**所有选择项高度、圆角、字号必须一致**(`.iwb-chip-line` 与 `.iwb-gc-item` 都吃这套 token)
- 触发浮层时必须在**绘制前**完成定位:定位用 `useLayoutEffect`,未定位前 `visibility: hidden`;
禁止先用 `{x:40,y:40}` 之类默认坐标渲染(用户会看到左上角闪一下再跳到锚点)
- 浮层必须 portal 到 `body`(节点在画布 `transform` 里,否则 fixed 会被变成相对定位)
- 新增同类浮层复用 `.iwb-pop` + `.iwb-pop-anchor`,不要自写宽高/内边距
---
## 4. 落地路线
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "image-workbench-web",
"private": true,
"version": "3.26.56",
"version": "3.26.57",
"description": "Browser-based node canvas image workbench",
"scripts": {
"build": "node scripts/build.js && node scripts/copy-plugins.js",
+5 -5
View File
@@ -44,9 +44,9 @@
"dir": "promptlib",
"main": "main.js",
"style": "styles.css",
"version": "1.9.0",
"version": "1.9.1",
"files": {
"main.js": "317d52224dcec5850e2f8dd1d1193346f059595106211565bbe02f3ef7e74199",
"main.js": "9743c44630a5190f43921060dee1296052c96d9d958b2c95f53e70a1ab63603b",
"styles.css": "d799321065172c2844c565cea9abc69053663ef9ec962e35911e0331bcff85aa"
}
},
@@ -64,9 +64,9 @@
},
{
"id": "sticky",
"file": "plugin-sticky.950efcab13b1.js",
"version": "1.0.0",
"integrity": "sha256-lQ78qxOx/trCPmS+3BpQgUM0+akJw+eoQ1YN3V/wnt4="
"file": "plugin-sticky.ec6ffaa21fe4.js",
"version": "1.0.5",
"integrity": "sha256-7G/6oh/kod4qe0Zvt25O/5OFbO1hWJdk36mHcYEH218="
},
{
"id": "style-source",
+14 -4
View File
@@ -1538,7 +1538,7 @@
var dirty = false
openDialog({
key: 'edit',
title: isNew ? '新建提示词' : '编辑提示词',
title: isNew ? '新建词例' : '编辑词例',
width: 880, height: 640,
actions: [cancelBtn, saveBtn],
onSaveKey: function () { doSave() },
@@ -1742,10 +1742,20 @@
var top = el('div', { class: 'iwb-row' })
var search = el('input', { class: 'iwb-input iwb-grow', placeholder: '搜索名称 / 内容 / 标签…', value: query })
search.addEventListener('input', function () { query = search.value; render(); var n = wrap.querySelector('input.iwb-input'); if (n) { n.focus(); try { n.setSelectionRange(n.value.length, n.value.length) } catch (e) { /* ignore */ } } })
var newBtn = el('button', { class: 'iwb-btn iwb-btn-sm iwb-btn-primary', title: '新建提示词', text: '+ 新建提示词' })
// 2026-11-24:导入/新建都放搜索行,避免「导入分享」藏在设置里(用户反馈多绕一层)。
var importBtn = el('button', { class: 'iwb-btn iwb-btn-sm', title: '从剪贴板导入别人分享的词例', text: '导入词例' })
var newBtn = el('button', { class: 'iwb-btn iwb-btn-sm iwb-btn-primary', title: '新建词例', text: '+ 新建词例' })
importBtn.addEventListener('click', function () {
importBtn.disabled = true
doImportShare().then(function (r) {
importBtn.disabled = false
if (r && r.ok === false && r.error === 'no-share') notify('剪贴板里没有可识别的词例分享', 'err')
else if (r && r.ok === false) notify('导入失败', 'err')
}).catch(function (e) { importBtn.disabled = false; notify('导入失败:' + ((e && e.message) || e), 'err') })
})
newBtn.addEventListener('click', function () { openEditModal(null, true) })
top.appendChild(search); top.appendChild(newBtn)
top.appendChild(search); top.appendChild(importBtn); top.appendChild(newBtn)
fixed.appendChild(top)
if (words().length) {
@@ -1860,7 +1870,7 @@
global.IWBPluginHost.register({
id: 'promptlib',
name: '提示词库',
version: '1.9.0',
version: '1.9.1',
apiVersion: 1,
capabilities: ['panels', 'promptlib', 'nodeTypes', 'canvas', 'canvasWrite'],
data: { schemaVersion: 3, maxBytes: 4 * 1024 * 1024 },
+2 -2
View File
@@ -1,7 +1,7 @@
{
"id": "promptlib",
"name": "提示词库",
"version": "1.9.0",
"version": "1.9.1",
"apiVersion": 1,
"main": "main.js",
"style": "styles.css",
@@ -13,7 +13,7 @@
"提示词"
],
"files": {
"main.js": "317d52224dcec5850e2f8dd1d1193346f059595106211565bbe02f3ef7e74199",
"main.js": "9743c44630a5190f43921060dee1296052c96d9d958b2c95f53e70a1ab63603b",
"styles.css": "d799321065172c2844c565cea9abc69053663ef9ec962e35911e0331bcff85aa"
}
}
@@ -3,13 +3,13 @@
// 设计口径(用户 2026-11-24 确认):
// - 不要"标题"概念:便签上方那条"便利贴"标签是宿主强制的标题带(hasTitle 写死),
// 节点名注册成"便利贴"即可,用户不用再填标题字段。
// - 想当说明标题就把字号调大(最大 24),想放多行正文就用小字(默认 14)。
// - 想当说明标题就把字号调大(无上限,A+ 每点一次 +2),想放多行正文就用小字(默认 14)。
// - 不连线:ports:{in:false,out:false}。
// - 节点缩放用宿主自带手柄(右下角),插件不设宽高。
//
// 状态全部存 node.data(props.onUpdate 写回,随画布落盘):
// text / fontSize / fontWeight / bgColor
// 字号只取闭集 11/12/13/14/15/17/20/24(plugin-theme.md §1.5);
// 字号:A−/A+ 每步 ±2,下限 6、无上限(用户明确要求去掉最大字号限制);
// 8 个预设色是运行时数据、色轮走系统颜色选择器,源码里不写死中性色(守门只卡字面量)。
;(function (global) {
'use strict'
@@ -33,18 +33,29 @@
'.iwb-sticky-go{cursor:pointer;border:1px solid var(--iwb-border,#d5d9e0);border-radius:6px;background:var(--iwb-layer2,#fff);color:var(--iwb-text,#1c2333);font-size:12px;padding:4px 10px;white-space:nowrap;font-family:inherit}' +
'.iwb-sticky-go:hover{border-color:var(--iwb-brand,#6b7280)}' +
// ---- 节点体 ----
'.iwb-sticky-node{position:relative;display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box;border-radius:10px;overflow:visible}' +
// 宿主容器 .iwb-plugin-node-body 是 flex 列且 padding:0;这里必须 flex:1 撑满,
// 不能只写 height:100%(WKWebView 下百分比对 flex 项算不准,拖大后下半露出宿主底色)。
// 圆角对齐宿主节点:外框 .iwb-node 用 var(--iwb-node-radius)=14px 且有 1px 边框,
// 纸片在框内 ⇒ 内圈半径 = 外圈 - 1px,选中时两层边缘才不会错开。
'.iwb-sticky-node{position:relative;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;width:100%;box-sizing:border-box;border-radius:calc(var(--iwb-node-radius, 14px) - 1px);overflow:visible}' +
'.iwb-sticky-tools{display:flex;align-items:center;gap:6px;padding:6px 8px;border-bottom:1px solid rgba(0,0,0,.08);flex:0 0 auto;position:relative;z-index:2}' +
'.iwb-sticky-btn{cursor:pointer;border:1px solid rgba(0,0,0,.2);border-radius:6px;background:transparent;color:inherit;font-size:11px;padding:2px 6px;font-family:inherit;line-height:1.4;user-select:none}' +
'.iwb-sticky-btn:hover{background:rgba(0,0,0,.07)}' +
'.iwb-sticky-btn-on{font-weight:600;background:rgba(0,0,0,.1)}' +
'.iwb-sticky-dot{display:inline-block;width:14px;height:14px;border-radius:50%;border:1px solid rgba(0,0,0,.25);cursor:pointer;vertical-align:middle;padding:0}' +
// 调色圆点推到工具条最右端(右上),色板 right:8px 与圆点右缘对齐,落在其正下方。
'.iwb-sticky-dot{display:inline-block;width:14px;height:14px;border-radius:50%;border:1px solid rgba(0,0,0,.25);cursor:pointer;vertical-align:middle;padding:0;margin-left:auto}' +
'.iwb-sticky-dot-on{box-shadow:0 0 0 2px rgba(0,0,0,.55)}' +
'.iwb-sticky-pal{position:absolute;top:100%;right:8px;z-index:20;display:grid;grid-template-columns:repeat(4,18px);gap:8px 6px;padding:10px;border-radius:10px;border:1px solid var(--iwb-border,#d5d9e0);background:var(--iwb-layer2,#fff);box-shadow:0 4px 16px rgba(0,0,0,.18)}' +
'.iwb-sticky-pal-sw{width:18px;height:18px;border-radius:50%;border:1px solid rgba(0,0,0,.2);cursor:pointer;padding:0}' +
'.iwb-sticky-wheel{grid-column:1/-1;display:flex;justify-content:center;padding-top:8px;border-top:1px solid var(--iwb-border,#d5d9e0)}' +
'.iwb-sticky-wheel-btn{cursor:pointer;width:22px;height:22px;border-radius:50%;border:0;padding:0;background:conic-gradient(#e24b4a,#ef9f27,#fac775,#639922,#1d9e75,#378add,#7f77dd,#d4537e,#e24b4a)}' +
'.iwb-sticky-body{flex:1;min-height:0;width:100%;box-sizing:border-box;resize:none;border:0;outline:0;background:transparent;color:inherit;font-family:inherit;line-height:1.7;padding:12px;overflow:auto;overflow-wrap:anywhere}' +
// 高度随内容自适应(贴字):不再 flex:1 撑满剩余空间,否则字号大/文字少时
// 下方留出大片空白;高度由 syncSkeleton 按行数×字号算,宿主外框 height:auto
// 会跟着内容收缩,resize 手柄就能拖到贴字。overflow:hidden 避免自适应高度出滚动条。
'.iwb-sticky-body{flex:0 0 auto;min-height:1.7em;width:100%;box-sizing:border-box;resize:none;border:0;outline:0;background:transparent;color:inherit;font-family:inherit;line-height:1.7;padding:12px;overflow:hidden;overflow-wrap:anywhere;cursor:move}' +
// 与宿主文本节点一致:只读态单击穿透给节点拖动/选中;双击进入编辑才变 text 光标。
// 宿主 style.css 有 `.iwb-node textarea[readonly]{pointer-events:none}`,这里用自身 class 兜底。
'.iwb-sticky-body.iwb-sticky-editing{cursor:text}' +
'.iwb-sticky-body::placeholder{opacity:.45}' +
'.iwb-sticky-color-input{position:absolute;width:0;height:0;opacity:0;pointer-events:none}'
try {
@@ -78,7 +89,9 @@
return node
}
var FONT_SIZES = [11, 12, 13, 14, 15, 17, 20, 24]
var MIN_SIZE = 6 // 下限(用户只要求取消上限,下限保留防误操作缩到看不见)
var SIZE_STEP = 2 // A−/A+ 每步 ±2
var DEFAULT_SIZE = 14
var PALETTE = [
{ name: '黄', value: '#FCE8B0' },
{ name: '粉', value: '#F4C0D1' },
@@ -90,17 +103,12 @@
{ name: '灰', value: '#D3D1C7' },
]
var DEFAULT_BG = '#FCE8B0'
var DEFAULT_SIZE = 14
// 只保证是 >= 下限的有限数,不再钳到闭集/上限;A+ 可无限放大。
function normSize(v) {
var n = Number(v)
if (FONT_SIZES.indexOf(n) >= 0) return n
// 非闭集值就近取档(外来数据兜底)
var best = FONT_SIZES[0]
for (var i = 0; i < FONT_SIZES.length; i++) {
if (Math.abs(FONT_SIZES[i] - n) < Math.abs(best - n)) best = FONT_SIZES[i]
}
return best
if (!isFinite(n) || n < MIN_SIZE) return DEFAULT_SIZE
return Math.round(n)
}
// 依据背景亮度取黑/白文字(运行时计算,源码里不写死中性色)。
@@ -132,7 +140,7 @@
}
st.node = node
st.props = props
syncSkeleton(st, data)
syncSkeleton(st, data, node)
}
function buildSkeleton(host, props) {
@@ -145,14 +153,24 @@
var dot = el('button', { className: 'iwb-sticky-dot', type: 'button', title: '背景色', 'data-act': 'palette' })
var pal = el('div', { className: 'iwb-sticky-pal', hidden: true })
var colorInput = el('input', { type: 'color', className: 'iwb-sticky-color-input', 'data-act': 'color' })
var body = el('textarea', { className: 'iwb-sticky-body', spellcheck: 'false', placeholder: '写点什么…' })
// rows=1 是关键:textarea 默认 rows=2,fitBody() 把高度设 auto 读 scrollHeight 时,
// 单行文字也会被算成两行高(用户报的“预留了一行文本高度”)。显式 1 行后,
// scrollHeight 才等于真实内容行数——多行文本仍会自动换行、高度跟着涨。
var body = el('textarea', { className: 'iwb-sticky-body', rows: '1', spellcheck: 'false', placeholder: '双击编辑…' })
// 对齐宿主文本节点:默认只读。宿主 CSS `.iwb-node textarea[readonly]{pointer-events:none}`
// ⇒ 单击穿透给节点卡片(选中/拖动);双击由本插件在 root 上接管进入编辑。
body.readOnly = true
body.setAttribute('readonly', '')
tools.appendChild(minus); tools.appendChild(plus); tools.appendChild(bold); tools.appendChild(dot)
root.appendChild(tools); root.appendChild(pal); root.appendChild(colorInput); root.appendChild(body)
// 色板挂在工具条内(tools 已 position:relative):CSS top:100% 落在调色按钮正下方,
// 而不是贴整个便签底部右下角(那样会盖住宿主 resize 手柄、且离按钮很远)。
tools.appendChild(pal)
root.appendChild(tools); root.appendChild(colorInput); root.appendChild(body)
host.appendChild(root)
var st = { root: root, tools: tools, minus: minus, plus: plus, bold: bold, dot: dot,
pal: pal, colorInput: colorInput, body: body, data: null, palOpen: false }
pal: pal, colorInput: colorInput, body: body, data: null, palOpen: false, editing: false }
function onTool(e) {
var t = e.target || {}
@@ -165,9 +183,8 @@
if (!up || !id) return
if (act === 'minus' || act === 'plus') {
var cur = normSize(d.fontSize == null ? DEFAULT_SIZE : d.fontSize)
var i = FONT_SIZES.indexOf(cur)
var next = act === 'minus' ? Math.max(0, i - 1) : Math.min(FONT_SIZES.length - 1, i + 1)
if (FONT_SIZES[next] !== cur) up(id, { fontSize: FONT_SIZES[next] })
var next = act === 'minus' ? Math.max(MIN_SIZE, cur - SIZE_STEP) : cur + SIZE_STEP
if (next !== cur) up(id, { fontSize: next })
} else if (act === 'bold') {
up(id, { fontWeight: d.fontWeight === 600 ? 400 : 600 })
} else if (act === 'palette') {
@@ -213,7 +230,42 @@
}
colorInput.addEventListener('change', onColor)
// 正文:输入即写回(防抖交给宿主的 commitCanvas),编辑中不重建 DOM 故不失焦。
// ---- 正文编辑状态机(照宿主文本节点:双击进编辑、失焦退出、只读态单击穿透)----
function setEditing(on) {
st.editing = on
body.readOnly = !on
if (on) { try { body.removeAttribute('readonly') } catch (e2) { /* noop */ } }
else body.setAttribute('readonly', '')
body.className = 'iwb-sticky-body' + (on ? ' iwb-sticky-editing' : '')
}
// 双击进入编辑:绑在 root 上(不是 readonly textarea —— 它 pointer-events:none 收不到双击)。
// 宿主卡片 onDoubleClick 只处理内置文本类型,plugin: 节点它不接管,所以这里自己 stopPropagation。
function onDblClick(e) {
// 工具条/色板/按钮上的双击不进编辑
var t = e.target || {}
if (t.getAttribute && t.getAttribute('data-act')) return
if (t.getAttribute && t.getAttribute('data-bg')) return
e.stopPropagation && e.stopPropagation()
setEditing(true)
try { body.focus() } catch (e2) { /* noop */ }
}
root.addEventListener('dblclick', onDblClick)
// 编辑态:按下/按键不冒泡给宿主(否则会拖节点 / 触发画布快捷键);失焦退出编辑。
;['pointerdown', 'mousedown'].forEach(function (ev) {
body.addEventListener(ev, function (e) {
if (st.editing) e.stopPropagation && e.stopPropagation()
// 只读态不拦:让宿主选中节点 + 拖动
})
})
body.addEventListener('keydown', function (e) {
e.stopPropagation && e.stopPropagation()
if (e.key === 'Escape') { try { body.blur() } catch (e2) { /* noop */ } }
})
body.addEventListener('blur', function () { setEditing(false) })
// 输入即写回(防抖交给宿主的 commitCanvas),编辑中不重建 DOM 故不失焦。
function onInput(e) {
var up = st.props && st.props.onUpdate
var id = st.node && st.node.id
@@ -221,16 +273,51 @@
e.stopPropagation && e.stopPropagation()
}
body.addEventListener('input', onInput)
// 输入框里按下/点击不触发节点拖动
;['pointerdown', 'mousedown', 'dblclick'].forEach(function (ev) {
body.addEventListener(ev, function (e) { e.stopPropagation && e.stopPropagation() })
})
st._listeners = { tools: onTool, pal: onPal, color: onColor, input: onInput }
st._listeners = { tools: onTool, pal: onPal, color: onColor, input: onInput, dblclick: onDblClick, setEditing: setEditing }
return st
}
function syncSkeleton(st, data) {
// textarea 高度贴字:数据(文本/字号)变了才重算,避免每次 render 都 reflow。
// 设 auto → 读 scrollHeight → 写回,是 textarea 自适应的标准做法;浏览器里行数/自动换行都算准。
function fitBody(st, text, size) {
if (st.fitText === text && st.fitSize === size) return
st.fitText = text; st.fitSize = size
var b = st.body
var prev = b.style.height
b.style.height = 'auto'
var h = b.scrollHeight
b.style.height = (h && h > 0 ? h : Math.max(1, text.split('\n').length) * Math.round(size * 1.7) + 24) + 'px'
// 高度没变就不留空字符串(兼容 stub:style.height 是普通对象)
if (!b.style.height && prev) b.style.height = prev
}
// 宿主 NodeCard 把 node.h 当作 minHeight 写在外框上(style.minHeight = node.h, height:auto)。
// 这就是 v1.0.2「内容贴字了但外框还有一截空白、手柄拖不下去」的真正原因:插件只改了
// textarea 高度,外框仍被 node.h 撑住。这里做两件事:
// 1. 内容高度 = 工具条 + 正文(不用 root.offsetHeight:root 会被旧的 minHeight 拉高,
// 读出来还是旧高度,会自我锁死);
// 2. 首次遇到「旧 h 明显大于内容」时把 node.h 校正到内容高度,顺手把外框 minHeight
// 覆盖成同一个值——resize 起点 (onResizeStart 读 n0.h) 才和实际视觉一致,拖小立刻生效。
// 用户之后手动拖大的 h 不会再次被校正(只针对首次记录的 stale h),所以仍然可以拖大拖小。
function fitOuterBox(st, node) {
if (!st || !st.root || !node) return
var toolsH = st.tools.offsetHeight || 30
var bodyH = parseFloat(st.body.style.height) || 0
if (!bodyH) return
var content = Math.round(toolsH + bodyH + 2) // +2 = 宿主节点上下各 1px 边框
var h = Number(node.h) || 0
if (st.staleH == null) st.staleH = h
// 文字变大后内容超过旧 h:同步把 h 顶上去,resize 起点才不会滞后一大截。
// 首次遇到的旧大 h 也校正到内容高度;用户之后拖出来的其它更大 h 原样保留。
if (h < content - 2 || (h > content + 2 && st.staleH === h)) node.h = content
var floor = Math.max(content, Number(node.h) || 0)
// root → host(.iwb-plugin-node-body) → card(.iwb-node)
var card = st.root.parentNode && st.root.parentNode.parentNode
if (card && card.style && card.style.minHeight !== floor + 'px') card.style.minHeight = floor + 'px'
}
function syncSkeleton(st, data, node) {
var bg = data.bgColor || DEFAULT_BG
var size = normSize(data.fontSize == null ? DEFAULT_SIZE : data.fontSize)
var weight = data.fontWeight === 600 ? 600 : 400
@@ -240,9 +327,11 @@
// 幂等:只在值真的变了才写 DOM,避免重建/覆盖正在编辑的 textarea。
if (st.root.style.background !== bg) st.root.style.background = bg
if (st.root.style.color !== color) st.root.style.color = color
if (document.activeElement !== st.body && st.body.value !== text) st.body.value = text
if (!st.editing && document.activeElement !== st.body && st.body.value !== text) st.body.value = text
if (st.body.style.fontSize !== size + 'px') st.body.style.fontSize = size + 'px'
if (st.body.style.fontWeight !== String(weight)) st.body.style.fontWeight = String(weight)
fitBody(st, text, size)
fitOuterBox(st, node)
if (st.bold.className !== 'iwb-sticky-btn' + (weight === 600 ? ' iwb-sticky-btn-on' : '')) {
st.bold.className = 'iwb-sticky-btn' + (weight === 600 ? ' iwb-sticky-btn-on' : '')
}
@@ -329,7 +418,7 @@
global.IWBPluginHost.register({
id: 'sticky',
name: '便利贴',
version: '1.0.0',
version: '1.0.5',
apiVersion: 1,
capabilities: ['panels', 'nodeTypes', 'canvas'],
}, function (ctx) {
+2 -2
View File
@@ -3,7 +3,7 @@
<title>插件开发规范 · Image Workbench</title>
<link rel="icon" href="/assets/favicon.png" type="image/png">
<link rel="apple-touch-icon" href="/assets/logo.png">
<link rel="stylesheet" href="/assets/style.css?v=3.26.56-mwu3cmly">
<link rel="stylesheet" href="/assets/style.css?v=3.26.57-mwu5p2lf">
<style>
.devdoc{max-width:860px;margin:0 auto;padding:40px 0 72px;color:var(--ink,#1b1f24);font-size:15px;line-height:1.75}
.devdoc h1{font-size:38px;line-height:1.2;margin:8px 0 18px}
@@ -33,7 +33,7 @@
</div>
<div class="right">
<a class="btn" href="/plugins/">插件市场</a>
<a class="btn primary" href="/download/">下载 v3.26.56</a>
<a class="btn primary" href="/download/">下载 v3.26.57</a>
</div>
</div></nav>
<main>
+8 -4
View File
@@ -57,13 +57,13 @@
<h2>下载</h2>
<div class="row">
<div class="name">macOS · Apple Silicon<div class="hint">M1 / M2 / M3 / M4</div></div>
<div class="meta">版本 3.26.56 · 8.4 MB · .dmg<div class="hash">sha256 7fe6df3b0ad1f82c…</div></div>
<a class="btn" href="/updates/darwin-aarch64/image-workbench_3.26.56_aarch64.dmg?h=7fe6df3b0ad1">下载</a>
<div class="meta">版本 3.26.57 · 8.4 MB · .dmg<div class="hash">sha256 3e45e7ddbd0367a5…</div></div>
<a class="btn" href="/updates/darwin-aarch64/image-workbench_3.26.57_aarch64.dmg?h=3e45e7ddbd03">下载</a>
</div>
<div class="row">
<div class="name">macOS · Intel<div class="hint">x86_64</div></div>
<div class="meta">版本 3.26.56 · 8.8 MB · .dmg<div class="hash">sha256 292929a68279a7c5…</div></div>
<a class="btn" href="/updates/darwin-x86_64/image-workbench_3.26.56_x64.dmg?h=292929a68279">下载</a>
<div class="meta">版本 3.26.57 · 8.8 MB · .dmg<div class="hash">sha256 de9b2e7f102c479b…</div></div>
<a class="btn" href="/updates/darwin-x86_64/image-workbench_3.26.57_x64.dmg?h=de9b2e7f102c">下载</a>
</div>
<div class="row">
<div class="name">Windows · x64<div class="hint">需要 WebView2</div></div>
@@ -97,6 +97,10 @@
</ol>
<h2>历史版本</h2>
<div class="row">
<div class="name">3.26.57</div>
<div class="meta">2026-11-24<div class="hint">macOS · Apple Silicon / macOS · Intel</div></div>
</div>
<div class="row">
<div class="name">3.26.56</div>
<div class="meta">2026-11-24<div class="hint">macOS · Apple Silicon / macOS · Intel</div></div>
+8 -8
View File
@@ -4,7 +4,7 @@
<meta name="description" content="本地优先的 AI 生图无限画布:节点式工作流、插件按需安装、数据全部留在本机。">
<link rel="icon" href="/assets/favicon.png" type="image/png">
<link rel="apple-touch-icon" href="/assets/logo.png">
<link rel="stylesheet" href="/assets/style.css?v=3.26.56-mwu3cmly">
<link rel="stylesheet" href="/assets/style.css?v=3.26.57-mwu5p2lf">
</head><body>
<nav><div class="wrap inner">
<a class="brand" href="/"><img class="logo" src="/assets/logo.png" alt="" width="26" height="26">Image Workbench</a>
@@ -17,19 +17,19 @@
</div>
<div class="right">
<a class="btn" href="/plugins/">插件市场</a>
<a class="btn primary" href="/download/">下载 v3.26.56</a>
<a class="btn primary" href="/download/">下载 v3.26.57</a>
</div>
</div></nav>
<main>
<section class="hero hero-art">
<div class="hero-bg"><img src="/assets/painting.jpg?v=3.26.56-mwu3cmly" alt=""></div>
<div class="hero-bg"><img src="/assets/painting.jpg?v=3.26.57-mwu5p2lf" alt=""></div>
<div class="hero-veil"></div>
<div class="wrap">
<span class="kicker">v3.26.56 · macOS / Windows · 数据在本地</span>
<span class="kicker">v3.26.57 · macOS / Windows · 数据在本地</span>
<h1>本地优先的<br>AI 生图无限画布</h1>
<p class="sub">用节点把「参考图 → 提示词 → 批量生成 → 图库」串成一条生产线。<br>图片、提示词、模型配置全部留在你自己的电脑里,插件按需安装。</p>
<div class="cta">
<a class="btn primary lg" href="/download/">下载 v3.26.56</a>
<a class="btn primary lg" href="/download/">下载 v3.26.57</a>
<a class="btn lg" href="/plugins/">浏览 12 个插件</a>
</div>
<div class="meta">支持 macOS 12+ 与 Windows 10 1803+ · 安装包约 7 MB · 无需登录</div>
@@ -85,7 +85,7 @@
</div>
<div class="pcard" data-name="提示词库 promptlib 右栏提示词列表:搜索/分组/收藏/新建编辑/插入画布/复制(数据由客户端提供) 资源 提示词" data-tags="资源,提示词">
<div class="head"><span class="av" style="background:#eef2f6">📖</span>
<div><div class="nm">提示词库</div><div class="ver">v1.9.0 · 官方</div></div></div>
<div><div class="nm">提示词库</div><div class="ver">v1.9.1 · 官方</div></div></div>
<div class="desc">右栏提示词列表:搜索/分组/收藏/新建编辑/插入画布/复制(数据由客户端提供)</div>
<div class="tags"><span class="tag">资源</span><span class="tag">提示词</span></div>
</div>
@@ -96,8 +96,8 @@
<section class="section"><div class="wrap">
<h2>下载 Image Workbench</h2>
<p class="lead">选你的平台。装过一次之后,以后在应用内「设置 → 通用 → 版本与更新」就能一键升级。</p>
<div class="dl"><a href="/updates/darwin-aarch64/image-workbench_3.26.56_aarch64.dmg?h=7fe6df3b0ad1"><div class="n">macOS · Apple Silicon</div><div class="s">M1 / M2 / M3 / M4 · 8.4 MB · .dmg</div></a>
<a href="/updates/darwin-x86_64/image-workbench_3.26.56_x64.dmg?h=292929a68279"><div class="n">macOS · Intel</div><div class="s">x86_64 · 8.8 MB · .dmg</div></a>
<div class="dl"><a href="/updates/darwin-aarch64/image-workbench_3.26.57_aarch64.dmg?h=3e45e7ddbd03"><div class="n">macOS · Apple Silicon</div><div class="s">M1 / M2 / M3 / M4 · 8.4 MB · .dmg</div></a>
<a href="/updates/darwin-x86_64/image-workbench_3.26.57_x64.dmg?h=de9b2e7f102c"><div class="n">macOS · Intel</div><div class="s">x86_64 · 8.8 MB · .dmg</div></a>
<div class="none"><div class="n">Windows · x64</div><div class="s">暂未提供</div></div></div>
<div style="margin-top:20px;color:#9ca3af;font-size:12.5px">安装包未做 Apple 公证 / Windows 代码签名,首次打开需手动放行一次,细节见 <a href="/download/" style="text-decoration:underline">下载页</a>。</div>
</div></section>
+21 -21
View File
@@ -1,6 +1,6 @@
{
"version": 2,
"updatedAt": "2026-11-24T02:35:52.689Z",
"updatedAt": "2026-11-24T03:49:11.170Z",
"plugins": [
{
"id": "batch-export",
@@ -180,26 +180,26 @@
"资源",
"提示词"
],
"version": "1.9.0",
"version": "1.9.1",
"apiVersion": 1,
"bundle": "plugins/promptlib-1.9.0.zip",
"bundleSize": 156750,
"bundleSha256": "e16a7cffeb9459b10c56da3735457a7f113c8152765b48fc071cd0ab4c660312",
"bundle": "plugins/promptlib-1.9.1.zip",
"bundleSize": 157855,
"bundleSha256": "9d8a7d3514fe3368881147cc08d4bc24b3bc9eb682271e130572d4d7c023d38c",
"files": [
{
"path": "manifest.json",
"sha256": "5660c101070e0f5e4dafc065a64224383dd88dda579aa7123ff7e1d22ba9a7ef",
"sha256": "3464379a6867c22d47207e175943290fd08463048a3201746000398aee7f93d7",
"size": 540
},
{
"path": "main.js",
"sha256": "317d52224dcec5850e2f8dd1d1193346f059595106211565bbe02f3ef7e74199",
"size": 113706
"sha256": "9743c44630a5190f43921060dee1296052c96d9d958b2c95f53e70a1ab63603b",
"size": 114481
},
{
"path": "styles.css",
"sha256": "e14fee1fd446188ef44913cc2d549e02480b10d95a67371078ec4fa623786d60",
"size": 42194
"sha256": "d799321065172c2844c565cea9abc69053663ef9ec962e35911e0331bcff85aa",
"size": 42524
}
]
},
@@ -280,27 +280,27 @@
"标注",
"便签"
],
"version": "1.0.0",
"version": "1.0.5",
"apiVersion": 1,
"bundle": "plugins/sticky-1.0.0.zip",
"bundleSize": 17953,
"bundleSha256": "2f8961b83b85e0a0e78c0aab9afcea7b717cbc3969f96b4e49cf61e8458cccf4",
"bundle": "plugins/sticky-1.0.5.zip",
"bundleSize": 24256,
"bundleSha256": "8f3e392ae65fd222c4b4e6adf172f11e29245f6f764859dbf6b5896182e9665c",
"files": [
{
"path": "manifest.json",
"sha256": "0f3d9ac2809686041cde4211dfaf6abf9c21a4e7b0a677384a99f1ce4dc6846f",
"sha256": "81c995a4eb823ba427d0cfef9ca2cf64de3e6f53d8ddf32a0196c94fde8a4103",
"size": 400
},
{
"path": "main.js",
"sha256": "950efcab13b1fedac23e64bedc1a50814334f9a909c3e7a843560ddd5ff09ede",
"size": 17339
"sha256": "ec6ffaa21fe4a1de2a7b466fb76e4eff93856ced61589764dfa987718107db5f",
"size": 23642
}
],
"file": "plugins/plugin-sticky.950efcab13b1.js",
"size": 17339,
"sha256": "950efcab13b1fedac23e64bedc1a50814334f9a909c3e7a843560ddd5ff09ede",
"integrity": "sha256-lQ78qxOx/trCPmS+3BpQgUM0+akJw+eoQ1YN3V/wnt4="
"file": "plugins/plugin-sticky.ec6ffaa21fe4.js",
"size": 23642,
"sha256": "ec6ffaa21fe4a1de2a7b466fb76e4eff93856ced61589764dfa987718107db5f",
"integrity": "sha256-7G/6oh/kod4qe0Zvt25O/5OFbO1hWJdk36mHcYEH218="
},
{
"id": "style-source",
+4 -4
View File
@@ -3,7 +3,7 @@
<title>插件市场 · Image Workbench</title>
<link rel="icon" href="/assets/favicon.png" type="image/png">
<link rel="apple-touch-icon" href="/assets/logo.png">
<link rel="stylesheet" href="/assets/style.css?v=3.26.56-mwu3cmly">
<link rel="stylesheet" href="/assets/style.css?v=3.26.57-mwu5p2lf">
</head><body>
<nav><div class="wrap inner">
<a class="brand" href="/"><img class="logo" src="/assets/logo.png" alt="" width="26" height="26">Image Workbench</a>
@@ -16,7 +16,7 @@
</div>
<div class="right">
<a class="btn" href="/plugins/">插件市场</a>
<a class="btn primary" href="/download/">下载 v3.26.56</a>
<a class="btn primary" href="/download/">下载 v3.26.57</a>
</div>
</div></nav>
<main>
@@ -80,7 +80,7 @@
</div>
<div class="pcard" data-name="提示词库 promptlib 右栏提示词列表:搜索/分组/收藏/新建编辑/插入画布/复制(数据由客户端提供) 资源 提示词" data-tags="资源,提示词">
<div class="head"><span class="av" style="background:#eef2f6">📖</span>
<div><div class="nm">提示词库</div><div class="ver">v1.9.0 · 官方</div></div></div>
<div><div class="nm">提示词库</div><div class="ver">v1.9.1 · 官方</div></div></div>
<div class="desc">右栏提示词列表:搜索/分组/收藏/新建编辑/插入画布/复制(数据由客户端提供)</div>
<div class="tags"><span class="tag">资源</span><span class="tag">提示词</span></div>
</div>
@@ -98,7 +98,7 @@
</div>
<div class="pcard" data-name="便利贴 sticky 画布便利贴:多行文本 + 字号/粗细调节 + 8 色背景,纯说明不连线 标注 便签" data-tags="标注,便签">
<div class="head"><span class="av" style="background:#fdf3d0">📝</span>
<div><div class="nm">便利贴</div><div class="ver">v1.0.0 · 官方</div></div></div>
<div><div class="nm">便利贴</div><div class="ver">v1.0.5 · 官方</div></div></div>
<div class="desc">画布便利贴:多行文本 + 字号/粗细调节 + 8 色背景,纯说明不连线</div>
<div class="tags"><span class="tag">标注</span><span class="tag">便签</span></div>
</div>
+22 -1
View File
@@ -1,8 +1,29 @@
{
"app": "Image Workbench",
"subtitle": "本地优先的 AI 生图无限画布 · 桌面版(Tauri v2)",
"updatedAt": "2026-11-24T02:44:18.080Z",
"updatedAt": "2026-11-24T03:49:57.900Z",
"releases": [
{
"version": "3.26.57",
"date": "2026-11-24",
"notes": "",
"platforms": {
"darwin-aarch64": {
"file": "updates/darwin-aarch64/image-workbench_3.26.57_aarch64.dmg",
"size": 8798003,
"sha256": "3e45e7ddbd0367a556a8868aa1d11b196a2a7e0516d7f5eded64a8af86535c19",
"h": "3e45e7ddbd03",
"kind": "dmg"
},
"darwin-x86_64": {
"file": "updates/darwin-x86_64/image-workbench_3.26.57_x64.dmg",
"size": 9183122,
"sha256": "de9b2e7f102c479bc7ca6df57e0ae03e0458ce052b7057a56950885bc74ccadf",
"h": "de9b2e7f102c",
"kind": "dmg"
}
}
},
{
"version": "3.26.56",
"date": "2026-11-24",
+1 -1
View File
@@ -1983,7 +1983,7 @@ dependencies = [
[[package]]
name = "image-workbench"
version = "3.26.56"
version = "3.26.57"
dependencies = [
"arboard",
"base64 0.22.1",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "image-workbench"
version = "3.26.56"
version = "3.26.57"
description = "无限画布 · 生图工作台桌面版"
authors = ["malongan"]
license = ""
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
"productName": "image-workbench",
"version": "3.26.56",
"version": "3.26.57",
"identifier": "com.malongan.imageworkbench",
"build": {
"frontendDist": "../dist",
+4 -3
View File
@@ -26,9 +26,10 @@
const p = props || {}
const stop = (e) => e.stopPropagation()
const panelRef = useRef(null)
const [pos, setPos] = useState({ x: 40, y: 40 })
const [pos, setPos] = useState(null) // null = 未定位:先隐藏,避免首帧在左上角闪一下
const useLayoutEffect = React.useLayoutEffect || useEffect
useEffect(() => {
useLayoutEffect(() => { // 绘制前定位
if (!p.anchor) return undefined
const place = () => {
if (typeof p.placePanel !== 'function') return
@@ -117,7 +118,7 @@
// 缺了它面板会落在文档流里(位置 0,0 且被应用层盖住、点不动)。
const body = el('div', {
className: 'iwb-pop-anchor',
style: { left: pos.x + 'px', top: pos.y + 'px' },
style: { left: (pos ? pos.x : 0) + 'px', top: (pos ? pos.y : 0) + 'px', visibility: pos ? 'visible' : 'hidden' },
onPointerDown: stop,
onWheel: (e) => e.stopPropagation(),
},
+14 -13
View File
@@ -1457,10 +1457,10 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
/* ===== v3.86.5 图像设置浮层(质量 / 尺寸 / 分辨率 / 宽高比网格) ===== */
.iwb-image-settings { width: 380px; max-width: calc(100vw - 32px); }
.iwb-image-settings .iwb-modal-body { display: flex; flex-direction: column; gap: 12px; }
.iwb-setgroup { display: flex; flex-direction: column; gap: var(--iwb-space-6); }
.iwb-setgroup { display: flex; flex-direction: column; gap: var(--iwb-space-8); }
/* v3.87.5:质量档位一行放 6 个 chip(自动/快速/标准/高清/极高/最高)→ 只在这个浮层里收紧内边距;
.iwb-setrow 本来就有 flex-wrap,字体差异导致放不下时自然换行,不存在溢出。 */
.iwb-image-settings .iwb-chip-line { padding: 5px 10px; }
.iwb-image-settings .iwb-chip-line { padding: 0 var(--iwb-pop-chip-pad-x); }
.iwb-chip[disabled] { opacity: 0.45; cursor: not-allowed; }
.iwb-chip[disabled]:hover { color: var(--iwb-text2); border-color: var(--iwb-border); }
/* 设置里模型行的「质量」勾选:紧跟名字,不参与右侧按钮的挤压 */
@@ -1469,7 +1469,7 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-setlabel { color: var(--iwb-text2); font-size: var(--iwb-font-sm); font-weight: 700; }
.iwb-sethd { display: flex; align-items: center; justify-content: space-between; gap: var(--iwb-space-8); }
.iwb-setalign { font-size: var(--iwb-font-sm); white-space: nowrap; }
.iwb-setrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--iwb-space-6); }
.iwb-setrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--iwb-pop-chip-gap); }
.iwb-setx { color: var(--iwb-text2); flex: 0 0 auto; }
.iwb-set-num { flex: 0 0 auto; width: 74px; min-width: 0; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.iwb-set-num::-webkit-outer-spin-button, .iwb-set-num::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
@@ -1478,9 +1478,10 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
/* ===== v3.86.5 图像设置:贴节点浮层(popover)形态 ===== */
.iwb-pop-anchor { position: fixed; z-index: var(--iwb-z-anchor); }
.iwb-pop { width: 380px; max-width: calc(100vw - 16px); background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: var(--iwb-radius-popover); box-shadow: var(--iwb-elevation-3); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 32px); overflow-y: auto; }
/* 浮层弹窗(模型设置 / 图像设置 / 后续同类)统一 token —— 见 docs/standards/design-tokens.md §3.13 */
.iwb-pop { --iwb-pop-w: 380px; --iwb-pop-pad-y: var(--iwb-space-16); --iwb-pop-pad-x: var(--iwb-space-20); --iwb-pop-gap: var(--iwb-space-12); --iwb-pop-radius: var(--iwb-radius-popover); --iwb-pop-title-size: var(--iwb-font-base); --iwb-pop-chip-h: 32px; --iwb-pop-chip-pad-x: var(--iwb-space-12); --iwb-pop-chip-radius: var(--iwb-radius-control); --iwb-pop-chip-gap: var(--iwb-space-8); --iwb-pop-chip-size: var(--iwb-font-md); width: var(--iwb-pop-w); max-width: calc(100vw - 16px); background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: var(--iwb-pop-radius); box-shadow: var(--iwb-elevation-3); padding: var(--iwb-pop-pad-y) var(--iwb-pop-pad-x); display: flex; flex-direction: column; gap: var(--iwb-pop-gap); max-height: calc(100vh - 32px); overflow-y: auto; }
.iwb-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.iwb-pop-title { font-weight: 700; color: var(--iwb-text); }
.iwb-pop-title { font-weight: 700; color: var(--iwb-text); font-size: var(--iwb-pop-title-size); }
.iwb-pop-body { display: flex; flex-direction: column; gap: 12px; }
/* 纯描边胶囊:与截图一致(选中只加重描边与文字色,不填充) */
.iwb-chip-line { background: transparent; border: 1px solid var(--iwb-border); color: var(--iwb-text); border-radius: 999px; padding: 5px 14px; }
@@ -1530,9 +1531,9 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
/* 选中项 = 品牌色描边 + 品牌色文字(与 .iwb-chip-line-on 同一套选中语言,只加重不填充) */
/* 弹窗内四组控件的形状统一:跟随「尺寸」那组(圆角矩形,非胶囊);字号统一 15px */
.iwb-pop .iwb-chip-line { border-radius: 10px; min-height: 38px; padding: 6px 14px; font-size: 15px; }
.iwb-pop .iwb-chip-line { display: inline-flex; align-items: center; border-radius: var(--iwb-pop-chip-radius); min-height: var(--iwb-pop-chip-h); padding: 0 var(--iwb-pop-chip-pad-x); font-size: var(--iwb-pop-chip-size); }
.iwb-pop .iwb-set-num { font-size: var(--iwb-font-lg); }
.iwb-pop-title { font-size: 15px; }
.iwb-pop-title { font-size: var(--iwb-pop-title-size); }
/* ---------- 分层节点(layer)----------
节点内字号跟随现有节点(11–12px),与「图像设置」面板的 15px 规范区分:
@@ -1639,10 +1640,10 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-gen-config { width: min(92vw, 320px); max-height: min(78vh, calc(100vh - 24px)); display: flex; flex-direction: column; gap: var(--iwb-space-10); padding: var(--iwb-space-12) var(--iwb-space-16); }
.iwb-gc-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.iwb-gc-field { display: flex; align-items: center; gap: 6px; min-width: 0; }
.iwb-gc-label { font-size: 12px; color: var(--iwb-text2); white-space: nowrap; }
.iwb-gc-select { font-size: 13px; padding: 5px 8px; border: 1px solid var(--iwb-border); border-radius: 8px; background: var(--iwb-panel); color: var(--iwb-text); max-width: 220px; }
.iwb-gc-label { font-size: var(--iwb-font-sm); color: var(--iwb-text2); white-space: nowrap; }
.iwb-gc-select { height: var(--iwb-pop-chip-h); font-size: var(--iwb-pop-chip-size); padding: 0 var(--iwb-pop-chip-pad-x); border: 1px solid var(--iwb-border); border-radius: var(--iwb-pop-chip-radius); background: var(--iwb-panel); color: var(--iwb-text); max-width: 220px; }
.iwb-gc-select:disabled { opacity: 0.5; }
.iwb-gc-sub { font-size: 12px; font-weight: 700; color: var(--iwb-text2); letter-spacing: 0.5px; }
.iwb-gc-sub { font-size: var(--iwb-font-sm); font-weight: 700; color: var(--iwb-text2); letter-spacing: 0.5px; }
/* ── 节点背景色(2026-11-01 第二轮)──────────────────────────────────────────
数据侧:`data.bg` 存**令牌**(white/cyan/purple/pink/orange/yellow/green),
颜色值由本文件按主题映射 ⇒ 暗色主题是**独立的一套深色**,不是把浅色压暗。
@@ -1780,14 +1781,14 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-bg-dot.iwb-bg-swatch:hover { transform: none; }
.iwb-bg-palette-host { position: fixed; inset: 0; pointer-events: none; z-index: var(--iwb-z-palette); }
.iwb-bg-palette-host .iwb-pop-anchor { pointer-events: auto; }
.iwb-gc-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; overflow: auto; max-height: 48vh; padding-right: 2px; }
.iwb-gc-item { flex: 0 0 auto; width: auto; min-width: max-content; max-width: 100%; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--iwb-border); border-radius: 10px; background: var(--iwb-panel); color: var(--iwb-text); font-size: 13px; cursor: pointer; white-space: nowrap; text-align: left; }
.iwb-gc-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--iwb-pop-chip-gap); overflow: auto; max-height: 48vh; padding-right: var(--iwb-space-2); }
.iwb-gc-item { flex: 0 0 auto; width: auto; min-width: max-content; max-width: 100%; display: inline-flex; align-items: center; min-height: var(--iwb-pop-chip-h); gap: var(--iwb-space-6); padding: 0 var(--iwb-pop-chip-pad-x); font-size: var(--iwb-pop-chip-size); border-radius: var(--iwb-pop-chip-radius); border: 1px solid var(--iwb-border); background: var(--iwb-panel); color: var(--iwb-text); cursor: pointer; white-space: nowrap; text-align: left; }
.iwb-gc-name { white-space: nowrap; }
.iwb-gc-tick { margin-left: auto; color: var(--iwb-brand-text, var(--iwb-brand)); font-weight: 700; }
.iwb-gc-item:hover { border-color: var(--iwb-brand); color: var(--iwb-brand-text, var(--iwb-brand)); }
.iwb-gc-item-on { border-color: var(--iwb-brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--iwb-brand) 18%, transparent); }
.iwb-gc-item-err { border-color: var(--iwb-err); color: var(--iwb-err); }
.iwb-gc-empty { font-size: 12px; color: var(--iwb-text2); padding: 6px 2px; }
.iwb-gc-empty { font-size: var(--iwb-font-sm); color: var(--iwb-text2); padding: var(--iwb-space-6) var(--iwb-space-2); }
/* 节点上的模型触发器:节点宽度固定(480)时长名必须省略,否则会溢出压到「尺寸」按钮上。
(面板里的模型名永远完整显示:nowrap 且不设省略) */
.iwb-gen-settings .iwb-pick-genmodel { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }