Skip to main content

CenterContentOptions

CenterContentOptions = object

Options for a content centering operation.

Properties

animationDuration?

optional animationDuration: number

How long, in milliseconds, the animation should take to run.


doNotAnimate?

optional doNotAnimate: boolean

If true, don't animate while centering. Defaults to false, ie. the operation will be animated.


horizontal?

optional horizontal: boolean

True by default. Indicates the content should be centered in the X axis.


onComplete()?

optional onComplete: (p) => any

Optional function to call on operation complete.

Parameters

p

PointXY

Returns

any


vertical?

optional vertical: boolean

True by default. Indicates the content should be centered in the Y axis.


zoom?

optional zoom: number

Zoom level to set, optional