Skip to content

Commit

Permalink
bring back animation
Browse files Browse the repository at this point in the history
  • Loading branch information
bleeptrack committed Aug 21, 2024
1 parent 33c1357 commit a2120a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions static/WebcamGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,14 @@ export class WebcamGenerator extends HTMLElement {
saveBtn.innerHTML = "SAVE"
this.progressbar.replaceWith(saveBtn)

/*

let svg = this.vectorizer.getSVG(false)
svg.querySelectorAll("path").forEach( p => {
p.style.strokeDasharray = p.getTotalLength()
p.style.strokeDashoffset = p.getTotalLength()
})
this.shadow.getElementById("container").replaceWith(svg)
*/
this.shadow.getElementById("vec").replaceWith(svg)

}else{
this.progressbar.setPercentage(data.detail.percentage, data.detail.label)
}
Expand Down

0 comments on commit a2120a9

Please sign in to comment.