Skip to content

Interface: AlignmentManagerOptions ​

Defined in: src/display/alignment/AlignmentManager.ts:26

Alignment options

Extends ​

Properties ​

strategy? ​

ts
optional strategy?: AlignmentStrategyType;

Defined in: src/display/alignment/AlignmentManager.ts:28

Strategy to use for alignment


enableCache? ​

ts
optional enableCache?: boolean;

Defined in: src/display/alignment/AlignmentManager.ts:30

Whether to cache alignment results


maintainAspectRatio? ​

ts
optional maintainAspectRatio?: boolean;

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

Whether to maintain aspect ratio

Inherited from ​

AlignmentOptions.maintainAspectRatio


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;

Inherited from ​

AlignmentOptions.anchor


allowRotation? ​

ts
optional allowRotation?: boolean;

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

Whether to allow rotation for better alignment

Inherited from ​

AlignmentOptions.allowRotation


maxScale? ​

ts
optional maxScale?: number;

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

Maximum scale factor to prevent excessive upscaling

Inherited from ​

AlignmentOptions.maxScale


minScale? ​

ts
optional minScale?: number;

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

Minimum scale factor to prevent excessive downscaling

Inherited from ​

AlignmentOptions.minScale

Released under the MIT License.