From a9e4ed481228b6d4d53c1a5bc566c905ff2da2da Mon Sep 17 00:00:00 2001 From: Alex de Mulder Date: Thu, 6 Mar 2014 15:21:41 +0100 Subject: [PATCH] updated docs --- docs/graph.html | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/docs/graph.html b/docs/graph.html index 61d2862f..20ebaa4b 100644 --- a/docs/graph.html +++ b/docs/graph.html @@ -292,15 +292,22 @@ var nodes = [ the same color schema. - - allowedToMove - Boolean - true - If allowedToMove is false, then the node will not move from its supplied position. - If only an x position has been supplied, it is only fixed in the x-direction. - The same holds for y. If both x and y have been defined, the node will not move. - If no x or y have been supplied, this argument will not do anything. - + + allowedToMoveX + Boolean + false + If allowedToMoveX is false, then the node will not move from its supplied position. + If an X position has been supplied, it is fixed in the X-direction. + If no X value has been supplied, this argument will not do anything. + + + allowedToMoveY + Boolean + false + If allowedToMoveY is false, then the node will not move from its supplied position. + If an Y position has been supplied, it is fixed in the Y-direction. + If no Y value has been supplied, this argument will not do anything. + fontColor String @@ -1386,7 +1393,8 @@ var options: { * label: new, * x: x position of click (canvas space), * y: y position of click (canvas space), - * allowedToMove: true + * allowedToMoveX: true, + * allowedToMoveY: true * }; */ var newData = {..}; // alter the data as you want.