diff --git a/src/item/Item.js b/src/item/Item.js index 4d378bb8..95dfd543 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -1453,30 +1453,30 @@ var Item = Base.extend(Callback, /** @lends Item# */{ * Perform a hit test on the item (and its children, if it is a * {@link Group} or {@link Layer}) at the location of the specified point. * - * The optional options object allows you to control the specifics of the - * hit test and may contain a combination of the following values: - * options.tolerance: {@code Number} - The tolerance of the hit test in - * points, default: {@code 2}. Can also be controlled through + * The options object allows you to control the specifics of the hit test + * and may contain a combination of the following values: + * options.tolerance: {@code Number} – the tolerance of the hit test + * in points. Can also be controlled through * {@link Project#options}{@code .hitTolerance}. * 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 + * 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 + * options.segment: {@code Boolean} – hit test for * {@link Segment#point} of {@link Path} items. - * options.handles: {@code Boolean} - Hit test for the handles + * 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 + * 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 + * 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 + * options.center: {@code Boolean} – hit test the * {@link Rectangle#center} of the bounding rectangle of items * ({@link Item#bounds}). - * options.guides: {@code Boolean} - Hit test items that have + * options.guides: {@code Boolean} – hit test items that have * {@link Item#guide} set to {@code true}. - * options.selected: {@code Boolean} - Only hit selected items. + * options.selected: {@code Boolean} – only hit selected items.options.tolerance: {@code Number} - The tolerance of the hit test - * in points. + * The options object allows you to control the specifics of the hit test + * and may contain a combination of the following values: + * options.tolerance: {@code Number} – the tolerance of the hit test + * in points, can also be controlled through + * {@link Project#options}{@code .hitTolerance}. * 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 + * 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.segments: {@code Boolean} - Hit test for + * options.segments: {@code Boolean} – hit test for * {@link Segment#point} of {@link Path} items. - * options.handles: {@code Boolean} - Hit test for the handles + * 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 + * 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 + * 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 + * options.center: {@code Boolean} – hit test the * {@link Rectangle#center} of the bounding rectangle of items * ({@link Item#bounds}). - * options.guides: {@code Boolean} - Hit test items that have + * options.guides: {@code Boolean} – hit test items that have * {@link Item#guide} set to {@code true}. - * options.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,