feat(svg-node): enhance SVG node with transparent background rendering and improved editing experience

This commit is contained in:
HouYunFei
2026-07-16 14:13:43 +08:00
parent 5f627d5baf
commit 13c508bc34
6 changed files with 66 additions and 18 deletions
+2
View File
@@ -275,6 +275,8 @@ export type CanvasNodeDefinition = {
showInCreateMenu?: boolean; // 默认 true
hasSourceHandle?: boolean; // 右侧输出连接点,默认 true
hidePanel?: boolean; // 为 true 时:点击/新建不弹出下方面板(含内置生图面板),纯展示型节点用
// 为 true 时:节点卡片背景与边框透明,内容直接融入画布(如 SVG/矢量图);选中时仍显示选中描边
transparentBackground?: boolean;
autoOpenPanel?: boolean; // 为 true 时:单击节点自动打开自定义 Panel(默认仅内置节点单击自动打开)
// 复用宿主内置生成面板;与自定义 Panel 二选一(同时提供时优先 Panel)
useBuiltinPanel?: CanvasBuiltinPanelConfig;