Monze Gao

Results 4 comments of Monze Gao

在绘制层次图中,通过数据的配置,指定 edges 中的 sourceAnchorId 与 targetAnchorId 能够将两个节点 node 对应锚点连接起来。 例如: 指定 TEST01 下边锚点 与 TEST02 & TEST03 左边锚点通过 edges 中配置的 sourceAnchorId 与 targetAnchorId 绘制直角连线 而不是通过 pointsList 绘制直角位置坐标来实现。 ![image](https://github.com/didi/LogicFlow/assets/48324205/ef863d08-7455-4deb-ba56-918ef90dee0e) 感谢🙇‍

> > 在绘制层次图中,通过数据的配置,指定 edges 中的 sourceAnchorId 与 targetAnchorId 能够将两个节点 node 对应锚点连接起来。 > > 例如: 指定 TEST01 下边锚点 与 TEST02 & TEST03 左边锚点通过 edges 中配置的 sourceAnchorId 与 targetAnchorId 绘制直角连线 而不是通过 pointsList...

例如:https://antv-g6.gitee.io/zh/docs/manual/middle/elements/nodes/anchorpoint/#gatsby-focus-wrapper ![image](https://github.com/didi/LogicFlow/assets/48324205/a441fb0c-1562-499e-9eac-d8e9ba3a93e1) 如这种实现,可以在edges中设置节点锚点的值,连线将根据节点锚点进行相连,并且直角绘制不会出现曲折 ![image](https://github.com/didi/LogicFlow/assets/48324205/57b8331b-85c1-484b-af5a-247d9fd100a8) 在logicFlow中查阅文档,可以为每个节点上下左右锚点设置对应的id,能否通过 sourceAnchorId 与 targetAnchorId 将两个节点 node 对应锚点连接起来,而不是计算节点锚点的位置,通过锚点id就可以连接~ 感谢🙇‍

> > > > 在绘制层次图中,通过数据的配置,指定 edges 中的 sourceAnchorId 与 targetAnchorId 能够将两个节点 node 对应锚点连接起来。 > > > > 例如: 指定 TEST01 下边锚点 与 TEST02 & TEST03 左边锚点通过 edges 中配置的 sourceAnchorId 与...