mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Introduce project.option.hitTolerance, to control precision of internal hit-tests.
This commit is contained in:
parent
03521796ef
commit
4be5d5086f
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ var HitResult = this.HitResult = Base.extend(/** @lends HitResult# */{
|
||||||
// Type of item, for instanceof check: PathItem, TexItem, etc
|
// Type of item, for instanceof check: PathItem, TexItem, etc
|
||||||
type: null,
|
type: null,
|
||||||
// Tolerance
|
// Tolerance
|
||||||
tolerance: 2,
|
tolerance: paper.project.options.hitTolerance || 2,
|
||||||
// Hit the fill of items
|
// Hit the fill of items
|
||||||
fill: !options,
|
fill: !options,
|
||||||
// Hit the curves of path items, taking into account the stroke
|
// Hit the curves of path items, taking into account the stroke
|
||||||
|
|
Loading…
Reference in a new issue