Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property 'graphData' does not exist on type 'ForceGraph3D<NodeObject, any>'. #694

Open
callumacrae opened this issue Dec 5, 2024 · 0 comments

Comments

@callumacrae
Copy link

Describe the bug

As of this commit: b2d90b6

The recommended syntax (also enforced by type checking) is as follows:

const myGraph = new ForceGraph3D(<myDOMElement>)
  .graphData(<myData>);

This gives us the following error:

src/modules/clientNetwork/Network3d.vue:191:10 - error TS2339: Property 'graphData' does not exist on type 'ForceGraph3D<NodeObject, any>'.

Other methods we were previously using, such as warmupTicks(), also aren't available - but .width(), .height() and .cameraPosition() still are.

The old syntax still works fine, but type checking fails.

This is preventing us from updating to 1.74.0 :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant