VivaGraphJS
VivaGraphJS copied to clipboard
Internet Explorer - Unspecified error in WebGL renderer
IE 11 raises an Unspecified Error when using the WebGL renderer.
The error occurs in updateBoundRect: https://github.com/anvaka/VivaGraphJS/blob/master/src/WebGL/webglInputEvents.js#L164
Reason seems that root.getBoundingClientRect() is called before the root (canvas) element is added to the container element.
Calling init before running the renderer serves as a workaround: var graphics = Viva.Graph.View.webglGraphics(); graphics.init(container);
The run() sequence might need to be corrected.