@ -57,7 +57,7 @@ class EdgeBase {
this . _line ( ctx , values , viaNode , fromPoint , toPoint ) ;
}
else {
let [ x , y , radius ] = this . _getCircleData ( ctx , values ) ;
let [ x , y , radius ] = this . _getCircleData ( ctx ) ;
this . _circle ( ctx , values , x , y , radius ) ;
}
}
@ -83,7 +83,7 @@ class EdgeBase {
this . _line ( ctx , values , viaNode ) ;
}
else {
let [ x , y , radius ] = this . _getCircleData ( ctx , values ) ;
let [ x , y , radius ] = this . _getCircleData ( ctx ) ;
this . _circle ( ctx , values , x , y , radius ) ;
}
@ -98,7 +98,7 @@ class EdgeBase {
ctx . dashedLine ( this . from . x , this . from . y , this . to . x , this . to . y , pattern ) ;
}
else {
let [ x , y , radius ] = this . _getCircleData ( ctx , values ) ;
let [ x , y , radius ] = this . _getCircleData ( ctx ) ;
this . _circle ( ctx , values , x , y , radius ) ;
}
// draw shadow if enabled
@ -331,7 +331,7 @@ class EdgeBase {
returnValue = this . _getDistanceToEdge ( x1 , y1 , x2 , y2 , x3 , y3 , via )
}
else {
let [ x , y , radius ] = this . _getCircleData ( undefined , values ) ;
let [ x , y , radius ] = this . _getCircleData ( undefined ) ;
let dx = x - x3 ;
let dy = y - y3 ;
returnValue = Math . abs ( Math . sqrt ( dx * dx + dy * dy ) - radius ) ;