UNPKG

playcanvas

Version:

PlayCanvas WebGL game engine

39 lines (37 loc) 1.07 kB
/** * A {@link ElementComponent} that contains child {@link ElementComponent}s. * * @type {string} * @category User Interface */ var ELEMENTTYPE_GROUP = 'group'; /** * A {@link ElementComponent} that displays an image. * * @type {string} * @category User Interface */ var ELEMENTTYPE_IMAGE = 'image'; /** * A {@link ElementComponent} that displays text. * * @type {string} * @category User Interface */ var ELEMENTTYPE_TEXT = 'text'; /** * Fit the content exactly to Element's bounding box. * * @type {string} * @category User Interface */ var FITMODE_STRETCH = 'stretch'; /** * Fit the content within the Element's bounding box while preserving its Aspect Ratio. * * @type {string} * @category User Interface */ var FITMODE_CONTAIN = 'contain'; /** * Fit the content to cover the entire Element's bounding box while preserving its Aspect Ratio. * * @type {string} * @category User Interface */ var FITMODE_COVER = 'cover'; export { ELEMENTTYPE_GROUP, ELEMENTTYPE_IMAGE, ELEMENTTYPE_TEXT, FITMODE_CONTAIN, FITMODE_COVER, FITMODE_STRETCH };