Difference between revisions of "dia diagram editor notes"
From thelinuxwiki
(Created page with " ==adding new shapes== [http://dia-installer.de/howto/create_shape/index.html.en#fig_png_export_options How to add a new shape to Dia] '''Adding a shape to a sheet''' Once ...") |
Latest revision as of 15:00, 28 November 2017
adding new shapes
Adding a shape to a sheet
Once you have created a shape, you can add it to a sheet.
Select File → Sheets and Objects from the menu to open the Sheets and Objects dialog
issue - shape icons are cropped
root cause - size of the image it too large. can there be a separate icon/thumbnail image?
example shape SVG file
A typical shape file may look something like this:
connections for linking other objects are set in the connections section
<?xml version="1.0"?> <shape xmlns="http://www.daa.com.au/~james/dia-shape-ns" xmlns:svg="http://www.w3.org/2000/svg"> <name>Circuit with identifiers - NPN Transistor</name> <icon>npn.xpm</icon> <connections> <point x="0" y="0"/> <point x="6" y="-4"/> <point x="6" y="4"/> </connections> <aspectratio type="fixed"/> <textbox x1="4" y1="-3" x2="12" y2="3" /> <svg:svg> <svg:line x1="0" y1="0" x2="3" y2="0" /> <svg:line x1="3" y1="-3" x2="3" y2="3" /> <svg:line x1="3" y1="-2" x2="6" y2="-4" /> <svg:line x1="3" y1="2" x2="6" y2="4" /> <svg:polyline points="5,4 6,4 5.6154,3.0769" /> </svg:svg> </shape>