color is an hex

This commit is contained in:
mr 2024-07-23 09:22:40 +02:00
parent 88c8feb7d8
commit 635b1d4ed4

View File

@ -20,7 +20,7 @@ type GraphLink struct {
}
type GraphLinkStyle struct {
Color int64 `bson:"color" json:"color" validate:"required"`
Color string `bson:"color" json:"color" validate:"required"`
Stroke float64 `bson:"stroke" json:"stroke" validate:"required"`
Tension float64 `bson:"tension" json:"tension"`
HeadRadius float64 `bson:"head_radius" json:"head_radius"`