Thanks to visit codestin.com
Credit goes to github.com

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

Conversation

@CapitanMorgan
Copy link
Contributor

@CapitanMorgan CapitanMorgan commented Oct 24, 2016

Fixes #2100, and makes the zoom button on network behave in the more expected fashion. Did this by defining a viewCenter for the canvas, changed the Zoom In/Out buttons function to mirror that of the scroll zoom function. Also fixes an error found with clusterByConnection leaving phantomEdges on the screen. In addition updated a test that fails when you rebuild the library and rerun the tests.

A generic example with the current vis.js combined distributable files
https://jsfiddle.net/p72kewye/35/

A generic example with the proposed changes to the vis.js combined distributable files.
https://jsfiddle.net/xzvxsLjh/1/

]);
assert.deepEqual(viewUpdates, [
['update', {items: [2], data: [{id: 2, title: 'Item 2 (changed)'}]}]
['update', {items: [2], data: [{id: 2, title: 'Item 2 (changed)'}],oldData: [{"group": 2, "id": 2, "title": "Item 2"}]}]
Copy link
Member

Choose a reason for hiding this comment

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

This is actually part of #2174. Thx!

Copy link
Member

@mojoaxel mojoaxel left a comment

Choose a reason for hiding this comment

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

The indent does not look good. Can you please recheck and make sure that you use an indent of zwo space. Thanks!

@mojoaxel
Copy link
Member

@CapitanMorgan By the way: Thanks very much for this bugfix!!

@CapitanMorgan
Copy link
Contributor Author

Fixed spacing, and a few other style items.

@mojoaxel mojoaxel merged commit 91c96ba into visjs:develop Oct 25, 2016
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