joel-wenzel / ng-flowchart

A lightweight Angular Library for building drag and drop flow charts. Chart behavior and steps are customizable. Data can be exported or uploaded in json format.
Apache License 2.0
141 stars 49 forks source link

controlling connections #73

Closed deniskkk closed 1 year ago

deniskkk commented 1 year ago

Is there a way to control if the connection is valid or no? I have studied the code and wanted to override isValidConnectorDropTarget() this method, but its private (ng-flowchart-step.component and ng-flowchart.component). Can you make it protected or public?

michaelmarcuccio commented 1 year ago

I will add an extensibility point to this, not a direct override as there are some parts that should not be overridden like allowing the same connector to be created twice.