Bogdan-Lyashenko / js-code-to-svg-flowchart

js2flowchart - a visualization library to convert any JavaScript code into beautiful SVG flowchart. Learn other’s code. Design your code. Refactor code. Document code. Explain code.
MIT License
7.06k stars 477 forks source link

javascript to flowchart, misses return loop #47

Open TonTR opened 4 years ago

TonTR commented 4 years ago

Hi Bogdan. Apologies if the following is a waste of time, but I may have found an issue with your otherwise excellent code to convert javascript to a flow chart. First let me say I am not a programmer, more of a power user that is trying to build a google apps script for voluntary organisation. Everything worked fine except that the <<...if match == no....>> test at the bottom of the flowchart loops back into another iteration whether the answer is true or false and the diagram does not show this. (the code does loop when tested!) It may be this is what you intended and that your documentation says it somewhere else. If so, apologies again. Attached is the source. It did not affect the usefulness of this software, but I thought you might like to know (To all the expert programmers out there - I know my code is probably clumsy, but I am really finding may way around this at the moment!!!!)

add new user for github.txt