这里有谁知道如何在 SVG 上进行 kendodraggable 工作?
我已经尝试过了,但事情似乎并没有像我预期的那样工作。
$('#image').kendoDraggable({
hint: function (element) {
return element.clone();
},
dragstart: function (e) {
$(e.target.parentElement).append(e.target);
},
drag: function (e) {
e.target.setAttribute('x', newXPOS);
e.target.setAttribute('y', newYPOS);
},
dragend: function (e) {
},
dragcancel: function (e) {
}
});
谢谢。