Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Shape decorations (Read 2899 times)
lyudmil
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Jan 9th, 2009
Shape decorations
Jun 29th, 2009 at 9:23pm
Print Post  
Hi,
I was trying to create some new shapes with filled shape decoration inside. In order to create the xml for the .shl file I used one of the new BPMN shapes as an example. The problem is that when I save in xml the "BpmnEndCancel" for example I get the following xml:

<shape id="BpmnEndCancel" fill-mode="Winding">


<outline>



<arc dash-style="Custom" width="-1" x="0" y="0" arc-width="100" arc-height="100" start="0" sweep="360"/>


</outline>


<textarea>



<line dash-style="Custom" width="-1">




<point x="-20" y="100"/>




<point x="140" y="100"/>



</line>



<line dash-style="Custom" width="-1">




<point x="140" y="100"/>




<point x="140" y="140"/>



</line>



<line dash-style="Custom" width="-1">




<point x="140" y="140"/>




<point x="-20" y="140"/>



</line>



<line dash-style="Custom" width="-1">




<point x="-20" y="140"/>




<point x="-20" y="100"/>



</line>


</textarea>


<shape-decorations>



<shape-decoration>




<decorations>





<line dash-style="Custom" width="-1">






<point x="45" y="50"/>






<point x="23" y="28"/>





</line>





<line dash-style="Custom" width="-1">






<point x="23" y="28"/>






<point x="28" y="23"/>





</line>





<line dash-style="Custom" width="-1">






<point x="28" y="23"/>






<point x="50" y="45"/>





</line>





<line dash-style="Custom" width="-1">






<point x="50" y="45"/>






<point x="73" y="23"/>





</line>





<line dash-style="Custom" width="-1">






<point x="73" y="23"/>






<point x="78" y="28"/>





</line>





<line dash-style="Custom" width="-1">






<point x="78" y="28"/>






<point x="55" y="50"/>





</line>





<line dash-style="Custom" width="-1">






<point x="55" y="50"/>






<point x="78" y="73"/>





</line>





<line dash-style="Custom" width="-1">






<point x="78" y="73"/>






<point x="73" y="78"/>





</line>





<line dash-style="Custom" width="-1">






<point x="73" y="78"/>






<point x="50" y="55"/>





</line>





<line dash-style="Custom" width="-1">






<point x="50" y="55"/>






<point x="28" y="78"/>





</line>





<line dash-style="Custom" width="-1">






<point x="28" y="78"/>






<point x="23" y="73"/>





</line>





<line dash-style="Custom" width="-1">






<point x="23" y="73"/>






<point x="45" y="50"/>





</line>




</decorations>




<brush Type="Solid">





<Color>#FF000000</Color>




</brush>




<pen>





<Brush Id="0"/>





<Color>#FF000000</Color>





<DashOffset>0</DashOffset>





<DashStyle>0</DashStyle>





<LineJoint>0</LineJoint>





<MiterLimit>10</MiterLimit>





<Width>0.1</Width>




</pen>




<fill-mode>1</fill-mode>



</shape-decoration>



<shape-decoration>




<decorations>





<arc dash-style="Custom" width="-1" x="0" y="0" arc-width="100" arc-height="100" start="0" sweep="360"/>





<line dash-style="Custom" width="-1">






<point x="100" y="50"/>






<point x="90" y="50"/>





</line>





<arc dash-style="Custom" width="-1" x="10" y="10" arc-width="80" arc-height="80" start="0" sweep="360"/>





<line dash-style="Custom" width="-1">






<point x="90" y="50"/>






<point x="100" y="50"/>





</line>




</decorations>




<brush Type="Solid">





<Color>#FF000000</Color>




</brush>




<pen>





<Brush Id="0"/>





<Color>#FF000000</Color>





<DashOffset>0</DashOffset>





<DashStyle>0</DashStyle>





<LineJoint>0</LineJoint>





<MiterLimit>10</MiterLimit>





<Width>0.1</Width>




</pen>




<fill-mode>0</fill-mode>



</shape-decoration>


</shape-decorations>


<enable-outline>True</enable-outline>

</shape>

When I add this xml to my .shl file the decoration of the shape is not visible. This happens with all the shapes with decoration inside. What am I doing wrong? By the way this BPMN shapes are a great new feature. Thanks for that.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Shape decorations
Reply #1 - Jun 30th, 2009 at 8:04am
Print Post  
Hi,

I can see this shape after loading the library file:


Is that the expected result? Which version of the control are you using?

Stoyan
  
Back to top
 
IP Logged
 
lyudmil
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Jan 9th, 2009
Re: Shape decorations
Reply #2 - Jun 30th, 2009 at 8:29pm
Print Post  
Hi,

First I want to apologize for posting in the wrong thread. I meant Diagramming for ASP.NET. I am using the latest version downloaded from https://www.mindfusion.eu/NetDiagramTrial.zip. The shape that you attached is exactly what I was expecting, but I got just an empty circle. Any ideas will be helpful.

Thanks,
lyudmil
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Shape decorations
Reply #3 - Jul 1st, 2009 at 7:07am
Print Post  
Hi,

The released version of the applet did not have xml serialization implemented for filled decorations. It should work with this version:
https://mindfusion.eu/_temp/applet.zip

Stoyan
  
Back to top
 
IP Logged
 
lyudmil
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Jan 9th, 2009
Re: Shape decorations
Reply #4 - Jul 1st, 2009 at 8:17pm
Print Post  
This works great.

Thanks,
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint