Skip to content

Commit defb941

Browse files
authored
🐛 fix: fix overflow hidden node use clipping mask
🐛 fix: fix overflow hidden node use clipping mask
2 parents a979d17 + 055f25d commit defb941

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/parser/shape.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ export const parseToShape = async (
4444
styles = getComputedStyle(node);
4545
}
4646

47+
const { overflow } = styles;
48+
if (overflow === 'hidden') {
49+
rect.hasClippingMask = true;
50+
}
51+
4752
const {
4853
// 背景颜色
4954
backgroundColor,

0 commit comments

Comments
 (0)