-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #325 from amelioro/add-diagram-filters
Add diagram filters
- Loading branch information
Showing
14 changed files
with
718 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
```mermaid | ||
sequenceDiagram | ||
autonumber | ||
actor User | ||
participant TopicWorkspace | ||
participant TopicDiagram | ||
participant store | ||
participant Diagram | ||
participant diagramHooks | ||
participant ReactFlow | ||
User->>TopicWorkspace: Visit /[username]/[topic] | ||
TopicWorkspace->>TopicDiagram: Render | ||
TopicDiagram->>store: diagram = useTopicDiagram | ||
Note over store: get topic diagram<br/>apply filter<br/>get only relevant edges | ||
TopicDiagram->>Diagram: Render(diagram) | ||
Diagram->>diagramHooks: layoutedDiagram = useLayoutedDiagram | ||
Note over diagramHooks: perform layout if diagram changed<br/>add positions to nodes and edges | ||
Note over Diagram: move viewport if node added<br/>fit viewport if new topic loaded | ||
Diagram->>ReactFlow: Render(layoutedDiagram) | ||
Note over ReactFlow: Render FlowNode and ScoreEdge components | ||
``` |
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
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
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
Oops, something went wrong.