Blazor-Diagrams / Blazor.Diagrams

A fully customizable and extensible all-purpose diagrams library for Blazor
https://blazor-diagrams.zhaytam.com
MIT License
919 stars 176 forks source link

How to Create Arrow Link on Target #307

Closed anlugifa closed 1 year ago

anlugifa commented 1 year ago

After LinkType.LineWithArrowToTarget was removed how to create a link with an arrow on target port?

anlugifa commented 1 year ago

This is how I achieved the result:

var options = new DiagramOptions
                  {
                      Links = new DiagramLinkOptions
                      {                    
                          Factory = (Diagram diagram, PortModel sourcePort) => new LinkModel(sourcePort)
                          {
                              TargetMarker = LinkMarker.Arrow
                          }
                      }                    
                  };
anlugifa commented 1 year ago

Solutions Code posted before.