Skip to content
Snippets Groups Projects
Commit 57a56d34 authored by ge54hev's avatar ge54hev
Browse files

linting

parent be74b364
No related branches found
No related tags found
No related merge requests found
......@@ -167,6 +167,7 @@
<div *ngIf="showDetails" class="card-content">
<div class="content">
<!-- <h2>Summary</h2>-->
<p>Hold down the CTRL button to select multiple proteins.</p>
<figure class="image">
<!-- <img src="assets/boxplot.png" alt="Boxplots">-->
</figure>
......
......@@ -7,6 +7,8 @@ import {AnalysisService} from '../../analysis.service';
declare var vis: any;
@Component({
selector: 'app-explorer-page',
templateUrl: './explorer-page.component.html',
......@@ -42,12 +44,16 @@ export class ExplorerPageComponent implements OnInit, AfterViewInit {
public showAnalysisDialog = false;
@HostListener('window:keydown', ['$event'])
@ViewChild('network', {static: false}) networkEl: ElementRef;
@HostListener('window:keydown', ['$event'])
handleKeyboardEvent1(event: KeyboardEvent) {
if (event.keyCode == 17)
{
if (event.ctrlKey) {
this.watcher = 1;
console.log(this.watcher);
......@@ -58,17 +64,13 @@ export class ExplorerPageComponent implements OnInit, AfterViewInit {
handleKeyboardEvent(event: KeyboardEvent) {
if (event.keyCode == 17)
{
if (event.ctrlKey) {
this.watcher = 0;
console.log(this.watcher);
}
}
@ViewChild('network', {static: false}) networkEl: ElementRef;
constructor(private http: HttpClient,
private route: ActivatedRoute,
private router: Router,
......@@ -217,16 +219,16 @@ export class ExplorerPageComponent implements OnInit, AfterViewInit {
// TODO use groupID
console.log(id);
console.log(this.watcher);
if (id.length > 0) {
if (id.length > 0) {
console.log('clicked node:', id);
if (id[0].startsWith('pg_')) {
const protein = this.proteinData.getProtein(id[0].substr(3));
this.openSummary(protein, false);
console.log(this.currentProteinAc);
if (this.watcher==1){
if(this.inSelection(protein.proteinAc) == true){
if (this.watcher === 1 ) {
if (this.inSelection(protein.proteinAc) === true) {
console.log(this.removeFromSelection(protein.proteinAc));
} else{
} else {
console.log(this.addToSelection(protein.proteinAc));
// console.log(this.removeFromSelection(this.currentProteinAc));
console.log(this.analysis.getCount());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment