-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: flowchart rendering issues (#61)
* feat(utils): enhance computeEdgePositions to maintain direction points This commit modifies the computeEdgePositions function in utils.ts to keep points that are on a straight line in the same direction. The filter condition is updated to only remove points that have both the same x and y coordinates as the previous point. This ensures that points on a straight line in the same direction are maintained. * fix(flowchart): handle cases when not all edges are retrieved in flowchart.ts * chore: add #45 issue testcase * add function closure for processed edges instead of passing as param * working in solution * possible limit * test: add testcases for remove second last point * fix: add a map to count repeated edges * tweaks and improvements * fix tests --------- Co-authored-by: Aakansha Doshi <[email protected]>
- Loading branch information
1 parent
602a6f2
commit d541e54
Showing
4 changed files
with
143 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters