sp-graph-layout 0.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/index.js ADDED
@@ -0,0 +1,13 @@
1
+ import GraphLayoutWASMModule from './wasm/GraphLayoutWASM.js';
2
+
3
+ const GraphLayoutWASM = await GraphLayoutWASMModule();
4
+
5
+ const createDirectedGraph = GraphLayoutWASM.createDirectedGraph;
6
+ const SPDirectedGraph = GraphLayoutWASM.SPDirectedGraph;
7
+ const DirectedGraphHierarchicalLayout = GraphLayoutWASM.DirectedGraphHierarchicalLayout;
8
+
9
+ export {
10
+ createDirectedGraph,
11
+ SPDirectedGraph,
12
+ DirectedGraphHierarchicalLayout,
13
+ };
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "sp-graph-layout",
3
+ "version": "0.0.1",
4
+ "type": "module",
5
+ "main": "index.js",
6
+ "files": [
7
+ "index.js",
8
+ "wasm/GraphLayoutWASM.js",
9
+ "wasm/GraphLayoutWASM.wasm"
10
+ ],
11
+ "devDependencies": {
12
+ "@eslint/js": "^9.39.1",
13
+ "chai": "^0.1.7",
14
+ "eslint": "^9.39.1",
15
+ "globals": "^16.5.0",
16
+ "mocha": "^11.7.5"
17
+ },
18
+ "scripts": {
19
+ "build": "bash build.sh",
20
+ "lint": "npx eslint index.js test/**/*.js",
21
+ "test": "mocha test/**/*.js"
22
+ }
23
+ }