Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8c2a889

Browse files
committed
undoing async methods
1 parent2ae1739 commit8c2a889

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/app/shared/plot/plot.component.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export class PlotComponent implements OnInit, OnChanges, OnDestroy, DoCheck {
194194
returnclasses.join(' ');
195195
}
196196

197-
asynccreatePlot():Promise<void>{
197+
createPlot():Promise<void>{
198198
returnthis.plotly.newPlot(this.plotEl.nativeElement,this.data,this.layout,this.config,this.frames).then(plotlyInstance=>{
199199
this.plotlyInstance=plotlyInstance;
200200
this.getWindow().gd=this.debug ?plotlyInstance :undefined;
@@ -227,7 +227,8 @@ export class PlotComponent implements OnInit, OnChanges, OnDestroy, DoCheck {
227227
returnfigure;
228228
}
229229

230-
asyncupdatePlot(){
230+
updatePlot(){
231+
console.log('updatePlot',this.plotlyInstance);
231232
if(!this.plotlyInstance){
232233
consterror=newError(`Plotly component wasn't initialized`);
233234
this.error.emit(error);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp