HorizontalOrigin.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*global define*/
  2. define([
  3. '../Core/freezeObject'
  4. ], function(
  5. freezeObject) {
  6. "use strict";
  7. /**
  8. * The horizontal location of an origin relative to an object, e.g., a {@link Billboard}.
  9. * For example, the horizontal origin is used to display a billboard to the left or right (in
  10. * screen space) of the actual position.
  11. *
  12. * @namespace
  13. * @alias HorizontalOrigin
  14. *
  15. * @see Billboard#horizontalOrigin
  16. */
  17. var HorizontalOrigin = {
  18. /**
  19. * The origin is at the horizontal center of the object.
  20. *
  21. * @type {Number}
  22. * @constant
  23. */
  24. CENTER : 0,
  25. /**
  26. * The origin is on the left side of the object.
  27. *
  28. * @type {Number}
  29. * @constant
  30. */
  31. LEFT : 1,
  32. /**
  33. * The origin is on the right side of the object.
  34. *
  35. * @type {Number}
  36. * @constant
  37. */
  38. RIGHT : -1
  39. };
  40. return freezeObject(HorizontalOrigin);
  41. });