W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2013

Re: [whatwg] CanvasRenderingContext2D with addPath, currentPath

From: Jürg Lehni <lists@scratchdisk.com>
Date: Mon, 4 Nov 2013 10:49:17 +0100
Message-Id: <D5A19FD1-1821-464E-BF67-3E843B4AC91E@scratchdisk.com>
To: Ian Hickson <ian@hixie.ch>
Cc: "whatwg@whatwg.org" <whatwg@whatwg.org>, Rik Cabanier <cabanier@gmail.com>
> What's the use case?
> 
> I intentionally didn't add this to the spec when I was adding the last set 
> of path-related features, because it seems entirely redundant with Path 
> objects. I thought we'd want people to move away from using the implicit 
> path, rather than making it more powerful.

I like this feature a lot. One advantage to not underestimate is the amount of effort it takes to change existing code to make use off the new Path feature, while staying backward compatible with older browsers that don't implement this spec. For example, in Paper.js it took only three added lines of code to use cached paths if they exist rather than redrawing them each time.

Jürg
Received on Monday, 4 November 2013 09:49:46 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:13 UTC