leaferjs / leafer-ui

一款好用的 Canvas 渲染引擎,革新的体验。高效绘图 、UI 交互(小游戏、互动应用、组态)、图形编辑,前端开发必备~
https://www.leaferjs.com
MIT License
2.38k stars 82 forks source link

IOS微信小程序 Image 在canvas中不显示,开发工具正常 #120

Closed forzgc closed 6 months ago

forzgc commented 6 months ago
<canvas type="2d" id="canvas" style="width: 200px;height: 200px"></canvas>
wx.createSelectorQuery().select('#canvas').fields({ node: true }, (res) => {
  const canvas = res.node
  const leafer = new Leafer({
    view: canvas,
    width: 200,
    height: 200,
  })
  const image = new Image({
    url: 'xxx',
    width: 100,
    height: 100,
  })
  leafer.add(image)
 }).exec()
leaferjs commented 6 months ago

image

forzgc commented 6 months ago

sorry,没仔细看,以为文档说的是离屏画布不能drawImage😂。issues我关闭了