Paper.js与excanvas [英] Paper.js with excanvas

查看:231
本文介绍了Paper.js与excanvas的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经成长为喜欢paper.js但是在意识到它不支持IE8后,我想知道是否有可能让paper.js与excanvas一起工作?有没有人测试过这个并且有可用的例子吗?

I've grown to like paper.js a lot but after realizing that it does not support IE8, I was wondering if it was possible to have paper.js working together with excanvas? Has anyone tested this and are there examples available?

谢谢。

推荐答案

Paper.js代码显式使用HTMLCanvasElement(截至2012年11月11日的dist,IE8上不存在,因此开箱即用的代码失败。

The Paper.js code explicitly uses HTMLCanvasElement (line 7137 in dist as of 8/11/12), which does not exist on IE8, so out of the box the code fails.

paperjs < a href =http://paperjs.org/about/ =noreferrer>关于页面说:

The paperjs About page says:


Paper.js针对现代浏览器,支持Canvas
对象和EcmaScript 5.尽管理论上可以编写在旧版浏览器中运行的
代码(是资源管理器8及以下版本,我们是
看着你!),我们目前不支持开箱即用。
让我们继续吧!

Paper.js is aimed at modern browsers with support for the Canvas object and EcmaScript 5. Even though in theory it is possible to write code that works in older browsers (Yes Explorer 8 and below, we are looking at you!), we currently do not support them out of the box. Let’s go forward!

有可能修改paperjs代码以使其正常工作,但我没有做到所以(在IETester中进行测试...虽然excanvas应该提供了一个但是画布没有getContext属性的错误。)

It may be possible to modify the paperjs code to get it working, but I failed to do so (testing in IETester...with the error that the canvas did not have a getContext property even though excanvas should have provided one).

这篇关于Paper.js与excanvas的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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