图不缩放
This commit is contained in:
parent
7d9e32b3f1
commit
a8bd303962
@ -158,7 +158,7 @@ export default {
|
||||
container,
|
||||
width: document.getElementById('container').clientWidth + 10, //画布宽度等于浏览器宽度
|
||||
height: document.getElementById('container').clientHeight + 10, //画布高度等于浏览器高度
|
||||
fitView: true,
|
||||
fitView: false,
|
||||
// fitViewPadding: [10, 50, 10, 50],
|
||||
animate: true,
|
||||
// plugins: [this.treeTooltip(), this.contextMenu],
|
||||
@ -332,6 +332,7 @@ export default {
|
||||
|
||||
const animateCfg = { duration: 200, easing: "easeCubic" };
|
||||
this.graph.on("node:click", (evt) => {
|
||||
// this.graph.fitView();
|
||||
const { item } = evt;
|
||||
const node = item?.get("model");
|
||||
//点击更多 显示锁起来的下一层节点
|
||||
|
||||
Loading…
Reference in New Issue
Block a user