Closed jtellezvs closed 2 years ago
It's probably not your issue, but I would firstly try 0.5.2 (I think thats the dev branch iirc) as 0.5.1 had some oddities.
Thanks, I will give that shot. I am using a minified version that I package into the app. Is there a place where I can download version 0.5.2?
Version info:
Android targetSDK 30(Android 11) SnapSVG 0.4.1/0.5.1
After migrating the project to targetSDK 30, a WebView that hosts an SVG file is unable to load and remains blank. The logs are showing an issue reading
fragment.node.attributes.viewBox.value
which is an attribute that is made available on the rootsvg
node. The SVG element is also not available from thefragment.select('svg')
call which also worked before the update.script.js:25 Uncaught TypeError: Cannot read properties of undefined (reading 'viewBox')
I didn't see anything mentioned in other issues or documentation, but has the way we are to access these variables changed?