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

@@ -641,7 +641,7 @@
"rxjs/**",
"ng2-charts",
"chart.js",
"plotly.js-dist",
"plotly.js-dist-min",
"angular2-grid",
"html-query-plan"
]

View File

@@ -64,7 +64,7 @@
"ng2-charts": "^1.6.0",
"node-pty": "0.10.0-beta7",
"onigasm-umd": "2.2.5",
"plotly.js-dist": "^1.48.3",
"plotly.js-dist-min": "^1.53.0",
"reflect-metadata": "^0.1.8",
"rxjs": "5.4.0",
"sanitize-html": "^1.19.1",
@@ -175,8 +175,8 @@
"rimraf": "^2.2.8",
"sinon": "^1.17.2",
"source-map": "^0.4.4",
"temp-write": "^3.4.0",
"style-loader": "^1.0.0",
"temp-write": "^3.4.0",
"ts-loader": "^4.4.2",
"typemoq": "^0.3.2",
"typescript": "^3.9.0-dev.20200327",

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();

View File

@@ -7186,10 +7186,10 @@ plist@^3.0.1:
xmlbuilder "^9.0.7"
xmldom "0.1.x"
plotly.js-dist@^1.48.3:
version "1.48.3"
resolved "https://registry.yarnpkg.com/plotly.js-dist/-/plotly.js-dist-1.48.3.tgz#b160b2d080ad87720121c9119f28036f35a301dc"
integrity sha512-Ocy2WWjzh4Ofk293AgTvP0ga053nTV7TvUbYEzmq1E9Eh7wc6HCPBxo55YcZThHw3hVycEnhktLQK94en1bYSw==
plotly.js-dist-min@^1.53.0:
version "1.53.0"
resolved "https://registry.yarnpkg.com/plotly.js-dist-min/-/plotly.js-dist-min-1.53.0.tgz#bcec2c0ce0c64ea8d7a261213540669a8cc166e9"
integrity sha512-tcNz8PmtUL9NfN7gGhMf5TuNt5x20dig+biFLvFH9uFT1kD2Erq5p058QNV2A+vLULTlESlJvVzR9hwpdPMUrw==
plugin-error@0.1.2, plugin-error@^0.1.2:
version "0.1.2"