docs/a.js
function lineToPoint(previousPoint, point) {
				var pointVM = point._view;
				if (point._view.steppedLine === true) {
					ctx.lineTo(pointVM.x, previousPoint._view.y);
					ctx.lineTo(pointVM.x, pointVM.y);
				} else if (point._view.tension === 0) {
					ctx.lineTo(pointVM.x, pointVM.y);
				} else {
					ctx.bezierCurveTo(
						previousPoint._view.controlPointNextX,
						previousPoint._view.controlPointNextY,
						pointVM.controlPointPreviousX,
						pointVM.controlPointPreviousY,
						pointVM.x,
						pointVM.y
					);
				}
			}
function lineToPoint(previousPoint, point) {
				var pointVM = point._view;
				if (point._view.steppedLine === true) {
					ctx.lineTo(pointVM.x, previousPoint._view.y);
					ctx.lineTo(pointVM.x, pointVM.y);
				} else if (point._view.tension === 0) {
					ctx.lineTo(pointVM.x, pointVM.y);
				} else {
					ctx.bezierCurveTo(
						previousPoint._view.controlPointNextX,
						previousPoint._view.controlPointNextY,
						pointVM.controlPointPreviousX,
						pointVM.controlPointPreviousY,
						pointVM.x,
						pointVM.y
					);
				}
			}
function lineToPoint ( previousPoint , point ) { var pointVM = point . _view ; if ( point . _view . steppedLine === true ) { ctx . lineTo ( pointVM . x , previousPoint . _view . y ) ; ctx . lineTo ( pointVM . x , pointVM . y ) ; } else if ( point . _view . tension === 0 ) { ctx . lineTo ( pointVM . x , pointVM . y ) ; } else { ctx . bezierCurveTo ( previousPoint . _view . controlPointNextX , previousPoint . _view . controlPointNextY , pointVM . controlPointPreviousX , pointVM . controlPointPreviousY , pointVM . x , pointVM . y ) ; } }
Helper function to draw a line to a point
Helper function to draw a line to a point