memononen / nanosvg

Simple stupid SVG parser
zlib License
1.68k stars 355 forks source link

Linking, scripting and animation #149

Open alisa-patotskaya opened 5 years ago

alisa-patotskaya commented 5 years ago

Hello, Are linking, scripting and animation properties supported in nanosvg? If not do you have any plan regarding supporting them? Thanks.

lieff commented 5 years ago

Not sure about linking and animation, but scripting definitely can't be implemented in such tiny project. But it's possible to make by combination with java-script implementations like v8 or smaller ones like https://github.com/jerryscript-project/jerryscript or https://github.com/cesanta/mjs For standard implementation there also things like document objects and DOM must be implemented which is already not really part of vector graphics format but part of the web browser. So, if you do not want take browser with it, probably it must be partial implementation or even completely different java-script API for internal use in other projects.

alisa-patotskaya commented 5 years ago

@lieff Thank you for your answer!