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