-
Notifications
You must be signed in to change notification settings - Fork 323
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
Widgets integrated with graph nodes #6347
Merged
Merged
Changes from 46 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
ea01ead
common widget configuration struct
Frizi d721161
wip widget tree
Frizi 94b3d06
proper alignment for widgets
Frizi 62fd98e
widgets on nodes wip
Frizi 5c840ed
use replace_children
Frizi 8a4cbb6
fix object parenting after dynamic widget type update
Frizi 1906293
lazy replace_children, finish get_port_widget_pointer
Frizi 7572273
handle widget offsets at port level, add port padding
Frizi 651db04
wip port mouse handling
Frizi 6083603
edge dragging
Frizi f8ec02b
correct spacing for widgets without ports, bigger hover area for prim…
Frizi 371fb9e
better node coloring and more docs
Frizi 0dfec50
add more docs
Frizi 1db7de2
properly propagate expression usage type
Frizi a790859
fix edge color and origin width update
Frizi 107a357
fix label widget hover color
Frizi cd91a67
lint
Frizi 7810d2a
do not create dropdown elements until opened
Frizi 119f431
fix vector editor default metadata selection
Frizi 4775d57
allow multiple widgets on the same span
Frizi d8082a2
add widget tree hierarchy and iterators
Frizi ff01e79
handle edit mode transition cursor
Frizi 149a8c7
lint and tests
Frizi 66dafee
changelog
Frizi cc5f970
fix graph editor tests
Frizi 202c62f
fix span-tree tests
Frizi 7e56012
use nested label widget for single-child dropdown, improve hover beha…
Frizi adfcbdc
store connection data using crumbs
Frizi 46fb9f4
fix port memory leak
Frizi c99c4dc
address part of review comments
Frizi a05209b
rename widget updates to configuration
Frizi 907ea2c
configuration -> definition
Frizi 8b9a219
widget metadata -> configuration
Frizi 43c2f09
document input widget module
Frizi 2133de7
rewrite and test replace_children
Frizi 4c2da3c
use superbox for widget ports
Frizi aaadab3
fix node size on initialization
Frizi cdb00eb
split single choice widget frp
Frizi b7eb3b7
make it clear that span tree holds parent offset
Frizi cf7a04b
fixes after rebase
Frizi e5190d5
self-review
Frizi 00a455b
fix sibling_offset
Frizi c19da31
provide widget child id to the parent
Frizi 269883d
Merge branch 'develop' into wip/frizi/widgets-on-node
Frizi ac80f65
fix list editor cursor and port visibility
Frizi 9f07c5f
format
Frizi 9325260
Merge branch 'develop' into wip/frizi/widgets-on-node
Frizi 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
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
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.
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.
call note: to be probably deleted as, current_offset probably should be offset to sibling.
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 found that there is a good reason for storing offset to parent. The
child
method allows random access to any child by index, and it requires parent offset to easily calculate the child span's start. It is used everywhere, as it is the base of indexing the tree by crumbs. So we have to it. I will rename the fields and fix some inaccurate comments to make it a little better.