From 7d69ef1864311653ab0e414aacdcdc828dd9c906 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 26 Aug 2014 10:01:30 +0200 Subject: [PATCH] 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. --- src/item/Item.js | 12 ++++-------- src/path/Curve.js | 12 ++++-------- src/path/CurveLocation.js | 9 +++------ 3 files changed, 11 insertions(+), 22 deletions(-) diff --git a/src/item/Item.js b/src/item/Item.js index 57272555..8842d39f 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -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# */{ diff --git a/src/path/Curve.js b/src/path/Curve.js index b23ae438..d84f645f 100644 --- a/src/path/Curve.js +++ b/src/path/Curve.js @@ -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'], diff --git a/src/path/CurveLocation.js b/src/path/CurveLocation.js index a509b450..22142903 100644 --- a/src/path/CurveLocation.js +++ b/src/path/CurveLocation.js @@ -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 */ /**