@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user