Ir al contenido

AccessibilityMessages

Defined in: diagram/Diagram.ts:151

Message formatters for the diagram’s accessibility features: the canvas aria-label and the off-screen aria-live region announcements (see the Interaction guide’s Accessibility section). All defaults are in English; override any subset via DiagramOptions.accessibilityMessages or diagram.accessibilityMessages = {...} to localize.

Still growing before 1.0.0 — expect additive changes, not removals.

ariaLabel(counts): string

Defined in: diagram/Diagram.ts:155

The canvas aria-label, given the current content/selection counts.

number

number

number

number

string


describePart(part): string

Defined in: diagram/Diagram.ts:153

Short description of a part, e.g. Node "Alpha" — used by the other messages below.

Part

string


focusMoved(description): string

Defined in: diagram/Diagram.ts:163

Announcement when the keyboard focus cursor moves (description from describePart).

string

string


multipleSelected(count): string

Defined in: diagram/Diagram.ts:161

Announcement when more than one part is selected.

number

string


partAdded(description): string

Defined in: diagram/Diagram.ts:165

Announcement when a single part is added (e.g. via ClickCreatingTool).

string

string


partsDeleted(count): string

Defined in: diagram/Diagram.ts:167

Announcement when one or more parts are deleted (e.g. via CommandHandler.deleteSelection).

number

string


redoPerformed(description): string

Defined in: diagram/Diagram.ts:171

Announcement after a redo (description from the redone command’s describe()).

string

string


selectionCleared(): string

Defined in: diagram/Diagram.ts:157

Announcement when the selection becomes empty.

string


singleSelected(description): string

Defined in: diagram/Diagram.ts:159

Announcement when exactly one part is selected (description from describePart).

string

string


treeCollapsed(description): string

Defined in: diagram/Diagram.ts:173

Announcement when a node’s tree is collapsed (description from describePart).

string

string


treeExpanded(description): string

Defined in: diagram/Diagram.ts:175

Announcement when a node’s tree is expanded (description from describePart).

string

string


undoPerformed(description): string

Defined in: diagram/Diagram.ts:169

Announcement after an undo (description from the undone command’s describe()).

string

string