var qcanvas = new Qcanvas({
id:'qcanvas',
width:300,
height:200
})
var text = qcanvas.text({
start:[100,100],
color:'blue',
fontSize:'20px',
text:'Qcanvas\nText',
lineHeight:'20px',
drag:'vertical',
degree:290,
// textAlign:'left',
textBaseline:'top',
mouseup:function(e,pos){
console.log(e)
console.log(pos);
// qcanvas.destroy();
},
mousedown:function(e,position){
console.log(e);
console.log(position)
},
})
document.getElementById('a').onclick = function(){
qcanvas.destroy();
}