function CroppingConnectionDocking(elementRegistry, graphicsFactory) {
  this._elementRegistry = elementRegistry;
  this._graphicsFactory = graphicsFactory;
}
A {@link ConnectionDocking} that crops connection waypoints based on
the path(s) of the connection source and target.

@param {ElementRegistry} elementRegistry
@param {GraphicsFactory} graphicsFactory