Skip to content

Commit

Permalink
fix(extension): the outermost edges translate 0 when copy a group(did…
Browse files Browse the repository at this point in the history
  • Loading branch information
wbccb committed Oct 20, 2023
1 parent 70ea43b commit 560bb45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/extension/src/materials/group/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,12 @@ class Group {
// groupInnerChildren.edges.forEach(edge => this.translationEdgeData(edge, distance));

// 最外层的edges继续执行创建edgeModel的流程
// 由于最外层会调用translationEdgeData(),因此这里不用传入distance进行偏移
selectedEdges.forEach((edge) => {
const edgeModel = this.createEdgeModel(
edge,
nodeIdMap,
distance,
0,
);
elements.edges.push(edgeModel);
});
Expand Down

0 comments on commit 560bb45

Please sign in to comment.