Detect if Mouse is over an object inside canvas
raphamorim opened this issue · comments
Reference: http://jsfiddle.net/m1erickson/Cw4ZN/
origami('#canvas')
.rect(300,30,40,{
background: 'blue',
hover: function(item, canvas){
// item: current shape
// canvas: current origami context
item.background = 'red';
}
})
.draw();
Is this feature available somewhere that I can pull from?