-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Node **auto panning** when close to edge
- Loading branch information
Showing
6 changed files
with
159 additions
and
8 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using Avalonia; | ||
using Avalonia.Interactivity; | ||
using NodifyM.Avalonia.Controls; | ||
|
||
namespace NodifyM.Avalonia.Events; | ||
public delegate void NodeLocationEventHandler(object sender, NodeLocationEventArgs e); | ||
public class NodeLocationEventArgs : RoutedEventArgs{ | ||
public Point Location { get; set; } | ||
public BaseNode Sender{ get; set; } | ||
public bool Stop{ get; set; } | ||
public NodeLocationEventArgs(Point location, BaseNode sender,RoutedEvent routedEvent,bool stop = false) | ||
{ | ||
Location = location; | ||
this.Sender = sender; | ||
this.RoutedEvent = routedEvent; | ||
this.Stop = stop; | ||
} | ||
} |
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,15 @@ | ||
using Avalonia; | ||
using Avalonia.Interactivity; | ||
using NodifyM.Avalonia.Controls; | ||
|
||
namespace NodifyM.Avalonia.Events; | ||
public delegate void NodifyAutoPanningEventHandler(object sender, NodifyAutoPanningEventArgs e); | ||
public class NodifyAutoPanningEventArgs : RoutedEventArgs{ | ||
public BaseNode Node { get; set; } | ||
|
||
public NodifyAutoPanningEventArgs(RoutedEvent? routedEvent, BaseNode node) : base(routedEvent) | ||
{ | ||
Node = node; | ||
|
||
} | ||
} |
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