LabelStyle.js 509 B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * Describes how to draw a label.
  3. *
  4. * @enum {number}
  5. *
  6. * @see Label#style
  7. */
  8. const LabelStyle = {
  9. /**
  10. * Fill the text of the label, but do not outline.
  11. *
  12. * @type {number}
  13. * @constant
  14. */
  15. FILL: 0,
  16. /**
  17. * Outline the text of the label, but do not fill.
  18. *
  19. * @type {number}
  20. * @constant
  21. */
  22. OUTLINE: 1,
  23. /**
  24. * Fill and outline the text of the label.
  25. *
  26. * @type {number}
  27. * @constant
  28. */
  29. FILL_AND_OUTLINE: 2,
  30. };
  31. export default Object.freeze(LabelStyle);