Paper.js with excanvas

限于喜欢 提交于 2019-12-05 17:30:06

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.

The paperjs About page says:

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!

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).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!