mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Fix documentation of bean properties that are not read-only.
@bean can only be used when the property is read-only or both getters and setters are present in the scope.
This commit is contained in:
parent
213a13884b
commit
7d69ef1864
3 changed files with 11 additions and 22 deletions
|
@ -1032,34 +1032,30 @@ var Item = Base.extend(Callback, /** @lends Item# */{
|
|||
/**
|
||||
* The bounding rectangle of the item excluding stroke width.
|
||||
*
|
||||
* @name Item#getBounds
|
||||
* @name Item#bounds
|
||||
* @type Rectangle
|
||||
* @bean
|
||||
*/
|
||||
|
||||
/**
|
||||
* The bounding rectangle of the item including stroke width.
|
||||
*
|
||||
* @name Item#getStrokeBounds
|
||||
* @name Item#strokeBounds
|
||||
* @type Rectangle
|
||||
* @bean
|
||||
*/
|
||||
|
||||
/**
|
||||
* The bounding rectangle of the item including handles.
|
||||
*
|
||||
* @name Item#getHandleBounds
|
||||
* @name Item#handleBounds
|
||||
* @type Rectangle
|
||||
* @bean
|
||||
*/
|
||||
|
||||
/**
|
||||
* The rough bounding rectangle of the item that is sure to include all of
|
||||
* the drawing, including stroke width.
|
||||
*
|
||||
* @name Item#getRoughBounds
|
||||
* @name Item#roughBounds
|
||||
* @type Rectangle
|
||||
* @bean
|
||||
* @ignore
|
||||
*/
|
||||
}), /** @lends Item# */{
|
||||
|
|
|
@ -749,34 +749,30 @@ statics: {
|
|||
/**
|
||||
* The bounding rectangle of the curve excluding stroke width.
|
||||
*
|
||||
* @name Curve#getBounds
|
||||
* @name Curve#bounds
|
||||
* @type Rectangle
|
||||
* @bean
|
||||
*/
|
||||
|
||||
/**
|
||||
* The bounding rectangle of the curve including stroke width.
|
||||
*
|
||||
* @name Curve#getStrokeBounds
|
||||
* @name Curve#strokeBounds
|
||||
* @type Rectangle
|
||||
* @bean
|
||||
*/
|
||||
|
||||
/**
|
||||
* The bounding rectangle of the curve including handles.
|
||||
*
|
||||
* @name Curve#getHandleBounds
|
||||
* @name Curve#handleBounds
|
||||
* @type Rectangle
|
||||
* @bean
|
||||
*/
|
||||
|
||||
/**
|
||||
* The rough bounding rectangle of the curve that is shure to include all of
|
||||
* the drawing, including stroke width.
|
||||
*
|
||||
* @name Curve#getRoughBounds
|
||||
* @name Curve#roughBounds
|
||||
* @type Rectangle
|
||||
* @bean
|
||||
* @ignore
|
||||
*/
|
||||
}), Base.each(['getPoint', 'getTangent', 'getNormal', 'getCurvature'],
|
||||
|
|
|
@ -210,25 +210,22 @@ var CurveLocation = Base.extend(/** @lends CurveLocation# */{
|
|||
/**
|
||||
* The tangential vector to the {@link #curve} at the given location.
|
||||
*
|
||||
* @name Item#getTangent
|
||||
* @name Item#tangent
|
||||
* @type Point
|
||||
* @bean
|
||||
*/
|
||||
|
||||
/**
|
||||
* The normal vector to the {@link #curve} at the given location.
|
||||
*
|
||||
* @name Item#getNormal
|
||||
* @name Item#normal
|
||||
* @type Point
|
||||
* @bean
|
||||
*/
|
||||
|
||||
/**
|
||||
* The curvature of the {@link #curve} at the given location.
|
||||
*
|
||||
* @name Item#getCurvature
|
||||
* @name Item#curvature
|
||||
* @type Number
|
||||
* @bean
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue