use new render result for visualization

This commit is contained in:
2023-03-04 10:18:55 +01:00
parent 9e53022b4a
commit bc3b6ec3e9
4 changed files with 40 additions and 32 deletions

View File

@@ -1,5 +1,5 @@
import { Component, OnInit, Output, EventEmitter } from '@angular/core';
import { DataType, AxesTypes, PlotResponseStats, PlotConfig, PlotService, PlotResponse, PlotRequest } from '../plot.service';
import { DataType, AxesTypes, PlotResponseStats, PlotConfig, PlotService, PlotResponse, PlotRequest, RenderOptions } from '../plot.service';
import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack-bar';
import * as moment from 'moment';
import { WidgetDimensions } from '../dashboard.service';
@@ -254,7 +254,8 @@ export class PlotViewComponent implements OnInit {
this.loadingEvent.emit(new LoadingEvent(true));
const x = this.service.sendPlotRequest(request).subscribe({
next: (plotResponse: PlotResponse) => {
this.imageUrl = "http://"+window.location.hostname+':'+window.location.port+'/'+plotResponse.imageUrl;
this.imageUrl = "http://"+window.location.hostname+':'+window.location.port+'/'+plotResponse.rendered['main'];
this.stats = plotResponse.stats;
document.dispatchEvent(new Event("invadersPause", {}));
this.loadingEvent.emit(new LoadingEvent(false));
@@ -282,7 +283,9 @@ export class PlotViewComponent implements OnInit {
false, // generateThumbnail
(<any>window).submitterId,
this.config!,
{});
{
'main': new RenderOptions(actualDimension.height, actualDimension.width, false, true)
});
return request;
}