1
我一直在嘗試使用喬木佈局。我試過Cytoscape web 2喬木佈局
layout: {
name:"arbor"
}
和
layout: {
name:"arbor",
liveUpdate: true,
ready: undefined,
maxSimulationTime: 4000,
fit: true,
padding: [ 50, 50, 50, 50 ],
ungrabifyWhileSimulating: true,
repulsion: undefined,
stiffness: undefined,
friction: undefined,
gravity: true,
fps: undefined,
precision: undefined,
nodeMass: undefined,
edgeLength: undefined,
stepSize: 1,
stableEnergy: function(energy){
var e = energy;
return (e.max <= 7) || (e.mean <= 5);
}
}
在這兩種情況下,螢火蟲控制檯報告
arbor is not defined
http://localhost/WS/BioJS/biojs/src/main/resources/dependencies/cytoscape/jquery.cytoscapeweb.layout.arbor.js
Line 76
我我失去了一些東西? 是否有一個喬木佈局使用的工作示例?
謝謝!我只包含了arbor.js文件,我的腳本現在正在工作。 –