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
Ran into the problem when trying to convert what was basically the Neighborhood Highlighting example but with clusters from regular JS to TypeScript.
network.updateClusteredNode() exists in the type definition, compiler is happy, but breaks with TypeError: network.updateClusteredNode is not a function when it tries to execute.
If I try network.clustering.updateClusteredNode() while leaving type as Network, the compiler complains that Property 'clustering' does not exist on type 'Network'.
Assigning type any and doing the above works fine, but kinda defeats the purpose of using TS.
The issue would be resolved by merging almende/vis#3846. (Seems it was briefly looked at in #43)
The text was updated successfully, but these errors were encountered:
Ran into the problem when trying to convert what was basically the Neighborhood Highlighting example but with clusters from regular JS to TypeScript.
network.updateClusteredNode()
exists in the type definition, compiler is happy, but breaks withTypeError: network.updateClusteredNode is not a function
when it tries to execute.If I try
network.clustering.updateClusteredNode()
while leaving type as Network, the compiler complains thatProperty 'clustering' does not exist on type 'Network'
.Assigning type
any
and doing the above works fine, but kinda defeats the purpose of using TS.The issue would be resolved by merging almende/vis#3846. (Seems it was briefly looked at in #43)
The text was updated successfully, but these errors were encountered: