bramp / js-sequence-diagrams

Draws simple SVG sequence diagrams from textual representation of the diagram
https://bramp.github.io/js-sequence-diagrams/
BSD 2-Clause "Simplified" License
7.81k stars 1.08k forks source link

asynchronous problems #171

Open icearith opened 7 years ago

icearith commented 7 years ago
     chart.drawSVG(div_tmp_id, {
        theme: theme
      })

      // copy chart to new div
      div_new.innerHTML = div_tmp.innerHTML

after drawSVG the container is still blank. after a while, the container is rendered. I cannot catch the rendered content in js. is there a easy way to solve this problem? @bramp