Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - SVG: attributes relativ to other elements / special anchors ?? [Thread Next] Re: SVG: attributes relativ to other elements / special anchors ??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
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
