Lifeisforu.NodeGraph by lifeisforu

<PackageReference Include="Lifeisforu.NodeGraph" Version="0.3.2" />

 NodeGraphManager

public class NodeGraphManager

public static readonly Dictionary<Guid, Connector> Connectors

public static readonly Dictionary<Guid, FlowChart> FlowCharts

public static bool IsDragging

public static readonly Dictionary<Guid, NodeFlowPort> NodeFlowPorts

public static readonly Dictionary<Guid, Node> Nodes

public static bool OutputDebugInfo

public static bool AreNodesReallyDragged { get; }

public static Connector CurrentConnector { get; }

public static NodePort FirstConnectionPort { get; }

public static bool IsConnecting { get; }

public static bool IsNodeDragging { get; }

public static bool IsSelecting { get; }

public static Node MouseLeftDownNode { get; set; }

public static Point SelectingStartPoint { get; }

public static event NodeGraphDragEventDelegate Drop

public static void AddScreenLog(FlowChart flowChart, string log)

public static void AddSelection(Node node)

public static void BeginConnection(NodePort port)

public static void BeginDragging(FlowChartView flowChartView)

public static void BeginDragNode(FlowChart flowChart)

public static void BeginDragSelection(FlowChart flowChart, Point start)

public static void CalculateContentSize(FlowChart flowChart, bool bOnlySelected, out double minX, out double maxX, out double minY, out double maxY)

public static bool CheckIfConnectable(NodePort otherPort, out string error)

public static void ClearNodeExecutionStates(FlowChart flowChart)

public static void ClearScreenLogs(FlowChart flowChart)

public static void ClipCursor(ref Rectangle rect)

public static void ClipCursor(IntPtr rect)

public static void ConnectTo(NodePort port, Connector connector)

public static Connector CreateConnector(bool isDeserializing, Guid guid, FlowChart flowChart, Type connectorType = null)

public static FlowChart CreateFlowChart(bool isDeserializing, Guid guid, Type flowChartModelType)

public static Node CreateNode(bool isDeserializing, Guid guid, FlowChart flowChart, Type nodeType, double x, double y, int ZIndex, Type nodeViewModelTypeOverride = null, Type flowPortViewModelTypeOverride = null, Type propertyPortViewModelTypeOverride = null)

public static NodeFlowPort CreateNodeFlowPort(bool isDeserializing, Guid guid, Node node, bool isInput, Type portViewModelTypeOverride = null, string name = "None", string displayName = "None", bool allowMultipleInput = true, bool allowMultipleOutput = false, bool isPortEnabled = true, bool isEnabled = true)

public static NodePropertyPort CreateNodePropertyPort(bool isDeserializing, Guid guid, Node node, bool isInput, Type valueType, object defaultValue, string name, bool hasEditor, Type portViewModelTypeOverride = null, string displayName = "", bool allowMultipleInput = false, bool allowMultipleOutput = true, bool isPortEnabled = true, bool isEnabled = true)

public static Node CreateRouterNode(Guid guid, FlowChart flowChart, NodePort referencePort, double X, double Y, int ZIndex, Type nodeViewModelTypeOverride = null, Type flowPortViewModelTypeOverride = null, Type propertyPortViewModelTypeOverride = null)

public static Node CreateRouterNodeForConnector(Guid guid, FlowChart flowChart, Connector connector, double X, double Y, int ZIndex)

public static void DeselectAllNodes(FlowChart flowChart)

public static bool Deserialize(string filePath)

public static void DeserializeConnector(string xml)

public static void DeserializeNode(string xml)

public static void DeserializeNodePort(string xml)

public static void DestroyConnector(Guid guid)

public static void DestroyFlowChart(Guid guid)

public static void DestroyNode(Guid guid)

public static void DestroyNodePort(Guid guid)

public static void DestroySelectedNodes(FlowChart flowChart)

public static void DisconnectAll(NodePort port)

public static void DisconnectFrom(NodePort port, Connector connector)

public static void DragNode(Point delta)

public static bool EndConnection(NodePort endPort = null)

public static void EndDragging()

public static void EndDragNode()

public static bool EndDragSelection(bool bCancel)

public static void FindConnectedPorts(NodePort port, out List outConnectedPorts)

public static Connector FindConnector(Guid guid)

public static FlowChart FindFlowChart(Guid guid)

public static Node FindNode(Guid guid)

public static List<Node> FindNode(FlowChart flowChart, string header)

public static NodeFlowPort FindNodeFlowPort(Guid guid)

public static NodeFlowPort FindNodeFlowPort(Node node, string propertyName)

public static NodePort FindNodePort(Guid guid)

public static NodePropertyPort FindNodePropertyPort(Node node, string propertyName)

public static bool InvokeBuildContextMenu(object sender, BuildContextMenuArgs args)

public static void InvokeDragEnter(object sender, NodeGraphDragEventArgs args)

public static void InvokeDragLeave(object sender, NodeGraphDragEventArgs args)

public static void InvokeDragOver(object sender, NodeGraphDragEventArgs args)

public static void InvokeDrop(object sender, NodeGraphDragEventArgs args)

public static void MoveNodeToFront(Node node)

public static void RemoveScreenLog(FlowChart flowChart, string log)

public static void RemoveSelection(Node node)

public static void SelectAllNodes(FlowChart flowChart)

public static void Serialize(string filePath)

public static string SerializeConnector(Connector connector)

public static string SerializeNode(Node node)

public static string SerializeNodePort(NodePort port)

public static void SetOtherConnectionPort(NodePort port)

public static void TrySelection(FlowChart flowChart, Node node, bool bCtrl, bool bShift, bool bAlt)

public static void UpdateConnection(Point mousePos)

public static void UpdateDragSelection(FlowChart flowChart, Point end, bool bCtrl, bool bShift, bool bAlt)