back-testing-react 2.0.16 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -119,10 +119,8 @@ function BackTestingHub(props: BackTestingHubProps){
|
|
|
119
119
|
setTimeout(function (){
|
|
120
120
|
const validNode : boolean = document.getRootNode().contains(mainPanelRef.current);
|
|
121
121
|
if(validNode){
|
|
122
|
-
if(!mapInstanceRef.current?.isMoving){
|
|
123
|
-
fetchWindstormPDFOutput();
|
|
124
|
-
} else {
|
|
125
|
-
mapInstanceRef.current.on("moveend",fetchWindstormPDFOutput)
|
|
122
|
+
if(!mapInstanceRef.current?.once("moveend",fetchWindstormPDFOutput).isMoving()){
|
|
123
|
+
fetchWindstormPDFOutput();
|
|
126
124
|
}
|
|
127
125
|
}
|
|
128
126
|
}, 750);
|
|
@@ -135,10 +133,8 @@ function BackTestingHub(props: BackTestingHubProps){
|
|
|
135
133
|
setTimeout(function (){
|
|
136
134
|
const validNode : boolean = document.getRootNode().contains(mainPanelRef.current);
|
|
137
135
|
if(validNode){
|
|
138
|
-
if(!mapInstanceRef
|
|
139
|
-
fetchEarthquakePDFOutput();
|
|
140
|
-
} else {
|
|
141
|
-
mapInstanceRef.current.on("moveend",fetchEarthquakePDFOutput)
|
|
136
|
+
if(!mapInstanceRef?.current?.once("moveend",fetchEarthquakePDFOutput).isMoving()){
|
|
137
|
+
fetchEarthquakePDFOutput();
|
|
142
138
|
}
|
|
143
139
|
}
|
|
144
140
|
}, 750);
|
|
@@ -41,7 +41,7 @@ BackTestingWizardWindstormAutoDisplayTest.args = {
|
|
|
41
41
|
apiAccessToken:process.env.STORYBOOK_API_KEY,
|
|
42
42
|
env:process.env.STORYBOOK_ENV as "dev" | "uat" | "prod",
|
|
43
43
|
weatherEvent: WeatherEventOption.WINDSTORM,
|
|
44
|
-
displaySidebar:
|
|
44
|
+
displaySidebar:true,
|
|
45
45
|
displaySidepanel:false,
|
|
46
46
|
limit:1230000,
|
|
47
47
|
locations:[{addressString: "Kaseya Center", latitude:25.78141698,longitude:-80.18699518}],
|
|
@@ -91,7 +91,7 @@ BackTestingWizardEarthquakeAutoDisplayTest.args = {
|
|
|
91
91
|
mapAccessToken: process.env.STORYBOOK_MAP_ACCESS_TOKEN,
|
|
92
92
|
apiAccessToken:process.env.STORYBOOK_API_KEY,
|
|
93
93
|
env:process.env.STORYBOOK_ENV as "dev" | "uat" | "prod",
|
|
94
|
-
displaySidebar:
|
|
94
|
+
displaySidebar:true,
|
|
95
95
|
displaySidepanel:false,
|
|
96
96
|
limit: 1_000_000,
|
|
97
97
|
weatherEvent: WeatherEventOption.EARTHQUAKE,
|