简体   繁体   English

Paper.js与excanvas

[英]Paper.js with 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? 我已经逐渐喜欢paper.js,但在意识到它不支持IE8后,我想知道是否有可能让paper.js与excanvas一起工作? Has anyone tested this and are there examples available? 有人测试过这个并且有可用的例子吗?

Thank you. 谢谢。

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. Paper.js代码显式使用HTMLCanvasElement( 截至8/11/12的dist中的第7137行),这在IE8上不存在,所以开箱即用代码失败。

The paperjs About page says: paperjs 关于页面说:

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. Paper.js针对现代浏览器,支持Canvas对象和EcmaScript 5.尽管理论上可以编写适用于旧版浏览器的代码(Yes Explorer 8及以下版本,我们正在关注您!),我们目前不要开箱即用。 Let's go forward! 我们继续吧!

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). 有可能修改paperjs代码以使其正常工作,但我没有这样做(在IETester中测试...但是错误是画布没有getContext属性,即使excanvas应该提供了一个)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM