Re: svg:transform rotate



Greetings, Hans Breuer!

Remind me please, do Dia support rotate() transformation in shape definitions?
No it does not. And I shall update the documentation [1] and dtd [2] if it 
will do.

Well, thanks.

What I'm trying to achieve is basically this:

But with master you can load the respective SVG and export it as shape to 
get the desired effect (see attachement).

I've got around it by using svg:path. However, the "z" command is not executed
correctly, leaving a visual gap in place of the joint.

<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns="http://www.daa.com.au/~james/dia-shape-ns"; xmlns:svg="http://www.w3.org/2000/svg";>
  <name>Hazeron - Ringworld</name>
  <desc>System containing ringworld superstructure</desc>
  <icon>Ringworld.png</icon>
  <connections>
    <point x="1.5" y="1.5" main="yes"/>
  </connections>
  <aspectratio type="fixed"/>
  <default-width>3</default-width>
  <default-height>3</default-height>
  <textbox x1="0" y1="0.5" x2="3" y2="2.5" align="center" resize="no" style="fill: background; fill-opacity: 
128;"/>
  <svg:svg width="300px" height="300px" viewBox="0 0 3 3">
    <svg:path style="fill: background; fill-opacity: 0; stroke: foreground; stroke-width: 1;"
      d="M 0.75,2.8
        A 1.5,1.0 -60 1 0 2.25,0.2
        A 1.5,1.0 -60 1 0 0.75,2.8
        z"
      />
    <svg:circle svg:style="fill: yellow; fill-opacity: 255; stroke: orange; stroke-width: 0.1;"
      cx="1.5" cy="1.5" r="0.5"/>
  </svg:svg>
</shape>

However, there's another problem with this shape.
1. I can't seem to make it 3x3, even if I add a background r=1.5 circle, the
resulting shape is a little thinner. Is this, perhaps, because ellipse is a
little taller than 3 units?
2. How can I override the line colors and styles for certain elements of the
shape?
3. When double-clicking the shape, I'm unable to set default line thickness.
And it always revert to 10mm on each new Dia start. With whole shape being
~30mm... kind of not the visual I'm aiming for. Is this something that can be
worked around?



--
WBR,
Andrey Repin (anrdaemon freemail ru) 16.03.2015, <01:04>

Sorry for my terrible english...



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]