Skip to content

Commit

Permalink
added interpolateSumX
Browse files Browse the repository at this point in the history
  • Loading branch information
jladuval committed Mar 31, 2017
1 parent df281d5 commit bce92c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { compose, map, mean, reduceRight, reduce, assoc } from 'ramda'

const interpolateSumX = (points) => interpolatePoints(points, true)

const interpolatePoints = (points, annotate = false) => {
if (points.length === 1) {
return {
Expand Down Expand Up @@ -83,7 +85,8 @@ const interpolate = ({ x: x1, y: y1 }, { x: x2, y: y2 }, fraction) => {

export {
interpolate,
interpolatePoints
interpolatePoints,
interpolateSumX
}

export default interpolatePoints

0 comments on commit bce92c6

Please sign in to comment.