aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/core/containerGeometry.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2024-06-27 12:01:22 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2024-06-27 12:01:22 +0200
commitec9d2fc952a683aaa9f0c523fbba0786babdf629 (patch)
tree89000a323ace219e11748b9661e95fbad7a952cd /src/modules/core/containerGeometry.js
parent73c6a3b60a8c515098e5affb1782380bfda78aab (diff)
downloadsvg.js-ec9d2fc952a683aaa9f0c523fbba0786babdf629.tar.gz
svg.js-ec9d2fc952a683aaa9f0c523fbba0786babdf629.zip
prettier3.2.4
Diffstat (limited to 'src/modules/core/containerGeometry.js')
-rw-r--r--src/modules/core/containerGeometry.js5
1 files changed, 4 insertions, 1 deletions
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
}