@lvce-editor/renderer-process 30.69.0 → 30.69.1
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.
|
@@ -10881,10 +10881,12 @@ const createForPreview = async (canvasId, objectId, portId, width, height) => {
|
|
|
10881
10881
|
canvas.dataset.id = String(canvasId);
|
|
10882
10882
|
const offscreen = new OffscreenCanvas(width, height);
|
|
10883
10883
|
const presentation = createCanvasPresentation(canvas, () => set$c(canvasId, undefined));
|
|
10884
|
+
// Keep the receiving port reachable until the sandbox disposes this canvas.
|
|
10884
10885
|
set$c(canvasId, {
|
|
10885
10886
|
factory: {},
|
|
10886
10887
|
state: {
|
|
10887
|
-
$Viewlet: canvas
|
|
10888
|
+
$Viewlet: canvas,
|
|
10889
|
+
canvasPresentation: presentation
|
|
10888
10890
|
}
|
|
10889
10891
|
});
|
|
10890
10892
|
try {
|