From f1a6985061a6f4e587c25ea7e87b25487c1b281c Mon Sep 17 00:00:00 2001 From: Eric Wassail Date: Thu, 7 Dec 2023 14:08:54 -0500 Subject: [PATCH 1/2] additional props on contentConfigurations --- Elements.Components/src/SpaceConfiguration.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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; } From fa49f5d8dac56ab4cf03c5f8ca1e826e7a0d07c7 Mon Sep 17 00:00:00 2001 From: Eric Wassail Date: Mon, 11 Dec 2023 15:43:48 -0500 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) 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