anvaka / anvaka/ngraph.forcelayout3d
Obsolete version of ngraph.forcelayout as dependency
- Dominant language
- JavaScript
- Stars
- 110
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with package.json to inspect the ngraph.forcelayout dependency, then reproduce the reported createLayout failure from ngraph.offline.layout. Confirm which dependency version handles set size correctly; done means the dependency is updated and createLayout no longer raises the node-mass error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100