Re: How to create own shapes with connections?



Hello, you must use this code

<connections>
    <point x="0.0" y="0.4"/>
    <point x="1.4" y="0.4"/>
</connections>

for example my own shape with connection:

<?xml version="1.0"?>
<shape xmlns="http://www.daa.com.au/~james/dia-shape-ns"; xmlns:svg="http://www.w3.org/2000/svg";>
<name>Elemento-01.01.01.001.1</name>
<description>Контакт нормально-разомкнутый ГОСТ 2.755-87</description>
<icon>Elemento-01.01.01.001.1.png</icon>
<connections>
    <point x="0.0" y="0.4"/>
    <point x="1.4" y="0.4"/>
</connections>
<aspectratio type="fixed"/>
<default-width>1.4cm</default-width>
<default-height>0.4cm</default-height>
<textbox x1="0.0" y1="-1.3" x2="1.4" y2="-0.3" resize="no"/>
<svg:svg>
<svg:g style="stroke-linecap:round">
    <svg:line x1="0.0" y1="0.4" x2="0.4" y2="0.4"/>
    <svg:line x1="0.4" y1="0.4" x2="1.0" y2="0.0"/>
    <svg:line x1="1.0" y1="0.4" x2="1.4" y2="0.4"/>
<svg:rect x="0.0" y="0.0" width="1.4" height="0.4" style="stroke:none; fill:none"/>
</svg:g>
</svg:svg>
</shape>


06.04.2017 16:47, zweiund40 пишет:
Hi. I'm trying to create a new shape with connection points and it's driving me crazy. It doesn't work. But on the other hand there are many other shapes per default in dia and all of them are provided with connection points. I wonder why all my efforts fail. There must be a way to do it. But how? Is there anyone who knows how it works?

Best wishes


_______________________________________________
dia-list mailing list
dia-list gnome org
https://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia




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