Browse Source

Docs: Added missing documentation for private helpers.

Aleksander Nowodzinski 8 năm trước cách đây
mục cha
commit
ba74279bb9
1 tập tin đã thay đổi với 12 bổ sung0 xóa
  1. 12 0
      packages/ckeditor5-ui/src/panel/balloon/balloonpanelview.js

+ 12 - 0
packages/ckeditor5-ui/src/panel/balloon/balloonpanelview.js

@@ -623,10 +623,22 @@ BalloonPanelView.defaultPositions = {
 	} ),
 };
 
+// Returns the top coordinate for positions starting with `north*`.
+//
+// @private
+// @param {utils/dom/rect~Rect} targetRect A rect of the target.
+// @param {utils/dom/rect~Rect} elementRect A rect of the balloon.
+// @returns {Number}
 function getNorthTop( targetRect, balloonRect ) {
 	return targetRect.top - balloonRect.height - BalloonPanelView.arrowVerticalOffset;
 }
 
+// Returns the top coordinate for positions starting with `south*`.
+//
+// @private
+// @param {utils/dom/rect~Rect} targetRect A rect of the target.
+// @param {utils/dom/rect~Rect} elementRect A rect of the balloon.
+// @returns {Number}
 function getSouthTop( targetRect ) {
 	return targetRect.bottom + BalloonPanelView.arrowVerticalOffset;
 }