W3C home > Mailing lists > Public > public-html@w3.org > July 2011

Re: hit testing and retained graphics

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 2 Jul 2011 06:45:53 +0000 (UTC)
To: Maciej Stachowiak <mjs@apple.com>
cc: public-html@w3.org
Message-ID: <Pine.LNX.4.64.1107020644170.20871@ps20323.dreamhostps.com>
On Fri, 1 Jul 2011, Maciej Stachowiak wrote:
>
> Interesting idea. Explicit Path objects would be a useful addition to 
> the canvas API beyond hit testing. For example, you could easily 
> construct a path and reuse for drawing multiple time. This would require 
> the ability to stroke or fill paths given a path object in addition to 
> the hit testing support.
> 
> Personally I think it was an oversight in the original canvas API that 
> it only has a current path and not path objects. Many other graphics 
> APIs (including CoreGraphics, the API that inspired canvas) have 
> explicit objects for paths.

Path primitives are on the list of features for the next major set of 
feature additions to the 2D Canvas API. Making scripted hit-testing easier 
is one of the reasons (so you can create a path, then hit test against it 
in various places around the canvas).

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Saturday, 2 July 2011 06:46:15 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:26 UTC