namespace AIStudio.Wpf.DiagramDesigner { public class LinkLabelModel : ConnectorPoint { public LinkLabelModel(ConnectorViewModel parent, string id, string content, double? distance = null, ConnectorPoint offset = null) { Parent = parent; Content = content; Distance = distance; Offset = offset; } public LinkLabelModel(ConnectorViewModel parent, string content, double? distance = null, ConnectorPoint offset = null) { Parent = parent; Content = content; Distance = distance; Offset = offset; } public ConnectorViewModel Parent { get; } public string Content { get; set; } /// /// 3 types of values are possible: /// - A number between 0 and 1: Position relative to the link's length /// - A positive number, greater than 1: Position away from the start /// - A negative number, less than 0: Position away from the end /// public double? Distance { get; set; } public ConnectorPoint Offset { get; set; } } }