projectstorm / react-diagrams

a super simple, no-nonsense diagramming library written in react that just works
https://projectstorm.cloud/react-diagrams
MIT License
8.45k stars 1.16k forks source link

Adding a new point into a link in DefaultLinkWindget calls the 'addPoint' method, not the 'point' #938

Open ToTheHit opened 2 years ago

ToTheHit commented 2 years ago

This code uses only PointModel. So if users want to use other custom point with DefaultLinkWindget they can't do it without creating some "CustomLinkWidget". https://github.com/projectstorm/react-diagrams/blob/3060496db0709c37202bca948031cd02ebcc73a7/packages/react-diagrams-defaults/src/link/DefaultLinkWidget.tsx#L61-L65