Revised how flowchart svg is drawn