Skip to content
Snippets Groups Projects
Commit 19f904d2 authored by Michael Hartung's avatar Michael Hartung
Browse files

download button

parent ce82a9c8
No related branches found
No related tags found
No related merge requests found
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
<div class="tab-content" *ngIf="task && task.info.done" [class.is-visible]="tab === 'network'"> <div class="tab-content" *ngIf="task && task.info.done" [class.is-visible]="tab === 'network'">
<div class="card-image canvas-content" #networkWithLegend> <div class="card-image canvas-content" #networkWithLegend>
<div *ngIf="myConfig.showLegend"> <div *ngIf="myConfig.showLegend">
<app-network-legend [config]="myConfig" [context]="legendContext"></app-network-legend> <app-network-legend [config]="myConfig" [context]="legendContext" [smallStyle]="smallStyle"></app-network-legend>
</div> </div>
<div class="parent fullheight"> <div class="parent fullheight">
<div class="center image1 fullheight" #network> <div class="center image1 fullheight" #network>
...@@ -154,6 +154,7 @@ ...@@ -154,6 +154,7 @@
pTooltip="Take a screenshot of the current network." pTooltip="Take a screenshot of the current network."
[tooltipStyleClass]="'drgstn drgstn-tooltip'" [tooltipStyleClass]="'drgstn drgstn-tooltip'"
tooltipPosition="top" tooltipPosition="top"
[ngClass]="{ 'button-small': smallStyle }"
(click)="toImage()"> (click)="toImage()">
<span class="icon"> <span class="icon">
<i class="fas fa-camera" aria-hidden="true"></i> <i class="fas fa-camera" aria-hidden="true"></i>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<th> <th>
<img [src]="nodeGroup.value.image" class="legend-icon"/> <img [src]="nodeGroup.value.image" class="legend-icon"/>
</th> </th>
<td class="group-name">&nbsp;{{ nodeGroup.value.groupName }}</td> <td class="group-name" [ngClass]="{ 'text-normal': smallStyle }">&nbsp;{{ nodeGroup.value.groupName }}</td>
</ng-container> </ng-container>
<ng-container *ngIf="!nodeGroup.value.image" [ngSwitch]="nodeGroup.value.shape"> <ng-container *ngIf="!nodeGroup.value.image" [ngSwitch]="nodeGroup.value.shape">
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<span class="node {{ nodeGroup.value.shape }}" [style.background-color]=nodeGroup.value.color.background> <span class="node {{ nodeGroup.value.shape }}" [style.background-color]=nodeGroup.value.color.background>
</span> </span>
</th> </th>
<td class="group-name">&nbsp;{{ nodeGroup.value.groupName }}</td> <td class="group-name" [ngClass]="{ 'text-normal': smallStyle }">&nbsp;{{ nodeGroup.value.groupName }}</td>
</ng-container> </ng-container>
</ng-container> </ng-container>
</tr> </tr>
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
<hr *ngIf="!edgeGroup.value.dashes" class="edge" [style.background-color]=edgeGroup.value.color> <hr *ngIf="!edgeGroup.value.dashes" class="edge" [style.background-color]=edgeGroup.value.color>
<hr *ngIf="edgeGroup.value.dashes" class="edge dashes" [style.color]=edgeGroup.value.color> <hr *ngIf="edgeGroup.value.dashes" class="edge dashes" [style.color]=edgeGroup.value.color>
</th> </th>
<td class="group-name">&nbsp;{{ edgeGroup.value.groupName }}</td> <td class="group-name" [ngClass]="{ 'text-normal': smallStyle }">&nbsp;{{ edgeGroup.value.groupName }}</td>
</ng-container> </ng-container>
</tr> </tr>
</ng-container> </ng-container>
......
...@@ -11,6 +11,7 @@ export class NetworkLegendComponent implements OnInit { ...@@ -11,6 +11,7 @@ export class NetworkLegendComponent implements OnInit {
@Input() context: legendContext; @Input() context: legendContext;
@Input() config: IConfig; @Input() config: IConfig;
@Input() smallStyle: boolean;
private contextNodeGroupsToDelete = { private contextNodeGroupsToDelete = {
'explorer': ['foundNode', 'foundDrug', 'seedNode', 'default', 'defaultDisorder'], 'explorer': ['foundNode', 'foundDrug', 'seedNode', 'default', 'defaultDisorder'],
......
...@@ -157,6 +157,7 @@ ...@@ -157,6 +157,7 @@
<app-network-legend <app-network-legend
[config]="myConfig" [config]="myConfig"
[context]="legendContext" [context]="legendContext"
[smallStyle]="smallStyle"
></app-network-legend> ></app-network-legend>
</div> </div>
<div class="center image1 fullheight" #network> <div class="center image1 fullheight" #network>
......
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