anvaka / anvaka/VivaGraphJS

Internet Explorer - Unspecified error in WebGL renderer

Open
#183 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.9k
Forks
418
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in src/WebGL/webglInputEvents.js at updateBoundRect and trace the renderer run sequence that invokes it. Reproduce the issue in Internet Explorer 11 with the WebGL renderer, comparing the failing sequence with the documented graphics.init(container) workaround. Done means the renderer no longer raises the unspecified error when run normally.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.