dntzhang / cax

Canvas 渲染引擎,支持 SVG,兼容了小程序、小游戏和 Web

Home Page:https://dntzhang.github.io/cax

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

小程序几点建议

rookie0 opened this issue · comments

commented
  1. 增加云存储文件支持 cloud://

  2. 小程序 API 调用增加 fail 参数,打印错误方便调试

  3. 文档增加导出图片示例,或能否直接把 canvasId component 挂载到 stage 对象上

stage.ctx.draw(true, setTimeout(() => {
  wx.canvasToTempFilePath({
    canvasId: stage.ctx.canvasId,
    success: res => { },
    fail: err => console.log(err)
  }, stage._hitRender._component)
}, 100))
  1. 期待 2d 版本