I am looking for a way to improve dependency pathfinding between events. Found that I can specify a pathFinderConfig but don't know the object format.
Doc: https://www.bryntum.com/docs/gantt/api/Gantt/feature/Dependencies#config-pathFinderConfig
I am looking for a way to improve dependency pathfinding between events. Found that I can specify a pathFinderConfig but don't know the object format.
Doc: https://www.bryntum.com/docs/gantt/api/Gantt/feature/Dependencies#config-pathFinderConfig
Hello.
I'm afraid you cannot achieve this result customizing the path finder. Path finder produces pairs of points which make this angular line from one box to another, those points are used for polyline element points
attribute. This class is private, but you can still see list of configs here: https://bryntum.com/docs/gantt/api/Scheduler/util/RectangularPathFinder if you toggle show -> show private members
checkbox in the header.
There is no public way to replace the path finder either. So if you really need this feature implemented, you have to work with undocumented APIs and our source code. Start with Dependencies#drawLine
method, likely you need to override it to draw different type of line. Next you need to extend the RectangularPathFinder and customize findPath
method, its output is used as a 3rd argument for the drawLine
call. These two should give you enough control to manage line appearance.
I should also note there has to be a single direct child of the <svg>
element that makes this line. It is related to the way we cache lines and clean them.
Also I should note there is an option to hire us to implement this feature for you. If you're interested, please contact sales at bryntum.com.