I've also fixed a couple of more SVG bugs that I detected while working on this.
On Nov 3, 2013, at 12:29 , Daniel O. <
dfx...@gmail.com> wrote:
> Thank you very much! Async loading will be really helpful and support for FileReader would be a good addition too.
>
> Best,
> Daniel
>
> On Sunday, 3 November 2013 11:25:51 UTC+1, Jürg Lehni wrote:
> You're running an old version of paper.js. This bug has already been fixed in the meantime, just download a new version and you should be good to go.
>
> BTW, I've just added support for async loading from urls:
>
> project.importSVG('/path/to/file.svg', function(item) {
> alert(item);
> });
>
> Or, if you need it with other options, then:
>
> project.importSVG('/path/to/file.svg', {
> expandShapes: true,
> onLoad: function(item) {
> alert(item);
> }
> );
>
> And I'm now thinking that it would be great to also support a FileReader argument there, making your code simpler.
>
> J
>
> On Nov 3, 2013, at 10:44 , Daniel O. <
dfx...@gmail.com> wrote:
>
> > Forgot to tell you how to get there. JS code is in st.js, loading SVG directly from HTML happens in Menu > Load, loading SVG from external file happens in Menu > New > From SVG file (width and height are not optional at the moment). Ghostscript tiger loaded just fine when embedded but doesn't when loaded from file:
http://upload.wikimedia.org/wikipedia/commons/f/fd/Ghostscript_Tiger.svg
> >
> > On Sunday, 3 November 2013 10:38:23 UTC+1, Daniel O. wrote: