Closed Trufinol closed 9 months ago
Hey :)
I'm trying to reproduce it, but it seems I miss something in the process. I tried to paste viewer.getSnapshot({ format: 'png' }) in a few different examples, but I can't see additional canvases created, and can't see your warning log. Also if creating snapshots would work that way, I believe all example files from "snapshots" folder would create a warning and append canvas, but they looks fine to me. Or am I missing something? :)
Describe the bug Whenever "viewer.getShapshot" is called - it creates a snapshot successfully but also adds a canvas element of that snapshot to the body. The method is also followed by the warning log in the browser's console:
#1 217ms Unable to clone WebGL context as it has preserveDrawingBuffer=false <canvas id="nav-cube-canvas" width="140" height="140" style="visibility: visible;">
The complete browser's warning log file is attached localhost-1708504159624.logTo Reproduce Steps to reproduce the behavior:
viewer.getSnapshot({ format: 'png' })
Expected behavior It should not append a canvas element to the body, or the canvas should be removed after the method is complete.
Screenshots
Desktop (please complete the following information):