Skip to content

Commit 31b7ae6

Browse files
XEOK-258 Remove plugins capture from Viewer::getSnapshot (related to #1756)
1 parent eb7b662 commit 31b7ae6

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/viewer/Viewer.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -363,22 +363,6 @@ class Viewer {
363363
this.sendToPlugins("snapshotStarting"); // Tells plugins to hide things that shouldn't be in snapshot
364364
}
365365

366-
const captured = {};
367-
for (let i = 0, len = this._plugins.length; i < len; i++) {
368-
const plugin = this._plugins[i];
369-
if (plugin.getContainerElement) {
370-
const container = plugin.getContainerElement();
371-
if (container !== document.body) {
372-
if (!captured[container.id]) {
373-
captured[container.id] = true;
374-
html2canvas(container).then(function (canvas) {
375-
document.body.appendChild(canvas);
376-
});
377-
}
378-
}
379-
}
380-
}
381-
382366
// firing "rendering" is necessary to trigger DTX{Lines,Triangles}Layer::_uploadDeferredFlags
383367
this.scene.fire("rendering", { }, true);
384368

0 commit comments

Comments
 (0)