fix typo
This commit is contained in:
parent
0ad266f1c8
commit
be73f4b2b2
2 changed files with 2 additions and 3 deletions
|
|
@ -44,7 +44,6 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
var multipleOffset = geo.NewVector(10, -10)
|
var multipleOffset = geo.NewVector(10, -10)
|
||||||
var borderOffset = geo.NewVector(5, 5)
|
|
||||||
|
|
||||||
//go:embed tooltip.svg
|
//go:embed tooltip.svg
|
||||||
var TooltipIcon string
|
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 {
|
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)
|
return renderOval(tl, width, height, style) + renderOval(innerTL, width-10, height-10, style)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ const (
|
||||||
MAX_ICON_SIZE = 64
|
MAX_ICON_SIZE = 64
|
||||||
)
|
)
|
||||||
|
|
||||||
var borderOffset = geo.NewVector(5, 5)
|
var BorderOffset = geo.NewVector(5, 5)
|
||||||
|
|
||||||
type Diagram struct {
|
type Diagram struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue