Replace with the minified version of plotly (#9840)

This commit is contained in:
Amir Omidi
2020-04-15 16:24:16 -07:00
committed by GitHub
parent 9d9788d16f
commit 5089b5c8bd
4 changed files with 9 additions and 9 deletions

View File

@@ -42,7 +42,7 @@ declare class PlotlyHTMLElement extends HTMLDivElement {
export class PlotlyOutputComponent extends AngularDisposable implements IMimeComponent, OnInit {
public static readonly SELECTOR: string = 'plotly-output';
private static Plotly?: Promise<typeof import('plotly.js-dist')>;
private static Plotly?: Promise<typeof import('plotly.js-dist-min')>;
@ViewChild('output', { read: ElementRef }) private output: ElementRef;
@@ -79,7 +79,7 @@ export class PlotlyOutputComponent extends AngularDisposable implements IMimeCom
ngOnInit() {
if (!PlotlyOutputComponent.Plotly) {
PlotlyOutputComponent.Plotly = import('plotly.js-dist');
PlotlyOutputComponent.Plotly = import('plotly.js-dist-min');
}
this._plotDiv = this.output.nativeElement;
this.renderPlotly();