Re: From Window coordinates to ViewBox coordinates

getCTM() method for SecondSVG object , gives all the translations and scales
I needed for finding out x, y of second svg.


AdrianBV wrote:
> 
> Hi,
> 
> Basically I have an svg "SecondSVG" into an svg "FirstSVG" into an svg
> "MainSVG".Every svg has its own ViewBox. This page can be loaded anywhere
> on the screen by another page.  
> So basically how can i find the screen x for viewBox for"SecondSVG"
> knowing that this svg can be loaded basically anywhere based on the
> calling page?
> event.clientX gives myself the x coordinate for the screen. If I don't
> know the coordinate for ViewBox of "SecondSVG" then how can I find out the
> x coordinate inside the ViewBox of "SecondSVG"?
> I want to add more information. I am using Firefox 3.6.3 and I do have an
> event object from which I can extract clientX, clientY and other
> coordinates that are relative to the screen. However what I need are the
> coordinates inside the ViewBox. 
> 
> Best regards,
> Adrian Pasarariu
> 

-- 
View this message in context: http://old.nabble.com/From-Window-coordinates-to-ViewBox-coordinates-tp28707465p28731636.html
Sent from the w3.org - www-svg mailing list archive at Nabble.com.

Received on Monday, 31 May 2010 14:34:08 UTC