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

Network: Removing node inside a cluster and then opening cluster throws error #1291

Closed
abcbaby opened this issue Sep 11, 2015 · 11 comments
Closed

Comments

@abcbaby
Copy link

abcbaby commented Sep 11, 2015

Here is the example: http://jsfiddle.net/umecqna8/

@AlexDM0
Copy link
Contributor

AlexDM0 commented Sep 11, 2015

Errr... yes. At the moment, dynamic data and clusters don't play nice together. I'll update this in future versions. This is also the reason your other issue does not work at the moment.

Thanks for the heads-up!

Regards

@abcbaby
Copy link
Author

abcbaby commented Sep 11, 2015

Which one, I forgot. Can you refresh me?

@AlexDM0
Copy link
Contributor

AlexDM0 commented Sep 11, 2015

#1218

@abcbaby
Copy link
Author

abcbaby commented Sep 11, 2015

The power is really being able to change the data on the fly. Not static data, that's old school. B)

@AlexDM0
Copy link
Contributor

AlexDM0 commented Sep 11, 2015

Yes, but the book-keeping is not up to speed yet. This will have to be implemented nicely and recursively.

@hengchu
Copy link

hengchu commented Sep 21, 2015

Hi @AlexDM0, for this issue and #1218, I'd like to help fix them if you haven't had the chance to work on them yet. Would you mind letting me know which part of the code base needs to be modified to fix them? Thanks! BTW this is a great library :)

@AlexDM0
Copy link
Contributor

AlexDM0 commented Sep 21, 2015

Hi,

Its all in the clustering file. It needs to listen to the dataChanged event and cleanly and recursively update the bookkeeping. You'll also need to fix #1315

Regards

@AoDev
Copy link
Contributor

AoDev commented Feb 11, 2017

@mojoaxel I was checking the code regarding this today and I actually made the clustering work and support node removal while clustered. But as I read the code, I got many questions and I wonder if it would be possible to speak with someone about it.

@wimrijnders
Copy link
Contributor

But as I read the code, I got many questions and I wonder if it would be possible to speak with someone about it.

@AoDev I only noticed this statement just now. Are you still looking for someone to speak with? I am hereby available.

@AoDev
Copy link
Contributor

AoDev commented Jul 3, 2017

@wimrijnders Thank you. But since February I am not working with vis. I can not work on it at the moment.

@wimrijnders
Copy link
Contributor

@AoDev Yeah, well it was a long time ago, from before I became admin. Well, if you ever want to revisit it, notify me.

wimrijnders added a commit to wimrijnders/vis that referenced this issue Aug 2, 2017
yotamberk pushed a commit that referenced this issue Aug 8, 2017
* First working version of updating clustered edge

* Added fix for #1315 as well

* Enable unit testing for module Network

Adds mocks for certain components, in order to let module `Network` be run in unit tests.

Changes:

- Create a mock object for `hammer.js` when running browserless. The inspiration is taken from [here](visgl/deck.gl#658)
- Create a mock function for `window.requestAnimationFrame()` when running browserless in `network/modules/CanvasRenderer.js`
- Added unit test for `Network` to show that unit testing for it now works
- Fixed naming of container in `test/Graph3d.test.js`

Since `hammer.js` is also used in other modules, this fix is potentially an enabler for full-module unit tests for those as well.

* Cleanup unit test Network

* Added unit test for fix issue #1218

* Adding test for #1315 - Interim save

* Completed unit test and fixes for #1315

* Added fixes for #1291

* Added unit test for #1219

* Added header comment for Clustering.js, small fixes

* Fix for unit test

* Added example networks to unit test

* Fix error in loading disassemblerExample

* Network unit test final fixes

* Fixes for linting

* Fixed essential typo

* Fixed linting error

* Fixed unit test

* Fixed unit test again
primozs pushed a commit to primozs/vis that referenced this issue Jan 3, 2019
)

* First working version of updating clustered edge

* Added fix for almende#1315 as well

* Enable unit testing for module Network

Adds mocks for certain components, in order to let module `Network` be run in unit tests.

Changes:

- Create a mock object for `hammer.js` when running browserless. The inspiration is taken from [here](visgl/deck.gl#658)
- Create a mock function for `window.requestAnimationFrame()` when running browserless in `network/modules/CanvasRenderer.js`
- Added unit test for `Network` to show that unit testing for it now works
- Fixed naming of container in `test/Graph3d.test.js`

Since `hammer.js` is also used in other modules, this fix is potentially an enabler for full-module unit tests for those as well.

* Cleanup unit test Network

* Added unit test for fix issue almende#1218

* Adding test for almende#1315 - Interim save

* Completed unit test and fixes for almende#1315

* Added fixes for almende#1291

* Added unit test for almende#1219

* Added header comment for Clustering.js, small fixes

* Fix for unit test

* Added example networks to unit test

* Fix error in loading disassemblerExample

* Network unit test final fixes

* Fixes for linting

* Fixed essential typo

* Fixed linting error

* Fixed unit test

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

No branches or pull requests

7 participants