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(
|
.force(
|
||||||
"link",
|
"link",
|
||||||
d3
|
d3
|
||||||
.forceLink() // This force provides links between nodes
|
.forceLink<TaskId, SimulationLinkDatum<TaskId>>() // This force provides links between nodes
|
||||||
.id(function (d) {
|
.id(d => d.id) // This provide the id of a node
|
||||||
return d.id;
|
|
||||||
}) // This provide the id of a node
|
|
||||||
.links(edges) // and this the list of links
|
.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
|
.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 = {
|
export type TaskAssignmentData = {
|
||||||
id: string,
|
id: string,
|
||||||
|
|
Reference in a new issue