- Fix (ext-connector): Handle case of 2 connecting elements with same y-coordinate (fixes #210 ; thanks, @iuyiuy!)
parent
c2e06534ff
commit
5b23b93154
|
@ -60,7 +60,9 @@ svgEditor.addExtension('Connector', function (S) {
|
|||
if (slope < bb.height / bb.width) {
|
||||
ratio = (bb.width / 2) / Math.abs(lenX);
|
||||
} else {
|
||||
ratio = (bb.height / 2) / Math.abs(lenY);
|
||||
ratio = lenY
|
||||
? (bb.height / 2) / Math.abs(lenY)
|
||||
: 0;
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue