context.filter在safari上不起作用 [英] context.filter not working on safari

查看:81
本文介绍了context.filter在safari上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用react构建一个绘图应用,并且在Safari中,context.filter无法正常工作.在chrome和firefox上的渲染以及safari上的渲染下方找到.野生动物园还有其他替代方法吗?

I'm building a drawing app with react and on safari, context.filter is not working properly. Find below the rendered on chrome and firefox and the rendered on safari. Is there an alternative to this for safari?

推荐答案

Safari浏览器不支持Context.filter

Context.filter does not support in safari

https://developer.mozilla.org/en -US/docs/Web/API/CanvasRenderingContext2D/filter

我对您的项目不了解,但是您可以使用 http://ocanvas.org/ http://paperjs.org/ 或使用 rapheal

I don't have an idea about your project but you can use canvas library like http://ocanvas.org/, http://paperjs.org/ or make your idea with the SVG library like rapheal

这篇关于context.filter在safari上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆