show plotted images

This commit is contained in:
2019-10-27 07:53:23 +01:00
parent 3190074ce3
commit 5a7cde7815
19 changed files with 117 additions and 35 deletions

View File

@@ -0,0 +1,5 @@
<img
*ngIf="imageUrl"
src="{{imageUrl}}" />
<div *ngIf="errorMessage" class="errorPanel">{{errorMessage}}</div>

View File

@@ -0,0 +1,4 @@
img {
display:block; /* removes 3 pixels extra height around the image */
}

View File

@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { PlotViewComponent } from './plot-view.component';
describe('PlotViewComponent', () => {
let component: PlotViewComponent;
let fixture: ComponentFixture<PlotViewComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ PlotViewComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(PlotViewComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@@ -0,0 +1,19 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'pdb-plot-view',
templateUrl: './plot-view.component.html',
styleUrls: ['./plot-view.component.scss']
})
export class PlotViewComponent implements OnInit {
imageUrl : string;
errorMessage: string;
constructor() { }
ngOnInit() {
}
}