vasturiano / d3-force-3d

Force-directed graph layout in 1D, 2D or 3D using velocity Verlet integration.
https://observablehq.com/@vasturiano/multi-dimensional-d3-force-simulation
MIT License
373 stars 54 forks source link

Typescript? #23

Open apowers313 opened 7 months ago

apowers313 commented 7 months ago

I don't suppose anyone has TypeScript definitions for this package yet, do they?

apowers313 commented 7 months ago

Here's a first (incomplete) pass should it benefit anyone else:

https://github.com/apowers313/babylon-forcegraph/blob/master/src/engine/d3-force-3d.d.ts

Aarebecca commented 7 months ago

Here I provide a type definition based on my understanding: https://github.com/vasturiano/d3-force-3d/pull/24