fix: drag nodes

This commit is contained in:
Fine 2022-12-20 16:38:39 +08:00
parent 210b9ba491
commit 17a85bef5a

View File

@ -324,7 +324,9 @@ limitations under the License. -->
const drag: any = d3.drag().on("drag", (d: ProcessNode) => {
moveNode(d);
});
setTimeout(() => {
d3.selectAll(".node").call(drag);
}, 1000);
}
function shuffleArray(array: number[][]) {