【发布时间】:2016-01-15 09:22:35
【问题描述】:
如何使用 node.setZIndex(2);或 node.moveToTop(); node.moveToBottom();用于在底部修复任何图像和文本的背景层?
如果点击了背景 -> 图片 -> 背景,图片将移至底部
https://jsfiddle.net/hk7xe0we/12/
$('.back').click(function(){
imgback = $(this).find('img').attr('src');
var imageObj = new Image();
imageObj.onload = function() {
var background = new Konva.Image({
image: imageObj,
});
// add the shape to the layer
layer.add(background);
layer.draw();
};
imageObj.src = imgback ;
});
https://github.com/EditorsJS/editorimagekonvajs
感谢您的帮助
【问题讨论】:
标签: javascript jquery konvajs