From ec9d2fc952a683aaa9f0c523fbba0786babdf629 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ulrich-Matthias=20Sch=C3=A4fer?= Date: Thu, 27 Jun 2024 12:01:22 +0200 Subject: [PATCH] prettier --- src/modules/core/containerGeometry.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/core/containerGeometry.js b/src/modules/core/containerGeometry.js index 32a3c8e..574581c 100644 --- a/src/modules/core/containerGeometry.js +++ b/src/modules/core/containerGeometry.js @@ -17,7 +17,10 @@ export function dmove(dx, dy) { // Therefore we have to use getBoundingClientRect. But THAT is broken (as explained in the bug). // Funnily enough the broken behavior would work for us but that breaks it in chrome // So we have to replicate the broken behavior of FF by just reading the attributes of the svg itself - bbox = child.node instanceof getWindow().SVGSVGElement ? new Box(child.attr(['x', 'y', 'width', 'height'])) : child.bbox() + bbox = + child.node instanceof getWindow().SVGSVGElement + ? new Box(child.attr(['x', 'y', 'width', 'height'])) + : child.bbox() } catch (e) { return } -- 2.39.5