projectstorm / react-diagrams

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

Linebreak in Port Names and Label Names #810

Closed thn80 closed 3 years ago

thn80 commented 3 years ago

Is there a possibility to add line breaks to port names and label names?

let port1 = node1.addOutPort('Out 1\nMy output 1');

I already tried to use \n or <br>, but without success.

thn80 commented 3 years ago

I close the issue, because it was already answered in https://github.com/projectstorm/react-diagrams/issues/263