Namespace: position

.utils. position

Utility functions to position an element relative to its parent

Methods

staticGOWN.utils.position.bottom(elem, parent)

Put an element to the bottom of its parent
Name Type Description
elem PIXI.Container The element
parent PIXI.Container optional The parent

staticGOWN.utils.position.center(elem, parent)

Center an element on the parent
Name Type Description
elem PIXI.Container The element
parent PIXI.Container optional The parent

staticGOWN.utils.position.centerHorizontal(elem, parent)

Center an element on the parent horizontally
Name Type Description
elem PIXI.Container The element
parent PIXI.Container optional The parent

staticGOWN.utils.position.centerVertical(elem, parent)

Center an element on the parent vertically
Name Type Description
elem PIXI.Container The element
parent PIXI.Container optional The parent

staticGOWN.utils.position.right(elem, parent)

Put an element to the right of its parent.
Name Type Description
elem PIXI.Container The element
parent PIXI.Container optional The parent