Created
October 19, 2020 18:11
-
-
Save zHaytam/d7033f1ace89b4ee8762192d6246f16b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DiagramOptions | |
{ | |
[Description("Key code for deleting entities")] | |
public string DeleteKey { get; set; } = "Delete"; | |
[Description("Whether to inverse the zoom direction or not")] | |
public bool InverseZoom { get; set; } | |
[Description("The default component for nodes")] | |
public Type? DefaultNodeComponent { get; set; } | |
[Description("The grid size (grid-based snaping")] | |
public int? GridSize { get; set; } | |
[Description("Whether to enable the ability to group nodes together using [CTRL+ALT+G] or not")] | |
public bool GroupingEnabled { get; set; } | |
[Description("Whether to allow users to select multiple nodes at once using CTRL or not")] | |
public bool AllowMultiSelection { get; set; } = true; | |
[Description("Whether to allow panning or not")] | |
public bool AllowPanning { get; set; } = true; | |
[Description("Whether to allow zooming or not")] | |
public bool AllowZooming { get; set; } = true; | |
public DiagramLinkOptions Links { get; set; } = new DiagramLinkOptions(); | |
} | |
public class DiagramLinkOptions | |
{ | |
[Description("The default type of newly created links")] | |
public LinkType DefaultLinkType { get; set; } | |
[Description("The default component for links")] | |
public Type? DefaultLinkComponent { get; set; } | |
[Description("The default color for links")] | |
public string DefaultColor { get; set; } = "black"; | |
[Description("The default color for selected links")] | |
public string DefaultSelectedColor { get; set; } = "rgb(110, 159, 212)"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment