Skip to content

Commit

Permalink
refactor: Change PortModel.Initialized's setter to be public
Browse files Browse the repository at this point in the history
  • Loading branch information
zHaytam committed Mar 15, 2021
1 parent b31e84a commit e631355
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Blazor.Diagrams.Core/Models/PortModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ public PortModel(string id, NodeModel parent, PortAlignment alignment = PortAlig
public Point MiddlePosition => new Point(Position.X + Size.Width / 2, Position.Y + Size.Height / 2);
public Size Size { get; set; }
public ReadOnlyCollection<BaseLinkModel> Links => _links.AsReadOnly();
public bool Initialized { get; internal set; }
/// <summary>
/// If set to false, a call to Refresh() will force the port to update its position/size using JS
/// </summary>
public bool Initialized { get; set; }

public void RefreshAll()
{
Expand Down

0 comments on commit e631355

Please sign in to comment.