| Summary: | [Canvas] Consider using SVG instead of HTML5 Canvas for rendering | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Tim Buschtoens <tbuschto> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | austin.riddle, tbuschto |
| Version: | 1.5 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Tim Buschtoens
On correction: clearRect is not a feature of GC, but of HTML-Canvas. Clipping is the feature that can't be supported in VML (or SVG). Or, to be more precise, it could very well be supported, but my understanding would be that all newly drawn content is only covering the old contant, meaning the number of shapes in DOM would steadily increase, which espicially in IE impacts the performance very, very badly. An alternative would be to allow/use several HTML-canvases/GCs per Canvas/Widget (which would not be SWT compatible, but probably a new RWT-only widget), so one can use different layers for different shapes. This would allow partial redrawing aswell. With the new protocol using HTML-Canvas syntax, this becomes increasingly unpractical. It also seems that multiple HTML-canvases would not be signigicantly more expensive that SVG-shapes, so using these for a "layers" feature would be a good option. |