症状:画布网页节点开着时,打开标注/抠图/矢量/批量导出放大预览等全屏工具,浏览器内容盖在工具上、点不到。 根因:画布网页是原生子 webview(Window::add_child),原生层永远压在 DOM 之上(z-index 无效),只能靠宿主 park。但 canvas-webview.js 的 blocked() 只认宿主三类遮罩(modal-mask/imgpreview/prompt-modal),插件全屏遮罩命名无规律(iwb-editor-overlay/iwb-cutout-overlay/vz-root/iwb-bx-zoom)且源码在独立仓库,穷举不到 → 不 park。 修法(方案 2B,插件零改动):blocked() 增加按「几何+定位」自动检测 body 直接子级里 position:fixed 且覆盖视口≥90% 且可见的浮层,命中即整体 park;保留 BLOCK_SELECTOR 快路径、跳过 #root、扫描 120ms 节流+缓存(rAF ~31fps 不掉帧)。仅改 src/canvas-webview.js(+49/−11),tick() 与下游 park 不动。 验证:node --check / eslint 0 错 / npm run build / cargo check 全过。 未验证:canvas-webview 无单测(本次未补);正确性靠手动测试矩阵;「遮罩是 body 直接子级」已静态确认三插件都有 document.body.appendChild,运行时以实测为准。 本版本暂为 mac arm64 本地测试包,未发布(未 publish-update/release.sh/push/出 win 包),测过再三平台同批上线。
55 lines
1.8 KiB
JSON
55 lines
1.8 KiB
JSON
{
|
|
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
|
|
"productName": "image-workbench",
|
|
"version": "3.25.32",
|
|
"identifier": "com.malongan.imageworkbench",
|
|
"build": {
|
|
"frontendDist": "../dist",
|
|
"beforeDevCommand": "npm run build",
|
|
"beforeBuildCommand": "npm run lint && npm run build && node scripts/strip-plugins.js"
|
|
},
|
|
"app": {
|
|
"withGlobalTauri": true,
|
|
"windows": [
|
|
{
|
|
"label": "main",
|
|
"title": "无限画布",
|
|
"width": 1440,
|
|
"height": 900,
|
|
"minWidth": 1024,
|
|
"minHeight": 640,
|
|
"resizable": true,
|
|
"fullscreen": false,
|
|
"center": true,
|
|
"dragDropEnabled": false
|
|
}
|
|
],
|
|
"security": {
|
|
"csp": "default-src 'self'; script-src 'self' blob:; worker-src 'self' blob:; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https:; font-src 'self' data:; connect-src 'self' ipc: http://ipc.localhost https: blob: data: http://127.0.0.1:30092 http://localhost:30092; object-src 'none'; base-uri 'none'; frame-ancestors 'none'"
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": "all",
|
|
"category": "GraphicsAndDesign",
|
|
"shortDescription": "无限画布 · 生图工作台",
|
|
"longDescription": "节点式无限画布,本地编排与生成图片,支持系统原生另存为。",
|
|
"icon": [
|
|
"icons/32x32.png",
|
|
"icons/128x128.png",
|
|
"icons/[email protected]",
|
|
"icons/icon.icns",
|
|
"icons/icon.ico"
|
|
],
|
|
"createUpdaterArtifacts": true
|
|
},
|
|
"plugins": {
|
|
"updater": {
|
|
"endpoints": [
|
|
"https://download.maqiart.eu.org/updates/latest.json"
|
|
],
|
|
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDE3QUU1N0QwQUM5RjE1RjEKUldUeEZaK3MwRmV1RnhjNVhhSlhaSHkvbVRXNDdscHpOa0s0VHF4NHBBQVJBdDQ0dEVlck5FeEsK"
|
|
}
|
|
}
|
|
}
|