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

Making sheets



Hello!

I am making a new sheet for Dia for drawing maps. I am having a problem 
because Dia sometimes does not honour shape dimensions that I specify in 
.shape file. Aspect ration is kept so one can resize each element to the 
proper size but in case of smaller shapes it is annoying. Dia resizes 
shapes that I place on my drawing to roughly 2x2 units (sometimes 
they're exactly 2x2 sometimes a bit larger).

There is nothing about it in either docs or faq, so could I ask some of 
you to take a look at example shape file and tell me what's wrong with it?

The problem is with both my hand-edited shapes and those exported from Dia.

And here is one of shapes:

<?xml version="1.0"?>
<shape xmlns="http://www.daa.com.au/~james/dia-shape-ns" 
xmlns:svg="http://www.w3.org/2000/svg">
  <name>Map - Stairs 1x1 V 1</name>
  <icon>icons/stairs_1x1.v1.png</icon>
  <aspectratio type="fixed"/>
  <svg:svg>

    <svg:rect style="fill: #ffffff; stroke-width: 0.0; stroke: #ffffff" 
x="0.0" y="0.0" width="1.0" height="1.0"/>

    <svg:polyline style="stroke-width: 1.0; stroke: #000000" 
points="0.0,0.0 0.0,1.0 1.0,1.0 1.0,0.0 "/>

    <svg:line style="stroke-width: 1.0; stroke: #000000" x1="0.10" 
y1="0.1" x2="0.90" y2="0.1"/>
    <svg:line style="stroke-width: 1.0; stroke: #000000" x1="0.15" 
y1="0.2" x2="0.85" y2="0.2"/>
    <svg:line style="stroke-width: 1.0; stroke: #000000" x1="0.20" 
y1="0.3" x2="0.80" y2="0.3"/>
    <svg:line style="stroke-width: 1.0; stroke: #000000" x1="0.25" 
y1="0.4" x2="0.75" y2="0.4"/>
    <svg:line style="stroke-width: 1.0; stroke: #000000" x1="0.30" 
y1="0.5" x2="0.70" y2="0.5"/>
    <svg:line style="stroke-width: 1.0; stroke: #000000" x1="0.35" 
y1="0.6" x2="0.65" y2="0.6"/>
    <svg:line style="stroke-width: 1.0; stroke: #000000" x1="0.40" 
y1="0.7" x2="0.60" y2="0.7"/>

  </svg:svg>
</shape>

Bye,
Max


-- 
--------------------------------------------------------------
--        Max Gilead       --       gilead@linart.pl        --
-- UIN 107356015  --  #yellowdragon on irc.openprojects.net --
--------------------------------------------------------------





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] Mail converted by Mofo Magic and the Flying D

 
All trademarks and copyrights are the property of their respective owners.

Other Directory Sites: SeekWonder | Directory Owners Forum

GuideSMACK