Browse Source

Docs: Added missing API docs for the image resizer state.

Marek Lewandowski 6 năm trước cách đây
mục cha
commit
5e33432288

+ 7 - 7
packages/ckeditor5-widget/src/widgetresize/resizerstate.js

@@ -22,21 +22,21 @@ export default class ResizeState {
 	 */
 	 */
 	constructor( options ) {
 	constructor( options ) {
 		/**
 		/**
-		 * TODO
+		 * The original width (pixels) of the resized object when the resize process was started.
 		 *
 		 *
 		 * @readonly
 		 * @readonly
 		 * @member {Number} #originalWidth
 		 * @member {Number} #originalWidth
 		 */
 		 */
 
 
 		/**
 		/**
-		 * TODO
+		 * The original height (pixels) of the resized object when the resize process was started.
 		 *
 		 *
 		 * @readonly
 		 * @readonly
 		 * @member {Number} #originalHeight
 		 * @member {Number} #originalHeight
 		 */
 		 */
 
 
 		/**
 		/**
-		 * TODO
+		 * The original width (percents) of the resized object when the resize process was started.
 		 *
 		 *
 		 * @readonly
 		 * @readonly
 		 * @member {Number} #originalWidthPercents
 		 * @member {Number} #originalWidthPercents
@@ -53,7 +53,7 @@ export default class ResizeState {
 		this.set( 'activeHandlePosition', null );
 		this.set( 'activeHandlePosition', null );
 
 
 		/**
 		/**
-		 * TODO
+		 * The width (percents) proposed, but not committed yet, in the current resize process.
 		 *
 		 *
 		 * @readonly
 		 * @readonly
 		 * @observable
 		 * @observable
@@ -62,7 +62,7 @@ export default class ResizeState {
 		this.set( 'proposedWidthPercents', null );
 		this.set( 'proposedWidthPercents', null );
 
 
 		/**
 		/**
-		 * TODO
+		 * The width (pixels) proposed, but not committed yet, in the current resize process.
 		 *
 		 *
 		 * @readonly
 		 * @readonly
 		 * @observable
 		 * @observable
@@ -71,7 +71,7 @@ export default class ResizeState {
 		this.set( 'proposedWidth', null );
 		this.set( 'proposedWidth', null );
 
 
 		/**
 		/**
-		 * TODO
+		 * The height (pixels) proposed, but not committed yet, in the current resize process.
 		 *
 		 *
 		 * @readonly
 		 * @readonly
 		 * @observable
 		 * @observable
@@ -83,7 +83,7 @@ export default class ResizeState {
 		this.set( 'proposedHandleHostHeight', null );
 		this.set( 'proposedHandleHostHeight', null );
 
 
 		/**
 		/**
-		 * TODO
+		 * A width to height ratio of the resized image.
 		 *
 		 *
 		 * @readonly
 		 * @readonly
 		 * @member {Number} #aspectRatio
 		 * @member {Number} #aspectRatio