Skip to content

Commit

Permalink
fix: do not transform svg when exporting (#124)
Browse files Browse the repository at this point in the history
Closes: #121
  • Loading branch information
stropitek authored Jun 27, 2024
1 parent ef76dff commit 48995c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/roi/ROIAnnotations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ function ROIAnnotations({
const transform = usePanZoomTransform();

return (
<div style={{ width, height }}>
<div style={{ width, height, transform, transformOrigin: '0px 0px' }}>
{annotations.length > 0 && (
<svg
xmlns="http://www.w3.org/2000/svg"
style={{ transform, transformOrigin: '0px 0px' }}
viewBox={`0 0 ${width} ${height}`}
ref={annotationsRef}
>
Expand Down

0 comments on commit 48995c1

Please sign in to comment.