show fullscreen image

This commit is contained in:
2023-03-04 09:48:29 +01:00
parent c57b53ccc6
commit 9e53022b4a
13 changed files with 145 additions and 42 deletions

View File

@@ -205,6 +205,14 @@ export class AutocompleteResult{
constructor(public proposals: Array<Suggestion>){}
}
type RenderOptionsMap = {
[key: string]: RenderOptions;
};
type RenderedImages = {
[key: string]: string;
};
export class PlotRequest {
constructor(
public height : number,
@@ -214,7 +222,8 @@ export class PlotRequest {
public keyOutside : boolean = false,
public generateThumbnail : boolean,
public submitterId: string,
public config: PlotConfig
public config: PlotConfig,
public renders: RenderOptionsMap
){}
@@ -237,6 +246,14 @@ export class PlotConfig {
public renderBarChartTickLabels: boolean = false,) {}
}
export class RenderOptions {
constructor(
public height: number,
public width: number,
public keyOutside: boolean,
public renderLabels: boolean) {}
}
export class YAxisDefinition {
constructor(
public axisScale : string,
@@ -249,7 +266,8 @@ export class PlotResponse {
constructor(
public imageUrl : string,
public stats : PlotResponseStats,
public thumbnailUrl : string){}
public thumbnailUrl : string,
public rendered: RenderedImages){}
}
export class PlotResponseStats {