data-navigator 0.10.0 → 1.0.0

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.
Files changed (2) hide show
  1. package/README.md +58 -3
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,5 +1,60 @@
1
- # data-navigator
1
+ # Data-Navigator
2
2
 
3
- A JavaScript library that allows for serial navigation of data structures using keyboard and touch inputs.
3
+ ![Data Navigator provides visualization toolkits with rich, accessible navigation structures, robust input handling, and flexible, semantic rendering.](assets/data_navigator.png)
4
4
 
5
- Simply open index.html or visit [our landing page](http://dig.cmu.edu/data-navigator/) to try our demo. You will need to run a local server in order to open vega-lite.html locally, but you can just [visit the vega-lite demo online](https://dig.cmu.edu/data-navigator/vega-lite.html).
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
+ ![Image in two parts. First part: Inputs: A. Hand swiping. B: Speaking "left." C. A hand gesture on camera. D. Bananas. Second part: Output: (focus moves left) A focus indicator has moved on a bar chart from one stacked bar to another on its left.](assets/inputs.png)
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
+ ![Image in two parts. First part: A schema for navigation that works with any stacked bar chart. Great for libraries! A complex schema is shown over a stacked bar chart with up, down, left, and right directions. Second part: A bespoke, guided journey through a visual. Great for storytelling! A simple navigation path is shown going through the image.](assets/journey.png)
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
+ ![Code used to render a path that looks like an outline and then place that outline over visual elements on a data visualization.](assets/path.png)
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.10.0",
4
+ "version": "1.0.0",
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.72.0",
47
+ "webpack": "^5.76.0",
48
48
  "webpack-cli": "^4.9.2"
49
49
  }
50
50
  }