AnimaApp/sketch-web-viewer

Limited support for multiple pages documents

orarbel opened this issue · 3 comments

As per @ale:

Contains a preview image of the last page edited by the user. If the page's size is less than 2048x2048 it will be stored at full size, otherwise it'll be scaled to fit a 2048x2048 square.

Currently if there are more multiple pages in the document, the behaviour is undefined since the loop runs over all the pages in the zip and just takes the first one.

This can be solidified by verifying the selected page is the last one to be edited, in order to match the preview image.

Are you saying this is a permanent limitation due to how the Sketch 43 file format is implemented? Or is this something that might be fixed in a future release of sketch-web-viewer?

As you've said, this is a limitation due to how the Sketch 43 file format is implemented. Nothing we can do at the moment.

You need to parse the sketch 43 file's document and render it to html to support multiple page documents. you can check my recent project https://github.com/zjuasmn/sketch-react of rendering sketch 43 file into web.