On Tue, Feb 21, 2012 at 12:38 PM, Rich Newpol <[email protected]> wrote:
> In our pyjamas web app, we ran across a limitation of Firefox's Canvas > implementation on Windows. It seems in order take advantage of some Windows > graphics accelerator stuff they have limited the dimensions of a 2D Canvas. > If you go over, the drawing stops/hangs with an error. that's worthwhile reporting as a bug, on mozilla's bugzilla. > However, there is no such problem with SVG on Firefox. So we created an > SVGCanvas widget alternate to GWTCanvas. It is *nearly* identical in usage, > with the same API, etc., as our friendly GWTCanvas. The main problem is that > some browsers (notably IE) don't support SVG very well - so in out app we > have a tiny Firefox override to use SVGCanvas instead of GWTCanvas - three > lines of code in the override, nothing else had to change. > > Anyway, my question is whether SVGCanvas is a useful Pyjamas contribution. of course it bloody well is! ... like... you had to ask? :) > I > know there was some Raphael work done, and this is *not* that; it addresses > what is an admittedly tiny niche here...anyone else know/care about using > SVG just like GWTCanvas? yeah go for it - you won't be the only people in the world to require it. however please do make it so that it is something that has to be overridden *deliberately* - at the application level - and please create a separate example showing how that's done. thanks. l.

