From: Ulrich-Matthias Schäfer Date: Thu, 27 Jun 2024 10:01:22 +0000 (+0200) Subject: prettier X-Git-Tag: 3.2.4^0 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ec9d2fc952a683aaa9f0c523fbba0786babdf629;p=svg.js.git prettier --- 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 }