androidsvg
androidsvg copied to clipboard
Click events for SVG Elements
Hey Paul,
Before I go ahead and added more flexibilities and features for click events, I thought I'd review with you some of the changes on SVG and SVGBase.
- SVGBase
I added couple of methods for us to fetch all elements at a specific location, which can be restricted to only elements with ids. We could move
containsCoordsintoBoxas it's more of a helper method forBox. - SVG
Just exposing
getElementsAtfrom base. - SVGRenderer
Rather than fetching for ids, I thought we might as well put them in
idToElementMapwhile creating the render tree. We could change this togetIdToElementMap().put(id, obj). Moreover we can then exposegetIdToElementMap().
Let me know what you think.
Ishan
Thanks. This looks useful. I'll look through the code as soon as I have a bit of time, and add some comments.
any update on this Merge Request ?