Skip to content

Commit 81714a0

Browse files
authored
Merge pull request #147 from kinimesi/master
Fixes #143, close-bilkent to cose-bilkent; fixes #119, added fcose layout
2 parents 3799bbd + ce05bea commit 81714a0

22 files changed

+180
-45
lines changed

dash_cytoscape/Cytoscape.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ class attribute).
183183
- fit (boolean; optional):
184184
Whether to render the nodes in order to fit the canvas.
185185
186-
- name (a value equal to: 'random', 'preset', 'circle', 'concentric', 'grid', 'breadthfirst', 'cose', 'close-bilkent', 'cola', 'euler', 'spread', 'dagre', 'klay'; required):
186+
- name (a value equal to: 'random', 'preset', 'circle', 'concentric', 'grid', 'breadthfirst', 'cose', 'cose-bilkent', 'fcose', 'cola', 'euler', 'spread', 'dagre', 'klay'; required):
187187
The layouts available by default are: `random`: Randomly
188188
assigns positions. `preset`: Assigns position based on the
189189
`position` key in element dictionaries. `circle`:
@@ -199,6 +199,7 @@ class attribute).
199199
loading, which impacts the startup time of the app. The
200200
external layouts are:
201201
[cose-bilkent](https://github.com/cytoscape/cytoscape.js-cose-bilkent),
202+
[fcose](https://github.com/iVis-at-Bilkent/cytoscape.js-fcose),
202203
[cola](https://github.com/cytoscape/cytoscape.js-cola),
203204
[euler](https://github.com/cytoscape/cytoscape.js-dagre),
204205
[spread](https://github.com/cytoscape/cytoscape.js-spread),

dash_cytoscape/dash_cytoscape.dev.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash_cytoscape/dash_cytoscape.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash_cytoscape/dash_cytoscape_extra.dev.js

Lines changed: 35 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash_cytoscape/dash_cytoscape_extra.min.js

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash_cytoscape/metadata.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,11 @@
284284
"computed": false
285285
},
286286
{
287-
"value": "'close-bilkent'",
287+
"value": "'cose-bilkent'",
288+
"computed": false
289+
},
290+
{
291+
"value": "'fcose'",
288292
"computed": false
289293
},
290294
{
@@ -308,7 +312,7 @@
308312
"computed": false
309313
}
310314
],
311-
"description": "The layouts available by default are:\n `random`: Randomly assigns positions.\n `preset`: Assigns position based on the `position` key in element dictionaries.\n `circle`: Single-level circle, with optional radius.\n `concentric`: Multi-level circle, with optional radius.\n `grid`: Square grid, optionally with numbers of `rows` and `cols`.\n `breadthfirst`: Tree structure built using BFS, with optional `roots`.\n `cose`: Force-directed physics simulation.\n\nSome external layouts are also included. To use them, run\n `dash_cytoscape.load_extra_layouts()` before creating your Dash app. Be careful about\n using the extra layouts when not necessary, since they require supplementary bandwidth\n for loading, which impacts the startup time of the app.\n The external layouts are:\n [cose-bilkent](https://github.com/cytoscape/cytoscape.js-cose-bilkent),\n [cola](https://github.com/cytoscape/cytoscape.js-cola),\n [euler](https://github.com/cytoscape/cytoscape.js-dagre),\n [spread](https://github.com/cytoscape/cytoscape.js-spread),\n [dagre](https://github.com/cytoscape/cytoscape.js-dagre),\n [klay](https://github.com/cytoscape/cytoscape.js-klay),",
315+
"description": "The layouts available by default are:\n `random`: Randomly assigns positions.\n `preset`: Assigns position based on the `position` key in element dictionaries.\n `circle`: Single-level circle, with optional radius.\n `concentric`: Multi-level circle, with optional radius.\n `grid`: Square grid, optionally with numbers of `rows` and `cols`.\n `breadthfirst`: Tree structure built using BFS, with optional `roots`.\n `cose`: Force-directed physics simulation.\n\nSome external layouts are also included. To use them, run\n `dash_cytoscape.load_extra_layouts()` before creating your Dash app. Be careful about\n using the extra layouts when not necessary, since they require supplementary bandwidth\n for loading, which impacts the startup time of the app.\n The external layouts are:\n [cose-bilkent](https://github.com/cytoscape/cytoscape.js-cose-bilkent),\n [fcose](https://github.com/iVis-at-Bilkent/cytoscape.js-fcose),\n [cola](https://github.com/cytoscape/cytoscape.js-cola),\n [euler](https://github.com/cytoscape/cytoscape.js-dagre),\n [spread](https://github.com/cytoscape/cytoscape.js-spread),\n [dagre](https://github.com/cytoscape/cytoscape.js-dagre),\n [klay](https://github.com/cytoscape/cytoscape.js-klay),",
312316
"required": true
313317
},
314318
"fit": {

dash_cytoscape/package-info.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"cytoscape-cose-bilkent": "^4.0.0",
3434
"cytoscape-dagre": "^2.2.2",
3535
"cytoscape-euler": "^1.2.1",
36+
"cytoscape-fcose": "^2.1.0",
3637
"cytoscape-klay": "^3.1.2",
3738
"cytoscape-spread": "^3.0.0",
3839
"cytoscape-svg": "0.2.0",

deps/dash_cytoscape.dev.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deps/dash_cytoscape.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deps/dash_cytoscape_extra.dev.js

Lines changed: 35 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)