-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructures proxies, removes layer colors, and adds color proxy class (
#58)
- Loading branch information
1 parent
77ffcea
commit 9da1d79
Showing
8 changed files
with
39 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
using Speckle.Core.Models.Proxies; | ||
|
||
namespace Speckle.Core.Models.Instances; | ||
|
||
/// <summary> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System.Drawing; | ||
using Speckle.Core.Models.Proxies; | ||
|
||
namespace Speckle.Core.Models.Proxies; | ||
|
||
/// <summary> | ||
/// Represents a color that is found on objects and collections in a root collection | ||
/// </summary> | ||
public class ColorProxy : Base, IProxyCollection | ||
{ | ||
public ColorProxy() { } | ||
|
||
public ColorProxy(int color, string applicationId, string? name) | ||
{ | ||
value = color; | ||
this.applicationId = applicationId; | ||
this.name = name; | ||
} | ||
|
||
public List<string> objects { get; set; } | ||
|
||
/// <summary> | ||
/// The argb int of the color | ||
/// </summary> | ||
public int value { get; set; } | ||
|
||
/// <summary> | ||
/// The name, if any, of the color | ||
/// </summary> | ||
public string? name { get; set; } | ||
} |
2 changes: 1 addition & 1 deletion
2
...eckle.Core/Models/Instances/GroupProxy.cs → ...Speckle.Core/Models/Proxies/GroupProxy.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...Core/Models/Instances/IProxyCollection.cs → ...e.Core/Models/Proxies/IProxyCollection.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters