Broken line algorithm

Please tell me about the algorithm for draw a broken line (calculating vertices)

Hi @GMIKE

could you please provide a bit more context to your question? Which of our libraries does this question relate to? What is your use case? Is there a code snippet you could share? …?

This will help us to answer your question.

Thanks

Without knowing exactly what you’re referring to I assume you mean Manhattan Layout.

I mean calculating these peaks
image

If you can link to a method, I will be very grateful

Hi @GMIKE,

I think you are looking for diagram-js ManhattanLayout.js.

Cheers
Martin