graphgarden-web 0.1.0 → 0.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/dist/index.d.ts CHANGED
@@ -3,7 +3,8 @@ import Sigma from "sigma";
3
3
  export interface GraphGardenConfig {
4
4
  localNodeColor: string;
5
5
  friendNodeColor: string;
6
- internalEdgeColor: string;
6
+ frontierNodeColor: string;
7
+ localEdgeColor: string;
7
8
  friendEdgeColor: string;
8
9
  labelColor: string;
9
10
  nodeSize: number;
@@ -32,6 +33,7 @@ export interface GraphGardenFile {
32
33
  generated_at: string;
33
34
  base_url: string;
34
35
  site: GraphGardenSite;
36
+ friends?: string[];
35
37
  nodes: GraphGardenNode[];
36
38
  edges: GraphGardenEdge[];
37
39
  }
@@ -45,7 +47,7 @@ export declare function buildGraph(file: GraphGardenFile, config: GraphGardenCon
45
47
  */
46
48
  export declare function assignLayout(graph: Graph, iterations: number): void;
47
49
  /** Fetch friend sites' graphs and merge their nodes and edges into `graph`. */
48
- export declare function fetchFriendGraphs(graph: Graph, config: GraphGardenConfig): Promise<Graph>;
50
+ export declare function fetchFriendGraphs(graph: Graph, config: GraphGardenConfig, friends?: string[] | undefined): Promise<Graph>;
49
51
  /**
50
52
  * `<graph-garden>` custom element — fetches the site's own
51
53
  * `graphgarden.json`, builds a graphology `Graph`, merges friend
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphgarden-web",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Web component that renders an interactive GraphGarden node graph",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -36,7 +36,7 @@
36
36
  "vitest": "^3"
37
37
  },
38
38
  "scripts": {
39
- "build": "tsx build.ts && tsc",
39
+ "build": "rm -rf dist && tsx build.ts && tsc",
40
40
  "dev": "tsx watch build.ts",
41
41
  "test": "vitest run",
42
42
  "test:watch": "vitest"
File without changes