back-testing-react 1.0.11 → 1.0.13

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "back-testing-react",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "Parametric back testing application developed by NormanMax Insurance Solutions",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -380,9 +380,20 @@ const BackTestingMap = forwardRef<BackTestingActions, BackTestingMapProps>((prop
380
380
  MapView.STORMS + "5false",["get","color"],
381
381
  Constants.COLOR_MUTED
382
382
  ],
383
- 'circle-radius': 5,
383
+ 'circle-radius': 10,
384
384
  },
385
385
  });
386
+
387
+ mapInstanceRef.current?.addLayer({
388
+ id: "singles-count",
389
+ type: "symbol",
390
+ source: TROPICAL_STORM_SOURCE,
391
+ layout: {
392
+ "text-field": "{category}",
393
+ "text-font": ["DIN Offc Pro Medium", "Arial Unicode MS Bold"],
394
+ "text-size": 12
395
+ }
396
+ });
386
397
 
387
398
  const popup = new mapboxgl.Popup({
388
399
  closeButton: false,
@@ -1,5 +1,7 @@
1
1
  .payout-info-container {
2
+ --container-offset:10px;
2
3
  padding:0;
4
+ height:calc(100% - var(--container-offset));
3
5
  font-family: system-ui, sans-serif;
4
6
  }
5
7
 
@@ -96,11 +98,12 @@
96
98
  }
97
99
 
98
100
  .payout-info-container .scroll-container{
99
- height: calc(100vh - 2.5em - 15px - 15px - 40px);
101
+
102
+ height: calc(100% - 2.5em - var(--container-offset));
100
103
  overflow-y:hidden;
101
104
  scrollbar-gutter: stable;
102
105
  position: relative;
103
- top: 10px;
106
+ top: var(--container-offset);
104
107
  }
105
108
 
106
109
  .payout-info-container .scroll-container:hover{
@@ -264,7 +264,7 @@ const BackTestingStepper = (props: BackTestingStepperProps) => {
264
264
 
265
265
  return(
266
266
  <div className="stepper-container">
267
- <Box sx={{ maxWidth: 400 }}>
267
+ <Box sx={{ maxWidth: 400, height: 'calc(100% - 1em)' }}>
268
268
  {wizardStep !== PayoutWizardStepType.DISPLAY_PAYOUTS && <Stepper activeStep={activeStep} orientation="vertical">
269
269
  {steps.map((step, index) => (
270
270
  <Step key={step.label}>
@@ -10,8 +10,8 @@ const Template: StoryFn<typeof BackTestingWizard> = (args) => <div style={{width
10
10
 
11
11
  export const BackTestingWizardTest = Template.bind({});
12
12
  BackTestingWizardTest.args = {
13
- mapAccessToken: "",
14
- apiAccessToken: "",
13
+ mapAccessToken:"",
14
+ apiAccessToken:"",
15
15
  env:'uat',
16
16
  selectedProxyPayoutOptionIndex:0,
17
17
  proxyPayoutOptions: [