Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report]: 使用美化插件@logicflow/layout的dagre后,会丢失节点的高度,且再使用节点设置高度时,不再生效 #2020

Open
mayu3952678 opened this issue Dec 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mayu3952678
Copy link

发生了什么?

使用美化插件@logicflow/layout的dagre后,会丢失节点的高度,且再使用节点设置高度时,不再生效

美化插件调用逻辑如下:
switch (type) {
case 'beautify':
console.log("beautify selected", props.lf.extension.dagre)
props.lf.extension.dagre && props.lf.extension.dagre.layout({
nodesep: 2,
ranksep: 20,
begin: [100, 100],
});

break;

  1. 美化前View:
    image
    添加字段后可以动态修改高度:
    image

  2. 美化后VIew:
    image
    原高度丢失,且修改高度不再生效,修改高度的代码如下:
    image

logicflow/core版本

"@logicflow/core": "^2.0.9",

logicflow/extension版本

"@logicflow/extension": "^2.0.13",

logicflow/engine版本

使用Electron构建:"electron": "^31.0.2", "electron-builder": "^24.13.3", "electron-vite": "^2.3.0",

浏览器&环境

Chrome

@mayu3952678 mayu3952678 added the bug Something isn't working label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant