diff --git a/.gitignore b/.gitignore index 498d78edc..31c1fdc45 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ yarn-error.log token package-lock.json +cypress/platform/current.html \ No newline at end of file diff --git a/cypress/platform/current.html b/cypress/platform/current.html index a40081288..a5c6d2bec 100644 --- a/cypress/platform/current.html +++ b/cypress/platform/current.html @@ -5,13 +5,11 @@ rel="stylesheet" /> @@ -19,8 +17,9 @@
stateDiagram - a --> b: Status - a --> b: Stop + + NotFound --> NotFound: Status + NotFound --> NotFound: Stop
diff --git a/src/diagrams/state/stateDb.js b/src/diagrams/state/stateDb.js index 3b0202a9d..e8f43d413 100644 --- a/src/diagrams/state/stateDb.js +++ b/src/diagrams/state/stateDb.js @@ -113,7 +113,6 @@ export const addRelation = function(_id1, _id2, title) { } addState(id1, type1); addState(id2, type2); - console.info('Adding relation', { id1, id2, title }); currentDocument.relations.push({ id1, id2, title }); }; diff --git a/src/diagrams/state/stateRenderer.js b/src/diagrams/state/stateRenderer.js index ca4d089e3..396bb976d 100644 --- a/src/diagrams/state/stateRenderer.js +++ b/src/diagrams/state/stateRenderer.js @@ -228,7 +228,7 @@ const renderDoc = (doc, diagram, parentId, altBkg) => { } } - logger.info('Count=', graph.nodeCount(), graph); + logger.debug('Count=', graph.nodeCount(), graph); let cnt = 0; relations.forEach(function(relation) { cnt++; @@ -292,8 +292,7 @@ const renderDoc = (doc, diagram, parentId, altBkg) => { graph.edges().forEach(function(e) { if (typeof e !== 'undefined' && typeof graph.edge(e) !== 'undefined') { - // logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e))); - logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e).points)); + logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e))); drawEdge(diagram, graph.edge(e), graph.edge(e).relation); } }); @@ -310,7 +309,7 @@ const renderDoc = (doc, diagram, parentId, altBkg) => { stateInfo.width = stateBox.width + 2 * conf.padding; stateInfo.height = stateBox.height + 2 * conf.padding; - logger.info('Doc rendered', stateInfo, graph); + logger.debug('Doc rendered', stateInfo, graph); return stateInfo; };