/
HorizontalOrigin.js
49 lines (45 loc) · 1.24 KB
/
HorizontalOrigin.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
define([
'../Core/freezeObject'
], function(
freezeObject) {
'use strict';
/**
* 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>
*
* @exports HorizontalOrigin
*
* @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
};
return freezeObject(HorizontalOrigin);
});