AlignContentOptions
Options for aligning content in the UI.
Properties
alignX?
optionalalignX:CanvasAlignmentX
How to align the content in the X axis - left, right or center
alignY?
optionalalignY:CanvasAlignmentY
How to align the content in the Y axis - top, bottom or center
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.
onComplete()?
optionalonComplete: (p) =>any
Optional function to call on operation complete.
Parameters
p
Returns
any
padding?
optionalpadding:number
How much padding to leave around the content.
zoom?
optionalzoom:number
Zoom to set prior to alignment