graflow: small fix for loop always bezier
This commit is contained in:
@@ -495,13 +495,13 @@ class BZgraflow extends Buildoz{
|
||||
}
|
||||
}
|
||||
|
||||
if(wireType === 'bezier') {
|
||||
if((wireType === 'bezier') || loop) { // loops only use bezier to look good
|
||||
return(`M ${x1} ${y1} C ${c1x} ${c1y}, ${c2x} ${c2y}, ${x2} ${y2}`)
|
||||
}
|
||||
if(wireType === 'straight') {
|
||||
if((wireType === 'straight') && (!loop)) {
|
||||
return(`M ${x1} ${y1} L ${c1x} ${c1y} L ${c2x} ${c2y} L ${x2} ${y2}`)
|
||||
}
|
||||
if(wireType === 'ortho') {
|
||||
if((wireType === 'ortho') && (!loop)) {
|
||||
let path = `M ${x1} ${y1} `
|
||||
if(['n', 's'].includes(port1.direction)) {
|
||||
path += `V ${(c1y+c2y)/2} H ${c2x} V ${y2}`
|
||||
|
||||
Reference in New Issue
Block a user