Files
image-workbench-desktop/src-tauri/Cargo.toml
T
qiqi 05dd343155 feat(canvas-webview): 画布内嵌网页节点(原生子 webview)
- lib.rs:新增 canvas_webview_ensure/bounds/navigate/action/state/close_all,
  用 Window::add_child 建 label=cwv-<节点id> 的子 webview(tauri 启用 unstable feature)。
  子 webview 不在 capabilities ⇒ 外部页面拿不到宿主 IPC。
- 新增 src/canvas-webview.js:锚点扫描 + 每帧位置同步。自启动、对 app.js 零侵入
  (app.js 总行数棘轮只剩 1 行余量)。快速平移缩放拖拽时先隐藏避免拖影;
  节点必须完整落在画布内才显示(原生层不受 overflow:hidden 约束,溢出会盖住侧边栏);
  选中时内缩 12px 露出缩放手柄;锚点消失 900ms 后才回收(LOD 降级不重载页面)。
- 插件节点可声明初始宽度:nodes.register 的 width 经 addPluginNode 生效。
- browser 插件 1.1.0:新增「网页」节点(地址栏 + 后退/前进/刷新/关闭)。
- 同步模块顺序快照与架构文档计数(89 个模块)。
2026-11-18 23:29:17 +08:00

40 lines
1.3 KiB
TOML

[package]
name = "image-workbench"
version = "3.25.24"
description = "无限画布 · 生图工作台桌面版"
authors = ["malongan"]
license = ""
repository = ""
edition = "2024"
rust-version = "1.90"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "image_workbench_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
tauri-build = { version = "2.7.4", features = [] }
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
log = "0.4"
# tray-icon:系统托盘(关闭窗口收进托盘而不是退出)
# tray-icon:系统托盘;image-png:托盘用单色 PNG 模板图标
# unstable:只有它才导出 Window::add_child(画布内嵌子 webview 的唯一入口)。
# 该 API 在 tauri 2.x 里一直存在但被 cfg 门控,本项目只用到 add_child 一项。
tauri = { version = "2.12.5", features = ["tray-icon", "image-png", "unstable"] }
url = "2"
tauri-plugin-log = "2"
tauri-plugin-dialog = "2"
tauri-plugin-fs = "2"
tauri-plugin-http = "2"
tauri-plugin-updater = "2"
tauri-plugin-single-instance = "2"
tauri-plugin-notification = "2"
arboard = "3"
image = { version = "0.25", default-features = false, features = ["png"] }
base64 = "0.22"