data-navigator 2.2.1 → 2.2.2

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 (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +48 -0
  3. package/package.json +6 -3
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Carnegie Mellon University
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # Data Navigator
2
+
3
+ ![Data Navigator provides visualization toolkits with rich, accessible navigation structures, robust input handling, and flexible, semantic rendering.](https://raw.githubusercontent.com/cmudig/data-navigator/main/assets/data_navigator.png)
4
+
5
+ Data Navigator is a JavaScript library that enables keyboard, screen reader, and multi-modal navigation of data structures and visualizations. It works with any rendering technology — SVG, Canvas, images, or WebGL — by creating a semantic, accessible HTML layer on top of your graphics.
6
+
7
+ **[Documentation](https://dig.cmu.edu/data-navigator/)** · **[Getting Started](https://dig.cmu.edu/data-navigator/getting-started/)** · **[Demo](https://dig.cmu.edu/data-navigator/demo)** · **[npm](https://www.npmjs.com/package/data-navigator)**
8
+
9
+ ## Install
10
+
11
+ ```
12
+ npm install data-navigator
13
+ ```
14
+
15
+ ```js
16
+ import dataNavigator from 'data-navigator';
17
+ ```
18
+
19
+ ## How it works
20
+
21
+ Data Navigator is organized into 3 composable modules:
22
+
23
+ 1. **Structure** — a graph of nodes and edges that defines navigation paths through your data
24
+ 2. **Input** — handles keyboard, touch, voice, gesture, and custom input modalities
25
+ 3. **Rendering** — creates semantic HTML elements overlaid on your visualization
26
+
27
+ These modules can be used together or independently. Visit [the docs](https://dig.cmu.edu/data-navigator/getting-started/) for a step-by-step guide to building your first navigable chart.
28
+
29
+ ## Contributing
30
+
31
+ See [CONTRIBUTING.md](./CONTRIBUTING.md) for setup instructions and development workflow.
32
+
33
+ ## Credit
34
+
35
+ Data Navigator was developed at CMU's [Data Interaction Group](https://dig.cmu.edu/) (CMU DIG), primarily by [Frank Elavsky](https://frank.computer).
36
+
37
+ ## Citing Data Navigator
38
+
39
+ ```bib
40
+ @article{2023-data-navigator,
41
+ title = {{Data Navigator}: An Accessibility-Centered Data Navigation Toolkit},
42
+ publisher = {{IEEE}},
43
+ author = {Frank Elavsky and Lucas Nadolskis and Dominik Moritz},
44
+ journal = {{IEEE} Transactions on Visualization and Computer Graphics},
45
+ year = {2023},
46
+ url = {http://dig.cmu.edu/data-navigator/}
47
+ }
48
+ ```
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "data-navigator",
3
3
  "author": "Frank Elavsky",
4
- "version": "2.2.1",
4
+ "version": "2.2.2",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
8
8
  "types": "./dist/src/index.d.ts",
9
9
  "files": [
10
- "dist/**/*"
10
+ "dist/**/*",
11
+ "README.md",
12
+ "LICENSE"
11
13
  ],
12
14
  "exports": {
13
15
  ".": {
@@ -32,7 +34,8 @@
32
34
  "clean": "rm -rf ./dist",
33
35
  "build": "yarn build:index && yarn build:modules",
34
36
  "build:index": "tsup src/index.ts --format cjs,esm",
35
- "build:modules": "tsup src/structure.ts src/input.ts src/rendering.ts src/utilities.ts src/consts.ts --format cjs,esm --minify"
37
+ "build:modules": "tsup src/structure.ts src/input.ts src/rendering.ts src/utilities.ts src/consts.ts --format cjs,esm --minify",
38
+ "prepublishOnly": "cp ../../README.md ../../LICENSE ."
36
39
  },
37
40
  "devDependencies": {
38
41
  "@swc/core": "^1.3.75",