axe-core 4.10.3-canary.344c65b → 4.10.3-canary.3aac6fe
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/axe.d.ts +19 -0
- package/axe.js +760 -715
- package/axe.min.js +2 -2
- package/locales/_template.json +3 -3
- package/locales/de.json +5 -1
- package/package.json +5 -5
- package/sri-history.json +3 -3
package/axe.d.ts
CHANGED
|
@@ -408,6 +408,24 @@ declare namespace axe {
|
|
|
408
408
|
boundingClientRect: DOMRect;
|
|
409
409
|
}
|
|
410
410
|
|
|
411
|
+
type GridCell = VirtualNode[];
|
|
412
|
+
|
|
413
|
+
interface Grid {
|
|
414
|
+
container: VirtualNode | null;
|
|
415
|
+
cells: unknown; // opaque implementation detail
|
|
416
|
+
boundaries?: DOMRect;
|
|
417
|
+
toGridIndex(num: number): number;
|
|
418
|
+
getCellFromPoint(point: { x: number; y: number }): GridCell;
|
|
419
|
+
loopGridPosition(
|
|
420
|
+
gridPosition: DOMRect,
|
|
421
|
+
callback: (gridCell: GridCell, pos: { row: number; col: number }) => void
|
|
422
|
+
): void;
|
|
423
|
+
getGridPositionOfRect(
|
|
424
|
+
rect: { top: number; right: number; bottom: number; left: number },
|
|
425
|
+
margin?: number
|
|
426
|
+
): DOMRect;
|
|
427
|
+
}
|
|
428
|
+
|
|
411
429
|
interface CustomNodeSerializer<T = SerialDqElement> {
|
|
412
430
|
toSpec: (dqElm: DqElement) => T;
|
|
413
431
|
mergeSpecs: (nodeSpec: T, parentFrameSpec: T) => T;
|
|
@@ -460,6 +478,7 @@ declare namespace axe {
|
|
|
460
478
|
interface Dom {
|
|
461
479
|
isFocusable: (node: Element | VirtualNode) => boolean;
|
|
462
480
|
isNativelyFocusable: (node: Element | VirtualNode) => boolean;
|
|
481
|
+
getNodeGrid: (node: Node | VirtualNode) => Grid;
|
|
463
482
|
}
|
|
464
483
|
|
|
465
484
|
type AccessibleTextOptions = {
|