mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-12 22:18:54 -04:00
Implement option.type filtering in #hitTest() functions.
This commit is contained in:
parent
2896f14e43
commit
afe00add32
5 changed files with 44 additions and 50 deletions
src/project
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue