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

View file

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

View file

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