From fd762fb0e038073da5b33424e6d53249cb46e7f5 Mon Sep 17 00:00:00 2001 From: JannikStreek Date: Mon, 4 Dec 2023 10:03:27 +0100 Subject: [PATCH] added svg property to round corners of images (#201) --- teammapper-frontend/mmp/src/map/handlers/draw.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/teammapper-frontend/mmp/src/map/handlers/draw.ts b/teammapper-frontend/mmp/src/map/handlers/draw.ts index a5056c54..d8e7ca82 100644 --- a/teammapper-frontend/mmp/src/map/handlers/draw.ts +++ b/teammapper-frontend/mmp/src/map/handlers/draw.ts @@ -247,6 +247,7 @@ export default class Draw { domImage.setAttribute('width', w.toString()) domImage.setAttribute('y', y.toString()) domImage.setAttribute('x', x.toString()) + domImage.setAttribute('clip-path', 'inset(0% round 15px)') } image.onerror = function () {