From 3d4386d660158ce72c788bbf140c28497cc1a846 Mon Sep 17 00:00:00 2001 From: Alex de Mulder Date: Thu, 5 Mar 2015 10:35:57 +0100 Subject: [PATCH 1/2] updated docs --- HISTORY.md | 8 ++++---- docs/network.html | 15 +++++++++++---- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 8a71f54c..6c57d660 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,15 +2,15 @@ http://visjs.org -## not yet released, version 3.10.1-SNAPSHOT +## not yet released, version 3.11.0-SNAPSHOT ### Network - (added gradient coloring for lines, but set for release in 4.0 due to required refactoring of options) - Fixed bug where a network that has frozen physics would resume redrawing after setData, setOptions etc. -- (add docs) Added option to bypass default groups. If more groups are specified in the nodes than there are in the groups, loop over supplied groups instead of default. -- (add docs) Added two new static smooth curves modes: curveCW and curve CCW. -- Added request redraw for certain internal processes to reduce number of draw calls. +- Added option to bypass default groups. If more groups are specified in the nodes than there are in the groups, loop over supplied groups instead of default. +- Added two new static smooth curves modes: curveCW and curve CCW. +- Added request redraw for certain internal processes to reduce number of draw calls (performance improvements!). - Added pull request for usage of Icons. Thanks @Dude9177! - Allow hierarchical view to be set in setOptions. - Fixed manipulation bar for mobile. diff --git a/docs/network.html b/docs/network.html index dfbac7e0..a57e864e 100644 --- a/docs/network.html +++ b/docs/network.html @@ -280,13 +280,13 @@ When using a DataSet, the network is automatically updating to changes in the Da allowedToMoveX Boolean no - If allowedToMoveX is false, then the node will not move in the X direction from its position. + If allowedToMoveX is false, then the node will not move in the X direction from its position. This does not do anything in hierarchical views. allowedToMoveY Boolean no - If allowedToMoveY is false, then the node will not move in the Y direction from its position. + If allowedToMoveY is false, then the node will not move in the Y direction from its position. This does not do anything in hierarchical views. @@ -599,7 +599,14 @@ var options = { When a Network is configured to be clickToUse, it will react to mouse, touch, and keyboard events only when active. When active, a blue shadow border is displayed around the Network. The Network is set active by clicking on it, and is changed to inactive again by clicking outside the Network or by pressing the ESC key. - + + useDefaultGroups + boolean + true + If true, the default groups are used when groups are used. If you have defined your own groups those will be used. If you have an item with a group that is NOT in your own group list, + setting useDefaultGroups true will iterate over the default groups for unknown groups. If it is set to false, it will iterate over your own groups for unknown groups. + + physics Object @@ -758,7 +765,7 @@ var options = { smoothCurves.type String "continuous" - This option only affects NONdynamic smooth curves. The supported types are: continuous, discrete, diagonalCross, straightCross, horizontal, vertical. The effects of these types + This option only affects NONdynamic smooth curves. The supported types are: continuous, discrete, diagonalCross, straightCross, horizontal, vertical, curvedCW, curvedCCW. The effects of these types are shown in examples 26 and 27 From e655f3b8b80374bf68f6156f97dfed571b67d78a Mon Sep 17 00:00:00 2001 From: Alex de Mulder Date: Thu, 5 Mar 2015 10:54:30 +0100 Subject: [PATCH 2/2] updated docs --- docs/network.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/network.html b/docs/network.html index a57e864e..ebeb881a 100644 --- a/docs/network.html +++ b/docs/network.html @@ -2655,6 +2655,13 @@ network.off('select', onSelect); none + + stabilizationIterationsDone + Fired once when the network finished the initial stabilization run. This is fired REGARDLESS if the network has stabilized. It only means that the amount of configured stabilizationIterations have been completed. + + none + + stabilized Fired every time the network has been stabilized. This event can be used to trigger the .storePositions() function after stabilization. Fired with an object having the following properties: