New shapes are wrong zoom
- From: Paul Kroculick <pdkrocul yahoo com>
- To: dia-list gnome org
- Subject: New shapes are wrong zoom
- Date: Wed, 8 Feb 2006 10:42:50 -0800 (PST)
Hello,
I created some custom shapes, and have some drawings
using these shapes. When I try to add a new shape to
a drawing (by dragging it from a sheet) it is
appearing at a zoom factor of 6.
Example:
Shape:
<?xml version="1.0"?>
<shape
xmlns="http://www.daa.com.au/~james/dia-shape-ns"
xmlns:svg="http://www.w3.org/2000/svg">
<name>SAMPLE_090</name>
<icon>SAMPLE_090_B.png</icon>
<aspectratio type="fixed"/>
<ext_attributes>
<ext_attribute name="cellId" description="Cell ID"
type="string"/>
<ext_attribute name="deviceId" description="Device
ID" type="string"/>
<ext_attribute name="href" description="Weblink"
type="string"/>
</ext_attributes>
<svg:svg width="0.000000" height="0.000000"
viewBox="0 0 0.000000 0.000000">
<svg:line x1="0.220000" y1="0.900000" x2="0.220000"
y2="0.000000" style="stroke:#0000FF;
stroke-width:0.01" />
<svg:line x1="0.195000" y1="0.900000" x2="0.195000"
y2="0.000000" style="stroke:#0000FF;
stroke-width:0.01" />
<svg:line x1="0.110000" y1="0.900000" x2="0.110000"
y2="0.000000" style="stroke:#0000FF;
stroke-width:0.01" />
<svg:line x1="0.025000" y1="0.900000" x2="0.025000"
y2="0.000000" style="stroke:#0000FF;
stroke-width:0.01" />
<svg:line x1="0.000000" y1="0.900000" x2="0.000000"
y2="0.000000" style="stroke:#0000FF;
stroke-width:0.01" />
<svg:line x1="0.220000" y1="0.900000" x2="0.000000"
y2="0.900000" style="stroke:#0000FF;
stroke-width:0.01" />
<svg:line x1="0.220000" y1="0.000000" x2="0.000000"
y2="0.000000" style="stroke:#0000FF;
stroke-width:0.01" />
</svg:svg>
</shape>
When I drag this to a open drawing, it results in:
<dia:object type="SAMPLE_090" version="0"
id="O1671">
<dia:attribute name="obj_pos">
<dia:point val="35.1258,96.8034"/>
</dia:attribute>
<dia:attribute name="obj_bb">
<dia:rectangle
val="35.1253,96.8029;36.2485,101.395"/>
</dia:attribute>
<dia:attribute name="elem_corner">
<dia:point val="35.1258,96.8034"/>
</dia:attribute>
<dia:attribute name="elem_width">
<dia:real val="1.1222222222222225"/>
</dia:attribute>
<dia:attribute name="elem_height">
<dia:real val="4.5909090909090917"/>
</dia:attribute>
<dia:attribute name="line_width">
<dia:real val="0.10000000000000001"/>
</dia:attribute>
<dia:attribute name="line_colour">
<dia:color val="#000000"/>
</dia:attribute>
<dia:attribute name="fill_colour">
<dia:color val="#ffffff"/>
</dia:attribute>
<dia:attribute name="show_background">
<dia:boolean val="true"/>
</dia:attribute>
<dia:attribute name="line_style">
<dia:enum val="0"/>
<dia:real val="1"/>
</dia:attribute>
<dia:attribute name="flip_horizontal">
<dia:boolean val="false"/>
</dia:attribute>
<dia:attribute name="flip_vertical">
<dia:boolean val="false"/>
</dia:attribute>
<dia:attribute name="custom:cellId">
<dia:string>#TEST1#</dia:string>
</dia:attribute>
<dia:attribute name="custom:deviceId">
<dia:string>#TEST1#</dia:string>
</dia:attribute>
<dia:attribute name="custom:href">
<dia:string>##</dia:string>
</dia:attribute>
</dia:object>
Notice the elem_width and elem_height are 6x the shape
size. Does anyone know why this is?
Thanks,
Paul
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]