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", 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 // name text
group.addShape("text", { group.addShape("text", {
attrs: { attrs: {
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" class="ionicon" viewBox="0 0 512 512"><path d="M370 378c28.89 23.52 46 46.07 46 86M142 378c-28.89 23.52-46 46.06-46 86M384 208c28.89-23.52 32-56.07 32-96M128 206c-28.89-23.52-32-54.06-32-94M464 288.13h-80M128 288.13H48M256 192v256" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/><path d="M256 448h0c-70.4 0-128-57.6-128-128v-96.07c0-65.07 57.6-96 128-96h0c70.4 0 128 25.6 128 96V320c0 70.4-57.6 128-128 128z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/><path d="M179.43 143.52a49.08 49.08 0 01-3.43-15.73A80 80 0 01255.79 48h.42A80 80 0 01336 127.79a41.91 41.91 0 01-3.12 14.3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/></svg>

After

Width:  |  Height:  |  Size: 833 B