@@ -120,8 +120,6 @@ const ReactCanvasSketch: React.FunctionComponent<ReactCanvasSketchProps> = (
120120 // already initialized, bail
121121 return ;
122122 }
123- console . log ( "useEffect: Initializing" ) ;
124-
125123 const {
126124 backgroundImageUrl,
127125 value,
@@ -168,7 +166,6 @@ const ReactCanvasSketch: React.FunctionComponent<ReactCanvasSketchProps> = (
168166 if ( canvasSketch == null ) {
169167 return ;
170168 }
171- console . log ( "useEffect: dimensions of container or canvas change" ) ;
172169 canvasSketch . redrawCurrentState ( ) ;
173170 } , [
174171 canvasSketch ,
@@ -183,7 +180,6 @@ const ReactCanvasSketch: React.FunctionComponent<ReactCanvasSketchProps> = (
183180 if ( canvasSketch == null ) {
184181 return ;
185182 }
186- console . log ( "useEffect: current object index or objects changes" ) ;
187183 canvasSketch . redrawSketchAt ( props . value . objects , props . value . currentObjectIndex ) ;
188184 } , [
189185 canvasSketch ,
@@ -196,7 +192,6 @@ const ReactCanvasSketch: React.FunctionComponent<ReactCanvasSketchProps> = (
196192 if ( canvasSketch == null ) {
197193 return ;
198194 }
199- console . log ( "useEffect: redrawIncrement changes" ) ;
200195 canvasSketch . redrawSketch ( ) ;
201196 } , [
202197 canvasSketch ,
@@ -208,7 +203,6 @@ const ReactCanvasSketch: React.FunctionComponent<ReactCanvasSketchProps> = (
208203 if ( canvasSketch == null ) {
209204 return ;
210205 }
211- console . log ( "useEffect: background image when it changes" ) ;
212206 canvasSketch . redrawBackgroundImageUsing ( props . backgroundImageUrl ) ;
213207 } , [
214208 props . backgroundImageUrl ,
@@ -220,7 +214,6 @@ const ReactCanvasSketch: React.FunctionComponent<ReactCanvasSketchProps> = (
220214 if ( canvasSketch == null ) {
221215 return ;
222216 }
223- console . log ( "useEffect: on added stroke when changes" ) ;
224217 canvasSketch . setOnAddedToolStroke ( props . onAddedStroke ) ;
225218 } , [
226219 props . onAddedStroke ,
@@ -232,7 +225,6 @@ const ReactCanvasSketch: React.FunctionComponent<ReactCanvasSketchProps> = (
232225 if ( canvasSketch == null ) {
233226 return ;
234227 }
235- console . log ( "useEffect: tool color when it changes" ) ;
236228 canvasSketch . setToolColor ( props . toolColor ) ;
237229 } , [
238230 props . toolColor ,
@@ -244,7 +236,6 @@ const ReactCanvasSketch: React.FunctionComponent<ReactCanvasSketchProps> = (
244236 if ( canvasSketch == null ) {
245237 return ;
246238 }
247- console . log ( "useEffect: tool width when it changes" ) ;
248239 canvasSketch . setToolWidth ( props . toolWidth ) ;
249240 } , [
250241 props . toolWidth ,
@@ -256,7 +247,6 @@ const ReactCanvasSketch: React.FunctionComponent<ReactCanvasSketchProps> = (
256247 if ( canvasSketch == null ) {
257248 return ;
258249 }
259- console . log ( "useEffect: selected tool when it changes" ) ;
260250 canvasSketch . setSelectedTool ( props . canvasToolType ) ;
261251 } , [
262252 props . canvasToolType ,
0 commit comments