Jens-Uwe Morawski wrote:
> On Sun, 16 Jan 2000 wrote Ben Greear:
> > Alexander Larsson wrote:
> > >
> > > On Sat, 15 Jan 2000, Ben Greear wrote:
> > >
> > > > So, is there any planned support for ARCs in the
> > > > SVG syntax? (By ARC I mean the object that is under the 'T'
> > > > icon.)
> > >
> > > I don't know, is there an ARC tag in SVG? You really have to ask james
> > > about this, as shapes are his stuff. He should be back from vacation soon.
> > >
> > > But you can try using bezier curves to draw the cloud. That should work.
> >
> > I tried that, but couldn't get anything to look like I wanted it... I did notice
> > that you can export a section (selected) to SVG, like I wanted to do. However,
> > it uses an 'A' argument in the path description, which is almost certainly an
> > arc.
> >
> > >
> > > > Also, would it be possible to surround a portion of the canvas
> > > > in a square/rectangle, and have that be saved as a shape, or
> > > > some sort of library object that you could load through a menu
> > > > and treat it as an individual entity?
> > >
> > > There is no such functionality right now, but you can export your drawing
> > > to SVG and then manually edit the file into a shape (as shapes are pretty
> > > close to SVG).
> >
> > That's plenty close enough for me, if only the shape code could handle ARCs.
>
> I don't know when dia will support arcs; but i think it should
> be possible to redraw the cloud based on arcs with bezier splines
> ; then export to svg and edit it manually to build a shape.
>
> If you like, you can send me the dia file (only including the
> cloud, please); i want to try it.
>
> Jens
Here is an example of a cloud using bezier splines, it needs some works but could be a
start.
Luc
----------------8<------------------8<------------------8<-----------------
<?xml version="1.0"?>
<dia:diagram xmlns:dia="http://www.lysator.liu.se/~alla/dia/">
<dia:diagramdata>
<dia:attribute name="background">
<dia:color val="#ffffff"/>
</dia:attribute>
<dia:attribute name="paper">
<dia:composite type="paper">
<dia:attribute name="name">
<dia:string>#A4#</dia:string>
</dia:attribute>
<dia:attribute name="tmargin">
<dia:real val="2.82"/>
</dia:attribute>
<dia:attribute name="bmargin">
<dia:real val="2.82"/>
</dia:attribute>
<dia:attribute name="lmargin">
<dia:real val="2.82"/>
</dia:attribute>
<dia:attribute name="rmargin">
<dia:real val="2.82"/>
</dia:attribute>
<dia:attribute name="is_portrait">
<dia:boolean val="true"/>
</dia:attribute>
<dia:attribute name="scaling">
<dia:real val="1"/>
</dia:attribute>
</dia:composite>
</dia:attribute>
</dia:diagramdata>
<dia:layer name="Background" visible="true">
<dia:object type="Standard - BezierLine" version="0" id="O0">
<dia:attribute name="obj_pos">
<dia:point val="24.45,-5.20066"/>
</dia:attribute>
<dia:attribute name="obj_bb">
<dia:rectangle val="18.7855,-13.3121;29.3855,-4.90066"/>
</dia:attribute>
<dia:attribute name="bez_points">
<dia:point val="24.45,-5.20066"/>
<dia:point val="23.45,-4.95066"/>
<dia:point val="23.05,-7.05066"/>
<dia:point val="22.9,-6.35066"/>
<dia:point val="22.75,-5.65066"/>
<dia:point val="21.0855,-6.01205"/>
<dia:point val="20.6355,-6.36205"/>
<dia:point val="20.1855,-6.71205"/>
<dia:point val="19.25,-8.05066"/>
<dia:point val="19.7,-8.15066"/>
<dia:point val="20.15,-8.25066"/>
<dia:point val="18.9355,-8.56205"/>
<dia:point val="18.8855,-9.36205"/>
<dia:point val="18.8355,-10.1621"/>
<dia:point val="19.1,-11.3007"/>
<dia:point val="19.6,-11.0007"/>
<dia:point val="20.1,-10.7007"/>
<dia:point val="19.4855,-11.5621"/>
<dia:point val="20.3855,-12.3121"/>
<dia:point val="21.2855,-13.0621"/>
<dia:point val="22.4,-11.9507"/>
<dia:point val="22,-12.3007"/>
<dia:point val="21.6,-12.6507"/>
<dia:point val="23.2855,-13.2621"/>
<dia:point val="23.9355,-13.2621"/>
<dia:point val="24.5855,-13.2621"/>
<dia:point val="25.7355,-12.6621"/>
<dia:point val="25.5355,-12.2121"/>
<dia:point val="25.3355,-11.7621"/>
<dia:point val="26.0355,-13.0621"/>
<dia:point val="27.3355,-12.3121"/>
<dia:point val="28.6355,-11.5621"/>
<dia:point val="28.05,-10.7007"/>
<dia:point val="28.4,-10.9507"/>
<dia:point val="28.75,-11.2007"/>
<dia:point val="29.3355,-10.5621"/>
<dia:point val="29.1855,-9.31205"/>
<dia:point val="29.0355,-8.06205"/>
<dia:point val="27.9,-7.95066"/>
<dia:point val="28.35,-7.80066"/>
<dia:point val="28.8,-7.65066"/>
<dia:point val="28.6855,-6.71205"/>
<dia:point val="27.6855,-6.21205"/>
<dia:point val="26.6855,-5.71205"/>
<dia:point val="26.2,-5.60066"/>
<dia:point val="25.95,-6.20066"/>
<dia:point val="25.7,-6.80066"/>
<dia:point val="25.6,-5.10066"/>
<dia:point val="24.45,-5.20066"/>
</dia:attribute>
</dia:object>
</dia:layer>
</dia:diagram>