You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"text-max-width": "150px",// must match or be less than width
35
+
"text-wrap": "wrap",
36
+
"text-max-width": "150px",
47
37
"text-valign": "center",
48
38
"text-halign": "center",
49
39
"font-size": "14px",
50
40
"line-height": "1.2",
51
-
// "text-overflow-wrap": "anywhere",
52
41
},
53
42
},
54
43
{
@@ -70,41 +59,14 @@ if (isWindowTooSmall(GRAPH_PADDING)) {
70
59
avoidOverlap: true,// prevents node overlap, may overflow boundingBox if not enough space
71
60
avoidOverlapPadding: 10,// extra spacing around nodes when avoidOverlap: true
72
61
nodeDimensionsIncludeLabels: false,// Excludes the label when calculating node bounding boxes for the layout algorithm
73
-
spacingFactor: undefined,// Applies a multiplicative factor (>0) to expand or compress the overall area that the nodes take up
74
62
condense: false,// uses all available space on false, uses minimal space on true
75
-
rows: undefined,// force num of rows in the grid
76
-
cols: undefined,// force num of columns in the grid
77
-
position: function(node){},// returns { row, col } for element
78
-
sort: undefined,// a sorting function to order the nodes; e.g. function(a, b){ return a.data('weight') - b.data('weight') }
79
63
animate: false,// whether to transition the node positions
80
-
animationDuration: 500,// duration of animation in ms if enabled
81
-
animationEasing: undefined,// easing of animation if enabled
82
-
animateFilter: function(node,i){
83
-
returntrue;
84
-
},// a function that determines whether the node should be animated. All nodes animated by default on animate enabled. Non-animated nodes are positioned immediately when the layout starts
85
-
ready: undefined,// callback on layoutready
86
-
stop: undefined,// callback on layoutstop
87
-
transform: function(node,position){
88
-
returnposition;
89
-
},// transform a given node position. Useful for changing flow direction in discrete layouts
90
64
},
91
-
92
-
// layout: {
93
-
// name: "breadthfirst",
94
-
// fit: true, // whether to fit the viewport to the graph
95
-
// directed: false,
96
-
// padding: GRAPH_PADDING, // paddinsg used on fit
0 commit comments