CenterContentOptions
CenterContentOptions =
object
Options for a content centering operation.
Properties
animationDuration?
optionalanimationDuration:number
How long, in milliseconds, the animation should take to run.
doNotAnimate?
optionaldoNotAnimate:boolean
If true, don't animate while centering. Defaults to false, ie. the operation will be animated.
horizontal?
optionalhorizontal:boolean
True by default. Indicates the content should be centered in the X axis.
onComplete()?
optionalonComplete: (p) =>any
Optional function to call on operation complete.
Parameters
p
Returns
any
vertical?
optionalvertical:boolean
True by default. Indicates the content should be centered in the Y axis.
zoom?
optionalzoom:number
Zoom level to set, optional