mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 14:26:30 +00:00
make right annotation list more vivid
fix creation new anns bug
This commit is contained in:
@@ -4,12 +4,15 @@ using Azaion.Annotator.Extensions;
|
||||
|
||||
namespace Azaion.Annotator.DTO;
|
||||
|
||||
public class AnnotationClass(int id, string name = "")
|
||||
public class AnnotationClass
|
||||
{
|
||||
public int Id { get; set; } = id;
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; } = name;
|
||||
public Color Color { get; set; } = id.ToColor();
|
||||
public string Name { get; set; }
|
||||
public string ShortName { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public Color Color => Id.ToColor();
|
||||
|
||||
[JsonIgnore]
|
||||
public int ClassNumber => Id + 1;
|
||||
|
||||
Reference in New Issue
Block a user