@rolster/react-components 18.23.8 → 18.23.9

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/cjs/index.js CHANGED
@@ -3460,7 +3460,8 @@ function RlsImageEditor(props) {
3460
3460
  const context = refCanvas.current.getContext('2d', {
3461
3461
  willReadFrequently: true
3462
3462
  });
3463
- const { height, width } = calculateImgDimension(image.current, props.maxDimension || 500);
3463
+ const width = image.current.width;
3464
+ const height = image.current.height;
3464
3465
  refCanvas.current.width = width;
3465
3466
  refCanvas.current.height = height;
3466
3467
  context?.drawImage(image.current, 0, 0, width, height);
@@ -3800,6 +3801,7 @@ exports.RlsSwitch = RlsSwitch;
3800
3801
  exports.RlsSwitchControl = RlsSwitchControl;
3801
3802
  exports.RlsTabularText = RlsTabularText;
3802
3803
  exports.RlsToolbar = RlsToolbar;
3804
+ exports.calculateImgDimension = calculateImgDimension;
3803
3805
  exports.rangeFormatTemplate = rangeFormatTemplate;
3804
3806
  exports.renderClassStatus = renderClassStatus;
3805
3807
  exports.setErrorsI18n = setErrorsI18n;