edemaine / cocreate

Cocreate Shared Whiteboard/Drawing
MIT License
209 stars 27 forks source link

Page rendering API #103

Open jkitchin opened 3 years ago

jkitchin commented 3 years ago

I think it could be nice if you could make a url to a page of a cocreate that returns an svg/png.

The application is for embedding an image of a page in something like a Jupyter notebook, or web page. I saw there is a button to download an svg, but I think getting it on demand for a single page might be better. That way, I could embed different pages of a cocreate at different places in a document that would automatically be up to date with the cocreate. An equally good alternative would be some kind of API that can retrieve an image for a page.

I will note that I have successfully embedded a cocreate in an IFrame inside a Google colab notebook, which I thought was pretty awesome! The appearance of this changes as you change pages though in the cocreate, which might be confusing.