playcanvas
Version:
PlayCanvas WebGL game engine
33 lines (31 loc) • 975 B
JavaScript
/**
* A {@link ElementComponent} that contains child {@link ElementComponent}s.
*
* @category User Interface
*/ const ELEMENTTYPE_GROUP = 'group';
/**
* A {@link ElementComponent} that displays an image.
*
* @category User Interface
*/ const ELEMENTTYPE_IMAGE = 'image';
/**
* A {@link ElementComponent} that displays text.
*
* @category User Interface
*/ const ELEMENTTYPE_TEXT = 'text';
/**
* Fit the content exactly to Element's bounding box.
*
* @category User Interface
*/ const FITMODE_STRETCH = 'stretch';
/**
* Fit the content within the Element's bounding box while preserving its Aspect Ratio.
*
* @category User Interface
*/ const FITMODE_CONTAIN = 'contain';
/**
* Fit the content to cover the entire Element's bounding box while preserving its Aspect Ratio.
*
* @category User Interface
*/ const FITMODE_COVER = 'cover';
export { ELEMENTTYPE_GROUP, ELEMENTTYPE_IMAGE, ELEMENTTYPE_TEXT, FITMODE_CONTAIN, FITMODE_COVER, FITMODE_STRETCH };