Jelajahi Sumber

Docs: Fixed docs errors in the Rect class.

Aleksander Nowodzinski 8 tahun lalu
induk
melakukan
ebd738f38d
1 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 3 2
      packages/ckeditor5-utils/src/dom/rect.js

+ 3 - 2
packages/ckeditor5-utils/src/dom/rect.js

@@ -250,7 +250,7 @@ export default class Rect {
 	 * Checks if all properties ({@link #top}, {@link #left}, {@link #right},
 	 * {@link #bottom}, {@link #width} and {@link #height}) are the same as in the other `Rect`.
 	 *
-	 * @param {Rect} rect A `Rect` instance to compare with.
+	 * @param {module:utils/dom/rect~Rect} rect A `Rect` instance to compare with.
 	 * @returns {Boolean} `true` when Rects are equal. `false` otherwise.
 	 */
 	isEqual( anotherRect ) {
@@ -340,7 +340,8 @@ export default class Rect {
 	 * Excludes scrollbars and CSS borders from the `Rect`.
 	 *
 	 * * Borders are removed when {@link #_source} is `HTMLElement`.
-	 * * Scrollbars are excluded from `HTMLElements` and {@link #getViewportRect viewport rects}.
+	 * * Scrollbars are excluded from `HTMLElements` and
+	 * {@link module:utils/dom/rect~Rect.getViewportRect viewport rects}.
 	 *
 	 * @private
 	 */