Last active
September 7, 2021 08:53
-
-
Save russelllim22/ba70cb4f86d8abcd9f04fe9d3d70cd3e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<line id="cosArrow" | |
x1="110" | |
y1="115" | |
x2="{$lengthTween * Math.cos(currentAngle * Math.PI / 180) * 100 + 110}" | |
y2="115" stroke="goldenrod" | |
style="opacity: {(showLength === "cos") ? 1 : 0}" | |
stroke-width="3" | |
marker-end="{[-270,-90,90,270,450].includes(parseInt(currentAngle)) ? "url(#gold-point)" : "url(#gold-arrow)"}" | |
/> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment