Implement option.type filtering in #hitTest() functions.

This commit is contained in:
Jürg Lehni 2013-12-08 16:32:42 +01:00
parent 2896f14e43
commit afe00add32
5 changed files with 44 additions and 50 deletions
src/project

View file

@ -263,7 +263,8 @@ var Project = PaperScopeItem.extend(/** @lends Project# */{
* in points, can also be controlled through
* {@link Project#options}{@code .hitTolerance}.
* <b>options.type:</b> Only hit test again a certain item
* type: {@link PathItem}, {@link Raster}, {@link TextItem}, etc.
* type: {String('group', 'layer', 'path', 'compound-path', 'shape',
* 'raster', 'placed-symbol', 'point-text')}, etc.
* <b>options.fill:</b> {@code Boolean} hit test the fill of items.
* <b>options.stroke:</b> {@code Boolean} hit test the curves of path
* items, taking into account stroke width.