hail-testing-react
v0.1.4
Published
Parametric back testing component for 'Hail' developed by NormanMax Insurance Solutions
Readme
hail-testing-react
Parametric hail testing web modules developed by NormanMax Insurance Solutions
About
This is a small React library for use in Node.js environments, providing the ability to run hail historical testing components and applications.
NOTICE
The NormanMax Hail Testing requires a mapAccessToken and an apiAccessToken for the components to be utilized.
Installation
$ npm install hail-testing-reactUsage
The HailWizard component accepts the following property values. The mapAccessToken and the apiAccessToken are the only required parameters.
interface HailWizardProps {
mapAccessToken: string|undefined;
apiAccessToken: string|undefined;
location?: MapMarker;
rings?: number[];
startDate?: string;
endDate?: string;
minDate?: string;
distanceUnit?: DistanceUnit;
selectedView?: View;
}Example:
import {HailWizard} from 'hail-testing-react';
import {DistanceUnit} from 'hail-testing-react';
import {View} from 'hail-testing-react';
function App() {
return (
<div style={{height: '100vh', width: '100vw'}}>
<HailWizard
mapAccessToken={"..."}
apiAccessToken={"..."}
location={{latitude: 39.39, longitude: -101.04}}
rings={[1, 2, 5, 10]}
startDate={"2025-01-01"}
endDate={"2025-10-15"}
minDate={"2025-01-01"}
distanceUnit={DistanceUnit.MILE}
selectedView={View.MAP_VIEW}/>
</div>
);
}
export default App