reymond-group/smilesDrawer

One key issue...serverside rendering.

Opened this issue · 0 comments

I'd like to move over to this project, but there are a some key issues I'd like to see resolved: Compatibility with serverside rendering.

Right now, the SVG code is interleaved with browserside APIs and UI specific logic. Even using the code on the browser is difficult, because its entangled with browserside logic. If the render logic requires the browser, perhaps that could be mocked with linkedom or other severside rendering package?

That being said, it might be possible for us to build a wrapper around smilesDrawer that mocks the browser/UI enough to extract an SVG. That's not an ideal solution, for several reasons, but it might work as a starting point.

Do you have interest in fixing this issue?