sandeeproop / explorercanvas

Automatically exported from code.google.com/p/explorercanvas
Apache License 2.0
0 stars 0 forks source link

Clean up paths and transforms #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The way that we handle paths and transforms is a bit ugly at the moment. We do 
the transform 
when we add the points. A simpler solution is to just transform the path when a 
transform is done:

CanvasRendering2DContext.prototype.transform = function(m) {
  ...
  this.path_.transform(inverseTransform(m))
};

A lot of good stuff can be found at:

http://trac.webkit.org/browser/trunk/WebCore/html/CanvasRenderingContext2D.cpp

Original issue reported on code.google.com by erik.arv...@gmail.com on 27 Mar 2009 at 4:54

GoogleCodeExporter commented 9 years ago
We should also use the skew element for paths abd rotation css property for 
images.

Original comment by erik.arv...@gmail.com on 19 Apr 2009 at 7:26