Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • IMediaShrinkReflowPluginOptions

Index

Properties

Optional activationThreshold

activationThreshold?: number

A value between 0 and 1. Images with height larger than this factor * pageHeight will shrink.

For example an if we have a pageHeight of 400px and activationThreshold = 0.5, all images with a height of 200px or more will shrink.

double
default

0.15

Optional maxShrinkFactor

maxShrinkFactor?: number

A value between 0 and 1. This number dictates how much the image can shrink if its height exceeds the activation threshold. A value of 1 will shrink the image down to the threshold height.

For example, if we have a pageHeight of 400px and activationThreshold = 0.5, Images with a height over 200px will shrink. Setting maxShrinkFactor to 0.5 will shrink an image with a height of 280px to 240px

double
default

0.7

Optional penaltyAtMaxShrinkage

penaltyAtMaxShrinkage?: number

The penalty for shrinking the image down to the maxShrinkFactor. The real value is interpolated between this value and 0.

int
default

10

Generated using TypeDoc