context.filter not working on safari(context.filter 在 Safari 上不起作用)
问题描述
我正在使用 react 和 safari 构建绘图应用程序,context.filter 无法正常工作.在下面找到 chrome 和 firefox 上的渲染以及 safari 上的渲染.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/这样的画布库/a>, 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 上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:context.filter 在 Safari 上不起作用
基础教程推荐
- 每次设置弹出窗口的焦点 2022-01-01
- Node.js 有没有好的索引/搜索引擎? 2022-01-01
- 如何使用 CSS 显示和隐藏 div? 2022-01-01
- 为什么我在 Vue.js 中得到 ERR_CONNECTION_TIMED_OUT? 2022-01-01
- 如何在特定日期之前获取消息? 2022-01-01
- jQuery File Upload - 如何识别所有文件何时上传 2022-01-01
- 如何使用sencha Touch2在单页中显示列表和其他标签 2022-01-01
- WatchKit 支持 html 吗?有没有像 UIWebview 这样的控制器? 2022-01-01
- 什么是不使用 jQuery 的经验技术原因? 2022-01-01
- Javascript 在多个元素上单击事件侦听器并获取目标 2022-01-01
