Skip to content

Commit 48995c1

Browse files
authored
fix: do not transform svg when exporting (#124)
Closes: #121
1 parent ef76dff commit 48995c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/roi/ROIAnnotations.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,10 @@ function ROIAnnotations({
3838
const transform = usePanZoomTransform();
3939

4040
return (
41-
<div style={{ width, height }}>
41+
<div style={{ width, height, transform, transformOrigin: '0px 0px' }}>
4242
{annotations.length > 0 && (
4343
<svg
4444
xmlns="http://www.w3.org/2000/svg"
45-
style={{ transform, transformOrigin: '0px 0px' }}
4645
viewBox={`0 0 ${width} ${height}`}
4746
ref={annotationsRef}
4847
>

0 commit comments

Comments
 (0)