Skip to content

Commit

Permalink
🐛 fix: fix overflow hidden node use clipping mask
Browse files Browse the repository at this point in the history
🐛 fix: fix overflow hidden node use clipping mask
  • Loading branch information
arvinxx committed Jun 29, 2021
2 parents a979d17 + 055f25d commit defb941
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/parser/shape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ export const parseToShape = async (
styles = getComputedStyle(node);
}

const { overflow } = styles;
if (overflow === 'hidden') {
rect.hasClippingMask = true;
}

const {
// 背景颜色
backgroundColor,
Expand Down

0 comments on commit defb941

Please sign in to comment.