You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug 3d-force-graph does not export a NodeObject and LinkObject type.
above message is : 'NodeObject' is not exported by the module '"3d-force-graph"'. Would you like to import 'NodeObject' from '"3d-force-graph"' instead? ts(2614)
When assigning the color property, the following error occurs (the same happens with size):
above message is : Object literal may only specify known properties, and 'color' does not exist in type 'NodeObject'. ts(2353)
Expected behavior
The library should support specifying types for the instance of ForceGraph3D generated by 3d-force-graph, allowing developers to properly type properties like color, size, etc.
How to Fix
Adding the NodeObject and LinkObject types imported from three-forcegraph to the export in 3d-force-graph.d.ts, both types can be used properly.
Desktop (please complete the following information):
OS: Macbook Air M1
Version:
"3d-force-graph": "^1.73.6"
The text was updated successfully, but these errors were encountered:
gs0428
changed the title
There is no NodeObject type in 3d-force-graph
There is no NodeObject and LinkObject type in 3d-force-graph
Nov 15, 2024
gs0428
changed the title
There is no NodeObject and LinkObject type in 3d-force-graph
Cannot import NodeObject and LinkObject type from 3d-force-graph
Nov 15, 2024
gs0428
changed the title
Cannot import NodeObject and LinkObject type from 3d-force-graph
Cannot import NodeObject and LinkObject types from 3d-force-graph
Nov 15, 2024
Describe the bug
3d-force-graph
does not export aNodeObject
andLinkObject
type.above message is : 'NodeObject' is not exported by the module '"3d-force-graph"'. Would you like to import 'NodeObject' from '"3d-force-graph"' instead? ts(2614)
To Reproduce
When assigning the
color
property, the following error occurs (the same happens withsize
):above message is : Object literal may only specify known properties, and 'color' does not exist in type 'NodeObject'. ts(2353)
Expected behavior
The library should support specifying types for the instance of
ForceGraph3D
generated by3d-force-graph
, allowing developers to properly type properties likecolor
,size
, etc.How to Fix
Adding the
NodeObject
andLinkObject
types imported fromthree-forcegraph
to theexport
in3d-force-graph.d.ts
, both types can be used properly.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: