fix deletion of shapes
Deploy / deploy (push) Successful in 39s

This commit is contained in:
2026-05-07 19:28:38 +02:00
parent 74ed2ea418
commit 1f24977f26
+2 -1
View File
@@ -313,6 +313,7 @@ function selectNode(id, add = false) {
function selectShape(id) {
selectedShapeId = id;
selectedNodeId = null;
selectedNodeIds = [];
renderNodeList();
renderShapeList();
renderNetwork();
@@ -691,7 +692,7 @@ function onMouseDown(e) {
const shape = getShapeAt(mx, my);
if (shape) {
selectedNodeId = null; selectedShapeId = shape.id;
selectedNodeId = null; selectedNodeIds = []; selectedShapeId = shape.id;
dragType = 'shape'; dragTarget = shape;
dragOffX = mx - shape.x; dragOffY = my - shape.y;
renderNodeList(); renderShapeList();