From 897631da6c5e4f3f1d6134a82ed9e1a657bffdce Mon Sep 17 00:00:00 2001 From: Josh Greenwood Date: Fri, 2 May 2014 17:43:16 -0400 Subject: [PATCH] Fix options hash so that all layout examples are consistent --- documentation/md/layouts.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/documentation/md/layouts.md b/documentation/md/layouts.md index b2d668e10..6f14279c3 100644 --- a/documentation/md/layouts.md +++ b/documentation/md/layouts.md @@ -65,7 +65,7 @@ cy.layout( options ); The `grid` layout puts nodes in a well-spaced grid. ```js -{ +options = { name: 'grid', fit: true, // whether to fit the viewport to the graph @@ -107,6 +107,7 @@ cy.layout( options ); The `concentric` layout positions nodes in concentric circles, based on a metric that you specify to segregate the nodes into levels. This layout sets the `concentric` layout value based on your metric, which can be used with `mapLayoutData()`. ```js +options = { name: 'concentric', fit: true, // whether to fit the viewport to the graph