/// <summary>
 /// Initializes a new <see cref="GatewayNodeViewModel"/>
 /// </summary>
 /// <param name="type">The gateway's type</param>
 public GatewayNodeViewModel(GatewayNodeType type)
     : base("", "gateway-node", null, Neuroglia.Blazor.Dagre.Constants.NodeHeight * 1.5, Neuroglia.Blazor.Dagre.Constants.NodeHeight * 1.5)
 {
     this.Type          = type;
     this.ComponentType = typeof(GatewayNodeTemplate);
 }
示例#2
0
 protected GatewayNodeViewModel BuildGatewayNode(GatewayNodeType gatewayNodeType)
 {
     return(new(gatewayNodeType));
 }