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.

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.
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?

Rich

Reply via email to