Re: How to create own shapes with connections?



Ah ... That's interesting:


http://dia-installer.de/doc/en/custom-shapes-chapter.html


On 07.04.2017 12:23, zweiund40 wrote:

Ok. One step further to a working shape. The next thing I try to do is adding the connection points. I'm curious about it.


Never mind your English. It's totally understandable. I mean I ain't a native speaker too and I think I'm still doing a lot of grammar mistakes.


Thank you so far and best wishes





On 06.04.2017 23:00, Бамсик Потапов wrote:

Ok I find mistake. Sorry for my English. After "path" you can't write style, it must look that

    <svg:path style="fill: #ffffff" d="M 0 0 L 0.25,-0.25 L -0.625,0 L 0.25,0.25 L 0,0z"/> Wrong

    <svg:path  d="M 0 0 L 0.25,-0.25 L -0.625,0 L 0.25,0.25 L 0,0 Z" style="fill: #ffffff"/> Wright
and also use space with command "Z" to close path.

Your working code:
<aspectratio type="fixed"/>
  <svg:svg>
    <svg:path  d="M 0 0 L 0.25,-0.25 L -0.625,0 L 0.25,0.25 L 0,0 Z" style="fill: #ffffff"/>
    <svg:path  d="M 0 0 L 0.25,-0.25 L -0.625,0 L 0.25,0.25 L 0,0 Z" style="fill: none; fill-opacity:0; stroke-width: 0.05; stroke: #000000"/>
    <svg:path  d="M 3.33402 0.0536043 C 1.46323,0.0535795 -0.0533718,1.28468 -0.0534343,2.80336 C -0.0534753,4.32209 1.46316,5.55328 3.33402,5.55326 C 4.10738,5.55289 4.85731,5.33771 5.45918,4.94347 C 6.06034,5.33724 6.80923,5.5524 7.58168,5.55326 C 8.4622,5.55324 9.3081,5.27489 9.94012,4.7772 C 10.5709,5.27388 11.4147,5.55215 12.2934,5.55326 C 13.0694,5.55283 13.8218,5.33608 14.4246,4.93928 C 15.0269,5.33576 15.7785,5.55249 16.5539,5.55326 C 17.4221,5.55277 18.2568,5.28173 18.8859,4.79609 C 19.5141,5.28108 20.3475,5.55207 21.2145,5.55326 C 23.0853,5.55322 24.6018,4.32205 24.6018,2.80336 C 24.6017,1.28472 23.0852,0.0536433 21.2145,0.0536043 C 20.3463,0.0540677 19.5115,0.325108 18.8824,0.810773 C 18.2542,0.325811 17.4208,0.0548251 16.5539,0.0536043 C 15.7779,0.0540377 15.0255,0.270781 14.4227,0.667579 C 13.8204,0.271101 13.0688,0.0543769 12.2934,0.0536043 C 11.4129,0.0536232 10.567,0.331972 9.93493,0.829659 C 9.3042,0.332986 8.4604,0.0547172 7.58168,0.0536043 C 6.80831,0.0539795 6.05838,0.269171 5.45652,0.663419 C 4.85536,0.269636 4.10647,0.0544727 3.33402,0.0536043 Z" style="fill: #ffffff"/>
    <svg:path  d="M 3.33402 0.0536043 C 1.46323,0.0535795 -0.0533718,1.28468 -0.0534343,2.80336 C -0.0534753,4.32209 1.46316,5.55328 3.33402,5.55326 C 4.10738,5.55289 4.85731,5.33771 5.45918,4.94347 C 6.06034,5.33724 6.80923,5.5524 7.58168,5.55326 C 8.4622,5.55324 9.3081,5.27489 9.94012,4.7772 C 10.5709,5.27388 11.4147,5.55215 12.2934,5.55326 C 13.0694,5.55283 13.8218,5.33608 14.4246,4.93928 C 15.0269,5.33576 15.7785,5.55249 16.5539,5.55326 C 17.4221,5.55277 18.2568,5.28173 18.8859,4.79609 C 19.5141,5.28108 20.3475,5.55207 21.2145,5.55326 C 23.0853,5.55322 24.6018,4.32205 24.6018,2.80336 C 24.6017,1.28472 23.0852,0.0536433 21.2145,0.0536043 C 20.3463,0.0540677 19.5115,0.325108 18.8824,0.810773 C 18.2542,0.325811 17.4208,0.0548251 16.5539,0.0536043 C 15.7779,0.0540377 15.0255,0.270781 14.4227,0.667579 C 13.8204,0.271101 13.0688,0.0543769 12.2934,0.0536043 C 11.4129,0.0536232 10.567,0.331972 9.93493,0.829659 C 9.3042,0.332986 8.4604,0.0547172 7.58168,0.0536043 C 6.80831,0.0539795 6.05838,0.269171 5.45652,0.663419 C 4.85536,0.269636 4.10647,0.0544727 3.33402,0.0536043 Z" style="fill: none; fill-opacity:0; stroke-width: 0.0925197; stroke-dasharray: 0.001; stroke: #000000"/>
  </svg:svg>
</shape>




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