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

Obsolete version of ngraph.forcelayout as dependency #9

Open
ghost opened this issue Jan 13, 2022 · 0 comments
Open

Obsolete version of ngraph.forcelayout as dependency #9

ghost opened this issue Jan 13, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 13, 2022

The problem is that according to the package.json -file, the library requires ngraph.forcelayout to be of the version ^1.2.0, so by default it installs aforementioned package of the version 1.2.0. Version 1.2.0 of ngraph.forcelayout though doesnt split functions that calculate the node mass into defaultArrayNodeMass and defaultSetNodeMass. Instead, there is only one function called defaultNodeMass. That function cant calculate the length of the set links properly because it refers to the length-attribute, not to the size. Therefore, e.g. in my case by executing the function createLayout, which is provided by ngraph.offline.layout-library I receive the following error: Error: Node mass should be a number. I assume that this issue can be neutralized by updating the version of ngraph.forcelayout at the package.json to the one, where this function is able to calculate the size of the set properly.

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

0 participants