Maximum Duration and Aborting of Algorithms
While the two basic approaches to aborting the calculation of a graph layout have not changed, both approaches have received updated names to more accurately represent their usage and offer convenience improvements.
AbortHandler
The AbortHandler has been renamed to LayoutAbortController. The static methods to add or remove an abort controller to or from a graph have been removed. If necessary, a created abort controller can be registered directly with the LayoutGraph using the LayoutGraphContext property layoutAbortController. When starting a layout run via the LayoutExecutor, the run can be controlled via the properties cancelDuration and stopDuration.
Maximum Duration
The maximumDuration property of layout algorithms that support early termination has been renamed to stopDuration to emphasize that it marks the time at which the layout algorithm begins the termination process. The termination itself can take additional time, as the algorithm still has to produce a consistent result. The type of the stopDuration property has been changed from a simple numeric value in a fixed unit (milliseconds) to TimeSpan, which supports specifying the duration in most common units of time.
Behavior Change
The ComponentLayout will no longer apply an abort controller’s stopDuration and cancelDuration to each component in full. Instead, the duration is now automatically split among the components based on their size.