Add mouse hovering to StrokeBounds example.

This commit is contained in:
Jürg Lehni 2013-08-16 16:40:26 -07:00
parent 40f2547e5f
commit 6d751fc466

View file

@ -83,6 +83,13 @@
rect.strokeWidth = 0.25;
rect.strokeColor = 'green';
rect.fillColor = null;
path.onMouseEnter = function() {
this.strokeColor = 'red';
}
path.onMouseLeave = function() {
this.strokeColor = 'black';
}
}
project.activeLayer.position = view.center;