【发布时间】:2015-10-01 22:11:41
【问题描述】:
我也尝试在网格布局中的单元格中定位节点,如下所示
layout: { name: 'grid',
fit: true, // whether to fit the viewport to the graph
rows:5,
columns:12,
padding: 10, // the padding on fit
position: function( node )
{ console.log("Row : "+node.data('row') + ", COL : "+node.data('col'));
return {row:3, col:node.data('col')};
}
},
但节点总是在画布中间创建,即使我像上面那样对行进行硬编码。任何建议,发生了什么。
谢谢你
【问题讨论】: