show fullscreen image
This commit is contained in:
@@ -4,7 +4,7 @@ import { MatDialog } from '@angular/material/dialog';
|
||||
import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack-bar';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import { Dashboard, DashboardService, PlotSize, PlotWidget, PlotWidgetRenderData, TextWidget } from 'src/app/dashboard.service';
|
||||
import { PlotConfig, PlotRequest, PlotResponse, PlotService } from 'src/app/plot.service';
|
||||
import { PlotConfig, PlotRequest, PlotResponse, PlotService, RenderOptions } from 'src/app/plot.service';
|
||||
import { AddPlotDialogComponent } from './add-plot-dialog/add-plot-dialog.component';
|
||||
import { AddTextDialogComponent } from './add-text-dialog/add-text-dialog.component';
|
||||
|
||||
@@ -67,11 +67,15 @@ export class DashboardComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
createPlotRequest(plotWidget: PlotWidget): PlotRequest {
|
||||
|
||||
const height = this.height(plotWidget.size);
|
||||
const width = this.width(plotWidget.size);
|
||||
|
||||
const fullWidth = window.innerWidth-30;
|
||||
const fullHeight = window.innerHeight-30;
|
||||
|
||||
const request = new PlotRequest(
|
||||
height,
|
||||
width,
|
||||
@@ -80,7 +84,12 @@ export class DashboardComponent implements OnInit {
|
||||
false, // keyOutside
|
||||
false, // generateThumbnail
|
||||
(<any>window).submitterId+crypto.randomUUID(),
|
||||
plotWidget.config);
|
||||
plotWidget.config,
|
||||
{
|
||||
'main': new RenderOptions(height,width, false, true),
|
||||
'fullScreen': new RenderOptions(fullHeight,fullWidth, false, true)
|
||||
}
|
||||
);
|
||||
return request;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user