Source: accessibility/accessibleTarget.js

accessibility/accessibleTarget.js

  1. /**
  2. * Default property values of accessible objects
  3. * used by {@link PIXI.accessibility.AccessibilityManager}.
  4. *
  5. * @function accessibleTarget
  6. * @memberof PIXI.accessibility
  7. * @example
  8. * function MyObject() {}
  9. *
  10. * Object.assign(
  11. * MyObject.prototype,
  12. * PIXI.accessibility.accessibleTarget
  13. * );
  14. */
  15. export default {
  16. /**
  17. * Flag for if the object is accessible. If true AccessibilityManager will overlay a
  18. * shadow div with attributes set
  19. *
  20. * @member {boolean}
  21. */
  22. accessible: false,
  23. /**
  24. * Sets the title attribute of the shadow div
  25. * If accessibleTitle AND accessibleHint has not been this will default to 'displayObject [tabIndex]'
  26. *
  27. * @member {string}
  28. */
  29. accessibleTitle: null,
  30. /**
  31. * Sets the aria-label attribute of the shadow div
  32. *
  33. * @member {string}
  34. */
  35. accessibleHint: null,
  36. /**
  37. * @todo Needs docs.
  38. */
  39. tabIndex: 0,
  40. /**
  41. * @todo Needs docs.
  42. */
  43. _accessibleActive: false,
  44. /**
  45. * @todo Needs docs.
  46. */
  47. _accessibleDiv: false,
  48. };