李大侠

Results 3 comments of 李大侠

@wumail 你好,这样跟我现在用edge:add事件的思路类似,还是要在edge创建完成后,通过changeEdgeType去切换类型,省掉了中间获取锚点信息的步骤;这是我现在的写法: ``` // edge:add事件中,将默认边类型根据锚点类型切换为对应的边类型 logicFlowInst.on('edge:add', ({data}) => { // 将临时连接改为目标连接 if (data.type !== EDGE_TYPE.TEMPORARY) { return; } const tempEdge = logicFlowInst.graphModel.getEdgeModelById(data.id); const actualEdgeType = tempEdge.targetAnchorId.split('@')[1]; logicFlowInst.graphModel.changeEdgeType(data.id, actualEdgeType); }); ```...

Knock Knock, has the adaptation of version 3.x entered the schedule? Or should I stick with 2.7 in the short term

@Fuzzyma \(^▽^)/ Thank you!