Closed forzgc closed 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()
sorry,没仔细看,以为文档说的是离屏画布不能drawImage😂。issues我关闭了