Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: SVG: attributes relativ to other elements / special anchors ??

From: "Joris Gillis" <roac@-------.-->
To: NULL
Date: 7/1/2005 3:50:00 PM
Hi,

Tempore 15:58:44, die Friday 01 July 2005 AD, hinc in foro {comp.text.xml} scripsit Peter Jakobi <Pet505@y...>:

> Is there an possibility to set the x and y values of the second line
> with the values of the first line + an offset.
>
> <line id="line1" x1="100" y1="100" x2="200" y2="100"/>
> <line id="line2" x1="100" y1=line1.x1+100 x2="200" y2=line1.x2+100/>

why not use the 'use' element for this purpose?
e.g. <use xlink:href="#line1" x="100" y="100"/>

> Do I have to use javascript, which sets up the values for the second line??
You could do that. In Javascript you have control over the complete DOM of your svg file.

> Another question: Can I set some "certain anchors" in svg?
I do not think anchor points are (yet) defined in svg.


regards,
-- 
Joris Gillis (http://users.telenet.be/root-jg/me.html)
Ceterum censeo XML omnibus esse utendum


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent