On Tue, Feb 21, 2012 at 9:55 AM, lkcl luke <[email protected]> wrote:
> 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. > > > It's already there, along with a LOT Of arguments as to whether it should be fixed - so far there is no plan to fix it. > > > 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? :) > My corner of the world seems so insignificant at times :) > > 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. > > Hm, so the override is in my app - simply to *prevent* my app from using SVGCanvas on browsers other than Firefox, because a lot of them still don't know how to spell SVG in a standard way. The SVGCanvas widget itself doesn't know or care about any of it...SOOoooo, should I cook up a new sample or perhaps tweak an existing Canvas sample? (Incidentially, this is different than the SVG kitchen sink thingy which uses an embedded SVG file)... thanks. > > l. >

