mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-23 09:21:00 +02:00
fix: collab username style fixes (#6668)
This commit is contained in:
@@ -15,6 +15,7 @@ export const roundRect = (
|
||||
width: number,
|
||||
height: number,
|
||||
radius: number,
|
||||
strokeColor?: string,
|
||||
) => {
|
||||
context.beginPath();
|
||||
context.moveTo(x + radius, y);
|
||||
@@ -33,5 +34,8 @@ export const roundRect = (
|
||||
context.quadraticCurveTo(x, y, x + radius, y);
|
||||
context.closePath();
|
||||
context.fill();
|
||||
if (strokeColor) {
|
||||
context.strokeStyle = strokeColor;
|
||||
}
|
||||
context.stroke();
|
||||
};
|
||||
|
Reference in New Issue
Block a user