Enable auto cfg loading and running from arguments.
This commit is contained in:
+5
-4
@@ -102,12 +102,13 @@ function resizePl(flag){
|
||||
width: newx,
|
||||
height: newy
|
||||
};
|
||||
const canRelayout = (plotDiv) => plotDiv && plotDiv.data && plotDiv.layout;
|
||||
if (flag == null) {
|
||||
Plotly.relayout(plotDiv1,update);
|
||||
Plotly.relayout(plotDiv2,update);
|
||||
if (canRelayout(plotDiv1)) Plotly.relayout(plotDiv1,update);
|
||||
if (canRelayout(plotDiv2)) Plotly.relayout(plotDiv2,update);
|
||||
} else if (flag == 1) {
|
||||
Plotly.relayout(plotDiv1,update);
|
||||
if (canRelayout(plotDiv1)) Plotly.relayout(plotDiv1,update);
|
||||
} else if ( flag == 2) {
|
||||
Plotly.relayout(plotDiv2,update);
|
||||
if (canRelayout(plotDiv2)) Plotly.relayout(plotDiv2,update);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user