data-navigator 0.10.0 → 1.0.1
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/README.md +58 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,5 +1,60 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Data-Navigator
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+

|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Data Navigator is a JavaScript library that allows for navigation of data structures. Data Navigator makes png, svg, canvas, and even webgl graphics accessible to a wide array of assistive technologies and input modalities.
|
|
6
|
+
|
|
7
|
+
Data Navigator has abstracted navigation into commands, which enables it to easily receive input from screen readers and keyboards to more interesting modalities like touch and mouse swiping, spoken commands, hand gestures, and even fabricated or totally novel interfaces, like bananas.
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
Data Navigator is expressive for builders and enables entire toolkits or ecosystems to become more accessible. The system provides low-level control over narratives, interaction paths, and journeys a user might want to take through an image or graphic.
|
|
12
|
+
|
|
13
|
+
Developers can build schemas that scale to work with any chart in a charting library or a single, bespoke implemetation for use in story-telling contexts like journalism, reports, presentations, and interactive infographics.
|
|
14
|
+
|
|
15
|
+

|
|
16
|
+
|
|
17
|
+
Not only are paths through an image customizeable but so are the visual indications that are rendered alongside those journeys. These visual indications use semantically rich, native HTML elements for maximized accessibility.
|
|
18
|
+
|
|
19
|
+

|
|
20
|
+
|
|
21
|
+
Visit [our landing page](http://dig.cmu.edu/data-navigator/) to try our demo, which shows a png image made into navigable experience. A variety of input modalities are enabled, including touch and mouse swiping, keyboard, screen reader, text input, voice control, and hand gesture recognition.
|
|
22
|
+
|
|
23
|
+
We also have [a vega-lite demo online](https://dig.cmu.edu/data-navigator/vega-lite.html), which (under the hood) shows how someone could write one schema that serves any chart in an ecosystem.
|
|
24
|
+
|
|
25
|
+
## Approach
|
|
26
|
+
Data Navigator is organized into 3 separately composable modules: the first is a graph-based *structure* of nodes and edges, the second handles *input* and navigation logic, and the third *renders* the structure. These may be leveraged together or independently. Read our paper to learn more!
|
|
27
|
+
|
|
28
|
+
## Getting started
|
|
29
|
+
You can install or use both esm and cjs modules in a variety of ways, in addition to importing all of data-navigator or just one part.
|
|
30
|
+
```
|
|
31
|
+
# to install into a project
|
|
32
|
+
npm install data-navigator
|
|
33
|
+
```
|
|
34
|
+
```js
|
|
35
|
+
// to use it in a .js or .ts file
|
|
36
|
+
import { default as dataNavigator } from 'data-navigator'
|
|
37
|
+
console.log(dataNavigator)
|
|
38
|
+
```
|
|
39
|
+
```html
|
|
40
|
+
<!-- and even as a script tag module loaded from a cdn -->
|
|
41
|
+
<script type="module">
|
|
42
|
+
import dataNavigator from "https://cdn.jsdelivr.net/npm/data-navigator@1.0.0/dist/index.mjs"
|
|
43
|
+
console.log(dataNavigator)
|
|
44
|
+
</script>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Credit
|
|
48
|
+
|
|
49
|
+
Data-Navigator was developed at CMU's [Data Interaction Group](https://dig.cmu.edu/) (CMU DIG), primarily by [Frank Elavsky](https://frank.computer).
|
|
50
|
+
|
|
51
|
+
## Citing Data-Navigator
|
|
52
|
+
|
|
53
|
+
```bib
|
|
54
|
+
@article{2023-data-navigator,
|
|
55
|
+
year = {2023},
|
|
56
|
+
author = {Frank Elavsky and Lucas Nadolskis and Dominik Moritz},
|
|
57
|
+
title = {{Data Navigator:} An Accessibility-Centered Data Navigation Toolkit},
|
|
58
|
+
journal = {{IEEE} {VIS}}
|
|
59
|
+
}
|
|
60
|
+
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "data-navigator",
|
|
3
3
|
"author": "Frank Elavsky",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"main": "dist/index.jsm",
|
|
6
6
|
"module": "dist/index",
|
|
7
7
|
"types": "data-navigator.d.ts",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"ts-loader": "^9.4.4",
|
|
45
45
|
"tsup": "^7.2.0",
|
|
46
46
|
"typescript": "^5.1.6",
|
|
47
|
-
"webpack": "^5.
|
|
47
|
+
"webpack": "^5.76.0",
|
|
48
48
|
"webpack-cli": "^4.9.2"
|
|
49
49
|
}
|
|
50
50
|
}
|