PositioningFunction
Parameters
elementRect: RectThe rect of the element to be positioned.
targetRect: RectThe rect of the target the element (its rect) is relatively positioned to.
viewportRect: RectThe rect of the visual browser viewport.
limiterRect?: Rect
Returns
DomPositioningFunctionResult | nullWhen the function returns
null, it will not be considered bygetOptimalPosition.