Add example to Segment#selected docs.

This commit is contained in:
Jonathan Puckey 2013-03-03 20:09:41 +01:00
parent 378d54b126
commit 801eb0f2a8

View file

@ -247,6 +247,14 @@ var Segment = this.Segment = Base.extend(/** @lends Segment# */{
* Specifies whether the {@link #point} of the segment is selected.
* @type Boolean
* @bean
* @example {@paperscript}
* var path = new Path.Circle({
* center: [80, 50],
* radius: 40
* });
*
* // Select the third segment point:
* path.segments[2].selected = true;
*/
isSelected: function() {
return this._isSelected(this._point);