@configuratorware/configurator-frontendgui 1.30.1 → 1.30.4
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/App/Modules/Designer/Components/ImageColorPicker/ImageColorPicker.js +1 -2
- package/App/Modules/Designer/Utils/Transformers.js +1 -1
- package/package.json +4 -4
- package/src/App/Modules/Designer/Components/ImageColorPicker/ImageColorPicker.js +1 -3
- package/src/App/Modules/Designer/Utils/Transformers.js +1 -1
|
@@ -342,9 +342,8 @@ var ImageColorPicker = /*#__PURE__*/function (_React$Component) {
|
|
|
342
342
|
|
|
343
343
|
var ow = img.width,
|
|
344
344
|
oh = img.height;
|
|
345
|
-
var oa = ow / oh;
|
|
346
345
|
|
|
347
|
-
if (
|
|
346
|
+
if (ow / oh <= pw / ph) {
|
|
348
347
|
var height = ph;
|
|
349
348
|
var width = height * (ow / oh);
|
|
350
349
|
this.updateCanvasDimensionsAndContent(canvas, img, width, height);
|
|
@@ -61,7 +61,7 @@ var getRasterURL = function getRasterURL(imageURL) {
|
|
|
61
61
|
exports.getRasterURL = getRasterURL;
|
|
62
62
|
|
|
63
63
|
var isOriginalVector = function isOriginalVector(imageData) {
|
|
64
|
-
return /^(eps|ept|pdf|ai|svg)$/i.test((0, _get["default"])(imageData, 'original.format', ''));
|
|
64
|
+
return /^(eps|ept|ps|pdf|ai|svg)$/i.test((0, _get["default"])(imageData, 'original.format', ''));
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
exports.isOriginalVector = isOriginalVector;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configuratorware/configurator-frontendgui",
|
|
3
|
-
"version": "1.30.
|
|
3
|
+
"version": "1.30.4",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "./index.js",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@babel/polyfill": "^7.12.1",
|
|
9
|
-
"@configuratorware/scripts": "1.30.
|
|
9
|
+
"@configuratorware/scripts": "1.30.4",
|
|
10
10
|
"@hot-loader/react-dom": "^17.0.1",
|
|
11
11
|
"@material-ui/core": "^4.12.2",
|
|
12
12
|
"@material-ui/icons": "^4.11.2",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"react-router-dom": "^5.2.0",
|
|
40
40
|
"react-swipeable": "^5.5.1",
|
|
41
41
|
"react-zoom-pan-pinch": "^2.1.3",
|
|
42
|
-
"redhotmagma-graphics-editor": "1.30.
|
|
43
|
-
"redhotmagma-visualization": "1.30.
|
|
42
|
+
"redhotmagma-graphics-editor": "1.30.4",
|
|
43
|
+
"redhotmagma-visualization": "1.30.4",
|
|
44
44
|
"redux": "^4.1.0",
|
|
45
45
|
"redux-logger": "^3.0.6",
|
|
46
46
|
"redux-persist": "^5.10.0",
|
|
@@ -210,9 +210,7 @@ export class ImageColorPicker extends React.Component {
|
|
|
210
210
|
const { width: pw, height: ph } = container.getBoundingClientRect();
|
|
211
211
|
const { width: ow, height: oh } = img;
|
|
212
212
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
if (oa <= 1) {
|
|
213
|
+
if (ow / oh <= pw / ph) {
|
|
216
214
|
const height = ph;
|
|
217
215
|
const width = height * (ow / oh);
|
|
218
216
|
|
|
@@ -20,7 +20,7 @@ export const fixSrcURL = src => {
|
|
|
20
20
|
export const getRasterURL = imageURL => ('' + imageURL).replace(/svg$/, 'png');
|
|
21
21
|
|
|
22
22
|
export const isOriginalVector = imageData =>
|
|
23
|
-
/^(eps|ept|pdf|ai|svg)$/i.test(get(imageData, 'original.format', ''));
|
|
23
|
+
/^(eps|ept|ps|pdf|ai|svg)$/i.test(get(imageData, 'original.format', ''));
|
|
24
24
|
|
|
25
25
|
export const noCache = src => `${src}?${Math.random()}`;
|
|
26
26
|
|