Skip to content

Interface: AlignmentOptions ​

Defined in: src/display/alignment/IAlignmentStrategy.ts:35

Alignment options

Extended by ​

Properties ​

maintainAspectRatio? ​

ts
optional maintainAspectRatio?: boolean;

Defined in: src/display/alignment/IAlignmentStrategy.ts:37

Whether to maintain aspect ratio


anchor? ​

ts
optional anchor?: object;

Defined in: src/display/alignment/IAlignmentStrategy.ts:39

Anchor point for alignment (0-1 for each axis)

x ​

ts
x: number;

y ​

ts
y: number;

allowRotation? ​

ts
optional allowRotation?: boolean;

Defined in: src/display/alignment/IAlignmentStrategy.ts:41

Whether to allow rotation for better alignment


maxScale? ​

ts
optional maxScale?: number;

Defined in: src/display/alignment/IAlignmentStrategy.ts:43

Maximum scale factor to prevent excessive upscaling


minScale? ​

ts
optional minScale?: number;

Defined in: src/display/alignment/IAlignmentStrategy.ts:45

Minimum scale factor to prevent excessive downscaling

Released under the MIT License.