From 38d8964c0ea7b93f759b8fe468552f05bc8e2415 Mon Sep 17 00:00:00 2001 From: Alex de Mulder Date: Tue, 25 Mar 2014 15:47:00 +0100 Subject: [PATCH] updated docs for freezeForStabilization --- HISTORY.md | 1 + docs/graph.html | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/HISTORY.md b/HISTORY.md index ece5dd6b..4acc30e0 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -10,6 +10,7 @@ http://visjs.org - clarified docs, stressing importance of css inclusion for correct display of navigation an manipulation icons. - improved and expanded playing with physics (configurePhysics option). - added highlights to navigation icons if the corresponding key is pressed. +- added freezeForStabilization option to improve stabilization with cached positions. ## 2014-03-07, version 0.7.0 diff --git a/docs/graph.html b/docs/graph.html index 7f394700..97766870 100644 --- a/docs/graph.html +++ b/docs/graph.html @@ -744,6 +744,17 @@ var options = { + + freezeForStabilization + Boolean + false + + With the advent of the storePosition() function, the positions of the nodes can be saved after they are stabilized. The smoothCurves require support nodes and those positions are not stored. In order + to speed up the initialization of the graph by using storePosition() and loading the nodes with the stored positions, the freezeForStabilization option freezes all nodes that have been supplied with + an x and y position in place during the stabilization. That way only the support nodes for the smooth curves have to stabilize, greatly speeding up the stabilization process with cached positions. + + + groups Object