multiple fixes
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
let width = $state(0);
|
||||
let height = $state(0);
|
||||
|
||||
function drag(simulation: any) {
|
||||
function drag(simulation: d3.Simulation<d3.HierarchyNode<Base>, undefined>) {
|
||||
function dragstarted(event: any, d: any) {
|
||||
if (!event.active) simulation.alphaTarget(0.3).restart();
|
||||
d.fx = d.x;
|
||||
|
||||
Reference in New Issue
Block a user