Conversation
|
Hi, thanks for bootstrapping this. I think the best solution is to send the pdf (it is faster to generate and lighter) (I just experimented with that and it should take less than 300ms to be generated and received on the client. Then I think we should use something like pdf.js to show it in the preview panel. on my branch, the command is "showPreview" and then when the document is edited it takes one second to preview |
|
I pushed a new version on my branch where the server sends the pdf in base64 and the client draws it in a canvas in the webpanel using pdf.js |
|
@Bramas thank you for your feedback and your implementation!! :^) |
|
I just pushed a new version to my branch, where only the pages that have been modified are updated in the canvas. Now I think it's working pretty well! It will be hard to be faster. I think the only way we can be faster is to just incorporate the typst compiler in wasm in the webcomponent itself |
implements a live preview pane for the vscode extension.
Tasks:
You can help out by submitting a PR against the live-preview branch of my fork :)