mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
HitResult#getOptions: only have fill / stroke / segments options set to true if no options object was provided.
This commit is contained in:
parent
53a602fb56
commit
8e816f6bfc
1 changed files with 3 additions and 3 deletions
|
@ -51,13 +51,13 @@ HitResult = Base.extend(/** @lends HitResult# */{
|
|||
// Tolerance
|
||||
tolerance: 2,
|
||||
// Hit the fill of items
|
||||
fill: true,
|
||||
fill: !options,
|
||||
// Hit the curves of path items, taking into account the stroke
|
||||
// width.
|
||||
stroke: true,
|
||||
stroke: !options,
|
||||
// Hit the part of segments that curves pass through, excluding
|
||||
// its segments (Segment#point)
|
||||
segments: true,
|
||||
segments: !options,
|
||||
// Hit the parts of segments that define the curvature
|
||||
handles: false,
|
||||
// Only first or last segment hits on path (mutually exclusive
|
||||
|
|
Loading…
Reference in a new issue