Skip to content
Snippets Groups Projects
Commit 8c62c79d authored by AndiMajore's avatar AndiMajore
Browse files

fixed reset icons; started implementing rectangle selection mode using 'shift' key

parent 61de4434
No related branches found
No related tags found
No related merge requests found
...@@ -251,7 +251,6 @@ export class AnalysisPanelComponent implements OnInit, OnChanges, AfterViewInit ...@@ -251,7 +251,6 @@ export class AnalysisPanelComponent implements OnInit, OnChanges, AfterViewInit
this.networkHandler.activeNetwork.networkInternal.on('deselectNode', (properties) => { this.networkHandler.activeNetwork.networkInternal.on('deselectNode', (properties) => {
this.showDetailsChange.emit(null); this.showDetailsChange.emit(null);
}); });
this.networkHandler.activeNetwork.networkInternal.on('doubleClick', (properties) => { this.networkHandler.activeNetwork.networkInternal.on('doubleClick', (properties) => {
const nodeIds: Array<string> = properties.nodes; const nodeIds: Array<string> = properties.nodes;
if (nodeIds.length > 0) { if (nodeIds.length > 0) {
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
aria-haspopup="true" aria-haspopup="true"
attr.aria-controls="controls-menu-button" attr.aria-controls="controls-menu-button"
class="button is-rounded is-small is-outlined highlight-primary"> class="button is-rounded is-small is-outlined highlight-primary">
<app-fa-solid-icon icon="sync-alt" classString="is-small"></app-fa-solid-icon>
<span <span
[ngClass]="{ [ngClass]="{
'text-normal': drugstoneConfig.smallStyle 'text-normal': drugstoneConfig.smallStyle
...@@ -29,7 +30,6 @@ ...@@ -29,7 +30,6 @@
> >
Reset Reset
</span> </span>
<app-fa-solid-icon icon="sync-alt" classString="is-small last-item-in-button"></app-fa-solid-icon>
</button> </button>
<div class="dropdown-menu dropdown-list " id="controls-menu-button" role="menu"> <div class="dropdown-menu dropdown-list " id="controls-menu-button" role="menu">
<div class="dropdown-content inner-dropdown"> <div class="dropdown-content inner-dropdown">
......
...@@ -48,9 +48,9 @@ export class ExplorerPageComponent implements OnInit, AfterViewInit { ...@@ -48,9 +48,9 @@ export class ExplorerPageComponent implements OnInit, AfterViewInit {
public reset() { public reset() {
this.config = this.config this.config = this.config;
this.network = this.network this.network = this.network;
this.groups = this.groups this.groups = this.groups;
} }
@Input() @Input()
...@@ -458,6 +458,13 @@ export class ExplorerPageComponent implements OnInit, AfterViewInit { ...@@ -458,6 +458,13 @@ export class ExplorerPageComponent implements OnInit, AfterViewInit {
} }
}); });
this.networkHandler.activeNetwork.networkInternal.on('dragEnd', (properties) => {
let genes = this.networkHandler.activeNetwork.networkInternal.getSelectedNodes();
if (genes.length > 0) {
console.log(genes);
}
});
this.networkHandler.activeNetwork.networkInternal.on('deselectNode', (properties) => { this.networkHandler.activeNetwork.networkInternal.on('deselectNode', (properties) => {
this.closeSummary(); this.closeSummary();
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment