Improve hit test point documentation (#1559)

Specifies that hit test point should be provided in global coordinates
system.
Closes #1430
This commit is contained in:
Samuel Asensi 2018-10-09 21:44:04 +02:00 committed by Jürg Lehni
parent c0abbe1459
commit dfe4397a96

View file

@ -1905,6 +1905,7 @@ new function() { // Injection scope for hit-test functions shared with project
* @option options.selected {Boolean} only hit selected items
*
* @param {Point} point the point where the hit-test should be performed
* (in global coordinates system).
* @param {Object} [options={ fill: true, stroke: true, segments: true,
* tolerance: settings.hitTolerance }]
* @return {HitResult} a hit result object describing what exactly was hit
@ -1922,6 +1923,7 @@ new function() { // Injection scope for hit-test functions shared with project
* @name Item#hitTestAll
* @function
* @param {Point} point the point where the hit-test should be performed
* (in global coordinates system).
* @param {Object} [options={ fill: true, stroke: true, segments: true,
* tolerance: settings.hitTolerance }]
* @return {HitResult[]} hit result objects for all hits, describing what