Skip to content

Commit

Permalink
Fix nodes after drag
Browse files Browse the repository at this point in the history
  • Loading branch information
nictru committed Apr 3, 2024
1 parent d223abd commit bc7c5a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/local/report/create/app/templates/network.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@
sprite.textHeight = 8;
return sprite;
})
.onNodeDragEnd(node => {
node.fx = node.x;
node.fy = node.y;
node.fz = node.z;
})
.d3Force('charge').strength(-120);
</script>
{% endblock %}

0 comments on commit bc7c5a9

Please sign in to comment.