diff --git a/src/core/PaperScope.js b/src/core/PaperScope.js index 17278285..c3798cf2 100644 --- a/src/core/PaperScope.js +++ b/src/core/PaperScope.js @@ -126,7 +126,8 @@ var PaperScope = this.PaperScope = Base.extend(/** @lends PaperScope# */{ * paper.install(window); */ install: function(scope) { - // Define project, view and tool as getters, so they are kept up to date + // Define project, view and tool as getters that redirect to these + // values on the PaperScope, so they are kept up to date var that = this; Base.each(['project', 'view', 'tool'], function(key) { Base.define(scope, key, { diff --git a/src/item/HitResult.js b/src/item/HitResult.js index cfa58b24..50c5240e 100644 --- a/src/item/HitResult.js +++ b/src/item/HitResult.js @@ -20,8 +20,6 @@ * @class A HitResult object contains information about the results of a hit * test. It is returned by {@link Item#hitTest(point)} and * {@link Project#hitTest(point)}. - * - * @extends CurveLocation */ HitResult = Base.extend(/** @lends HitResult# */{ initialize: function(type, item, values) { diff --git a/src/item/Item.js b/src/item/Item.js index d31c15fd..75b73eef 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -695,18 +695,19 @@ var Item = this.Item = Base.extend(/** @lends Item# */{ * options.type: Only hit test again a certain item * type: {@link PathItem}, {@link Raster}, {@link TextItem}, etc. * options.fill: {@code Boolean} - Hit test the fill of items. - * options.stroke: {@code Boolean} - Hit test the curves of path items, - * taking into account stroke width. - * options.segment: {@code Boolean} - Hit test for {@link Segment#point} of - * {@link Path} items. + * options.stroke: {@code Boolean} - Hit test the curves of path + * items, taking into account stroke width. + * options.segment: {@code Boolean} - Hit test for + * {@link Segment#point} of {@link Path} items. * options.handles: {@code Boolean} - Hit test for the handles * ({@link Segment#handleIn} / {@link Segment#handleOut}) of path segments. - * options.ends: {@code Boolean} - Only hit test for the first or last - * segment points of open path items. - * options.bounds: {@code Boolean} - Hit test the corners and side-centers - * of the bounding rectangle of items ({@link Item#bounds}). - * options.center: {@code Boolean} - Hit test the {@link Rectangle#center} - * of the bounding rectangle of items ({@link Item#bounds}). + * options.ends: {@code Boolean} - Only hit test for the first or + * last segment points of open path items. + * options.bounds: {@code Boolean} - Hit test the corners and + * side-centers of the bounding rectangle of items ({@link Item#bounds}). + * options.center: {@code Boolean} - Hit test the + * {@link Rectangle#center} of the bounding rectangle of items + * ({@link Item#bounds}). * options.guide: {@code Boolean} - Hit test items that have * {@link Item#guide} set to {@code true}. * options.selected: {@code Boolean} - Only hit selected items. diff --git a/src/project/Project.js b/src/project/Project.js index dc340494..ea141b06 100644 --- a/src/project/Project.js +++ b/src/project/Project.js @@ -187,26 +187,27 @@ var Project = this.Project = Base.extend(/** @lends Project# */{ * * The optional options object allows you to control the specifics of the * hit test and may contain a combination of the following values: - * tolerance: {@code Number} - The tolerance of the hit test in - * points. - * type: Only hit test again a certain item + * options.tolerance: {@code Number} - The tolerance of the hit test + * in points. + * options.type: Only hit test again a certain item * type: {@link PathItem}, {@link Raster}, {@link TextItem}, etc. - * fill: {@code Boolean} - Hit test the fill of items. - * stroke: {@code Boolean} - Hit test the curves of path items, - * taking into account stroke width. - * segment: {@code Boolean} - Hit test for {@link Segment#point} of - * {@link Path} items. - * handles: {@code Boolean} - Hit test for the handles + * options.fill: {@code Boolean} - Hit test the fill of items. + * options.stroke: {@code Boolean} - Hit test the curves of path + * items, taking into account stroke width. + * options.segment: {@code Boolean} - Hit test for + * {@link Segment#point} of {@link Path} items. + * options.handles: {@code Boolean} - Hit test for the handles * ({@link Segment#handleIn} / {@link Segment#handleOut}) of path segments. - * ends: {@code Boolean} - Only hit test for the first or last - * segment points of open path items. - * bounds: {@code Boolean} - Hit test the corners and side-centers - * of the bounding rectangle of items ({@link Item#bounds}). - * center: {@code Boolean} - Hit test the {@link Rectangle#center} - * of the bounding rectangle of items ({@link Item#bounds}). - * guide: {@code Boolean} - Hit test items that have + * options.ends: {@code Boolean} - Only hit test for the first or + * last segment points of open path items. + * options.bounds: {@code Boolean} - Hit test the corners and + * side-centers of the bounding rectangle of items ({@link Item#bounds}). + * options.center: {@code Boolean} - Hit test the + * {@link Rectangle#center} of the bounding rectangle of items + * ({@link Item#bounds}). + * options.guide: {@code Boolean} - Hit test items that have * {@link Item#guide} set to {@code true}. - * selected: {@code Boolean} - Only hit selected items. + * options.selected: {@code Boolean} - Only hit selected items. * * @param {Point} point The point where the hit test should be performed * @param {Object} [options={ fill: true, stroke: true, segments: true,