Re: [whatwg] Canvas 2d methods

2006-07-03 Thread Ric Hardacre
Ian Hickson wrote: On Mon, 3 Jul 2006, Håkon Wium Lie wrote: Anyway, this is all a straw man -- this isn't the reason that the spec doesn't allow this. It doesn't allow this because Safari didn't do it this way in the first place, and changing it would likely introduce bugs (while still

Re: [whatwg] Canvas 2d methods

2006-07-03 Thread David Hyatt
I don't think it's intuitive to support chaining only on those methods that happen to return null right now. dave ([EMAIL PROTECTED]) On Jul 2, 2006, at 4:01 PM, Ian Hickson wrote: On Mon, 3 Jul 2006, Håkon Wium Lie wrote: Anyway, this is all a straw man -- this isn't the reason that the

Re: [whatwg] Canvas 2d methods

2006-07-03 Thread L. David Baron
On Sunday 2006-07-02 22:47 +0200, Stefan Gössner wrote: hmm ... ctx.scale(2,1) .rotate(Math.PI/4) .translate(4,-6); illustrates a sequence of manipulations semantically very well, doesn't it? In my opinion, this pattern generally makes sense semantically when used on immutable

Re: [whatwg] Canvas 2d methods

2006-07-03 Thread Andrew Fedoniouk
- Original Message - From: David Hyatt [EMAIL PROTECTED] To: WHAT Working Group Mailing List [EMAIL PROTECTED] Cc: Ian Hickson [EMAIL PROTECTED]; Håkon Wium Lie [EMAIL PROTECTED]; Vladimir Vukicevic [EMAIL PROTECTED]; Andrew Fedoniouk [EMAIL PROTECTED]; Benjamin Joffe [EMAIL

Re: [whatwg] Canvas 2d methods

2006-07-03 Thread Vladimir Vukicevic
Even without using |with|, why not just create a simple JS wrapper for the context object that can have return-this or any other desired semantics? This would avoid a change that would have some apps require canvas 2D 2.0 or some such, and require authors to do version checks to see which