ngx-relationship-visualiser 2.0.6 → 2.1.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-relationship-visualiser",
3
- "version": "2.0.6",
3
+ "version": "2.1.1",
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": [
@@ -21,22 +21,22 @@
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
23
  "@dagrejs/dagre": "^1.1.8",
24
- "@kreash/ngx-contextmenu": "~17.0.1",
25
- "@ng-select/ng-select": "^12.0.0",
24
+ "@kreash/ngx-contextmenu": "~18.1.0",
25
+ "@ng-select/ng-select": "^13.9.1",
26
26
  "bootstrap": "4.6.2",
27
27
  "d3": "5.16.0",
28
28
  "dexie": "^4.4.7",
29
29
  "jquery": "3.6.4",
30
- "ngx-bootstrap": "^12.0.0",
30
+ "ngx-bootstrap": "^18.1.3",
31
31
  "popper.js": "1.16.1",
32
32
  "sweetalert2": "^11.26.26",
33
33
  "tslib": "^2.3.0"
34
34
  },
35
35
  "peerDependencies": {
36
- "@angular/animations": "^17.3.0",
37
- "@angular/cdk": "^17.3.6",
38
- "@angular/common": "^17.3.0",
39
- "@angular/forms": "^17.3.0",
36
+ "@angular/animations": "^18.0.0",
37
+ "@angular/cdk": "^18.0.0",
38
+ "@angular/common": "^18.0.0",
39
+ "@angular/forms": "^18.0.0",
40
40
  "rxjs": "^6.5.3 || ^7.4.0"
41
41
  },
42
42
  "module": "fesm2022/ngx-relationship-visualiser.mjs",
@@ -3,7 +3,7 @@ export interface Relationship {
3
3
  label: string | string[];
4
4
  source: string;
5
5
  target: string;
6
- linkIcon: boolean;
6
+ linkIcon: string | boolean;
7
7
  }
8
8
  export interface Link {
9
9
  source: string;
@@ -13,7 +13,7 @@ export interface EditLinkFormData {
13
13
  label: Array<{
14
14
  labelIndex?: number;
15
15
  label: string | string[];
16
- linkIcon: boolean;
16
+ linkIcon: string | boolean;
17
17
  }>;
18
18
  }
19
19
  export declare class ModalsComponent extends AbstractModalFormHandler implements OnChanges {
@@ -65,10 +65,14 @@ export declare class ModalsComponent extends AbstractModalFormHandler implements
65
65
  createEditNode(source: 'editNodeModal' | 'createNodeModal'): void;
66
66
  deleteNode(): void;
67
67
  deleteLink(): void;
68
+ toggleLinkIcon(index: number, event: Event): void;
69
+ getRelationshipIcon(linkIcon: string | boolean): string;
68
70
  clearImageUrl(): void;
71
+ onIconTypeChange(iconType: 'url' | 'select'): void;
69
72
  trackByFn(item: {
70
73
  id: number;
71
74
  }): number;
75
+ private loadSelectedNodeIcons;
72
76
  onScrollToEnd(): void;
73
77
  onScroll({ end }: {
74
78
  end: number;
@@ -24,7 +24,7 @@ interface VisualiserLink {
24
24
  parentLineStyle?: string;
25
25
  parentSourceArrow?: boolean;
26
26
  parentTargetArrow?: boolean;
27
- linkIcon?: boolean;
27
+ linkIcon?: string | boolean;
28
28
  dy?: number;
29
29
  }
30
30
  export declare class VisualiserGraphService {