Numbers copied from TS but not working

This commit is contained in:
Paracelsus-Rose 2023-01-15 14:55:12 -05:00
parent 5cfc71f271
commit 3b90f3502d
No known key found for this signature in database
GPG key ID: FAF65C0792F4524E

View file

@ -233,14 +233,14 @@ func arrowheadMarker(isTarget bool, id string, connection d2target.Connection) s
path = fmt.Sprintf(`<circle %s clip-path="circle()" cx="%f" cy="%f" r="%f"/>`,
attrs,
3.2*4+2.2,
(height/1.6)/strokeWidth*2,
(height/1.6)/strokeWidth*2,
(width/3.2)/strokeWidth*2,
)
} else {
path = fmt.Sprintf(`<circle %s clip-path="circle()" cx="%f" cy="%f" r="%f"/>`,
attrs,
3.2*4+2.2,
(height/1.6)/strokeWidth*2,
(height/1.6)/strokeWidth*2,
(width/3.2)/strokeWidth*2,
)
@ -250,14 +250,14 @@ func arrowheadMarker(isTarget bool, id string, connection d2target.Connection) s
if isTarget {
path = fmt.Sprintf(`<circle %s cx="%f" cy="%f" r="%f"/>`,
attrs,
3.2*4+2.2,
(height/1.6)/strokeWidth*2,
(height/1.6)/strokeWidth*2,
(width/3.2)/strokeWidth*2,
)
} else {
path = fmt.Sprintf(`<circle %s cx="%f" cy="%f" r="%f"/>`,
attrs,
3.2*4+2.2,
(height/1.6)/strokeWidth*2,
(height/1.6)/strokeWidth*2,
(width/3.2)/strokeWidth*2,
)