gpt4 book ai didi

javascript - Paper.js 与 excanvas

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:37:22 25 4
gpt4 key购买 nike

我越来越喜欢 paper.js,但在意识到它不支持 IE8 后,我想知道是否可以让 paper.js 与 excanvas 一起工作?有没有人对此进行过测试,是否有可用的示例?

谢谢。

最佳答案

Paper.js 代码明确使用了 HTMLCanvasElement(dist as of 8/11/12 中的第 7137 行),它在 IE8 上不存在,因此开箱即用的代码失败。

论文 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 中测试...错误是 Canvas 没有 getContext 属性,即使 excanvas 应该提供一个) .

关于javascript - Paper.js 与 excanvas,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10751677/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com