@cocorof/graphier 0.1.0 → 1.2.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.
- package/README.md +4 -4
- package/dist/index.cjs +420 -83
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +57 -2
- package/dist/index.js +420 -83
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ High-performance 3D/2D graph renderer for React — powered by Three.js and d3-f
|
|
|
24
24
|
## Install
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
|
-
npm install graphier three react react-dom
|
|
27
|
+
npm install @cocorof/graphier three react react-dom
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
**Peer dependencies:** `react >= 18`, `react-dom >= 18`, `three >= 0.150`
|
|
@@ -32,7 +32,7 @@ npm install graphier three react react-dom
|
|
|
32
32
|
## Quick Start
|
|
33
33
|
|
|
34
34
|
```tsx
|
|
35
|
-
import { NetworkGraph3D } from "graphier";
|
|
35
|
+
import { NetworkGraph3D } from "@cocorof/graphier";
|
|
36
36
|
|
|
37
37
|
const data = {
|
|
38
38
|
nodes: [
|
|
@@ -89,7 +89,7 @@ graphRef.current?.screenshot();
|
|
|
89
89
|
## Analysis Module
|
|
90
90
|
|
|
91
91
|
```tsx
|
|
92
|
-
import { analyzeGraph } from "graphier/analysis";
|
|
92
|
+
import { analyzeGraph } from "@cocorof/graphier/analysis";
|
|
93
93
|
|
|
94
94
|
const stats = analyzeGraph(data);
|
|
95
95
|
// stats.nodeCount, stats.density, stats.avgDegree, stats.topByDegree(10), ...
|
|
@@ -119,7 +119,7 @@ const GraphView = dynamic(() => import("./GraphView"), { ssr: false });
|
|
|
119
119
|
|
|
120
120
|
```js
|
|
121
121
|
// next.config.js
|
|
122
|
-
const nextConfig = { transpilePackages: ["graphier"] };
|
|
122
|
+
const nextConfig = { transpilePackages: ["@cocorof/graphier"] };
|
|
123
123
|
```
|
|
124
124
|
|
|
125
125
|
## Architecture
|