dntzhang / cax

Canvas 渲染引擎,支持 SVG,兼容了小程序、小游戏和 Web
2.07k stars 322 forks source link

wx.createcanvas 推断小程序环境 #83

Closed buhe closed 4 years ago

buhe commented 4 years ago

昨天开始,部分 iOS 机型的小程序也会有 wx.createcanvas 方法,模拟器没有。导致 cax 推断为小游戏环境。

buhe commented 4 years ago

27a38eb7-9baa-408e-917a-6d7575bde0c3

christal1994 commented 4 years ago

哈哈哈,我刚要说这个问题,微信的锅咯,暂时引用wx.createCanvasContext判断咯,但是日后也是坑!!!

dntzhang commented 4 years ago

使用 cax 1.3.2 , 已经修复了

buhe commented 4 years ago

肝王赞~ 随便扯两句,我们最近把 cax 的 svg 移植到了 kbone 上面去了。这样可以在 react 里面直接写动态 svg 了,还 polyfill 了一些 bom ,回头整理好了提 pr 给 kbone

dntzhang commented 4 years ago

期待!

dntzhang commented 4 years ago

肝王赞~ 随便扯两句,我们最近把 cax 的 svg 移植到了 kbone 上面去了。这样可以在 react 里面直接写动态 svg 了,还 polyfill 了一些 bom ,回头整理好了提 pr 给 kbone

别忘了 pr @buhe