Skip to content

Commit

Permalink
feat: 🎸 TextLayer element selector (#33)
Browse files Browse the repository at this point in the history
* feat: 🎸 TextLayer element selector

* chore: 🤖 add changeset
  • Loading branch information
theashraf authored Nov 13, 2023
1 parent e7fefc9 commit 7c9388c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/moody-donkeys-camp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@lottiefiles/relottie-style": minor
---

feat: 🎸 TextLayer element selector
3 changes: 3 additions & 0 deletions packages/relottie-style/src/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ const querySelectorAll = (root: Root, selectors: string[]): ObjectNode[] => {
} else if (node.name === 'ImageLayer') {
type = 'layer-type';
value = 2;
} else if (node.name === 'TextLayer') {
type = 'layer-type';
value = 5;
}

if (type && value) {
Expand Down

0 comments on commit 7c9388c

Please sign in to comment.