SplitDirection.js 716 B

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * The direction to display a primitive or ImageryLayer relative to the {@link Scene#splitPosition}.
  3. *
  4. * @enum {Number}
  5. *
  6. * @see ImageryLayer#splitDirection
  7. * @see Cesium3DTileset#splitDirection
  8. */
  9. const SplitDirection = {
  10. /**
  11. * Display the primitive or ImageryLayer to the left of the {@link Scene#splitPosition}.
  12. *
  13. * @type {Number}
  14. * @constant
  15. */
  16. LEFT: -1.0,
  17. /**
  18. * Always display the primitive or ImageryLayer.
  19. *
  20. * @type {Number}
  21. * @constant
  22. */
  23. NONE: 0.0,
  24. /**
  25. * Display the primitive or ImageryLayer to the right of the {@link Scene#splitPosition}.
  26. *
  27. * @type {Number}
  28. * @constant
  29. */
  30. RIGHT: 1.0,
  31. };
  32. export default Object.freeze(SplitDirection);