Skip to content

Commit

Permalink
fix: [activityDiagram] missing no-action-line parentId caused layout …
Browse files Browse the repository at this point in the history
…problem (#271)
  • Loading branch information
hikerpig authored Mar 15, 2024
1 parent d635362 commit 651b22c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/khaki-cars-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@pintora/diagrams': patch
'@pintora/cli': patch
'@pintora/standalone': patch
---

fix: [activityDiagram] missing no-action-line parentId caused layout problem
3 changes: 3 additions & 0 deletions packages/pintora-diagrams/src/activity/artist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,9 @@ class ActivityDraw {
})
this.g.setEdge(id, dummyNode.id, { label })
this.g.setEdge(dummyNode.id, endId)
if (stepModel.parentId) {
this.g.setParent(dummyNode.id, stepModel.parentId)
}
}
}

Expand Down

0 comments on commit 651b22c

Please sign in to comment.