mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
parent
1ff4bc9665
commit
e3c6245979
2 changed files with 10 additions and 6 deletions
|
@ -1814,9 +1814,11 @@ new function() { // Injection scope for hit-test functions shared with project
|
|||
*
|
||||
* @option [options.tolerance={@link PaperScope#settings}.hitTolerance]
|
||||
* {Number} the tolerance of the hit-test
|
||||
* @option options.class {Function} only hit-test again a certain item
|
||||
* class and its sub-classes: {@values Group, Layer, Path,
|
||||
* CompoundPath, Shape, Raster, SymbolItem, PointText, ...}
|
||||
* @option options.class {Function} only hit-test against a specific item
|
||||
* class, or any of its sub-classes, by providing the constructor
|
||||
* function against which an `instanceof` check is performed:
|
||||
* {@values Group, Layer, Path, CompoundPath, Shape, Raster,
|
||||
* SymbolItem, PointText, ...}
|
||||
* @option options.match {Function} a match function to be called for each
|
||||
* found hit result: Return `true` to return the result, `false` to keep
|
||||
* searching
|
||||
|
|
|
@ -405,9 +405,11 @@ var Project = PaperScopeItem.extend(/** @lends Project# */{
|
|||
*
|
||||
* @option [options.tolerance={@link PaperScope#settings}.hitTolerance]
|
||||
* {Number} the tolerance of the hit-test
|
||||
* @option options.class {Function} only hit-test again a certain item
|
||||
* class and its sub-classes: {@values Group, Layer, Path,
|
||||
* CompoundPath, Shape, Raster, SymbolItem, PointText, ...}
|
||||
* @option options.class {Function} only hit-test against a specific item
|
||||
* class, or any of its sub-classes, by providing the constructor
|
||||
* function against which an `instanceof` check is performed:
|
||||
* {@values Group, Layer, Path, CompoundPath, Shape, Raster,
|
||||
* SymbolItem, PointText, ...}
|
||||
* @option options.match {Function} a match function to be called for each
|
||||
* found hit result: Return `true` to return the result, `false` to keep
|
||||
* searching
|
||||
|
|
Loading…
Reference in a new issue