Skip to content

Commit

Permalink
fix(enums): update enums with new generator
Browse files Browse the repository at this point in the history
  • Loading branch information
MingboPeng committed Feb 3, 2025
1 parent b25b5c7 commit 814c3ae
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/HoneybeeSchema/Model/View.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected View()
/// <param name="groupIdentifier">An optional string to note the view group ' 'to which the sensor is a part of. Views sharing the same ' 'group_identifier will be written to the same subfolder in Radiance ' 'folder (default: None).</param>
public View
(
string identifier, List<double> position, List<double> direction, List<double> upVector, string displayName = default, string roomIdentifier = default, List<List<string>> lightPath = default, ViewType viewType = ViewType.v, double hSize = 60D, double vSize = 60D, double shift = default, double lift = default, double foreClip = default, double aftClip = default, string groupIdentifier = default
string identifier, List<double> position, List<double> direction, List<double> upVector, string displayName = default, string roomIdentifier = default, List<List<string>> lightPath = default, ViewType viewType = ViewType.V, double hSize = 60D, double vSize = 60D, double shift = default, double lift = default, double foreClip = default, double aftClip = default, string groupIdentifier = default
) : base(identifier: identifier, displayName: displayName, roomIdentifier: roomIdentifier, lightPath: lightPath)
{
this.Position = position ?? throw new System.ArgumentNullException("position is a required property for View and cannot be null");
Expand Down Expand Up @@ -111,7 +111,7 @@ public View
/// </summary>
[Summary(@"ViewType")]
[DataMember(Name = "view_type")]
public ViewType ViewType { get; set; } = ViewType.v;
public ViewType ViewType { get; set; } = ViewType.V;

/// <summary>
/// A number for the horizontal field of view in degrees (for all perspective projections including fisheye). For a parallel projection, this is the view width in world coordinates.
Expand Down
12 changes: 6 additions & 6 deletions src/HoneybeeSchema/Model/ViewType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@ public enum ViewType
{

[EnumMember(Value = "v")]
v = 1,
V = 1,

[EnumMember(Value = "h")]
h = 2,
H = 2,

[EnumMember(Value = "l")]
l = 3,
L = 3,

[EnumMember(Value = "c")]
c = 4,
C = 4,

[EnumMember(Value = "a")]
a = 5,
A = 5,

[EnumMember(Value = "s")]
s = 6,
S = 6,

}

Expand Down
2 changes: 1 addition & 1 deletion src/TypescriptSDK/models/View.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class View extends _RadianceAsset {
constructor() {
super();
this.type = "View";
this.view_type = ViewType.v;
this.view_type = ViewType.V;
this.h_size = 60;
this.v_size = 60;
}
Expand Down
12 changes: 6 additions & 6 deletions src/TypescriptSDK/models/ViewType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

/** A single character for the view type (-vt). */
export enum ViewType {
v = "v",
h = "h",
l = "l",
c = "c",
a = "a",
s = "s",
V = "v",
H = "h",
L = "l",
C = "c",
A = "a",
S = "s",
}

0 comments on commit 814c3ae

Please sign in to comment.