From 6a6c13a5d8e008cc668fc5b64cb8e474f75e6965 Mon Sep 17 00:00:00 2001 From: exyi Date: Fri, 2 Oct 2020 10:13:20 +0000 Subject: [PATCH] Fix type errors --- frontend/src/force-simulation.ts | 6 ++---- frontend/src/ksp-task-grabber.ts | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/frontend/src/force-simulation.ts b/frontend/src/force-simulation.ts index 9d317b6..95c77d0 100644 --- a/frontend/src/force-simulation.ts +++ b/frontend/src/force-simulation.ts @@ -91,10 +91,8 @@ export function forceSimulation(tasks: TasksFile, ticked: (positions: Map>() // This force provides links between nodes + .id(d => d.id) // This provide the id of a node .links(edges) // and this the list of links ) .force("charge", d3.forceManyBody().strength(repulsionForce)) // This adds repulsion between nodes. Play with the -400 for the repulsion strength diff --git a/frontend/src/ksp-task-grabber.ts b/frontend/src/ksp-task-grabber.ts index c666eaf..d76bcf1 100644 --- a/frontend/src/ksp-task-grabber.ts +++ b/frontend/src/ksp-task-grabber.ts @@ -1,4 +1,3 @@ -import type { TaskId } from "./graph-types" export type TaskAssignmentData = { id: string,