update constant

This commit is contained in:
OneRain2333 2023-01-22 18:40:47 +08:00
parent 21b84a3908
commit ca08c8937d
2 changed files with 3 additions and 5 deletions

View file

@ -592,7 +592,7 @@ func renderOval(tl *geo.Point, width, height float64, style string) string {
}
func renderDoubleOval(tl *geo.Point, width, height float64, style string) string {
var innerTL *geo.Point = tl.AddVector(d2target.BorderOffset)
var innerTL *geo.Point = tl.AddVector(geo.NewVector(d2target.INNER_BORDER_OFFSET, d2target.INNER_BORDER_OFFSET))
return renderOval(tl, width, height, style) + renderOval(innerTL, width-10, height-10, style)
}

View file

@ -24,12 +24,10 @@ const (
THREE_DEE_OFFSET = 15
MULTIPLE_OFFSET = 10
INNER_BORDER_OFFSET = 5
)
var BorderOffset = geo.NewVector(5, 5)
const INNER_BORDER_OFFSET = 5
type Diagram struct {
Name string `json:"name"`
Description string `json:"description,omitempty"`