Skip to content

Access SVG DOM Points from NodeRef HtmlElement<Svg> #1538

Answered by gbj
steckes asked this question in Q&A
Discussion options

You must be logged in to vote

Generally there's a web-sys struct/function that matches every DOM API/class/type/function, including SvgPoint and SvgPointList. Make sure you add a web-sys dependency with the SvgPoint and SvgPointList features enabled.

Generally you can get access to the underlying web-sys DOM node for anything in your view using a NodeRef.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@steckes
Comment options

@gbj
Comment options

gbj Aug 14, 2023
Maintainer

@steckes
Comment options

@gbj
Comment options

gbj Aug 15, 2023
Maintainer

@steckes
Comment options

Answer selected by steckes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants