新的HTML5 Canvas API支持 [英] New HTML5 Canvas API support

查看:182
本文介绍了新的HTML5 Canvas API支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现了几个关于HTML5 Canvas API中新功能的帖子,例如Path primitives或Hit Regions。
看来当前的规范(4.8.11)有这些特性:
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#hit-regions

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

虽然context.addHitRegion(上下文是canvas2d上下文)在我的Chrome 23.0.1271.64返回undefined(我也不能创建路径基元)。

Althought the context.addHitRegion (context is canvas2d context) in my Chrome 23.0.1271.64 returns undefined (I cannot create Path primitives too).

有人知道什么时候这些功能将被实现(他们的报价是从3月,因此它是8个月大)?

Does somebody know when these features will be implemented (their annoucment is from march so it is 8 months old)?

推荐答案

不是一会儿。

我在1-2个月前问过Chrome团队和Firefox团队,他们都没有具体的时间表。

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.

在10月28日与FF人的电子邮件通信中,他们回答说:

In an email correspondence of mine with FF people on October 28th they replied:


我假设你是指Path / Pattern对象和相关的更改;有AFAIK - 没有立即计划实施它们。最近进入2D画布实现的大部分工作已经重构;特别是,我们以前有两个单独的实现,其中一个已在几个星期前删除。

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.

这篇关于新的HTML5 Canvas API支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆