Adjusting opacity at the layer level also sets the opacity at the object level.
layer.setOpacity(0.1);
"Mouse events associated with KineticJS objects under this overlay are not processed."
Hmm, mouse events bound to an object are handled, although the overlay (layer) has an opacity of 0. This seems to work fine, I don't know what you are in.
"How can I make this overlay (or any other object)" transparent "to mouse events?" For me, mouseover / mouseout works perfectly at the layer level to make it half transparent.
layer.on('mouseover', function() { this.setOpacity(0.5); this.draw(); }); layer.on('mouseout', function() { this.setOpacity(1); this.draw(); });
Are you missing layer.draw() ?
source share