From 3e5d484ced2f21c0ca0f72d385bc04e29ca921d2 Mon Sep 17 00:00:00 2001 From: Reinder Nijhoff Date: Mon, 13 May 2024 10:30:14 +0200 Subject: [PATCH] Update FastImageSequence.ts --- src/lib/FastImageSequence.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/FastImageSequence.ts b/src/lib/FastImageSequence.ts index 5ec5212..f4c2499 100644 --- a/src/lib/FastImageSequence.ts +++ b/src/lib/FastImageSequence.ts @@ -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} 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) { this.options = {...this.options, ...options};