Spaces:
Build error
Build error
Update src/components/waveform/waveform.jsx
Browse files
src/components/waveform/waveform.jsx
CHANGED
@@ -38,7 +38,7 @@ class Waveform extends React.PureComponent {
|
|
38 |
];
|
39 |
const pathComponents = points.map(([x, y], i) => {
|
40 |
const [nx, ny] = points[i < points.length - 1 ? i + 1 : 0];
|
41 |
-
return `
|
42 |
});
|
43 |
|
44 |
return (
|
|
|
38 |
];
|
39 |
const pathComponents = points.map(([x, y], i) => {
|
40 |
const [nx, ny] = points[i < points.length - 1 ? i + 1 : 0];
|
41 |
+
return `L${x} ${y} ${(x + nx) / 2} ${(y + ny) / 2}`;
|
42 |
});
|
43 |
|
44 |
return (
|