Hi Dao,

Response inline...


> interesting, I never think filter oriented... but if I want to highlight a
> filled shape, the yellow never appears, isn't it?

FWIW, I never saw a way to highlight shapes which works well in all
situations. For example, popular ways to highlight objects are:
 1. Use a particular stroke/fill color. How will you highlight a shape
which by coincidence is in that particular color?
 2. Revert colors (a.k.a. XOR mode). How will you highlight a shape
which is mid-tone gray?
 3. Use the shape's bounding box. If the shape is very large and you
are zooming in, for example, you won't have a clue that the shape is
selected. Also, this is not quite a "highlight"...

I'd advise you to take a look at existing vector graphics editors,
such as Inkscape (which seems to use approach 3) and Sketsa (which
seems to use approach 1; as a matter of curiosity, it's based in
Batik), in order to figure out general approaches to the problem.
Also, Batik Squiggle also has a shape highlighting feature (which
seems to use approach 2): checkout "Tools"/"DOM Viewer..."/"Click to
enable highlight of selected node". Note that the shape highlight
doesn't seem to be working well with complex SVG files, but you may
use a very simple SVG [1] just to have a feeling: I've just reported
bug 48468 to track it down... ;-)


Hope this helps,
 Helder


[1] 
http://heldermagalhaes.com/stuff/svg/demos/SVGObject-HTMLCanvasInteractors/sample.svg
[2] https://issues.apache.org/bugzilla/show_bug.cgi?id=48468

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to