@gemx-dev/heatmap-react 3.5.12 → 3.5.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/dist/esm/index.js +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/umd/index.js +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -478,7 +478,7 @@ const useScaleCalculation = (props) => {
|
|
|
478
478
|
useEffect(() => {
|
|
479
479
|
if (containerWidth > 0 && contentWidth > 0) {
|
|
480
480
|
const availableWidth = containerWidth - HEATMAP_CONFIG['paddingBlock'] * 2;
|
|
481
|
-
const calculatedScale = Math.min(availableWidth / contentWidth);
|
|
481
|
+
const calculatedScale = Math.min(availableWidth / contentWidth, 1);
|
|
482
482
|
setScale(calculatedScale);
|
|
483
483
|
}
|
|
484
484
|
}, [containerWidth, contentWidth]);
|
package/dist/esm/index.mjs
CHANGED
|
@@ -478,7 +478,7 @@ const useScaleCalculation = (props) => {
|
|
|
478
478
|
useEffect(() => {
|
|
479
479
|
if (containerWidth > 0 && contentWidth > 0) {
|
|
480
480
|
const availableWidth = containerWidth - HEATMAP_CONFIG['paddingBlock'] * 2;
|
|
481
|
-
const calculatedScale = Math.min(availableWidth / contentWidth);
|
|
481
|
+
const calculatedScale = Math.min(availableWidth / contentWidth, 1);
|
|
482
482
|
setScale(calculatedScale);
|
|
483
483
|
}
|
|
484
484
|
}, [containerWidth, contentWidth]);
|