@eturnity/eturnity_3d 8.4.1 → 8.4.2
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/package.json
CHANGED
|
@@ -30,10 +30,12 @@
|
|
|
30
30
|
areUserDeactivatedPanelsVisible: false,
|
|
31
31
|
animationFrameId: null,
|
|
32
32
|
intervalId: null,
|
|
33
|
+
intervalEventId: null,
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
beforeUnmount() {
|
|
36
37
|
clearInterval(this.intervalId)
|
|
38
|
+
clearInterval(this.intervalEventId)
|
|
37
39
|
cancelAnimationFrame(this.animationFrameId)
|
|
38
40
|
OverlayLayer.removeEventListener(
|
|
39
41
|
'overlay-is-ready',
|
|
@@ -311,6 +313,9 @@
|
|
|
311
313
|
watch: {
|
|
312
314
|
isReady: {
|
|
313
315
|
handler() {
|
|
316
|
+
if (this.screenshotable) {
|
|
317
|
+
return
|
|
318
|
+
}
|
|
314
319
|
const overlayReady =
|
|
315
320
|
OverlayLayer.getItems().length == 0 || this.isReady.overlay
|
|
316
321
|
if (
|
|
@@ -319,8 +324,11 @@
|
|
|
319
324
|
overlayReady
|
|
320
325
|
) {
|
|
321
326
|
var event = new CustomEvent('screenshotable')
|
|
322
|
-
// dispatch the custom event
|
|
323
327
|
document.dispatchEvent(event)
|
|
328
|
+
this.intervalEventId = setInterval(() => {
|
|
329
|
+
document.dispatchEvent(event)
|
|
330
|
+
}, 500)
|
|
331
|
+
// dispatch the custom event
|
|
324
332
|
this.screenshotable = true
|
|
325
333
|
}
|
|
326
334
|
},
|