fixed comment
This commit is contained in:
parent
b20fa51d4d
commit
2a11e71dc9
1 changed files with 1 additions and 1 deletions
|
|
@ -326,8 +326,8 @@ func Connection(r *Runner, connection d2target.Connection, path, attrs string) (
|
||||||
animatedClass = " animated-connection"
|
animatedClass = " animated-connection"
|
||||||
}
|
}
|
||||||
|
|
||||||
// If connection is animated and bidirectional
|
|
||||||
if connection.Animated {
|
if connection.Animated {
|
||||||
|
// If connection is animated and bidirectional
|
||||||
if (connection.DstArrow == d2target.NoArrowhead && connection.SrcArrow == d2target.NoArrowhead) || (connection.DstArrow != d2target.NoArrowhead && connection.SrcArrow != d2target.NoArrowhead) {
|
if (connection.DstArrow == d2target.NoArrowhead && connection.SrcArrow == d2target.NoArrowhead) || (connection.DstArrow != d2target.NoArrowhead && connection.SrcArrow != d2target.NoArrowhead) {
|
||||||
// There is no pure CSS way to animate bidirectional connections in two directions, so we split it up
|
// There is no pure CSS way to animate bidirectional connections in two directions, so we split it up
|
||||||
path1, path2, err := svg.SplitPath(path, 0.5)
|
path1, path2, err := svg.SplitPath(path, 0.5)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue