Paper.js with excanvas

こ雲淡風輕ζ 提交于 2019-12-10 09:23:17

问题


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?

Thank you.


回答1:


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



来源:https://stackoverflow.com/questions/10751677/paper-js-with-excanvas

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