Hi Mayank, I just modified the test in samples/tests/spec/scripting/intersectionList.svg to use circle ands ellipses and both worked perfectly for me. Can you provide a standalone example?
On Jan 4, 2013, at 4:29 AM, Mayank <mayankma...@gmail.com> wrote: > I have query regarding getIntersectionList(). I have implemented a Overlay > which is used to get the selected area on the canvas. In this overlay I am > trying to get the list of Node selected by user on the canvas. > > svgDoc = this.helper.getSvgCanvas().getSVGDocument(); > svgRect = svgDoc.getRootElement().createSVGRect(); > svgRect.setX(x); > svgRect.setY(y); > svgRect.setWidth(width); > svgRect.setHeight(height); > nodeList = svgDoc.getRootElement().getIntersectionList(svgRect, null); > > The nodeList which I get works perfectly for Rectangle node present on the > Canvas it does not work for shapes like Ellipse or Polyline. Please correct > me if I am missing something. Because ideally it should work for all shapes. > Am I missing something? > > > > > -- > View this message in context: > http://batik.2283329.n4.nabble.com/getIntersectionList-returning-only-rectangle-shape-tp4655418.html > Sent from the Batik - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: batik-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: batik-users-h...@xmlgraphics.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: batik-users-h...@xmlgraphics.apache.org