Interface CenterContentOptions

Options for the centerContent method of the Surface.

interface CenterContentOptions {
    doNotAnimate?: boolean;
    horizontal?: boolean;
    onComplete?: ((p: PointXY) => any);
    vertical?: boolean;
}

Properties

doNotAnimate?: boolean

If true, don't animate while centering. Defaults to false.

horizontal?: boolean

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

onComplete?: ((p: PointXY) => any)

Optional function to call on operation complete (centering may be animated).

vertical?: boolean

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

Version :