Created
February 6, 2020 19:26
-
-
Save jeangontijo/5186d4b55cbd4b941a793e563d9c7d2b to your computer and use it in GitHub Desktop.
Check SVG path length
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log(Math.ceil(document.querySelector("path").getTotalLength())); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment