Gathering detailed insights and metrics for @obi4wan/ngx-graph
Gathering detailed insights and metrics for @obi4wan/ngx-graph
Gathering detailed insights and metrics for @obi4wan/ngx-graph
Gathering detailed insights and metrics for @obi4wan/ngx-graph
npm install @obi4wan/ngx-graph
Typescript
Module System
Node Version
NPM Version
61.7
Supply Chain
91.2
Quality
81.1
Maintenance
50
Vulnerability
97.9
License
TypeScript (87.83%)
HTML (8.37%)
JavaScript (2.49%)
SCSS (1.24%)
CSS (0.07%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
250 Commits
11 Branches
Updated on Mar 03, 2025
Latest Version
7.1.5
Package Id
@obi4wan/ngx-graph@7.1.5
Unpacked Size
924.73 kB
Size
193.42 kB
File Count
54
NPM Version
6.14.5
Node Version
12.18.2
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
A Graph visualization for angular
https://swimlane.github.io/ngx-graph/
npm install @swimlane/ngx-graph --save
NgxGraphModule
into your modulengx-graph
component in your components1<ngx-graph 2 class="chart-container" 3 [view]="[500, 200]" 4 [links]="[ 5 { 6 id: 'a', 7 source: 'first', 8 target: 'second', 9 label: 'is parent of' 10 }, { 11 id: 'b', 12 source: 'first', 13 target: 'third', 14 label: 'custom label' 15 } 16 ]" 17 [nodes]="[ 18 { 19 id: 'first', 20 label: 'A' 21 }, { 22 id: 'second', 23 label: 'B' 24 }, { 25 id: 'third', 26 label: 'C' 27 } 28 ]" 29 (select)="onNodeSelect($event)" 30> 31</ngx-graph>
1<ngx-graph 2 class="chart-container" 3 [view]="[500, 550]" 4 [links]="[ 5 { 6 id: 'a', 7 source: 'first', 8 target: 'second', 9 label: 'is parent of' 10 }, { 11 id: 'b', 12 source: 'first', 13 target: 'c1', 14 label: 'custom label' 15 }, { 16 id: 'd', 17 source: 'first', 18 target: 'c2', 19 label: 'custom label' 20 }, { 21 id: 'e', 22 source: 'c1', 23 target: 'd', 24 label: 'first link' 25 }, { 26 id: 'f', 27 source: 'c1', 28 target: 'd', 29 label: 'second link' 30 } 31 ]" 32 [nodes]="[ 33 { 34 id: 'first', 35 label: 'A' 36 }, { 37 id: 'second', 38 label: 'B' 39 }, { 40 id: 'c1', 41 label: 'C1' 42 }, { 43 id: 'c2', 44 label: 'C2' 45 }, { 46 id: 'd', 47 label: 'D' 48 } 49 ]" 50 [clusters]="[ 51 { 52 id: 'third', 53 label: 'Cluster node', 54 childNodeIds: ['c1', 'c2'] 55 } 56 ]" 57 layout="dagreCluster" 58> 59 <ng-template #defsTemplate> 60 <svg:marker id="arrow" viewBox="0 -5 10 10" refX="8" refY="0" markerWidth="4" markerHeight="4" orient="auto"> 61 <svg:path d="M0,-5L10,0L0,5" class="arrow-head" /> 62 </svg:marker> 63 </ng-template> 64 65 <ng-template #clusterTemplate let-cluster> 66 <svg:g 67 class="node cluster" 68 ngx-tooltip 69 [tooltipPlacement]="'top'" 70 [tooltipType]="'tooltip'" 71 [tooltipTitle]="cluster.label" 72 > 73 <svg:rect 74 rx="5" 75 ry="5" 76 [attr.width]="cluster.dimension.width" 77 [attr.height]="cluster.dimension.height" 78 [attr.fill]="cluster.data.color" 79 /> 80 </svg:g> 81 </ng-template> 82 83 <ng-template #nodeTemplate let-node> 84 <svg:g (click)="onNodeClick($event)" (dblclick)="onNodeClick($event)" class="node" ngx-tooltip [tooltipPlacement]="'top'" [tooltipType]="'tooltip'" [tooltipTitle]="node.label"> 85 <svg:rect 86 [attr.width]="node.dimension.width" 87 [attr.height]="node.dimension.height" 88 [attr.fill]="node.data.color" 89 /> 90 <svg:text alignment-baseline="central" [attr.x]="10" [attr.y]="node.dimension.height / 2"> 91 {{node.label}} 92 </svg:text> 93 </svg:g> 94 </ng-template> 95 96 <ng-template #linkTemplate let-link> 97 <svg:g class="edge"> 98 <svg:path class="line" stroke-width="2" marker-end="url(#arrow)"></svg:path> 99 <svg:text class="edge-label" text-anchor="middle"> 100 <textPath 101 class="text-path" 102 [attr.href]="'#' + link.id" 103 [style.dominant-baseline]="link.dominantBaseline" 104 startOffset="50%" 105 > 106 {{link.label}} 107 </textPath> 108 </svg:text> 109 </svg:g> 110 </ng-template> 111</ngx-graph>
1[ 2 { 3 id: '1', 4 label: 'Node A' 5 }, 6 { 7 id: '2', 8 label: 'Node B' 9 }, 10 { 11 id: '3', 12 label: 'Node C' 13 }, 14 { 15 id: '4', 16 label: 'Node D' 17 }, 18 { 19 id: '5', 20 label: 'Node E' 21 }, 22 { 23 id: '6', 24 label: 'Node F' 25 } 26]
1[ 2 { 3 id: 'a', 4 source: '1', 5 target: '2' 6 }, 7 { 8 id: 'b', 9 source: '1', 10 target: '3' 11 }, 12 { 13 id: 'c', 14 source: '3', 15 target: '4' 16 }, 17 { 18 id: 'd', 19 source: '3', 20 target: '5' 21 }, 22 { 23 id: 'e', 24 source: '4', 25 target: '5' 26 }, 27 { 28 id: 'f', 29 source: '2', 30 target: '6' 31 } 32]
1[ 2 { 3 id: 'cluster0', 4 label: 'Cluster node', 5 childNodeIds: ['2', '3'] 6 } 7]
ngx-graph
is a Swimlane open-source project; we believe in giving back to the open-source community by sharing some of the projects we build for our application. Swimlane is an automated cyber security operations and incident response platform that enables cyber security teams to leverage threat intelligence, speed up incident response and automate security operations.
SecOps Hub is an open, product-agnostic, online community for security professionals to share ideas, use cases, best practices, and incident response strategies.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 5/24 approved changesets -- score normalized to 2
Reason
project is archived
Details
Reason
security policy file not detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
141 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More