format
This commit is contained in:
@@ -133,13 +133,7 @@ export function CenteredWaveform({
|
|||||||
const y = (height - h) / 2;
|
const y = (height - h) / 2;
|
||||||
drawCtx.roundRect(centerX + k * stride, y, barWidth, h, barWidth / 2);
|
drawCtx.roundRect(centerX + k * stride, y, barWidth, h, barWidth / 2);
|
||||||
if (k > 0) {
|
if (k > 0) {
|
||||||
drawCtx.roundRect(
|
drawCtx.roundRect(centerX - k * stride, y, barWidth, h, barWidth / 2);
|
||||||
centerX - k * stride,
|
|
||||||
y,
|
|
||||||
barWidth,
|
|
||||||
h,
|
|
||||||
barWidth / 2,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
drawCtx.fill();
|
drawCtx.fill();
|
||||||
|
|||||||
Reference in New Issue
Block a user