Add debug icon to node group

This commit is contained in:
Your Name committed 2023-12-05 01:30:40 +08:00
1 parent 4297fb63bb
commit 6fb960a57b
2 files changed
+15

No files matched your search

+14
View File
@@ -131,6 +131,20 @@ export default function (settings: Settings) {
name: "node-icon",
});
// debug
if (cfg.debug) {
group.addShape("image", {
attrs: {
x: x0 + 182,
y: y0 + 2,
height: 14,
width: 14,
img: `./static/icons/Debug.svg`,
},
name: "node-icon",
});
}
// name text
group.addShape("text", {
attrs: {