@@ -80,25 +80,21 @@ export default class GraphLinkTypesPlugin extends Plugin {
8080 }
8181
8282 async handleLayoutChange ( ) {
83- console . log ( "layout-change" ) ;
8483 // Cancel the animation frame on layout change
8584 if ( this . animationFrameId !== null ) {
8685 cancelAnimationFrame ( this . animationFrameId ) ;
8786 this . animationFrameId = null ;
8887 }
8988 await this . waitForRenderer ( ) ;
9089 this . checkAndUpdateRenderer ( ) ;
91- console . log ( this . currentRenderer ) ;
9290 }
9391
9492 checkAndUpdateRenderer ( ) {
9593 const newRenderer = this . findRenderer ( ) ;
9694 if ( ! newRenderer ) {
97- console . log ( "No Renderer Found" ) ;
9895 this . currentRenderer = null ;
9996 return ;
10097 }
101- console . log ( "Renderer Found" ) ;
10298 this . currentRenderer = newRenderer ;
10399 this . startUpdateLoop ( ) ;
104100 }
@@ -126,14 +122,12 @@ export default class GraphLinkTypesPlugin extends Plugin {
126122 if ( linkString === null ) return ; //doesn't add if link is null
127123
128124 // Mutual pairs, links that both reference each other
129- console . log ( link . source . id , link . target . id ) ;
130125 if ( link . source . id === link . target . id ) {
131126 linkString = "" ;
132127 } else if ( reverseString === null ) {
133128 const reverseLink : CustomLink | undefined = renderer . links . find ( linkFromLoop => linkFromLoop . source . id === link . target . id && linkFromLoop . target . id === link . source . id ) ;
134129
135130 if ( reverseLink ) {
136- console . log ( reverseLink ) ;
137131 this . createTextForLink ( renderer , reverseLink , linkString ) ;
138132 linkString = "" ;
139133 }
@@ -188,7 +182,6 @@ export default class GraphLinkTypesPlugin extends Plugin {
188182
189183 // Remove all text nodes from the graph
190184 destroyMap ( renderer : CustomRenderer ) : void {
191- console . log ( "Destroying Map" ) ;
192185 if ( this . nodeTextMap . size > 0 ) {
193186 this . nodeTextMap . forEach ( ( text , link ) => {
194187 if ( text && renderer . px && renderer . px . stage && renderer . px . stage . children && renderer . px . stage . children . includes ( text ) ) {
0 commit comments