W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2006

[whatwg] drawing API

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 16 May 2006 11:13:36 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0605161112120.21459@dhalsim.dreamhost.com>
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.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 16 May 2006 04:13:36 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:27 UTC