Spaces:
Sleeping
Sleeping
Update static/canvas.js
Browse files- static/canvas.js +2 -2
static/canvas.js
CHANGED
|
@@ -67,9 +67,9 @@ function addNode() {
|
|
| 67 |
stroke: 'black',
|
| 68 |
strokeWidth: 2
|
| 69 |
});
|
| 70 |
-
|
| 71 |
connections.push({
|
| 72 |
-
from: selectedNode.data.
|
| 73 |
to: node.data.id
|
| 74 |
});
|
| 75 |
selectedNode = null;
|
|
|
|
| 67 |
stroke: 'black',
|
| 68 |
strokeWidth: 2
|
| 69 |
});
|
| 70 |
+
layer.add(line);
|
| 71 |
connections.push({
|
| 72 |
+
from: selectedNode.data.id,
|
| 73 |
to: node.data.id
|
| 74 |
});
|
| 75 |
selectedNode = null;
|