private static void OnNewNode(Node node) { NodeEditorAPIController nodeEditorApi = new NodeEditorAPIController(); LiteGraph.Node liteGraphNode = nodeEditorApi.ConvertNodeToLiteGraphNode(node); hub.Clients.Group(node.PanelId).OnNewNode(liteGraphNode); }
private static void OnPanelNodeUpdated(Node node) { NodeEditorAPIController nodeEditorApi = new NodeEditorAPIController(); LiteGraph.Node liteGraphNode = nodeEditorApi.ConvertNodeToLiteGraphNode(node); hub.Clients.All.OnPanelNodeUpdated(liteGraphNode); }
private static void OnRemoveLink(Link link) { NodeEditorAPIController nodeEditorApi = new NodeEditorAPIController(); LiteGraph.Link liteGraphLink = nodeEditorApi.ConvertLinkToLiteGraphLink(link); hub.Clients.Group(link.PanelId).OnRemoveLink(liteGraphLink); }