@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
|
@@ -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 +.
|
|
472
|
+
~containerWidth=containerWidth +. initialScaleValue,
|
|
472
473
|
~startHour=startHour.contents,
|
|
473
474
|
~endHour=endHour.contents,
|
|
474
475
|
)
|