You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
961 B
JavaScript
42 lines
961 B
JavaScript
/**
|
|
* The horizontal location of an origin relative to an object, e.g., a {@link Billboard}
|
|
* or {@link Label}. For example, setting the horizontal origin to <code>LEFT</code>
|
|
* or <code>RIGHT</code> will display a billboard to the left or right (in screen space)
|
|
* of the anchor position.
|
|
* <br /><br />
|
|
* <div align='center'>
|
|
* <img src='Images/Billboard.setHorizontalOrigin.png' width='648' height='196' /><br />
|
|
* </div>
|
|
*
|
|
* @enum {Number}
|
|
*
|
|
* @see Billboard#horizontalOrigin
|
|
* @see Label#horizontalOrigin
|
|
*/
|
|
var HorizontalOrigin = {
|
|
/**
|
|
* The origin is at the horizontal center of the object.
|
|
*
|
|
* @type {Number}
|
|
* @constant
|
|
*/
|
|
CENTER: 0,
|
|
|
|
/**
|
|
* The origin is on the left side of the object.
|
|
*
|
|
* @type {Number}
|
|
* @constant
|
|
*/
|
|
LEFT: 1,
|
|
|
|
/**
|
|
* The origin is on the right side of the object.
|
|
*
|
|
* @type {Number}
|
|
* @constant
|
|
*/
|
|
RIGHT: -1,
|
|
};
|
|
export default Object.freeze(HorizontalOrigin);
|