@combos-fun/plugin-a11y 0.0.7 → 0.0.8
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/agent-skill.md +3 -8
- package/package.json +4 -4
package/agent-skill.md
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
# `@combos-fun/plugin-a11y` — Agent notes
|
|
2
2
|
|
|
3
|
-
Accessibility plugin. Creates a positioned `<div>` overlay over the canvas;
|
|
4
|
-
for each `GameObject` carrying an `A11y` component, creates a child `<div>`
|
|
5
|
-
with `aria-label` / `role`. Click on the overlay forwards to the
|
|
6
|
-
GameObject's `Event` component as `touchstart` / `touchend` / `tap`.
|
|
3
|
+
Accessibility plugin. Creates a positioned `<div>` overlay over the canvas; for each `GameObject` carrying an `A11y` component, creates a child `<div>` with `aria-label` / `role`. Click on the overlay forwards to the GameObject's `Event` component as `touchstart` / `touchend` / `tap`.
|
|
7
4
|
|
|
8
5
|
## When to read
|
|
9
6
|
|
|
10
|
-
Read for any accessibility task: screen-reader hints, keyboard-friendly
|
|
11
|
-
DOM interaction, A11y debugging.
|
|
7
|
+
Read for any accessibility task: screen-reader hints, keyboard-friendly DOM interaction, A11y debugging.
|
|
12
8
|
|
|
13
9
|
## Public API
|
|
14
10
|
|
|
@@ -47,8 +43,7 @@ import { A11ySystem, A11y, A11yActivate } from '@combos-fun/plugin-a11y';
|
|
|
47
43
|
|
|
48
44
|
## Required setup
|
|
49
45
|
|
|
50
|
-
`A11ySystem` should be added after `RendererSystem` and `EventSystem`. The
|
|
51
|
-
overlay is appended to the canvas's parent element.
|
|
46
|
+
`A11ySystem` should be added after `RendererSystem` and `EventSystem`. The overlay is appended to the canvas's parent element.
|
|
52
47
|
|
|
53
48
|
## Runtime behaviour
|
|
54
49
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@combos-fun/plugin-a11y",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "@combos-fun/plugin-a11y",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/plugin-a11y.esm.js",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"author": "sun668 <q947692259@gmail.com>",
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"eventemitter3": "^5.0.4",
|
|
35
|
-
"@combos-fun/inspector-decorator": "0.0.
|
|
36
|
-
"@combos-fun/
|
|
37
|
-
"@combos-fun/
|
|
35
|
+
"@combos-fun/inspector-decorator": "0.0.8",
|
|
36
|
+
"@combos-fun/engine": "0.0.8",
|
|
37
|
+
"@combos-fun/plugin-renderer": "0.0.8"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node ../../scripts/build-package.mjs"
|