Skip to content

Commit 058aa31

Browse files
committed
Fix svg logo issue
1 parent 83ae5bd commit 058aa31

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/codegen/utils/check-asset-node.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,13 @@ export function checkAssetNode(
7373
: nested &&
7474
'fills' in node &&
7575
Array.isArray(node.fills) &&
76-
node.fills.every((fill) => fill.visible && fill.type === 'SOLID')
76+
!node.fills.some(
77+
(fill: Paint) =>
78+
fill.visible &&
79+
(fill.type === 'IMAGE' ||
80+
fill.type === 'VIDEO' ||
81+
fill.type === 'PATTERN'),
82+
)
7783
? 'svg'
7884
: null
7985
}

0 commit comments

Comments
 (0)