Skip to content

Commit 37f747f

Browse files
authored
fix: BROS-297: Fix MagicWand with BitMask (#8150)
Co-authored-by: Gondragos <[email protected]>
1 parent fc26d71 commit 37f747f

File tree

1 file changed

+4
-2
lines changed
  • web/libs/editor/src/components/ImageView

1 file changed

+4
-2
lines changed

web/libs/editor/src/components/ImageView/Image.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,10 @@ const ImageRenderer = observer(
9292
// Real dimension will still be available via `naturalWidth` and `naturalHeight`
9393
const style = ff.isActive(FF_BITMASK)
9494
? {
95-
width: 0,
96-
height: 0,
95+
// For now, we can't fully hide it as it is used by the Magic Wand tool, so this will hide it visually, but allow using it on the canvas.
96+
// It is still possible that there is another way to get the right image data in the tool, so it's a temporary quick fix
97+
...imageTransform,
98+
clip: "rect(1px, 1px, 1px, 1px)",
9799
}
98100
: imageTransform;
99101

0 commit comments

Comments
 (0)