PIXI.AccessibilityManager
class AccessibilityManager
The Accessibility manager recreates the ability to tab and have content read by screen readers. This is very important as it can possibly help people with disabilities access PixiJS content.
A DisplayObject can be made accessible just like it can be made interactive. This manager will map the events as if the mouse was being used, minimizing the effort required to implement.
An instance of this class is automatically created by default, and can be found at renderer.plugins.accessibility
Constructor
new PIXI.AccessibilityManager(renderer: PIXI.CanvasRenderer | PIXI.Renderer) → {}
Name | Type | Description |
---|---|---|
renderer | PIXI.CanvasRenderer | PIXI.Renderer |
A reference to the current renderer |
Summary
Properties from AccessibilityManager
boolean |
Setting this to true will visually show the divs. |
boolean |
|
boolean |
|
PIXI.CanvasRenderer | PIXI.Renderer |
|
Methods from AccessibilityManager
void |
|
void |
Destroys the accessibility manager |
void |
|
Public Properties
debug: boolean = false
Setting this to true will visually show the divs.
isActive: boolean
Value of true
if accessibility is currently active and accessibility layers are showing.
isMobileAccessibility: boolean
Value of true
if accessibility is enabled for touch devices.
renderer: PIXI.CanvasRenderer | PIXI.Renderer
The renderer this accessibility manager works for.
Public Methods
capHitArea(hitArea: PIXI.Rectangle) → {void}
Adjust the hit area based on the bounds of a display object
Name | Type | Description |
---|---|---|
hitArea | PIXI.Rectangle |
Bounds of the child |
Type | Description |
---|---|
void |
destroy() → {void}
Destroys the accessibility manager
Type | Description |
---|---|
void |
updateDebugHTML(div: HTMLElement) → {void}
private function that will visually add the information to the accessability div
Name | Type | Description |
---|---|---|
div | HTMLElement |
Type | Description |
---|---|
void |