@@ -1417,9 +1417,9 @@ function onDblClick(e) {
|
|||||||
const mx = e.clientX - rect.left - panX;
|
const mx = e.clientX - rect.left - panX;
|
||||||
const my = e.clientY - rect.top - panY;
|
const my = e.clientY - rect.top - panY;
|
||||||
const node = getCanvasNodeAt(mx, my);
|
const node = getCanvasNodeAt(mx, my);
|
||||||
if (node) { selectNode(node.id); return; }
|
if (node) { editSelectedNode(node.id); return; }
|
||||||
const shape = getShapeAt(mx, my);
|
const shape = getShapeAt(mx, my);
|
||||||
if (shape) { selectedNodeId = null; selectedShapeId = shape.id; renderShapeList(); renderNetwork(); }
|
if (shape) { editSelectedShape(shape.id); }
|
||||||
}
|
}
|
||||||
|
|
||||||
function esc(s) {
|
function esc(s) {
|
||||||
|
|||||||
Reference in New Issue
Block a user