Hello,

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.

I also do use getIntersectionList() and it does return the correct elements,
however, how do I get the element point that is near where I clicked?

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.


Tonny Kohar wrote:
> 
> Hi,
> 
> On Fri, 2007-01-12 at 09:01 -0800, vyang wrote:
>> then I would get a null bbox.  But when I get SVGDocument from
>> JSVGCanvas,
>> my bbox is not null.  I also checked to see if the documents where the
>> same
>> by viewing it on JSVGCanvas, and it appears that they are the same.  Why
>> is
>> it that when I use the one created by SAXSVGDocumentFactory I get null? 
>> Is
>> it because I passed null to SAXSVGDocumentFactory?
> 
> I think you need to boot the svg and css properly for bbox to be
> available. Please read this wiki
> http://wiki.apache.org/xmlgraphics-batik/BootSvgAndCssDom
> 
>> Also, it appears that bbox is not what I need.  What I am doing is
>> drawing a
>> dot on click on an overlay.  And then if the user would click near the
>> edge
>> of a circle for example, it would draw the dot on the circle's edge. 
>> Anyone
>> hints on how I would implement this?  Again any hints would be much
>> appreciated.  Thanks.
> 
> I do not know you need the bbox or not, but you need to know the
> bounding box of the circle (bbox is providing this info) and compare it
> with the point/dot click. You might also use getIntersectionList() or
> getEnclosureList() for checking the intersect of point and circle
> 
> 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#a8373645
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