projectstorm / react-diagrams

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

Editable link labels #317

Open abhiravredox opened 5 years ago

abhiravredox commented 5 years ago

A lot of use cases for a diagram library involve the possibility of adding an editable text field to link. For example, https://live.yworks.com/demos/complete/bpmn/index.html and https://demo.bpmn.io/new Currently, this feature isn't available in projectstorm. I would like to take up and implement this.

nadeesh-garg commented 5 years ago

Any updates on this feature?

abhiravredox commented 5 years ago

I haven't been assigned this issue so haven't been able to work on the same.

dylanvorster commented 5 years ago

You can do this now by implementing a custom Label

smnodame commented 5 years ago

@dylanvorster How to use a custom label? Do you have the example code ? My usecase is to show remove button instead of label when the mouse is hover on the link

Soarex16 commented 4 years ago

@dylanvorster, I have an example code, so I can try to make a demo

flieks commented 4 years ago

@Soarex16 would you be willing to share some code snippet ;)

I just would want to have different label background colors, and possibly extra icon buttons on the link in future

Soarex16 commented 4 years ago

@flieks yes, I want to write example, forgot about it. Thanks for reminding :)

Soarex16 commented 4 years ago

I think, this issue should be closed.