@@ -202,18 +202,18 @@ export class DiagramService {
202202 diagram : this . http . get < Diagram > ( `${ this . general . download ( ) } /diagram/${ id } .json` ) ,
203203 graph : this . http . get < Graph . Data > ( `${ this . general . download ( ) } /diagram/${ id } .graph.json` )
204204 } ) . pipe (
205- tap ( ( { diagram, graph} ) => console . log ( 'Original diagram:' , diagram , 'Original graph' , graph ) ) ,
205+ // tap(({diagram, graph}) => console.log('Original diagram:', diagram, 'Original graph', graph)),
206206 switchMap ( ( { diagram, graph} ) => {
207207 if ( diagram . forNormalDraw !== undefined && ! diagram . forNormalDraw ) {
208208 return this . getNormalPathway ( diagram . stableId ) . pipe (
209209 switchMap ( normalPathwayId => forkJoin ( {
210210 normalDiagram : this . http . get < Diagram > ( `${ this . general . download ( ) } /diagram/${ normalPathwayId } .json` ) ,
211211 normalGraph : this . http . get < Graph . Data > ( `${ this . general . download ( ) } /diagram/${ normalPathwayId } .graph.json` )
212212 } ) ) ,
213- tap ( ( {
214- normalGraph,
215- normalDiagram
216- } ) => console . log ( 'Normal diagram:' , normalGraph , 'Normal graph' , normalDiagram ) ) ,
213+ // tap(({
214+ // normalGraph,
215+ // normalDiagram
216+ // }) => console.log('Normal diagram:', normalGraph, 'Normal graph', normalDiagram)),
217217 map ( ( { normalGraph, normalDiagram} ) => {
218218 graph . nodes . push ( ...normalGraph . nodes ) ;
219219 graph . edges . push ( ...normalGraph . edges ) ;
@@ -233,7 +233,7 @@ export class DiagramService {
233233 return of ( { diagram, graph} ) ;
234234 }
235235 } ) ,
236- tap ( ( mergedResponse ) => console . log ( 'All responses:' , mergedResponse ) ) ,
236+ // tap((mergedResponse) => console.log('All responses:', mergedResponse)),
237237 map ( mergedResponse => ( {
238238 ...mergedResponse ,
239239 chebiMapping : this . getCHEBIStructure (
@@ -244,7 +244,7 @@ export class DiagramService {
244244 )
245245 } ) ) ,
246246 map ( ( { diagram, graph, chebiMapping} ) => this . diagramFromData ( diagram , graph , id , chebiMapping ) ) ,
247- tap ( ( output ) => console . log ( 'Output:' , output ) ) ,
247+ // tap((output) => console.log('Output:', output)),
248248 )
249249
250250 }
@@ -255,11 +255,11 @@ export class DiagramService {
255255 id : number | string = '' ,
256256 chebiMapping : Map < string , Promise < string | undefined > > = new Map ( )
257257 ) : cytoscape . ElementsDefinition {
258- console . log ( "edge.reactionType" , new Set ( diagram . edges . flatMap ( edge => edge . reactionType ) ) )
259- console . log ( "node.connectors.types" , new Set ( diagram . nodes . flatMap ( node => node . connectors . flatMap ( con => con . type ) ) ) )
260- console . log ( "node.renderableClass" , new Set ( diagram . nodes . flatMap ( node => node . renderableClass ) ) )
261- console . log ( "links.renderableClass" , new Set ( diagram . links . flatMap ( link => link . renderableClass ) ) )
262- console . log ( "shadow.renderableClass" , new Set ( diagram . shadows . flatMap ( shadow => shadow . renderableClass ) ) )
258+ // console.log("edge.reactionType", new Set(diagram.edges.flatMap(edge => edge.reactionType)))
259+ // console.log("node.connectors.types", new Set(diagram.nodes.flatMap(node => node.connectors.flatMap(con => con.type))))
260+ // console.log("node.renderableClass", new Set(diagram.nodes.flatMap(node => node.renderableClass)))
261+ // console.log("links.renderableClass", new Set(diagram.links.flatMap(link => link.renderableClass)))
262+ // console.log("shadow.renderableClass", new Set(diagram.shadows.flatMap(shadow => shadow.renderableClass)))
263263
264264 const idToEdges = new Map < number , Edge > ( diagram . edges . map ( edge => [ edge . id , edge ] ) ) ;
265265 const idToNodes = new Map < number , Node > ( diagram . nodes . map ( node => [ node . id , node ] ) ) ;
@@ -673,7 +673,7 @@ export class DiagramService {
673673 }
674674 )
675675
676- console . log ( 'All data created' )
676+ // console.log('All data created')
677677 return {
678678 nodes : [ ...compartmentNodes , ...reactionNodes , ...entityNodes , ...shadowNodes ] ,
679679 edges : [ ...edges , ...linkEdges ]
0 commit comments