From dfe4397a96ef8d7b59d6e7fa889cd7e826c73985 Mon Sep 17 00:00:00 2001 From: Samuel Asensi Date: Tue, 9 Oct 2018 21:44:04 +0200 Subject: [PATCH] Improve hit test point documentation (#1559) Specifies that hit test point should be provided in global coordinates system. Closes #1430 --- src/item/Item.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/item/Item.js b/src/item/Item.js index 8e72b8f1..75341949 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -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