javascript – 与excanvas的Paper.js
作者:互联网
我已经逐渐喜欢paper.js,但在意识到它不支持IE8后,我想知道是否有可能让paper.js与excanvas一起工作?有人测试过这个并且有可用的例子吗?
谢谢.
解决方法:
Paper.js代码显式使用HTMLCanvasElement(dist as of 8/11/12中的第7137行),这在IE8上不存在,因此开箱即用的代码失败.
paperjs About page说:
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中测试…但是错误是画布没有getContext属性,即使excanvas应该提供了一个).
标签:javascript,internet-explorer-8,excanvas,paperjs 来源: https://codeday.me/bug/20190620/1249606.html