support node disabled

This commit is contained in:
codetypes committed 2024-05-06 20:56:16 +08:00
1 parent fa5d48d80c
commit 2419ec9f1c
7 files changed
+32 -2

No files matched your search

+14 -1
View File
@@ -213,7 +213,20 @@ G6.registerNode(
width: 14,
img: `./icons/Debug.svg`,
},
name: "node-icon",
name: "node-debug-icon",
});
}
if (cfg.disabled) {
addShape("image", {
attrs: {
x: 182 - (cfg.debug ? 14 : 0),
y: 2,
height: 14,
width: 14,
img: `./icons/Disabled.svg`,
},
name: "node-disabled-icon",
});
}