因此,我一直在尝试找出同时使用这两个库的最佳方式,但我一直在苦苦挣扎。 我找到的最好的东西是这个CodePen (https://codepen.io/ezra_siton/pen/XNpJaX),但是它看起来非常复杂,而且我个人还没能让它在我自己的项目中工作。尤其是函数; var initPhotoSwipeFromDOM = function(gallerySelector) {
... omitted this because the function is huge. This is here because
SO doesn't allow codepen lin
我想把这些图片拖到舞台上。但是当我丢弃图像时,我收到了这个错误。Konva.js Konva error: Can not cache the node. Width or height of the node equals 0. Caching is skipped.我想到的过程是
将图像放置到舞台中,如果点击,用户可以调整大小、旋转、拖动。
要成功地调整图像大小,我应该做什么不同的事情?