File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ module.exports = (function () {
99
1010 var that = this ,
1111 height = 20 ,
12- width = 60 ;
12+ width = 60 ,
13+ smallestRadius = height / 2 ;
1314
1415
1516 // Properties
@@ -29,7 +30,7 @@ module.exports = (function () {
2930 // Functions
3031 // for compatibility reasons // TODO resolve
3132 this . actualRadius = function ( ) {
32- return width ;
33+ return smallestRadius ;
3334 } ;
3435
3536 this . distanceToBorder = function ( dx , dy ) {
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ module.exports = (function () {
55
66 // Static variables
77 var labelHeight = 28 ,
8- labelWidth = 80 ;
8+ labelWidth = 80 ,
9+ smallestRadius = labelHeight / 2 ;
910
1011
1112 // Constructor, private variables and privileged methods
@@ -379,7 +380,7 @@ module.exports = (function () {
379380 } ;
380381
381382 base . prototype . actualRadius = function ( ) {
382- return base . prototype . width ( ) / 2 ;
383+ return smallestRadius ;
383384 } ;
384385
385386 base . prototype . textWidth = base . prototype . width ;
You can’t perform that action at this time.
0 commit comments