问题
I have found several posts about new functions in HTML5 Canvas API, like Path primitives or Hit Regions. It seems that the current specification (4.8.11) has got these features: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#hit-regions
Althought the context.addHitRegion (context is canvas2d context) in my Chrome 23.0.1271.64 returns undefined (I cannot create Path primitives too).
Does somebody know when these features will be implemented (their annoucment is from march so it is 8 months old)?
Can I test them in some beta versions of some browsers (it would be best if it could be under linux)?
回答1:
Not for a while.
I asked both the Chrome team and the Firefox team about 1-2 months ago and neither of them had a concrete timeline. It doesn't yet seem to be a priority.
In an email correspondence of mine with FF people on October 28th they replied:
I assume you were referring to the Path / Pattern objects and related changes; there are—AFAIK—no immediate plans to implement them. Most of the work going into the 2D canvas implementation recently has been refactoring; in particular, we used to have two separate implementations, of which one has been removed a few weeks ago.
来源:https://stackoverflow.com/questions/13378885/new-html5-canvas-api-support