@configuratorware/configurator-admingui 1.56.0 → 1.56.1

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.
@@ -591,18 +591,23 @@ var VisualizationSettingsEdit = exports.VisualizationSettingsEdit = /*#__PURE__*
591
591
  var _this$baseShapeEditor = this.baseShapeEditor.getViewImageSize(),
592
592
  imageWidth = _this$baseShapeEditor.width,
593
593
  imageHeight = _this$baseShapeEditor.height;
594
+ var areaRatio = areaWidth / areaHeight;
594
595
  if (prodVisSizeDimension === 'width') {
595
596
  var ratio = areaWidth / prodVisSizeValue;
597
+ var width = imageWidth * ratio;
598
+ var height = width / areaRatio;
596
599
  return {
597
- width: imageWidth * ratio,
598
- height: imageHeight * ratio
600
+ width: width,
601
+ height: height
599
602
  };
600
603
  }
601
604
  if (prodVisSizeDimension === 'height') {
602
605
  var _ratio = areaHeight / prodVisSizeValue;
606
+ var _height2 = imageHeight * _ratio;
607
+ var _width2 = _height2 * areaRatio;
603
608
  return {
604
- width: imageWidth * _ratio,
605
- height: imageHeight * _ratio
609
+ width: _width2,
610
+ height: _height2
606
611
  };
607
612
  }
608
613
  return null;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@configuratorware/configurator-admingui",
3
- "version": "1.56.0",
3
+ "version": "1.56.1",
4
4
  "license": "UNLICENSED",
5
5
  "private": false,
6
6
  "dependencies": {
7
7
  "@babel/polyfill": "^7.12.1",
8
- "@configuratorware/scripts": "1.56.0",
8
+ "@configuratorware/scripts": "1.56.1",
9
9
  "@material-ui/core": "^3.9.4",
10
10
  "@material-ui/icons": "^3.0.2",
11
11
  "@tweenjs/tween.js": "^17.6.0",
@@ -29,7 +29,7 @@
29
29
  "react-redux-i18n": "^1.9.3",
30
30
  "react-router": "^3.2.6",
31
31
  "react-sortable-hoc": "^1.11.0",
32
- "redhotmagma-visualization": "1.56.0",
32
+ "redhotmagma-visualization": "1.56.1",
33
33
  "redux": "^4.1.0",
34
34
  "redux-logger": "^3.0.6",
35
35
  "redux-persist": "^5.10.0",