[whatwg] drawing API

Ian Hickson ian at hixie.ch
Tue May 16 04:13:36 PDT 2006


On Fri, 4 Feb 2005, Oliver Steele wrote:
> 
> How about using a single variadic curveTo() method?:
>   void curveTo(in float cpx, in float cpy, in float x, in float y); //
> quadratic bezier
>   void curveTo(in float cp1x, in float cp1y, in float cp2x, in float cp2y, in
> float x, in float y); // cubic bezier
> A JavaScript implementation of curveTo could distinguish these based on the
> value of arguments.length.

I agree that that would have probably have been a better design, 
especially in light of the other overloaded methods on this interface. 
However, the Canvas API in the WHATWG spec was originally a specification 
of the Canvas API implemented in Safari, which has since shipped, and as 
such I'm afraid we can't change the method names.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list