update constant
This commit is contained in:
parent
21b84a3908
commit
ca08c8937d
2 changed files with 3 additions and 5 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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"`
|
||||
|
|
|
|||
Loading…
Reference in a new issue