private static VisNetworkStatisticColorNode GetNodeColor(NodeDescription node, bool onError) { if (onError) { return new VisNetworkStatisticColorNode { background = "salmon", border = "red" } } ; if (node.IsSource) { return new VisNetworkStatisticColorNode { background = "lightgrey", border = "#2B7CE9" } } ; if (node.IsTarget) { return new VisNetworkStatisticColorNode { background = "blue", border = "#2B7CE9" } } ; return(new VisNetworkStatisticColorNode { background = "#D2E5FF", border = "#2B7CE9" }); }
private static VisNetworkStatisticIconNode GetIcon(NodeDescription node) { //if (node.IsSource) return new VisNetworkStatisticIconNode { face = "FontAwesome", size = 50, code = @"\uf2f6" }; //if (node.IsTarget) return new VisNetworkStatisticIconNode { face = "FontAwesome", size = 50, code = @"\uf2f5" }; //if (node.IsSource) return new VisNetworkStatisticIconNode { face = "Ionicons", size = 50, code = @"\uf1b1" }; //if (node.IsTarget) return new VisNetworkStatisticIconNode { face = "Ionicons", size = 50, code = @"\uf1b2" }; return(null); }
private static int GetNodeBorderWidth(NodeDescription node) { if (node.IsSource) { return(8); } if (node.IsTarget) { return(8); } return(2); }