packageDocumentation module public export enum Direction { Left = 1 , Top , Right , Bottom } internal export class DirectionHelpers { /** Class name of [[Direction.Left]] */ public static readonly LEFT_CLASS_NAME = "components-direction-left" ; /** Class name of [[Direction.Top]] */ public static readonly TOP_CLASS_NAME = "components-direction-top" ; /** Class name of [[Direction.Right]] */ public static readonly RIGHT_CLASS_NAME = "components-direction-right" ; /** Class name of [[Direction.Bottom]] */ public static readonly BOTTOM_CLASS_NAME = "components-direction-bottom" ; returns public static getCssClassName ( direction ) { switch ( direction ) { case Direction . Left : return DirectionHelpers . LEFT_CLASS_NAME ; case Direction . Top : return DirectionHelpers . TOP_CLASS_NAME ; case Direction . Right : return DirectionHelpers . RIGHT_CLASS_NAME ; case Direction . Bottom : return DirectionHelpers . BOTTOM_CLASS_NAME ; } } returns public static getOrthogonalDirection ( direction ) { switch ( direction ) { case Direction . Left : case Direction . Right : return OrthogonalDirection . Horizontal ; case Direction . Top : case Direction . Bottom : return OrthogonalDirection . Vertical ; } } } alpha export enum OrthogonalDirection { Vertical , Horizontal } internal export class OrthogonalDirectionHelpers { /** Class name of [[OrthogonalDirection.Vertical]] */ public static readonly VERTICAL_CLASS_NAME = "components-vertical" ; /** Class name of [[OrthogonalDirection.Horizontal]] */ public static readonly HORIZONTAL_CLASS_NAME = "components-horizontal" ; returns public static getCssClassName ( direction ) { switch ( direction ) { case OrthogonalDirection . Vertical : return OrthogonalDirectionHelpers . VERTICAL_CLASS_NAME ; case OrthogonalDirection . Horizontal : return OrthogonalDirectionHelpers . HORIZONTAL_CLASS_NAME ; } } returns public static inverse ( direction ) { switch ( direction ) { case OrthogonalDirection . Vertical : return OrthogonalDirection . Horizontal ; case OrthogonalDirection . Horizontal : return OrthogonalDirection . Vertical ; } } }