Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > svg circle with fixed radius

Reply
Thread Tools

svg circle with fixed radius

 
 
dimstthomas@yahoo.com
Guest
Posts: n/a
 
      05-13-2006
Hello

Anyone know how to make an svg circle radius fixed (i.e. not affected
by transforms)? I tried adding px or cm, e.g. r='15px' but it just
generates an error.

Thanks

 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      05-13-2006


http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:

> Anyone know how to make an svg circle radius fixed (i.e. not affected
> by transforms)? I tried adding px or cm, e.g. r='15px' but it just
> generates an error.


Are you using any script at all or why do you ask here?
Which SVG viewer are you using and what kind of error do you get for
r="15px"?
The value of r is a length
<http://www.w3.org/TR/SVG11/types.html#DataTypeLength>
so a number plus a unit should not be any problem.


--

Martin Honnen
http://JavaScript.FAQTs.com/
 
Reply With Quote
 
 
 
 
dimstthomas@yahoo.com
Guest
Posts: n/a
 
      05-13-2006
Thanks for your reply

Why do I ask here? Because there doesn't seem to be any (active) SVG
groups and a google groups search shows that this group is active and
has had quite a lot of SVG questions answered.

I am writing ASP pages that have some javascript, but not for the SVG
part!

Turns out the error was in the ASP part, but when I fixed that I get
the circles displayed but the radius is still affected by the
transform.

e.g. for a 1100 by 700 svg image

<svg>
<g transform='scale(0.102592799850774,0.2411298656562 1
translate(-24234,-1604)'>
<circle cx='25957' cy='2036' r='30px' stroke='black' stroke-width='2'
fill='red'/>
<circle cx='27332' cy='2770' r='30px' stroke='black' stroke-width='2'
fill='red'/>
<circle cx='34956' cy='1732' r='30px' stroke='black' stroke-width='2'
fill='red'/>
</g>
</svg>

 
Reply With Quote
 
Martin Honnen
Guest
Posts: n/a
 
      05-14-2006


(E-Mail Removed) wrote:

> Why do I ask here? Because there doesn't seem to be any (active) SVG
> groups and a google groups search shows that this group is active and
> has had quite a lot of SVG questions answered.


A general SVG group like comp.text.xml is appropriate for SVG. And the
list/group http://groups.yahoo.com/group/svg-developers/ is dedicated to
SVG and has daily traffic.


--

Martin Honnen
http://JavaScript.FAQTs.com/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
svg to svg saving problem milof83 Java 1 08-18-2006 07:36 PM
[SVG] probleme dessin d'images SVG avec Batik Mardagg Java 0 05-12-2006 02:13 PM
[SVG] problem with SVG image drawing with Batik Library Mardagg Java 0 05-12-2006 02:12 PM
[SVG] using image-tag to integrate SVG in SVG Arne Nordmann XML 0 06-28-2004 01:16 PM
Jisatsu circle (Suicide Circle) Col's Cavern DVD Video 1 06-07-2004 06:55 PM



Advertisments