svg circle with fixed radius

Discussion in 'Javascript' started by dimstthomas@yahoo.com, May 13, 2006.

  1. Guest

    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
     
    , May 13, 2006
    #1
    1. Advertisements

  2. 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/
     
    Martin Honnen, May 13, 2006
    #2
    1. Advertisements

  3. Guest

    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.241129865656218)
    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>
     
    , May 13, 2006
    #3
  4. 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/
     
    Martin Honnen, May 14, 2006
    #4
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. momo

    Radius Search

    momo, Oct 31, 2003, in forum: ASP .Net
    Replies:
    5
    Views:
    4,519
  2. johnp
    Replies:
    4
    Views:
    3,956
    Toby Inkster
    May 23, 2005
  3. Arne Nordmann
    Replies:
    0
    Views:
    682
    Arne Nordmann
    Jun 28, 2004
  4. Mardagg
    Replies:
    0
    Views:
    989
    Mardagg
    May 12, 2006
  5. Mardagg
    Replies:
    0
    Views:
    843
    Mardagg
    May 12, 2006
  6. milof83

    svg to svg saving problem

    milof83, Aug 18, 2006, in forum: Java
    Replies:
    1
    Views:
    1,140
    Roland de Ruiter
    Aug 18, 2006
  7. tntelle

    C code for Radius user authentication

    tntelle, Sep 15, 2009, in forum: C Programming
    Replies:
    0
    Views:
    517
    tntelle
    Sep 15, 2009
  8. Bob Erwin

    Radius Authentication...

    Bob Erwin, Feb 24, 2004, in forum: ASP .Net Security
    Replies:
    1
    Views:
    200
    Edward Eckenstein
    Feb 25, 2004
Loading...