antvis/G6

sortByCombo不生效 #4418

V1nnnnnnn posted onGitHub

问题描述

我使用了DagreLayout去给我的节点计算x,y的位置,想通过同层节点数据加入了comboId(值为数字number),希望控制他的排序问题,但是无法生效。

重现链接

暂无

重现步骤

` import { DagreLayout } from '@antv/layout';

const dagreLayout = new DagreLayout({ rankdir: 'LR', nodesep: 50, // 可选 ranksep: 50, preventOverlap: true, sortByCombo: true, });

const model = { nodes: nodes2.map((i) => { return { id: i.id, comboId: i?.data?.comboId, }; }), edges, };

const newModel = dagreLayout.layout(model);

`

预期行为

无法生效

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • G6 版本: [4.5.1 ... ]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


This issue has been closed because it has been outdate for a long time. Please open a new issue if you still need help.

这个 issue 已经被关闭,因为 它已经过期很久了。 如果你仍然需要帮助,请创建一个新的 issue。

posted by github-actions[bot] 10 months ago

Fund this Issue

$0.00
Funded

Pull requests