-
Notifications
You must be signed in to change notification settings - Fork 17
feat: modify node display #554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Math-R
wants to merge
29
commits into
mrd/new-nodes-management-system
Choose a base branch
from
mrd/modify-node-display
base: mrd/new-nodes-management-system
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
bd74795
nodes: add the iscollapsed param to the node diplay filtering function
Math-R 211188a
feat: add grouping function for collapsed nodes in TrainrunSectionSer…
Math-R 1ce1c11
feat: implement TrainrunSection grouping in view layer for collapsed …
Math-R 615848a
fix: implement custom path calculation for collapsed node chains
Math-R 16a75d5
fix : calc without temporal dto changes + avoid manual handroll
Math-R 7942551
fixup! fix start node in groupTrainrunSectionsIntoChains()
emersion d991738
fixup! only create a single TrainrunSectionViewObject per collapsed c…
emersion b976eff
Add TrainrunSectionViewObject.getTrainrun()
emersion b6d3c54
Store full trainrun section chain in TrainrunSectionViewObject
emersion a32d2cc
fixup! simplify text nodes position computation
emersion b28b18f
fixup! drop unnecessary getCollapsedChainValueToShow() wrapper
emersion bc3998d
fixup! drop getAllSectionsInCollapsedChain()
emersion 64512f0
fixup! fix path target position in TrainrunSectionViewObject.generate…
emersion 6658713
Fix missing source arrival in TrainrunSectionViewObject.generateKey()
emersion 8df2822
fixup! use last section in TrainrunSectionViewObject.generateKey()
emersion e127d6b
fixup! drop TrainrunSectionsView.getCollapsedChainPath()
emersion 09524ec
fixup! drop updateTrainrunSectionPathForCollapsedChain()
emersion dd80b4c
Drop duplicate frequency in TrainrunSectionViewObject.generateKey()
emersion e3dc786
Fix missing source arrival consecutive time in TrainrunSectionViewObj…
emersion 1aa6c9a
Implement new getTravelTime method to compute total travel time to Tr…
Math-R 8aa047c
Merge getTrainrunSectionValueToShow and getTrainrunSectionValueToShow…
Math-R 4be737e
Drop applyBasicFiltering after merging the logic in transformPath
Math-R ed4f922
refactor: throw error on cycle detection in trainrun section chains
Math-R 2279e88
refactor: merge duplicate text positioning functions
Math-R 2ae95ab
fix: fix the calculation of collapsedsection total travel time
Math-R 203e3ad
Update trainrunsectionViewObject.gettraveltime to handle stop times
Math-R 8ea0098
refactor : (gettrainrunvaluetoshow) merge switch cases and remove Tr…
Math-R 328e7e5
refactor: remove special case for multi-section paths in transformPath
Math-R 3f64cfc
fix copy/paste behaviour to keep node collapsed if they are
Math-R File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -240,6 +240,12 @@ export class ConnectionsView { | |
| } | ||
|
|
||
| const node: Node = this.editorView.getNodeFromConnection(con); | ||
|
|
||
| // filter if node is collapsed - do not show connections for collapsed nodes | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tiny nit: why the comment here and not in transitions.view.ts? |
||
| if (node.getIsCollapsed()) { | ||
| return false; | ||
| } | ||
|
|
||
| const trainrunSection1: TrainrunSection = node.getPort(con.getPortId1()).getTrainrunSection(); | ||
| const trainrunSection2: TrainrunSection = node.getPort(con.getPortId2()).getTrainrunSection(); | ||
| const filterTrainrun1 = this.editorView.filterTrainrun(trainrunSection1.getTrainrun()); | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure this function is used anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, good catch i'll remove it