-
Notifications
You must be signed in to change notification settings - Fork 2
[INVE-26256] - Add logic to have custom label on vedge #81
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
base: master
Are you sure you want to change the base?
Conversation
Blakko
left a comment
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.
Did a really quick pass
The number on the edge and the label inheritance need to be opt-in parameters. Meaning that the current behavior does not change, unless you set these flags to true.
Something like:
public collapseCombo(combo: string | ICombo, stack: boolean = true, opts: {
inheritLabel: boolean,
showCount: boolean
}): void {|
Hi Fabio,
|
Blakko
left a comment
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.
To properly support this functionality in investigate, you'll need to update:
- the
collapseExpandCombofunction in thecorepackage
Additionally, if we want to get this merged we need to update
- the
collapse-expand-combobehavior in thepcpackage
And review all the places where the collapseExpandCombo, collapseCombo and expandCombo are used to see if we need to update them to have a consistent behavior
|
Hi @Blakko, I addressed your feedback in the |
|
Yeah I think we should if we want this to be accepted upstream. |
|
Okay, I did some searching in the repo, but no luck. Could you please share any docs or guidance for setting up the local demo app you mentioned? I am a bit confused here. I might be missing something here, but I was randomly checking both the repos, and I noticed that in |
|
The app I had is not working anymore due to GAR changes, so we need to set up a new app or update the existing one https://github.com/sirensolutions/g6-sandbox Upstream you do not see the |

Checklist
Ticket - https://sirensolutions.atlassian.net/browse/INVE-26256
npm testpassesDescription of change
In this PR,
We introduces a functionality to compute a custom label and direction when we group nodes with edges having identical labels and directions.
Rules followed :
Identical Labels and Directions
VEdgegets<label> (count)(e.g.,<some-label> (2)) and retains the unanimous direction.Identical Labels, Different Directions
VEdgegets<label> (count)(e.g.,<some-label> (2)) but no direction.Different Labels and Directions
VEdgehas a blank label and no direction (default).How to Test
INVE-26256.kibi-internalwithG6by following the documentation. This ensureskibi-internaluses the local G6 package with the PR changes.Videos
Screencast.from.31-03-25.13.22.20.webm
Screencast.from.31-03-25.13.20.18.webm