Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function area(context, items) {
var item = items[0],
interp = item.interpolate || 'linear',
s = (interp === 'trail' ? trailShape
: (item.orient === 'horizontal' ? areahShape : areavShape)
.curve(pathCurves(interp, item.orient, item.tension))
)
if (!context || context.arc) {
return s.context(context)(items);
}
return geometryForPath(context, s.context(null)(items), 0.1);
}
export function line(context, items) {
var item = items[0],
interp = item.interpolate || 'linear',
s = lineShape.curve(pathCurves(interp, item.orient, item.tension));
if (!context || context.arc) {
return s.context(context)(items);
}
return geometryForPath(context, s.context(null)(items));
}