/// <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); }
protected GatewayNodeViewModel BuildGatewayNode(GatewayNodeType gatewayNodeType) { return(new(gatewayNodeType)); }