3 lines
101 B
JavaScript
3 lines
101 B
JavaScript
export function getAreaPath(points) {
|
|
return `M ${points.map(p => `${p.x} ${p.y}`).join('L')} Z`;
|
|
} |