Skip to content

Commit

Permalink
fix: typing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tuner committed Jan 3, 2025
1 parent 0ef8f5f commit 42f96e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ export function addInteractions(svgElement: SVGElement) {

let state: State = "normal";

for (const elem of svgElement.querySelectorAll(
":is(.subclone, .tentacle, .legend-rect, .pass-through)[data-subclone]"
for (const elem of Array.from(
svgElement.querySelectorAll(
":is(.subclone, .tentacle, .legend-rect, .pass-through)[data-subclone]"
)
)) {
originalColors.set(elem as SVGElement, {
fill: elem.getAttribute("fill"),
Expand Down

0 comments on commit 42f96e2

Please sign in to comment.