Skip to content

Commit

Permalink
fix(strokeMatches) remove unused parameter (chanind#106)
Browse files Browse the repository at this point in the history
normalizeCurve(curve) in geometry.js has only one parameter
  • Loading branch information
jamsch authored and chanind committed Apr 2, 2019
1 parent ef091ac commit b942e68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/strokeMatches.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ const SHAPE_FIT_ROTATIONS = [
];

const shapeFit = (curve1, curve2, leniency) => {
const normCurve1 = normalizeCurve(curve1, 2);
const normCurve2 = normalizeCurve(curve2, 2);
const normCurve1 = normalizeCurve(curve1);
const normCurve2 = normalizeCurve(curve2);
let minDist = Infinity;
SHAPE_FIT_ROTATIONS.forEach(theta => {
const dist = frechetDist(normCurve1, rotate(normCurve2, theta));
Expand Down

0 comments on commit b942e68

Please sign in to comment.