From ec9d2fc952a683aaa9f0c523fbba0786babdf629 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Thu, 27 Jun 2024 12:01:22 +0200 Subject: prettier --- src/modules/core/containerGeometry.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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 } -- cgit v1.2.3