mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Improve horizontal check for sampling points in propagateWinding()
Relates to #875, needs more testing.
This commit is contained in:
parent
3035e1d445
commit
943c4bba91
1 changed files with 3 additions and 2 deletions
|
@ -487,8 +487,9 @@ PathItem.inject(new function() {
|
|||
var curve = node.curve,
|
||||
path = curve._path,
|
||||
parent = path._parent,
|
||||
pt = curve.getPointAt(length),
|
||||
hor = curve.isHorizontal();
|
||||
t = curve.getParameterAt(length),
|
||||
pt = curve.getPointAt(t, true),
|
||||
hor = Numerical.isZero(curve.getTangentAt(t, true).y);
|
||||
if (parent instanceof CompoundPath)
|
||||
path = parent;
|
||||
// While subtracting, we need to omit this curve if this
|
||||
|
|
Loading…
Reference in a new issue