You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Radovan Smieško <ra...@students.zcu.cz> on 2005/06/02 14:32:44 UTC

[Fwd: Re: Please, How to get SVGElement by axis?]

Hi Thomas,

I have svg document with some different elements (rect, circle). I want 
to know witch element is on [x,y].
[x,y] lies insade element.

I'm sorry, my english is very bad.

Radovan

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


RE: [Fwd: Re: Please, How to get SVGElement by axis?]

Posted by "Neumann, Andreas" <an...@karto.baug.ethz.ch>.
I would suggest to use the method .getIntersectionList available at the SVGSVGElement (see http://phrogz.net/ObjJob/method.asp?id=455) which is implemented in Batik, for that purpose.

Note that that method is not yet available in the Adobe viewer.

Andreas

---
Andreas Neumann
Institute of Cartography
Swiss Federal Institute of Cartography
ETH Hoenggerberg
CH-8093 Zurich
Phone: ++41-1-6333031
Fax: ++41-1-6331153
http://www.karto.ethz.ch/
http://www.carto.net/papers/svg/
http://www.svgopen.org/



-----Original Message-----
From: Tonny Kohar [mailto:tonny@kiyut.com]
Sent: Thu 6/2/2005 10:26 PM
To: batik-users@xmlgraphics.apache.org
Subject: Re: [Fwd: Re: Please, How to get SVGElement by axis?]
 
Hi,

On Thu, 2005-06-02 at 14:32 +0200, Radovan Smiesko wrote:
> Hi Thomas,
> 
> I have svg document with some different elements (rect, circle). I want 
> to know witch element is on [x,y].
> [x,y] lies insade element.
> 
> I'm sorry, my english is very bad.

You probably could get the result by using getBBox from SVG DOM API

Regards
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: [Fwd: Re: Please, How to get SVGElement by axis?]

Posted by Tonny Kohar <to...@kiyut.com>.
Hi,

On Thu, 2005-06-02 at 14:32 +0200, Radovan Smieško wrote:
> Hi Thomas,
> 
> I have svg document with some different elements (rect, circle). I want 
> to know witch element is on [x,y].
> [x,y] lies insade element.
> 
> I'm sorry, my english is very bad.

You probably could get the result by using getBBox from SVG DOM API

Regards
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org