Hi Michael,

"Bishop, Michael W. CTR USJFCOM JFL" <[email protected]> wrote 
on 12/15/2008 02:17:17 PM:

> * Draw an element:
> * Draw a select box:
> * Find all intersecting elements using 
SVGSVGElement.getIntersectionList(...)
> 
> * Iterate through the intersecting elements to find out which ones 
>   are contained in the select box.
> 
> I'm not sure how to do this if the screen size has changed since I 
> drew the element I'm trying to compare.  If I have a 640x480 
> document and I resize the JSVGCanvas horizontally, I still have a 
> 640x480 document in a bigger window with non-document area on the 
> left and right which is fine.  What I'm trying to do is find the 
> dimensions of the element in the CURRENT screen space.
> 
> selectBox->inverseOfParentScreenCTM == Current screen coordinates.
> element->inverseOfOldViewingTransform == Document coordinates -> ???
> -> Current screen coordinates.

   Your ??? should be the screenCTM.

> Hopefully someone understands this and has a suggestion or two. 
> I've played with the element's CTM, screenCTM, the parent element's 
> CTM and screenCTM, and even both at once.

   Well you said you used that so something else must be the problem.

Reply via email to