(I started this as a posted comment, then realized that this is the real answer.)
Unfortunately, in javascript on it is your own, you cannot. There are no objects on the canvas, just the canvas as a whole and everything that you used in its context. Plugins, such as kinetic ones, can create objects for you, but the whole point of the canvas is that the browser can view it as one static image.
If you want, you can attach mousemove events to the canvas, track its position and the position in which you painted the material, and imply that it is above βthis objectβ (what plugins do effectively), but itβs all mousemove events on one canvas, not mouseover events on its components. (You can even associate your event with a simulation of the mouseover event for "objects", but underneath it is still based on checking for movement and checking your own settings for the object.)
Scott Mermelstein
source share