@akshay-rajput/git-graph-svg 1.0.4 → 1.0.7

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 CHANGED
@@ -19,6 +19,9 @@ rendering.
19
19
 
20
20
  ------------------------------------------------------------------------
21
21
 
22
+ ## 📐 Screenshots
23
+ ![Screenshot](https://raw.githubusercontent.com/notakshayrajput/RepositoryGraph/refs/heads/main/images/examples.png)
24
+
22
25
  ## 🚀 Basic Usage
23
26
 
24
27
  ``` tsx
@@ -11,8 +11,8 @@ export interface GitGraphSVGProps {
11
11
  rowHeight?: number;
12
12
  colorPalette?: string[];
13
13
  laneWidth?: number;
14
- renderNode?: (commit: CommitItem) => React.ReactNode;
15
- renderEdge?: (from: CommitItem, to: CommitItem, defaultPath: string) => React.ReactNode;
14
+ renderNode?: (commit: _CommitItem, index?: number) => React.ReactNode;
15
+ renderEdge?: (from: _CommitItem, to: _CommitItem, index?: number) => React.ReactNode;
16
16
  }
17
17
  export interface _CommitItem extends CommitItem {
18
18
  color: string;
@@ -20,5 +20,6 @@ export interface _CommitItem extends CommitItem {
20
20
  cx: number;
21
21
  cy: number;
22
22
  prev: _CommitItem[];
23
+ index: number;
23
24
  }
24
25
  export declare const GitGraphSVG: React.FC<GitGraphSVGProps>;