Fix type errors
This commit is contained in:
parent
0edb0569b8
commit
6a6c13a5d8
2 changed files with 2 additions and 5 deletions
|
@ -91,10 +91,8 @@ export function forceSimulation(tasks: TasksFile, ticked: (positions: Map<string
|
|||
.force(
|
||||
"link",
|
||||
d3
|
||||
.forceLink() // This force provides links between nodes
|
||||
.id(function (d) {
|
||||
return d.id;
|
||||
}) // This provide the id of a node
|
||||
.forceLink<TaskId, SimulationLinkDatum<TaskId>>() // 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
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import type { TaskId } from "./graph-types"
|
||||
|
||||
export type TaskAssignmentData = {
|
||||
id: string,
|
||||
|
|
Reference in a new issue