@@ -94,8 +94,8 @@ function drawStartEndNodes() {
9494 ctx . fillStyle = "black" ;
9595 const center = square / 2 ;
9696
97- ctx . fillText ( startNode . text , startNode . x + center , startNode . y + center ) ;
98- ctx . fillText ( endNode . text , endNode . x + center , endNode . y + center ) ;
97+ // ctx.fillText(startNode.text, startNode.x + center, startNode.y + center);
98+ // ctx.fillText(endNode.text, endNode.x + center, endNode.y + center);
9999 }
100100}
101101
@@ -123,10 +123,10 @@ function drawGrid() {
123123 ctx . textAlign = "center" ;
124124 ctx . textBaseline = "middle" ;
125125
126- for ( let i = square ; i <= canvas . width - 2 * square ; i += square ) {
127- ctx . fillText ( ( i / square ) . toString ( ) , square / 2 , i - square / 2 + square ) ; // Vertical
128- ctx . fillText ( ( i / square ) . toString ( ) , i - square / 2 + square , square / 2 ) ; // Horizontal
129- }
126+ // for (let i = square; i <= canvas.width - 2 * square; i += square) {
127+ // ctx.fillText((i / square).toString(), square / 2, i - square / 2 + square); // Vertical
128+ // ctx.fillText((i / square).toString(), i - square / 2 + square, square / 2); // Horizontal
129+ // }
130130}
131131
132132// fillRect(x, y, width, height)
0 commit comments