Last active
September 3, 2018 07:28
-
-
Save williwambu/416496d34ab9216caeff973f533bfea1 to your computer and use it in GitHub Desktop.
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
/** | |
* Get x,y coordinates at a given distance along the path | |
* @param {number} distance Distance along the path | |
* @returns {SVGPoint} x,y coordinate | |
*/ | |
const point = path.getPointAtLength(distance); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment