ngl icon indicating copy to clipboard operation
ngl copied to clipboard

Adjustments for canvas mock

Open Downchuck opened this issue 5 years ago • 1 comments

I've been trying to use https://github.com/Adamfsk/jest-webgl-canvas-mock to setup an automated test. I may have initialized ngl incorrectly as I am using code that targeted 0.10.

These two items were where I had to insert a return statement, as their objects were not set on this and so they resulted in an undefined error.

The LineSegments and AnimationControl objects will not set correctly so on load, there's an error in Stage.prototype.autoView as this.animationControls is not present, and Viewer.prototype.updateHelper does not have this.boundingBoxMesh.

Downchuck avatar Jul 18 '19 21:07 Downchuck

as their objects were not set on this and so they resulted in an undefined error.

can you please elaborate

arose avatar Jul 19 '19 15:07 arose