This commit is contained in:
OneRain2333 2023-01-22 17:53:10 +08:00
parent 0ad266f1c8
commit be73f4b2b2
2 changed files with 2 additions and 3 deletions

View file

@ -44,7 +44,6 @@ const (
)
var multipleOffset = geo.NewVector(10, -10)
var borderOffset = geo.NewVector(5, 5)
//go:embed tooltip.svg
var TooltipIcon string
@ -495,7 +494,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(borderOffset)
var innerTL *geo.Point = tl.AddVector(d2target.BorderOffset)
return renderOval(tl, width, height, style) + renderOval(innerTL, width-10, height-10, style)
}

View file

@ -22,7 +22,7 @@ const (
MAX_ICON_SIZE = 64
)
var borderOffset = geo.NewVector(5, 5)
var BorderOffset = geo.NewVector(5, 5)
type Diagram struct {
Name string `json:"name"`