@colisweb/rescript-toolkit 5.49.2 → 5.49.3

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": "@colisweb/rescript-toolkit",
3
- "version": "5.49.2",
3
+ "version": "5.49.3",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "clean": "rescript clean",
@@ -421,6 +421,7 @@ let make = (
421
421
  ~infosContainerClassName="",
422
422
  ~displayCurrentTime=false,
423
423
  ~centerOnMount=false,
424
+ ~initialScaleValue=0.,
424
425
  ) => {
425
426
  let containerRef = React.useRef(Js.Nullable.null)
426
427
  let (measuringScale, setMeasuringScale) = React.useState((): option<state> => None)
@@ -468,7 +469,7 @@ let make = (
468
469
  )
469
470
 
470
471
  let measuringScale = calculateMeasuringScale(
471
- ~containerWidth=containerWidth +. 600.,
472
+ ~containerWidth=containerWidth +. initialScaleValue,
472
473
  ~startHour=startHour.contents,
473
474
  ~endHour=endHour.contents,
474
475
  )