diagramo 0.1.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.
@@ -0,0 +1,26 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>diagramo example</title>
7
+ <style>
8
+ body { font-family: system-ui, sans-serif; margin: 24px; background: #0b0c10; color: #e6e6e6; }
9
+ pre.diagramo { white-space: pre-wrap; }
10
+ </style>
11
+ </head>
12
+ <body>
13
+ <h1>diagramo example</h1>
14
+
15
+ <pre class="diagramo" data-diagramo-height="420">
16
+ (program
17
+ (X)
18
+ (ZinsideX:X)
19
+ (-> f A B)
20
+ (-> g B A)
21
+ (-> h X Y)
22
+ )</pre>
23
+
24
+ <script src="../dist/diagramo.browser.js"></script>
25
+ </body>
26
+ </html>
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "diagramo",
3
+ "version": "0.1.0",
4
+ "description": "Tree-shaped diagram language renderer for Surface, Core, and NCF diagrams.",
5
+ "type": "module",
6
+ "main": "./dist/diagramo.js",
7
+ "module": "./dist/diagramo.js",
8
+ "exports": {
9
+ ".": "./dist/diagramo.js",
10
+ "./browser": "./dist/diagramo.browser.js"
11
+ },
12
+ "files": [
13
+ "dist",
14
+ "README.md",
15
+ "LICENSE",
16
+ "examples"
17
+ ],
18
+ "sideEffects": [
19
+ "./dist/diagramo.browser.js"
20
+ ],
21
+ "keywords": [
22
+ "diagram",
23
+ "s-expression",
24
+ "graph",
25
+ "cytoscape",
26
+ "visualizer"
27
+ ],
28
+ "license": "UNLICENSED",
29
+ "dependencies": {
30
+ "d3": "^7.9.0",
31
+ "d3-dag": "1.1.0"
32
+ }
33
+ }