Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Detect if Mouse is over an object inside canvas #4

Closed
raphamorim opened this issue Jan 9, 2016 · 2 comments
Closed

Detect if Mouse is over an object inside canvas #4

raphamorim opened this issue Jan 9, 2016 · 2 comments
Milestone

Comments

@raphamorim
Copy link
Owner

Reference: http://jsfiddle.net/m1erickson/Cw4ZN/

@raphamorim raphamorim changed the title hover canvas_object event (Detect if Mouse is over an object inside canvas) Detect if Mouse is over an object inside canvas Jan 9, 2016
@raphamorim raphamorim added this to the v0.5.0 milestone Feb 10, 2016
@raphamorim
Copy link
Owner Author

raphamorim commented Apr 27, 2016

origami('#canvas')
.rect(300,30,40,{
   background: 'blue',
   hover: function(item, canvas){
         // item: current shape
         // canvas: current origami context
         item.background = 'red';
    }
})
.draw();

@raphamorim raphamorim modified the milestones: 0.6, v0.5.0, 0.6.0 Sep 14, 2016
@raphamorim raphamorim mentioned this issue Sep 18, 2016
@AimForNaN
Copy link

Is this feature available somewhere that I can pull from?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants