Perhaps the first pass is getting the size of the diagram? In general this will be too slow since the render function is expensive for big diagrams. Maybe the size of the diagram can be set after the first render is complete, meaning the second render is not necessary.
Perhaps the first pass is getting the size of the diagram? In general this will be too slow since the render function is expensive for big diagrams. Maybe the size of the diagram can be set after the first render is complete, meaning the second render is not necessary.