Re: [svg-developers] How to place a text into the center of a closed path in a .svg file?

2005-05-12 Thread Jérôme Tricand de la Goutte
Hi Tianji I'm afraid you can't do it 'automaticly', but here are the step you must code yourself, using JS: - draw your path where you want. - get the bounding box parameters, and calculate the center of this box - draw your text at, say, x=0 and y=0, using the font-size you want and so... -

Re: [svg-developers] [Controlling fill color....]

2005-05-12 Thread Jérôme Tricand de la Goutte
Salut Richard, I've had a look at your application, but all seems to work. So what's the problem? Jérôme Richard DEPLANQUE a écrit : Hi, I'd like to control the fill color of polylines with a javacript. But, I want only one group : g id=SECTOR style=stroke:black; stroke-width:0.1;

Re: [svg-developers] svg include svg

2005-05-12 Thread Erwan TROEL
what is ASV3 and 6? - Original Message - From: Philippe Lhoste To: svg-developers@yahoogroups.com Sent: Thursday, May 12, 2005 1:17 AM Subject: Re: [svg-developers] svg include svg Erwan TROEL wrote: in fact we can't include a svg like a javascript , the svg will only

Re: [svg-developers] svg include svg

2005-05-12 Thread Jérôme Tricand de la Goutte
ASV mean Adobe SVG Viewer. This the major plugin used. 3 and 6 are the version. ASV3 is more or less compliant with the SVG spec 1.0 and ASV 6 with 1.2 Jérôme Erwan TROEL a écrit : what is ASV3 and 6? - Original Message - From: Philippe Lhoste To: svg-developers@yahoogroups.com

Re: [svg-developers] If i read a node from a file,it can't display in JSVGCanvas

2005-05-12 Thread Thomas DeWeese
wanghua96_1 wrote: I want to use batik to generate svg and display it, and I have a xml configuration file(meta.xml). I read configuration from the meta.xml and use batik to generate the corresponding svg,but it can't display in JSVGCanvas. But if I use SVGGraphics2D,it works fine,see

[svg-developers] redirection in svg

2005-05-12 Thread Erwan TROEL
in a javascript associated with a svg I write: window.location=http://www.w3.org; but nothing happens when executing if i write window.location.href=http://www.w3.org i have a message=window.location has no properties i don't understand [Non-text portions of this message have been

[svg-developers] centering content in a document

2005-05-12 Thread arianhojat2000
hey i was wondering if u can use an element's center of its bounding box to position it. so if i have a 800 by 600 svg, i place it at (400,300) and it is centered. or an v/halign=center attribute for placing it. i wanna take an image in svg and center it in main svg doc. thanx if anyone has a

Re: [svg-developers] redirection in svg

2005-05-12 Thread Erwan TROEL
Dans un javascript associé à un svg j' ai ecrit: window.location=http://www.google.fr mais rien ne se passe à l'execution peut on faitre des redirections de la sorte en svg ou il y at-il une autre methode? merci - Original Message - From: Erwan TROEL To:

[svg-developers] manipulate HTML from within SVG...help please!!!

2005-05-12 Thread Clara
Can someone please give me an example of calling HTML page script functions from within SVG?? say when I click an image on an SVG that is embedded in an HTML file,..I want an alert to come up.. How can I do that?? I suppose that I should call javascript function when I click the image..but how do

[svg-developers] Re: manipulate HTML from within SVG...help please!!!

2005-05-12 Thread joobs_27
--- In svg-developers@yahoogroups.com, Clara [EMAIL PROTECTED] wrote: Can someone please give me an example of calling HTML page script functions from within SVG?? say when I click an image on an SVG that is embedded in an HTML file,..I want an alert to come up.. How can I do that?? I suppose

[svg-developers] Re: manipulate HTML from within SVG...help please!!!

2005-05-12 Thread Clara
Hmm,..I tried the code,..but it doesn't work..I got an error message that says out of stack spaceI wonder why.. --- In svg-developers@yahoogroups.com, joobs_27 [EMAIL PROTECTED] wrote: --- In svg-developers@yahoogroups.com, Clara [EMAIL PROTECTED] wrote: Can someone please give me an

[svg-developers] Re: centering content in a document

2005-05-12 Thread Nicholas Lucaroni
Are you using any server side scripting? PHP, PERL, VBS... those could be used to find the width/height of an image then used to determine the x/y corner so it is centered. --- In svg-developers@yahoogroups.com, arianhojat2000 [EMAIL PROTECTED] wrote: hey i was wondering if u can use an

Re: [svg-developers] Re: manipulate HTML from within SVG...help please!!!

2005-05-12 Thread Edgar Valarezo
In the svg try 'top.alertMe()' . Clara [EMAIL PROTECTED] escribió: Hmm,..I tried the code,..but it doesn't work..I got an error message that says out of stack spaceI wonder why.. --- In svg-developers@yahoogroups.com, joobs_27 [EMAIL PROTECTED] wrote: --- In