[whatwg] Canvas arcTo method

2012-08-19 Thread Michael Day

Hi,

The camvas arcTo method generates an arc that touches two tangent lines. 
The first tangent line is from the last point in the previous subpath to 
the first point passed to the arcTo method.


What happens in this situation:

ctx.lineTo(100, 100);
ctx.scale(2, 1);
ctx.arcTo(100, 100, 100, 200, 100);

The current transformation matrix should be used to transform the 
generated arc, not to transform its control points.


However, in this case the first untransformed control point is equal to 
the last point in the previous subpath, which means it must generate a 
straight line and not an arc.


Firefox and Chrome do not do this, as can be seen by viewing the 
attached HTML file.


What is the correct behaviour in this case?

Best regards,

Michael


Re: [whatwg] Canvas arcTo method

2012-08-19 Thread Michael Day

Firefox and Chrome do not do this, as can be seen by viewing the
attached HTML file.


Or since attachments are stripped, here is the file:

http://www.princexml.com/arcto.html

Cheers,

Michael