export const ALIGN_AUTO = 'auto' ; export const ALIGN_START = 'start' ; export const ALIGN_CENTER = 'center' ; export const ALIGN_END = 'end' ; export type DIRECTION = 'horizontal' | 'vertical' ; export const DIRECTION_VERTICAL = 'vertical' ; export const DIRECTION_HORIZONTAL = 'horizontal' ; export type SCROLL_CHANGE_REASON = 'observed' | 'requested' ; export const SCROLL_CHANGE_OBSERVED = 'observed' ; export const SCROLL_CHANGE_REQUESTED = 'requested' ; export const scrollProp = { [ DIRECTION_VERTICAL ] : 'scrollTop' , [ DIRECTION_HORIZONTAL ] : 'scrollLeft' , } ; export const sizeProp = { [ DIRECTION_VERTICAL ] : 'height' , [ DIRECTION_HORIZONTAL ] : 'width' , } ; export const positionProp = { [ DIRECTION_VERTICAL ] : 'top' , [ DIRECTION_HORIZONTAL ] : 'left' , } ;