mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-13 16:33:28 -04:00
Add example to Segment#selected docs.
This commit is contained in:
parent
378d54b126
commit
801eb0f2a8
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue