@slxu/graphsx 0.1.0 → 0.1.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 +10 -3
- package/package.json +17 -5
package/README.md
CHANGED
|
@@ -21,6 +21,13 @@ Install from npm:
|
|
|
21
21
|
npm install @slxu/graphsx
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
+
Optional integrations use the host app's packages:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm install katex markdown-it
|
|
28
|
+
npm install codemirror @codemirror/state @codemirror/view @codemirror/lang-javascript @codemirror/lang-markdown
|
|
29
|
+
```
|
|
30
|
+
|
|
24
31
|
## What It Looks Like
|
|
25
32
|
|
|
26
33
|
### Port Diagram
|
|
@@ -41,7 +48,7 @@ npm install @slxu/graphsx
|
|
|
41
48
|
</Graph>
|
|
42
49
|
```
|
|
43
50
|
|
|
44
|
-

|
|
51
|
+

|
|
45
52
|
|
|
46
53
|
### Parametric Plot
|
|
47
54
|
|
|
@@ -61,7 +68,7 @@ npm install @slxu/graphsx
|
|
|
61
68
|
</Plot>
|
|
62
69
|
```
|
|
63
70
|
|
|
64
|
-

|
|
71
|
+

|
|
65
72
|
|
|
66
73
|
### Reusable Shapes And Repeat
|
|
67
74
|
|
|
@@ -84,7 +91,7 @@ npm install @slxu/graphsx
|
|
|
84
91
|
</Graph>
|
|
85
92
|
```
|
|
86
93
|
|
|
87
|
-

|
|
94
|
+

|
|
88
95
|
|
|
89
96
|
## Quick Example
|
|
90
97
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slxu/graphsx",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "A small React-like inline graph DSL parser and model builder.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -43,14 +43,26 @@
|
|
|
43
43
|
"diagram"
|
|
44
44
|
],
|
|
45
45
|
"license": "MIT",
|
|
46
|
-
"
|
|
47
|
-
"
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"@codemirror/state": "^6.6.0",
|
|
48
|
+
"@codemirror/view": "^6.43.1"
|
|
49
|
+
},
|
|
50
|
+
"peerDependenciesMeta": {
|
|
51
|
+
"@codemirror/state": {
|
|
52
|
+
"optional": true
|
|
53
|
+
},
|
|
54
|
+
"@codemirror/view": {
|
|
55
|
+
"optional": true
|
|
56
|
+
}
|
|
48
57
|
},
|
|
49
|
-
"
|
|
58
|
+
"devDependencies": {
|
|
50
59
|
"@codemirror/lang-javascript": "^6.2.5",
|
|
51
60
|
"@codemirror/lang-markdown": "^6.5.0",
|
|
61
|
+
"@codemirror/state": "^6.6.0",
|
|
62
|
+
"@codemirror/view": "^6.43.1",
|
|
52
63
|
"codemirror": "^6.0.2",
|
|
53
64
|
"katex": "^0.17.0",
|
|
54
|
-
"markdown-it": "^14.2.0"
|
|
65
|
+
"markdown-it": "^14.2.0",
|
|
66
|
+
"vite": "^7.0.0"
|
|
55
67
|
}
|
|
56
68
|
}
|