Docs: Improve description of option.class value in #hitTest()

See #632
This commit is contained in:
Jürg Lehni 2017-02-15 16:11:33 +01:00
parent 1ff4bc9665
commit e3c6245979
2 changed files with 10 additions and 6 deletions

View file

@ -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

View file

@ -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