You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to be able to get the underlying ref node for some of the components. For example, for this line chart I made, I needed to modify @vx/shape's LinePath to take an innerRef prop that would then assign it to the path element's ref. This way I could gain access to the svg path element, and glean some data from it (path.getTotalLength() and path.getPointAtLength()) Other libraries that I know of that do something similar are glamorous and styled-components.
Thoughts?
The text was updated successfully, but these errors were encountered:
It would be nice to be able to get the underlying ref node for some of the components. For example, for this line chart I made, I needed to modify
@vx/shape
's LinePath to take aninnerRef
prop that would then assign it to the path element'sref
. This way I could gain access to the svg path element, and glean some data from it (path.getTotalLength()
andpath.getPointAtLength()
) Other libraries that I know of that do something similar are glamorous and styled-components.Thoughts?
The text was updated successfully, but these errors were encountered: