mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -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)
|
if (t2 == null)
|
||||||
t2 = Curve.getParameterOf(v2, p2.x, p2.y);
|
t2 = Curve.getParameterOf(v2, p2.x, p2.y);
|
||||||
loc = new CurveLocation(
|
loc = new CurveLocation(
|
||||||
c1, t1, p1 || Curve.getPoint(v1, t1),
|
c1, t1, p1 || Curve.getPoint(v1, t1),
|
||||||
c2, t2, p2 || Curve.getPoint(v2, t2));
|
c2, t2, p2 || Curve.getPoint(v2, t2));
|
||||||
if (param.adjust)
|
if (param.adjust)
|
||||||
param.adjust(loc);
|
param.adjust(loc);
|
||||||
|
|
|
@ -104,8 +104,8 @@ var PathItem = Item.extend(/** @lends PathItem# */{
|
||||||
// Self intersecting is found by dividing the curve in two
|
// Self intersecting is found by dividing the curve in two
|
||||||
// and and then applying the normal curve intersection code.
|
// and and then applying the normal curve intersection code.
|
||||||
var parts = Curve.subdivide(values1);
|
var parts = Curve.subdivide(values1);
|
||||||
Curve._getIntersections(
|
Curve._getIntersections(parts[0], parts[1], curve1, curve1,
|
||||||
parts[0], parts[1], curve1, curve1, locations, {
|
locations, {
|
||||||
// Only possible if there is only one curve:
|
// Only possible if there is only one curve:
|
||||||
startConnected: length1 === 1,
|
startConnected: length1 === 1,
|
||||||
// After splitting, the end is always connected:
|
// After splitting, the end is always connected:
|
||||||
|
|
Loading…
Reference in a new issue