viral-viewer-2 6.3.6 → 6.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs
CHANGED
|
@@ -25290,9 +25290,7 @@ class w2 {
|
|
|
25290
25290
|
), this.renderer.autoClear = !0));
|
|
25291
25291
|
}
|
|
25292
25292
|
screenshot() {
|
|
25293
|
-
|
|
25294
|
-
const t = document.createElement("a");
|
|
25295
|
-
t.href = e, t.download = "threejs_image.png", t.click();
|
|
25293
|
+
return this.renderer.domElement.toDataURL("image/png");
|
|
25296
25294
|
}
|
|
25297
25295
|
}
|
|
25298
25296
|
class _2 {
|