Hello,

Thanks for explaining those to me.  Now I was wondering, is there a way for
me to get the point of the element that is returned from those two methods. 
Specifically, the point where the intersection or enclosure occured so that
I can determine how close that point is to the point where I clicked?


Tonny Kohar wrote:
> 
> Hi,
> 
> On Mon, 2007-01-15 at 07:45 -0800, vyang wrote:
>> Well I use JSVGCanvas so it seems its already booted.  But I was just
>> wondering why the document I created in SAXSVGDocumentFactory returns
>> null,
>> while the one I retrieve from canvas works fine.  Both documents do load
>> the
>> correct mage when it is set.
> 
> Because using DocumentFactory does not boot the SVG and CSS so you will
> get NULL, but JSVGCanvas after loading the document using
> DocumentFactory, the JSVGCanvas add additional operation which is boot
> svg and css.
> 
>> Could you also explain getEnclosureList(), I looked at the api(at least
>> the
>> one I found in SVGOMSVGElement - SVGElement page/link not working) but it
>> was vague.
> 
>>From SVG Specification
> 
> getIntersectionList
>         Returns the list of graphics elements whose rendered content
>         intersects the supplied rectangle, honoring the 'pointer-events'
>         property value on each candidate graphics element.
>         
> getEnclosureList
>         Returns the list of graphics elements whose rendered content is
>         entirely contained within the supplied rectangle, honoring the
>         'pointer-events' property value on each candidate graphics
>         element.
> 
> Regards
> Tonny Kohar
> -- 
> Sketsa 
> SVG Graphics Editor
> http://www.kiyut.com
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Determine-points-in-JSVGCanvas-tf2948761.html#a8392452
Sent from the Batik - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to