VerticalOrigin.js 1011 B

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