didi / LogicFlow

A flow chart editing framework focusing on business customization. 专注于业务自定义的流程图编辑框架,支持实现脑图、ER图、UML、工作流等各种图编辑场景。

Home Page:https://site.logic-flow.cn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

与diamond类型节点连接的边,在拖动时必定报错,将下面官网例子的矩形1改成diamond可复现

knchen-java opened this issue · comments

官网例子:
image
复现数据:
const data = {
nodes: [
{
id: '1',
type: 'diamond',
x: 100,
y: 100,
text: '矩形1',
},
{
id: '2',
type: 'ellipse',
x: 500,
y: 100,
text: '椭圆2',
},
{
id: '3',
type: 'polygon',
x: 100,
y: 250,
text: '多边形3',
},
{
id: '4',
type: 'diamond',
x: 300,
y: 250,
text: '菱形4',
},
],
edges: [
{
sourceNodeId: '1',
targetNodeId: '2',
startPoint: {
x: 100,
y: 60,
},
endPoint: {
x: 500,
y: 50,
},
type: 'polyline',
},
{
sourceNodeId: '2',
targetNodeId: '3',
type: 'line',
},
// TODO
{
sourceNodeId: '2',
targetNodeId: '4',
type: 'bezier',
},
],
};

感谢反馈,我们修复一下