HitResult#getOptions: only have fill / stroke / segments options set to true if no options object was provided.

This commit is contained in:
Jonathan Puckey 2011-07-15 14:52:38 +02:00
parent 53a602fb56
commit 8e816f6bfc

View file

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