viral-viewer-2 6.3.5 → 6.3.6
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
|
@@ -25272,7 +25272,8 @@ class w2 {
|
|
|
25272
25272
|
antialias: !0,
|
|
25273
25273
|
stencil: !1,
|
|
25274
25274
|
logarithmicDepthBuffer: !0,
|
|
25275
|
-
powerPreference: "high-performance"
|
|
25275
|
+
powerPreference: "high-performance",
|
|
25276
|
+
preserveDrawingBuffer: !0
|
|
25276
25277
|
}), this.renderer.setClearColor(16777215, 0), this.renderer.setSize(
|
|
25277
25278
|
this.viralViewerApi.targetElement.offsetWidth,
|
|
25278
25279
|
this.viralViewerApi.targetElement.offsetHeight
|
|
@@ -25289,7 +25290,9 @@ class w2 {
|
|
|
25289
25290
|
), this.renderer.autoClear = !0));
|
|
25290
25291
|
}
|
|
25291
25292
|
screenshot() {
|
|
25292
|
-
|
|
25293
|
+
let e = this.renderer.domElement.toDataURL("image/png");
|
|
25294
|
+
const t = document.createElement("a");
|
|
25295
|
+
t.href = e, t.download = "threejs_image.png", t.click();
|
|
25293
25296
|
}
|
|
25294
25297
|
}
|
|
25295
25298
|
class _2 {
|