我在这里有一个js小提琴- -与我制作的contentEditable的DIV,其中包含一个图像。
<div id='box' contentEditable="TRUE">
<img src="http://s20.postimg.org/fpitivjl9/Pelican.jpg" width=150px; />
Here's some text for the box so we can see how text interacts with the image.
</div>
我想把这些图片拖到舞台上。但是当我丢弃图像时,我收到了这个错误。Konva.js Konva error: Can not cache the node. Width or height of the node equals 0. Caching is skipped.我想到的过程是
将图像放置到舞台中,如果点击,用户可以调整大小、旋转、拖动。
要成功地调整图像大小,我应该做什么不同的事情?