mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Some more code fixes.
One was breaking unit tests.
This commit is contained in:
parent
155442e706
commit
abf70378fe
2 changed files with 3 additions and 3 deletions
|
@ -1328,7 +1328,7 @@ new function() { // Scope for intersection using bezier fat-line clipping
|
|||
if (t2 == null)
|
||||
t2 = Curve.getParameterOf(v2, p2.x, p2.y);
|
||||
loc = new CurveLocation(
|
||||
c1, t1, p1 || Curve.getPoint(v1, t1),
|
||||
c1, t1, p1 || Curve.getPoint(v1, t1),
|
||||
c2, t2, p2 || Curve.getPoint(v2, t2));
|
||||
if (param.adjust)
|
||||
param.adjust(loc);
|
||||
|
|
|
@ -104,8 +104,8 @@ var PathItem = Item.extend(/** @lends PathItem# */{
|
|||
// Self intersecting is found by dividing the curve in two
|
||||
// and and then applying the normal curve intersection code.
|
||||
var parts = Curve.subdivide(values1);
|
||||
Curve._getIntersections(
|
||||
parts[0], parts[1], curve1, curve1, locations, {
|
||||
Curve._getIntersections(parts[0], parts[1], curve1, curve1,
|
||||
locations, {
|
||||
// Only possible if there is only one curve:
|
||||
startConnected: length1 === 1,
|
||||
// After splitting, the end is always connected:
|
||||
|
|
Loading…
Reference in a new issue