-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
baseVal not supported #32
Comments
Unfortunately that's not as easy as it sounds. You basically need to intercept all access to the node to return the correct attribute. |
It looks like HTMLLinkElement exposes some direct properties, could The properties for which
|
There is more. Everything in svg is animatable. Everything which is animatable has baseVal and animVal properties. For e.g. polygon you have points with a pointlist which of it also has x and y. |
I'm using path-data-polyfill, which uses baseVal to get x/y/width/height/etc. values from
<rect>
,<ellipse>
, etc. elements. It would be great to implement this in svgdom!The text was updated successfully, but these errors were encountered: