Skip to content

Commit cdc6d62

Browse files
committed
chore: make ready for npm publish
1 parent 04010a8 commit cdc6d62

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ A YASGUI plugin for visualizing SPARQL CONSTRUCT query results as interactive gr
1616
- **🔍 Navigation**: Mouse wheel zoom, drag to pan, "Zoom to Fit" button
1717
- **✋ Drag & Drop**: Reorganize nodes by dragging them to new positions
1818
- **💬 Tooltips**: Hover for full URI/literal details (300ms delay)
19-
- **📸 Export**: Save current viewport as PNG image
2019
- **⚡ Performance**: Handles up to 1,000 nodes with <2s render time
2120
- **♿ Accessible**: WCAG AA color contrast, keyboard navigation support
2221

@@ -32,7 +31,7 @@ npm install yasgui-graph-plugin @zazuko/yasgui vis-network
3231
import Yasgui from '@zazuko/yasgui';
3332
import GraphPlugin from 'yasgui-graph-plugin';
3433

35-
Yasgui.Yasr.registerPlugin('graph', GraphPlugin);
34+
Yasgui.Yasr.registerPlugin('Graph', GraphPlugin);
3635

3736
const yasgui = new Yasgui(document.getElementById('yasgui'));
3837
```
@@ -95,7 +94,6 @@ After running the query, click the **"Graph"** tab to see the visualization.
9594
### Interaction
9695
- **Drag Nodes**: Click and drag any node to reposition it
9796
- **Tooltips**: Hover over nodes/edges for 300ms to see full details
98-
- **Export**: Click "Export PNG" to download the current viewport as an image
9997

10098
### Understanding Colors
10199

@@ -200,7 +198,6 @@ Contributions welcome! Please follow the project constitution (`.specify/memory/
200198
**Implemented Features** (v0.1.0):
201199
- ✅ Basic graph visualization (US1)
202200
- ✅ Navigation controls (US2)
203-
- ✅ Export to PNG (US5)
204201
- ✅ Color-coded nodes
205202
- ✅ Prefix abbreviation
206203
- ✅ Blank node support

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"name": "yasgui-graph-plugin",
2+
"name": "@matdata/yasgui-graph-plugin",
3+
"private": false,
34
"version": "0.1.0",
45
"description": "YASGUI plugin for visualizing SPARQL CONSTRUCT query results as interactive graphs",
56
"main": "dist/yasgui-graph-plugin.min.js",
@@ -22,6 +23,9 @@
2223
"url": "https://github.com/Matdata-eu/yasgui-graph-plugin/issues"
2324
},
2425
"homepage": "https://github.com/Matdata-eu/yasgui-graph-plugin#readme",
26+
"publishConfig": {
27+
"access": "public"
28+
},
2529
"dependencies": {
2630
"vis-network": "^9.1.9"
2731
},

0 commit comments

Comments
 (0)