@@ -59,11 +59,10 @@ function toCyNode(n: NodeData): cy.NodeDefinition {
5959 'background-color' : color ,
6060 'background-opacity' : 0 ,
6161 'background-image' : getIcon ( n . type ) ,
62- 'background-fit' : 'contain' ,
63- //'font-size': '0px',
64- 'text-max-width' : '80px' ,
62+ 'background-fit' : 'none' ,
63+ 'text-max-width' : '150px' ,
6564 'text-wrap' : 'wrap' ,
66- 'text-valign' : 'bottom'
65+ 'text-valign' : 'bottom' ,
6766 } ,
6867 position : { x : n . x ? n . x : Math . random ( ) , y : n . y ? n . y : Math . random ( ) } ,
6968 } ;
@@ -113,7 +112,6 @@ export function getCytoGraph(container?: HTMLElement, data?: GraphData, options?
113112 width : 1 ,
114113 "curve-style" : "bezier" ,
115114 "target-arrow-shape" : 'triangle' ,
116- //"font-size": "0px",
117115 "text-rotation" : "autorotate" ,
118116 "label" : "data(label)"
119117 }
@@ -154,8 +152,7 @@ export function getCytoGraph(container?: HTMLElement, data?: GraphData, options?
154152 traverseQuery ( ele . id ( ) , "out" )
155153 } ,
156154 enabled : true // whether the command is selectable
157- } ,
158- ] , // function( ele ){ return [ /*...*/ ] }, // a function that returns commands or a promise of commands
155+ } , ] , // function( ele ){ return [ /*...*/ ] }, // a function that returns commands or a promise of commands
159156 } )
160157
161158 layout . start ( )
0 commit comments