Skip to content
Snippets Groups Projects
Commit 88e4fd1d authored by Tatiana Fritzová's avatar Tatiana Fritzová
Browse files

updated cola

parent 4a9f19b1
No related branches found
No related tags found
No related merge requests found
No preview for this file type
import { Css, Stylesheet } from 'cytoscape'; import { Css, NodeSingular, Stylesheet } from 'cytoscape';
const nodeStyle: Css.Node = { const nodeStyle: Css.Node = {
'width': 'data(width)', 'width': 'data(width)',
...@@ -111,6 +111,10 @@ const colaLayout = { ...@@ -111,6 +111,10 @@ const colaLayout = {
fit: false, fit: false,
padding: 0, padding: 0,
nodeDimensionsIncludeLabels: true, nodeDimensionsIncludeLabels: true,
isLocked: (node: NodeSingular) => {
return node.locked() || node.data('layoutLocked');
},
lockEvents: 'lock unlock layoutLock layoutUnlock'
// nodeSpacing: function( node ){ // nodeSpacing: function( node ){
// return node.data().id*10; // return node.data().id*10;
// }, // },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment