diff --git a/CHANGELOG.md b/CHANGELOG.md index f85297c23..7d2bbe6cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -54,6 +54,7 @@ - `ComponentBase.UseRepresentationInstances` - an option flag to make generating fitting models faster/smaller. - `ContentConfiguration.AllowRotatation` - `AdaptiveGrid.Clone` +- `AdditionalProperties` to ContentConfiguration. ### Fixed diff --git a/Elements.Components/src/SpaceConfiguration.cs b/Elements.Components/src/SpaceConfiguration.cs index 6629d14ce..29ca8f048 100644 --- a/Elements.Components/src/SpaceConfiguration.cs +++ b/Elements.Components/src/SpaceConfiguration.cs @@ -21,6 +21,11 @@ public class SpaceConfiguration : Dictionary /// public class ContentConfiguration { + /// + /// A collection of additional properties. + /// + [Newtonsoft.Json.JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } = new Dictionary(); /// /// A rectangular boundary around this content configuration. @@ -119,7 +124,7 @@ public ContentElement ContentElement public BoundaryDefinition CellBoundary { get; set; } /// - /// The individual content itmems in this configuration. + /// The individual content items in this configuration. /// public List ContentItems { get; set; } @@ -127,12 +132,12 @@ public ContentElement ContentElement /// /// The width of the configuration boundary. /// - public double Width => this.CellBoundary.Width; + public double Width => CellBoundary.Width; /// /// The depth of the configuration boundary. /// - public double Depth => this.CellBoundary.Depth; + public double Depth => CellBoundary.Depth; /// /// Allow rotation of the configuration @@ -173,7 +178,7 @@ public static List AnchorsFromRect(Polygon polygon) /// public List 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; }