Skip to content

Commit

Permalink
Update FastImageSequence.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
reindernijhoff committed May 13, 2024
1 parent 4d4e9fa commit 3e5d484
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/lib/FastImageSequence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,12 @@ export class FastImageSequence {
}

/**
* Set the size of the image sequence.
* @param options
* Set the size and alignment of the image sequence on the canvas.
*
* @param {Partial<FastImageSequenceSizeOptions>} options - An object containing the size and alignment options.
* @property {string} options.size - How the image should be resized to fit the canvas. It can be either 'contain' or 'cover'.
* @property {number} options.horizontalAlign - The horizontal alignment of the image. It should be a number between 0 and 1.
* @property {number} options.verticalAlign - The vertical alignment of the image. It should be a number between 0 and 1.
*/
public setSize(options: Partial<FastImageSequenceSizeOptions>) {
this.options = {...this.options, ...options};
Expand Down

0 comments on commit 3e5d484

Please sign in to comment.