469,159 Members | 1,511 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,159 developers. It's quick & easy.

Rotate the graphics without rotate the text in SVG

RC
First, this is a SVG issue, not 100% of XML issue. But I can't find
SVG group to post this. Since SVG is XML file, I post here hopefully
someone know both SVG and XML can help.

Here is my SVG lines

line.blue {stroke:blue;stroke-width:3;}
line.bluedash {stroke:blue;stroke-width:1;stroke-dasharray: 9,5;}

<defs>
<g id="dashLine">
<desc>Dash Line</desc>
<line class="bluedash" x1="0" y1="-280" x2="-280" y2="0" />
</g>
<g id="arrow" stroke="blue" transform="translate(0,0)">
<line class="blue" x1="0" y1="-280" x2="0" y2="280" />
<use xlink:href="#dashLine" />
<use xlink:href="#dashLine" transform="scale(-1,1)" />
<text x="0" y="-280">Arrow</text>
</g>

</defs>

<use xlink:href="#arrow" transform="rotate(180, 0, 0)" />

Now, I rotate the arrow by 60 degrees, but the text also rotate
( read upside down).

I would like rotate the arrow in any degrees, but the text remain
zero degree rotation.

Any idea how do I resolve this problem?
Thank Q very much in advance!
Aug 2 '06 #1
1 1705
* RC wrote in comp.text.xml:
>First, this is a SVG issue, not 100% of XML issue. But I can't find
SVG group to post this. Since SVG is XML file, I post here hopefully
someone know both SVG and XML can help.
There is the svg-developers list on yahoogroups.com.
>I would like rotate the arrow in any degrees, but the text remain
zero degree rotation.
Then you have to organize your document differently, for example, you
can put the arrow and the text in separate groups, and rotate only the
group you want to have rotated.
--
Björn Höhrmann · mailto:bj****@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
Aug 3 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Leo | last post: by
3 posts views Thread by Chris | last post: by
2 posts views Thread by Peter Proost | last post: by
1 post views Thread by iwdu15 | last post: by
10 posts views Thread by Joey_Stacks | last post: by
13 posts views Thread by =?Utf-8?B?dmlubw==?= | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.