   document.body.replaceChildren(canvas);

        new ResizeObserver(() => {
            canvas.style.minWidth = "100%";
            canvas.style.width = "100%";
            canvas.style.maxWidth = "100%";
            canvas.style.minHeight = "100%";
            canvas.style.height = "100%";
            canvas.style.maxHeight = "100%";
        }).observe(document.body);

        let preview_connector = await slint_preview.PreviewConnector.create(
            (data) => {},
            (url) => {
           