Skip to content

Commit

Permalink
additional props on contentConfigurations
Browse files Browse the repository at this point in the history
  • Loading branch information
wynged committed Dec 7, 2023
1 parent 1664079 commit f1a6985
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Elements.Components/src/SpaceConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ public class SpaceConfiguration : Dictionary<string, ContentConfiguration>
/// </summary>
public class ContentConfiguration
{
/// <summary>
/// A collection of additional properties.
/// </summary>
[Newtonsoft.Json.JsonExtensionData]
public IDictionary<string, object> AdditionalProperties { get; set; } = new Dictionary<string, object>();

/// <summary>
/// A rectangular boundary around this content configuration.
Expand Down Expand Up @@ -119,20 +124,20 @@ public ContentElement ContentElement
public BoundaryDefinition CellBoundary { get; set; }

/// <summary>
/// The individual content itmems in this configuration.
/// The individual content items in this configuration.
/// </summary>

public List<ContentItem> ContentItems { get; set; }

/// <summary>
/// The width of the configuration boundary.
/// </summary>
public double Width => this.CellBoundary.Width;
public double Width => CellBoundary.Width;

/// <summary>
/// The depth of the configuration boundary.
/// </summary>
public double Depth => this.CellBoundary.Depth;
public double Depth => CellBoundary.Depth;

/// <summary>
/// Allow rotation of the configuration
Expand Down Expand Up @@ -173,7 +178,7 @@ public static List<Vector3> AnchorsFromRect(Polygon polygon)
/// </summary>
public List<Vector3> Anchors()
{
var baseRect = Polygon.Rectangle(this.CellBoundary.Min, this.CellBoundary.Max);
var baseRect = Polygon.Rectangle(CellBoundary.Min, CellBoundary.Max);
var baseAnchors = AnchorsFromRect(baseRect);
return baseAnchors;
}
Expand Down

0 comments on commit f1a6985

Please sign in to comment.