The node's shape sizes are hardcoded, so, if some supercool person enters a large number of nodes, the labels don't fit inside the circle
Steps to reproduce
Just load the page, then, draw graph, then either click >100 times or run the following bash script [xdotool must be installed]
#!/bin/bash
# clicks all over the screen
startX=140
startY=190
delX=75
delY=75
maxX=1730
maxY=800
x=$startX
y=$startY
xdotool mousemove $x $y
while (( y < maxY )); do
while (( x <= maxX )); do
xdotool click 1
xdotool mousemove_relative $delX 0
(( x += delX ))
done
xdotool mousemove_relative 0 $delY
(( y += delY ))
while (( x > startX )); do
xdotool click 1
xdotool mousemove_relative -- -$delX 0
(( x -= delX ))
done
xdotool mousemove_relative 0 $delY
(( y += delY ))
done
Expected result
Although this is really unlikely, if someone goes through the trouble of drawing >100 nodes, he/she expects that the numbers can be seen clearly. The current code won't live up to his/her expectatations
Defect description
The node's shape sizes are hardcoded, so, if some supercool person enters a large number of nodes, the labels don't fit inside the circle
Steps to reproduce
Just load the page, then, draw graph, then either click >100 times or run the following bash script [
xdotool
must be installed]Expected result
Although this is really unlikely, if someone goes through the trouble of drawing >100 nodes, he/she expects that the numbers can be seen clearly. The current code won't live up to his/her expectatations
Screenshot