xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bibek Sahu" <bi...@TreesforLife.org>
Subject RE: DOM Click events (on text) in 1.5.1rc2?
Date Wed, 04 Feb 2004 18:26:08 GMT

Hi Thomas,

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

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...)

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

Ciao,
Bibek


-----Original Message-----
From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com]
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: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message