Skip to content
Snippets Groups Projects
Commit 1039fc10 authored by Hartung, Michael's avatar Hartung, Michael
Browse files

network fullscreen mode

parent 9c05a9f7
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ import {
faRulerVertical, faDna, faMicroscope, faBook, faPause, faTrash, faSpinner, faExclamationTriangle, faPlus,
faExpand, faInfo, faRocket, faAngleDown, faSearch, faFastForward, faExternalLinkAlt, faTasks, faFilter,
faMinus, faUpload, faAngleDoubleDown, faSync, faBroom, faAngleDoubleUp, faChild, faHeadSideMask, faBiohazard,
faBullseye, faSeedling, faSyncAlt
faBullseye, faSeedling, faSyncAlt, faCompress
} from '@fortawesome/free-solid-svg-icons';
import { TooltipModule } from 'primeng/tooltip';
import { NetworkMenuComponent } from './components/network/network-menu/network-menu.component';
......@@ -97,7 +97,8 @@ export class AppModule {
faCheck, faCamera, faDownload, faRulerVertical, faDna, faMicroscope, faBook, faPause, faTrash,
faSpinner, faExclamationTriangle, faPlus, faExpand, faInfo, faRocket, faAngleDown, faSearch,
faFastForward, faExternalLinkAlt, faTasks, faFilter, faMinus, faUpload, faAngleDoubleDown,
faSync, faBroom, faAngleDoubleUp, faChild, faHeadSideMask, faBiohazard, faBullseye, faSeedling, faSyncAlt);
faSync, faBroom, faAngleDoubleUp, faChild, faHeadSideMask, faBiohazard, faBullseye, faSeedling,
faSyncAlt, faExpand, faCompress);
const NetworkExpander = createCustomElement(ExplorerPageComponent, { injector });
// Register the custom element with the browser.
customElements.define('drugst-one', NetworkExpander);
......
<div class="card network">
<div class="card network" [ngClass]="{'fullscreen': fullscreen}">
<header class="card-header network-header" *ngIf="networkType === 'explorer'">
<p class="card-header-title">
{{ drugstoneConfig.config.title }}
</p>
<span class="mr-1 is-pulled-right columns is-flex is-vcentered">
<button
title="open in fullscreen"
*ngIf="!fullscreen"
(click)="toggleFullscreen()"
class="button is-primary is-outlined is-rounded is-small"
>
<span class="icon is-small">
<i class="fas fa-expand"></i>
</span>
</button>
<button
title="close fullscreen"
*ngIf="fullscreen"
(click)="toggleFullscreen()"
class="button is-primary is-outlined is-rounded is-small"
>
<span class="icon is-small">
<i class="fas fa-compress"></i>
</span>
</button>
</span>
</header>
<div
class="card-content network-view-settings"
......
......@@ -13,3 +13,11 @@
.dropdown-menu{
z-index: $network-tissue-options-z !important;
}
.fullscreen{
position: fixed !important;
height: 100vh !important;
width: 100vw !important;
top: 0 !important;
left: 0 !important;
}
......@@ -77,6 +77,7 @@ export class NetworkComponent implements OnInit {
public expressionMap: NodeAttributeMap = {};
public gradientMap: NodeAttributeMap = {};
public fullscreen = false;
constructor(public networkHandler: NetworkHandlerService, public analysis: AnalysisService, public drugstoneConfig: DrugstoneConfigService, public netex: NetexControllerService, public omnipath: OmnipathControllerService) { }
......@@ -404,4 +405,8 @@ export class NetworkComponent implements OnInit {
this.setLegendContext();
}
public toggleFullscreen() {
this.fullscreen = !this.fullscreen;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment