ngx-relationship-visualiser 2.0.0 → 2.0.2
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 +23 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,6 +50,13 @@ The toolbar can be dragged to any part of the canvas for convenience.
|
|
|
50
50
|
|
|
51
51
|
**Search** - button will initialise a dropdown to run a node search. Any found nodes will be highlighted and panned to. If there is more than one match, the search has a forward and back button to go to every matched node.
|
|
52
52
|
|
|
53
|
+
## Compatibility
|
|
54
|
+
|
|
55
|
+
| ngx-relationship-visualiser | Angular |
|
|
56
|
+
|-----------------------------|---------|
|
|
57
|
+
| 2.x | 17.x |
|
|
58
|
+
| 1.x | 17.x |
|
|
59
|
+
|
|
53
60
|
## Installation
|
|
54
61
|
|
|
55
62
|
Install ngx-relationship-visualiser with npm
|
|
@@ -58,14 +65,27 @@ Install ngx-relationship-visualiser with npm
|
|
|
58
65
|
npm install ngx-relationship-visualiser --save
|
|
59
66
|
```
|
|
60
67
|
|
|
61
|
-
Add the
|
|
68
|
+
Add the required styles and scripts to the `build` options in your `angular.json`:
|
|
69
|
+
|
|
70
|
+
```json
|
|
71
|
+
"styles": [
|
|
72
|
+
"node_modules/@ng-select/ng-select/themes/default.theme.css"
|
|
73
|
+
],
|
|
74
|
+
"scripts": [
|
|
75
|
+
"node_modules/jquery/dist/jquery.js",
|
|
76
|
+
"node_modules/bootstrap/dist/js/bootstrap.js"
|
|
77
|
+
]
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Add the package and `BrowserAnimationsModule` to NgModule imports:
|
|
62
81
|
|
|
63
82
|
```typescript
|
|
83
|
+
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
64
84
|
import { NgxRelationshipVisualiserModule } from 'ngx-relationship-visualiser';
|
|
65
85
|
|
|
66
86
|
@NgModule({
|
|
67
87
|
...
|
|
68
|
-
imports: [NgxRelationshipVisualiserModule],
|
|
88
|
+
imports: [BrowserAnimationsModule, NgxRelationshipVisualiserModule],
|
|
69
89
|
...
|
|
70
90
|
})
|
|
71
91
|
```
|
|
@@ -169,7 +189,7 @@ export const MOCKEDDATA: Data = {
|
|
|
169
189
|
id: '123',
|
|
170
190
|
label: ['John Doe', '01/01/1970'],
|
|
171
191
|
imageUrl: '',
|
|
172
|
-
icon: '
|
|
192
|
+
icon: '\uf2dc',
|
|
173
193
|
fx: 1000,
|
|
174
194
|
fy: 400,
|
|
175
195
|
additionalIcon: '\uf3a5',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-relationship-visualiser",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A D3 force-directed-graph, implemented in Typescript for Angular, generates a visualisation graph with customisable link lengths and multiple labels between nodes. The graph can handle new data that will update lines, nodes, links, and path labels. Whenever new nodes are added, they will be animated with a pulse effect. Additionally, the graph includes features such as brushing (multiple select and drag), zoom, and panning capabilities. Additional features include the ability to make multiple selections in sync with the brushing functionality by using Ctrl + click and drag the cursor.",
|
|
6
6
|
"keywords": [
|