-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
Add CuttingLine control to Nodify #127
Merged
Merged
Conversation
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
BAndysc
added a commit
to BAndysc/nodify-avalonia
that referenced
this pull request
Oct 24, 2024
* Release mouse capture on connector cancel due to KeyUp event * Update CHANGELOG.md * Bump version for release * Port to Avalonia * Fix warnings * Update README.md Add link to Avalonia port * Fix: Zooming into nested editors should not zoom the parent editors * Fix: Cancelling a pending connection via a hot key will no longer throw an exception * Fix: Exceptions in UnscaleTransformConverter and UnscaleDoubleConverter * Fix: Cannot use marquee selection and pan at the same time * Fix: fixed selection clear on items collection reset * Fix: Cannot use marquee selection inside comment nodes * 5.2.0.1 release * Reorder DataTemplates in calculator demo for easier Avalonia merges * Fix: The selection rectangle stops updating when the cursor is outside the window * Added BaseConnection.Orientation to allow vertical connections * Updated changelog * Fix: Mimic WPF's mouse capture behavior * fix small spelling error in recently added dependency property * split source/target orientation * better control point if different orientations * slight clarification in changelog * Updated changelong * Added directional arrows * Fixed spelling issue * Caluclate bezier connection tangent * Added vertical nodes in playground app * Minor adjustments * Merge fix * Update Avalonia to 11.1.0-beta2 * Allow changing editor gestures at runtime (miroiu#104) Separated selection gestures for ItemContainer and GroupingNode from the NodifyEditor Added new gesture types: AnyGesture, AllGestures, and NodifyGesture Fixed a bug where the item container would incorrectly transition to the dragging state on mouse over * Added Orientation to NodeInput and NodeOutput (miroiu#105) * Added Orientation dependency property to NodeInput and NodeOutput * Added the ability to animate directional arrows on connections (miroiu#106) * Added DirectionalArrowsOffset dependency property to BaseConnection Added StartAnimation and StopAnimation methods to BaseConnection * Added Toggle connections animation button in playground app * Prepare for release * Allow changing editor gestures at runtime (miroiu#104) Separated selection gestures for ItemContainer and GroupingNode from the NodifyEditor Added new gesture types: AnyGesture, AllGestures, and NodifyGesture Fixed a bug where the item container would incorrectly transition to the dragging state on mouse over * Added Orientation to NodeInput and NodeOutput (miroiu#105) * Added Orientation dependency property to NodeInput and NodeOutput * Added the ability to animate directional arrows on connections (miroiu#106) * Added DirectionalArrowsOffset dependency property to BaseConnection Added StartAnimation and StopAnimation methods to BaseConnection * Added Toggle connections animation button in playground app * Prepare for release * Post-merge fixes * Update readme * Fixed knot node binding errors in playground app * fix bug can not access editor command (#17) * fix bug can not access editor command --------- Co-authored-by: Bartosz Korczynski <[email protected]> * Fix: Can't resize grouping nodes * Fix: Sticky Connections * Fix: Don't open context menu when panning * Add new built-in connection type: StepConnection (miroiu#109) * Fix BaseConnection SplitEvent and DisconnectEvent not being raised if the corresponding command is null * Fixed DecoratorContainer scaling with zoom when not referencing a theme in App.xaml * Fixed wrong connector position for knot nodes when using step connection (miroiu#112) * Sync documentation to wiki * Update sync-docs.yml * add chinese wiki docs (miroiu#114) * Merge conflicts fix * [Example] Add shapes drawing example application (miroiu#115) * Add new example application * Disable editing controls when the canvas is locked * Draw shapes by click and drag * Add ResizablePanel to resize shapes * Update README.md Add canvas app example * NodifyObservableCollection: Avoid copying the list of items if there are no subscribers to removed or cleared events * Bump version for release * Update FAQ.md * Improved Node customizability * Added DataContext to ItemsSelectStartedCommand, ItemsSelectCompletedCommand, ItemsDragStartedCommand and ItemsDragCompletedCommand * Fix containers at (0, 0) being selected when double clicking on the canvas * Update changelog * Update Connections-Overview.md * Resolve merge conflicts * Upgrade to Avalonia 11.1 * Fix CI * Add a Minimap control to Nodify (miroiu#124) * Added a Minimap control to Nodify * Add MaxViewportOffset and Zoom event * Add ResizeToViewport * Add playground settings * Add IsReadOnly to minimap to allow disabling controls * Add documentation * Bump version for release * Increase minimap colors contrast * Resolve WPF merge conflicts * Build fix * Added a link to a live, browser demo * Update the getting started section miroiu#125 * Update README.md Fix image link for Shapes app * Add CuttingLine control to Nodify (miroiu#127) * Added CuttingLine control to Nodify * Bump version for release * Update api reference * Update README.md (#19) Spent far too long going in circles with this one... 😄 * Add OutlineBrush and OutlineThickness to BaseConnection (miroiu#133) Fixes miroiu#131 * Add IsAnimatingDirectionaArrows and DirectionalArrowsAnimationDuration dependency properties to BaseConnection (miroiu#135) * Add the ability to select connections (miroiu#139) * Add multi-select and support for custom connections * Added CanSelectMultipleItems to NodifyEditor * Added settings search box to playground app * Fix Calculator context manu and converter issues. * Update Avalonia version to 11.1.4 * Fix Calculator context menu * Add support for ScrollViewer (miroiu#142) * Implement IScrollInfo * Bump version for release * Merge commit 'efa15e00e859d4f756e87e8743994693844d759e' into avalonia_port * Add support for ScrollViewer --------- Co-authored-by: Emanuel Miroiu <[email protected]> Co-authored-by: Hendrik Polczynski <[email protected]> Co-authored-by: phamviethuy <[email protected]> Co-authored-by: enheng? <[email protected]> Co-authored-by: ArronDavies <[email protected]> Co-authored-by: Mario Pintaric <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
📝 Description of the Change
This PR adds a
CuttingLine
control to Nodify that removes intersecting connections. The default gesture to start cutting isSHIFT+ALT+LeftClick
.Please note that for the connection style to change when intersecting, it's required to set
NodifyEditor.EnableCuttingLinePreview
totrue
. However, this has a great performance impact when many connections are created.To enable cutting custom connections you must add the connection type to
NodifyEditor.CuttingConnectionTypes
: