Bibek Sahu wrote:

The test I performed was in error: both 1.5.0 and 1.5.1rc2 work the same way.

Yes, but they do have a bug. I have a small patch that I will apply tonight.

There is an issue of some kind, but I think it's related to how I'm importing things, rather than a problem in Batik. (If I load up "textOnPath.svg" directly, everything works fine, but if I load up an empty SVG (containing only a single rectangle filling the whole area, and an empty event-rectangle filling 2000%x2000%) and drop the textOnPath.svg into it, it doesn't work anymore; I think it's related to how I'm importing the "<defs>" tags...)

It has to do with the canvas being 'translated'. Try the attached textOnPath.svg - works fine with 'default' view fails if you pan the doc.


Thank you for your help, and sorry to send you searching on a wild-goose-chase.


Ciao,
Bibek


-----Original Message----- From: Thomas DeWeese [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 4:59 AM To: Batik Users Subject: Re: DOM Click events (on text) in 1.5.1rc2?


Bibek Sahu wrote:



I'm currently trapping DOM Click events on all elements in Batik-1.5.1rc2,
as I was with 1.5.  When clicking on text elements, though, I notice it
now states that the event target is always of type
org.apache.batik.dom.svg.SVGOMTextElement, even if I click on a TextPath
or TSpan element (which is a sub-element of said SVGTextElement).  With
1.5.0, it gave me the TextPath or TSpan or whatever specific item I
clicked on.


    I'll look at this, there were a number of changes/improvements to
text in 1.5.1.


I'm using the test SVG from the Batik-samples directory
(samples/tests/spec/text/textOnPath.svg), and trying this by clicking on
the red bits of text (the "on", in "Text on a Path", which is part of a
TSpan.

Is this new behavior intended?


I don't believe so, but I want to see what it causing it first.


Is it possible to get back the old behavior, as I'd like to insert items into the section where the user clicks...






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


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



<<inline: textOnPath.svg>>

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

Reply via email to