Skip to content
This repository was archived by the owner on Jul 29, 2019. It is now read-only.

self reference edge should now appear in all cases #2595

Merged
merged 3 commits into from
Jan 25, 2017

Conversation

eymiha
Copy link
Contributor

@eymiha eymiha commented Jan 17, 2017

fixes #2591

some calls to extract circle data were passing invalid arguments.

@Tooa
Copy link
Contributor

Tooa commented Jan 20, 2017

This does not work with the example provided in #2591 here. Apply your fix and you will see that the self-reference edges disappear when moving the nodes.

@eymiha
Copy link
Contributor Author

eymiha commented Jan 23, 2017

On a Mac... npm run watch then launch Chrome (mine is Version 55.0.2883.95 (64-bit)) and open examples/network/basic_usage.html...

The circular link in the network is present whether a the self-referenced node is moving, or another node is moving. If there is no circular link (node 3 to itself) then you're not getting the right files.

I recreated the problem with the example from #2591... something else must be amiss.

@eymiha
Copy link
Contributor Author

eymiha commented Jan 23, 2017

Got it - for some reason node.shape.width is NaN, not undefined, going into _getCircleData, and then _resizeShape. Adding the checks into the pull request.

Copy link
Contributor

@Tooa Tooa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great it works now. However, I wonder why the width is NaN instead of undefined. What has changed that requires this additional change?

Copy link
Contributor

@Tooa Tooa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. It still works fine and is a far better solution too.

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

Successfully merging this pull request may close these issues.

3 participants