Gathering detailed insights and metrics for ngx-xyflow
Gathering detailed insights and metrics for ngx-xyflow
Gathering detailed insights and metrics for ngx-xyflow
Gathering detailed insights and metrics for ngx-xyflow
npm install ngx-xyflow
Typescript
Module System
Node Version
NPM Version
TypeScript (93.4%)
HTML (5.21%)
SCSS (1.39%)
Total Downloads
1,316
Last Day
21
Last Week
83
Last Month
412
Last Year
1,316
39 Stars
31 Commits
3 Forks
4 Watchers
1 Branches
1 Contributors
Updated on May 07, 2025
Latest Version
0.0.8
Package Id
ngx-xyflow@0.0.8
Unpacked Size
304.13 kB
Size
52.51 kB
File Count
37
NPM Version
10.9.2
Node Version
22.13.0
Published on
Apr 07, 2025
Cumulative downloads
Total Downloads
Last Day
2,000%
21
Compared to previous day
Last Week
88.6%
83
Compared to previous week
Last Month
45.1%
412
Compared to previous month
Last Year
0%
1,316
Compared to previous year
5
2
This project is currently in a beta phase and features will be added upon pull requests. I will try to minimize breaking changes between minor version revisions but some may be made until we reach 1.0.0.
This project is a proper Angular wrapper of the React version of xyflow.
1npm install ngx-xyflow
1import { Component } from '@angular/core'; 2import { XYFlowModule } from 'ngx-xyflow'; 3 4@Component({ 5 selector: 'app-test', 6 template: '<ngx-xyflow [nodes]="nodes" [edges]="edges"/>', 7 imports: [ 8 XYFlowModule 9 ], 10 standalone: true 11}) 12export class TestComponent { 13 nodes = []; 14 edges = []; 15} 16
1<ngx-xyflow 2 [nodes]="nodes" 3 [edges]="edges" 4> 5 <!-- The background is configurable in the same manner as the original React component. --> 6 <ngx-xyflow-background 7 color="pink" 8 [gap]="20" 9 [size]="2" 10 /> 11 12 <!-- Controls can also be configured, and events will fire normally. --> 13 <ngx-xyflow-controls 14 (onFitView)="log('onFitView')" 15 (onInteractiveChange)="log('onInteractiveChange ' + $event)" 16 (onZoomIn)="log('onZoomIn')" 17 (onZoomOut)="log('onZoomOut')" 18 /> 19 20 <!-- Add the minimap. --> 21 <ngx-xyflow-minimap 22 (onClick)="log('onMinimapClick')" 23 (onNodeClick)="log('onMinimapNodeClick')" 24 /> 25</ngx-xyflow>
1<ngx-xyflow 2 [nodes]="nodes" 3 [edges]="edges" 4> 5 <!-- Here, nodeType refers to the `type` property on an individual node's JSON. --> 6 <ngx-xyflow-node 7 nodeType="selectorNode" 8 > 9 <!-- The default template is used as this reduces DOM cluttering. --> 10 <ng-template let-data> 11 <div class="custom_node"> 12 {{data.label}} 13 </div> 14 </ng-template> 15 16 <!-- You can also define the handles here --> 17 <ngx-xyflow-handle 18 type="target" 19 position="left" 20 [isConnectable]="true" 21 /> 22 23 <ngx-xyflow-handle 24 type="source" 25 position="right" 26 id="b" 27 /> 28 </ngx-xyflow-node> 29</ngx-xyflow>
No vulnerabilities found.
No security vulnerabilities found.